#310 sssd_be segfaults because of tevent_loop_once nesting
Closed: Fixed None Opened 14 years ago by sgallagh.

#0  0x000000341e6326b5 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
        resultvar = 0
        pid = <value optimized out>
        selftid = <value optimized out>
#1  0x000000341e633e95 in abort () at abort.c:92
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x7fffd0952930, sa_sigaction = 0x7fffd0952930}, sa_mask = {__val = {0, 0, 30073984, 140736692824768, 139780152146584, 223847934728, 139780262522880, 0, 
              4294967295, 206158430224, 1, 223900372088, 0, 0, 0, 0}}, sa_flags = 505469824, sa_restorer = 0x1}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00000034216025ae in tevent_abort (ev=<value optimized out>, reason=0x1d09bb0 "tevent_loop_once() nesting at ../../server/providers/ldap/sdap_async_accounts.c:684") at tevent.c:340
No locals.
#3  0x00000034216027b5 in _tevent_loop_once (ev=0x1cae480, location=0x7f211a50ba98 "../../server/providers/ldap/sdap_async_accounts.c:684") at tevent.c:469
        ret = <value optimized out>
        nesting_stack_ptr = 0x0
#4  0x00007f211a4e6439 in sdap_find_entry_by_origDN (memctx=0x1cf1530, ev=0x1cae480, handle=0x1cf1d50, domain=0x1caf610, orig_dn=0x1ce7850 "uid=admin,cn=users,cn=accounts,dc=sgallagh,dc=example,dc=com", 
    localdn=0x1cf1530) at ../../server/providers/ldap/sdap_async_accounts.c:684
        req = 0x1d086a0
        state = 0x1cfbf90
        attrs = {0x0}
        base_dn = 0x1cf0bd0
        filter = 0x1d08e70 "originalDN=uid=admin,cn=users,cn=accounts,dc=sgallagh,dc=example,dc=com"
        msgs = 0x10
        num_msgs = 223848401501
        ret = 32767
#5  0x00007f211a4e67ed in sdap_fill_memberships (group_attrs=0x1cd53b0, ev=0x1cae480, handle=0x1cf1d50, opts=0x1cc8fd0, domain=0x1caf610, values=0x1cf0190, num_values=1)
    at ../../server/providers/ldap/sdap_async_accounts.c:755
        el = 0x1d09cf0
        i = 0
        j = 0
        ret = 0
        __FUNCTION__ = "sdap_fill_memberships"
#6  0x00007f211a4e7c91 in sdap_save_grpmem_send (memctx=0x1ce06b0, ev=0x1cae480, handle=0x1cf1d50, opts=0x1cc8fd0, dom=0x1caf610, attrs=0x1cd5890) at ../../server/providers/ldap/sdap_async_accounts.c:1053
        req = 0x1d07f70
        subreq = 0x341f604a7b
        state = 0x1ce9dc0
        el = 0x1ce7ad0
        group_attrs = 0x1cd53b0
        ret = 0
        __FUNCTION__ = "sdap_save_grpmem_send"
#7  0x00007f211a4e877a in sdap_save_groups_mem_save (req=0x1ce7c10) at ../../server/providers/ldap/sdap_async_accounts.c:1287
        subreq = 0x1cf10a0
        state = 0x1ce06b0
#8  0x00007f211a4e868d in sdap_save_groups_loop (subreq=0x0) at ../../server/providers/ldap/sdap_async_accounts.c:1265
        req = 0x1ce7c10
        state = 0x1ce06b0
        timestamp = 0x0
        ret = 0
        __FUNCTION__ = "sdap_save_groups_loop"
#9  0x00007f211a4e78a8 in sdap_save_group_done (subreq=0x0) at ../../server/providers/ldap/sdap_async_accounts.c:972
        req = 0x1d09bb0
        state = 0x1cf1dd0
        ret = 0
        __FUNCTION__ = "sdap_save_group_done"
#10 0x0000000000429ab8 in sysdb_store_group_attr_done (subreq=0x0) at ../../server/db/sysdb_ops.c:2952
        req = 0x1cee660
        ret = 0
        __FUNCTION__ = "sysdb_store_group_attr_done"
#11 0x0000000000421efa in sysdb_set_group_attr_done (subreq=0x0) at ../../server/db/sysdb_ops.c:1212
        req = 0x1d01870
        ret = 0
        __FUNCTION__ = "sysdb_set_group_attr_done"
