[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#8260) Test "test062-config-delete" occasionally runs into segmentation fault



Full_Name: Howard Guo
Version: master-94d6581b50fa2d877cf4a1e20ca6766454094ef8
OS: openSUSE
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (195.135.221.2)


The test case "test062-config-delete" occasionally runs into segfault when
running with BDB backend. The chance of segfault happening is about once every
200 runs.

The version of OpenLDAP is post-2.4.42 master checked out at revision
94d6581b50fa2d877cf4a1e20ca6766454094ef8, simply compiled with make.

The operating system is openSUSE Tumbleweed running on kernel 4.1.6.

Here is the GDB conversation with a captured core dump file:

Core was generated by
`/home/howard/qa_test_openldap2/tests/../servers/slapd/slapd -s0 -F ./slapd.d
-h'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000055e606fed253 in syncprov_op_abandon (op=0x7f7aa15498a0,
    rs=0x7f7aa15496e0) at syncprov.c:1156
1156                    if ( so->s_op->o_connid == op->o_connid &&
(gdb) l
1151            syncprov_info_t         *si = on->on_bi.bi_private;
1152            syncops *so, **sop;
1153
1154            ldap_pvt_thread_mutex_lock( &si->si_ops_mutex );
1155            for ( sop=&si->si_ops; (so = *sop); sop = &(*sop)->s_next ) {
1156                    if ( so->s_op->o_connid == op->o_connid &&
1157                            so->s_op->o_msgid == op->orn_msgid ) {
1158                                    so->s_op->o_abandon = 1;
1159                                    *sop = so->s_next;
1160                                    break;
(gdb) info locals
on = <optimized out>
si = 0x7f7a94104990
so = 0x7f7a94103f30
sop = 0x7f7a94104990
(gdb) print so->s_op->o_hdr
Cannot access memory at address 0x6172757463757274

Please let me know how I may assist further with debugging.