#12 0x000000000041e725 in sysdb_op_default_done (subreq=0x0) at ../../server/db/sysdb_ops.c:241
        req = 0x1ceebd0
        state = 0x1cf0a10
        ret = 0
        __FUNCTION__ = "sysdb_op_default_done"
#13 0x000000000041e3ba in sldb_request_callback (ldbreq=0x1cf10a0, ldbreply=0x1d09cf0) at ../../server/db/sysdb_ops.c:163
        req = 0x1d07f70
        state = 0x1d07da0
        err = 0
        __FUNCTION__ = "sldb_request_callback"
#14 0x00007f2121526a6a in ldb_module_done (req=0x1cf10a0, ctrls=0x0, response=0x0, error=0) at common/ldb_modules.c:732
        ares = 0x6459
#15 0x00007f211a71f497 in mbof_orig_mod_callback (req=0x1d07e20, ares=0x0) at ../../server/ldb_modules/memberof.c:2611
        ldb = 0x1cc3fc0
        mod_ctx = 0x1cfbea0
        ctx = 0x1ce9dc0
        ret = 0
#16 0x00007f212153002d in ltdb_callback (ev=<value optimized out>, te=<value optimized out>, t=..., private_data=<value optimized out>) at ldb_tdb/ldb_tdb.c:1129
        ctx = 0x1d04240
        ret = <value optimized out>
#17 0x00000034216035b5 in tevent_common_loop_timer_delay (ev=0x1cae480) at tevent_timed.c:254
        current_time = {tv_sec = 0, tv_usec = 0}
        te = 0x1cee5b0
#18 0x000000342160541b in std_event_loop_once (ev=0x6459, location=<value optimized out>) at tevent_standard.c:537
        tval = {tv_sec = 0, tv_usec = 0}
#19 0x0000003421602780 in _tevent_loop_once (ev=0x1cae480, location=0x448238 "../../server/util/server.c:431") at tevent.c:490
        ret = <value optimized out>
        nesting_stack_ptr = 0x0
#20 0x00000034216027fb in tevent_common_loop_wait (ev=0x1cae480, location=0x448238 "../../server/util/server.c:431") at tevent.c:591
        ret = <value optimized out>
#21 0x00000000004399ac in server_loop (main_ctx=0x1cae5b0) at ../../server/util/server.c:431
No locals.
#22 0x000000000040df6d in main (argc=7, argv=0x7fffd09535d8) at ../../server/providers/data_provider_be.c:1187
        opt = -1
        pc = 0x1cad030
        be_domain = 0x1cad4f0 "sgallagh"
        srv_name = 0x1cad0f0 "sssd[be[sgallagh]]"
        conf_entry = 0x1cad160 "config/domain/sgallagh"
        main_ctx = 0x1cae5b0
        ret = 0
        long_options = {{longName = 0x0, shortName = 0 '\000', argInfo = 4, arg = 0x64dd40, val = 0, descrip = 0x43d807 "Help options:", argDescrip = 0x0}, {longName = 0x43d815 "debug-level", 
            shortName = 100 'd', argInfo = 2, arg = 0x64de20, val = 0, descrip = 0x43d821 "Debug level", argDescrip = 0x0}, {longName = 0x43d82d "debug-to-files", shortName = 102 'f', argInfo = 0, 
            arg = 0x64de28, val = 0, descrip = 0x43d840 "Send the debug output to files instead of stderr", argDescrip = 0x0}, {longName = 0x43d871 "debug-timestamps", shortName = 0 '\000', argInfo = 0,
            arg = 0x64de24, val = 0, descrip = 0x43d882 "Add debug timestamps", argDescrip = 0x0}, {longName = 0x43d897 "domain", shortName = 0 '\000', argInfo = 1, arg = 0x7fffd09534b0, val = 0, 
            descrip = 0x43d8a0 "Domain of the information provider (mandatory)", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000', argInfo = 0, arg = 0x0, val = 0, descrip = 0x0, argDescrip = 0x0}}
        __FUNCTION__ = "main"

Fixed by 0d251eb

fixedin: => 1.0.0
resolution: => fixed
status: new => closed

Fields changed

rhbz: => 0

Metadata Update from @sgallagh:
- Issue assigned to simo
- Issue set to the milestone: SSSD 1.0

7 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/1352

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.

Metadata