GNU gdb 6.6 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-suse-linux"... Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run -i -M single Starting program: /usr/local/samba/sbin/samba -i -M single [Thread debugging using libthread_db enabled] [New Thread -1211712736 (LWP 4802)] samba version 4.0.0alpha9-GIT-e595ba2 started. Copyright Andrew Tridgell and the Samba Team 1992-2009 samba: using 'single' process model Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1211712736 (LWP 4802)] 0x0847622b in ldb_msg_find_element (msg=0x952b3c0, attr_name=0x8a50612 "objectClass") at lib/ldb/common/ldb_msg.c:52 52 if (ldb_attr_cmp(msg->elements[i].name, attr_name) == 0) { (gdb) bt full #0 0x0847622b in ldb_msg_find_element (msg=0x952b3c0, attr_name=0x8a50612 "objectClass") at lib/ldb/common/ldb_msg.c:52 i = 0 #1 0x084893a5 in map_objectclass_generate_local (module=0x94d92d8, mem_ctx=0x9332770, local_attr=0x8e45560 "objectClass", remote=0x952b3c0) at lib/ldb/ldb_map/ldb_map.c:797 data = (const struct ldb_map_context *) 0x8ddf3c0 ldb = (struct ldb_context *) 0x951f890 el = (struct ldb_message_element *) 0x89962da oc = (struct ldb_message_element *) 0x8f38938 val = {data = 0x8488181 "\205�u \213E\b\213\b\213E�\215\024\205", length = 145032722} i = 111 #2 0x08485732 in ldb_msg_el_merge (module=0x94d92d8, local=0x9332770, remote=0x952b3c0, attr_name=0x8e45560 "objectClass") at lib/ldb/ldb_map/ldb_map_outbound.c:331 data = (const struct ldb_map_context *) 0x8ddf3c0 map = (const struct ldb_map_attribute *) 0x8f38938 old = (struct ldb_message_element *) 0x6f el = (struct ldb_message_element *) 0x0 remote_name = 0x0 ldb = (struct ldb_context *) 0x951f890 #3 0x08485a42 in ldb_msg_merge_remote (ac=0x8e45248, local=0x9332770, ---Type to continue, or q to quit--- remote=0x952b3c0) at lib/ldb/ldb_map/ldb_map_outbound.c:434 i = 0 ret = 144270042 attrs = (const char * const *) 0x8f77080 #4 0x08485b19 in map_reply_remote (ac=0x8e45248, ares=0x956a668) at lib/ldb/ldb_map/ldb_map_outbound.c:468 msg = (struct ldb_message *) 0x9332770 dn = (struct ldb_dn *) 0x956a4e8 ret = 156414912 #5 0x0848756c in map_remote_search_callback (req=0x956bdd8, ares=0x956a668) at lib/ldb/ldb_map/ldb_map_outbound.c:1223 ac = (struct map_context *) 0x8e45248 ret = 156414864 #6 0x08479b96 in ldb_module_send_entry (req=0x956bdd8, msg=0x952b3c0, ctrls=0x0) at lib/ldb/common/ldb_modules.c:675 ares = (struct ldb_reply *) 0x956a668 #7 0x084d9f5b in ps_callback (req=0x956bf40, ares=0x956a520) at lib/ldb/modules/paged_searches.c:173 ac = (struct ps_context *) 0x8fd0e20 ret = 156414864 #8 0x08479b96 in ldb_module_send_entry (req=0x956bf40, msg=0x952b3c0, ctrls=0x0) at lib/ldb/common/ldb_modules.c:675 ares = (struct ldb_reply *) 0x956a520 ---Type to continue, or q to quit--- #9 0x08497bcc in ildb_callback (req=0x917d608) at lib/ldb/ldb_ildap/ldb_ildap.c:326 ldb = (struct ldb_context *) 0x951f890 ac = (struct ildb_context *) 0x956bff8 status = {v = 154696968} search = (struct ldap_SearchResEntry *) 0x917d960 msg = (struct ldap_message *) 0x917d958 controls = (struct ldb_control **) 0x0 ldbmsg = (struct ldb_message *) 0x952b3c0 referral = 0x899862a "\211E�\213E�\203�\024[]�U\211�S\203�\024�{Gt�\201�R�\033" callback_failed = false request_done = false ret = 155900120 i = 0 #10 0x08499288 in ldap_match_message (conn=0x8f61940, msg=0x8f9d1c8) at libcli/ldap/ldap_client.c:177 req = (struct ldap_request *) 0x917d608 i = 1 __FUNCTION__ = "ldap_match_message" #11 0x084993c0 in ldap_recv_handler (private_data=0x8f61940, blob= {data = 0x8f9d018 "01\002\001\016e\a\n\001", length = 51}) at libcli/ldap/ldap_client.c:209 ---Type to continue, or q to quit--- status = {v = 0} conn = (struct ldap_connection *) 0x8f61940 msg = (struct ldap_message *) 0x8f9d1c8 asn1 = (struct asn1_data *) 0x8e561a8 #12 0x086d1dd0 in packet_recv (pc=0x953fb48) at lib/stream/packet.c:414 npending = 71 status = {v = 0} nread = 51 blob = {data = 0x8f9d018 "01\002\001\016e\a\n\001", length = 51} recv_retry = false __FUNCTION__ = "packet_recv" #13 0x0849942e in ldap_read_io_handler (private_data=0x8f61940, flags=1) at libcli/ldap/ldap_client.c:221 conn = (struct ldap_connection *) 0x8f61940 #14 0x084994b0 in ldap_io_handler (ev=0x8b77058, fde=0x9480ae0, flags=1, private_data=0x8f61940) at libcli/ldap/ldap_client.c:237 conn = (struct ldap_connection *) 0x8f61940 #15 0x0899b6f4 in epoll_event_loop () No symbol table info available. #16 0x0899bd55 in std_event_loop_once () No symbol table info available. #17 0x089994eb in _tevent_loop_once () No symbol table info available. ---Type to continue, or q to quit--- #18 0x08470c26 in ldb_wait (handle=0x94aeae0, type=LDB_WAIT_ALL) at lib/ldb/common/ldb.c:506 ev = (struct tevent_context *) 0x8b77058 ret = 0 #19 0x0847209a in ldb_search (ldb=0x951f890, mem_ctx=0x951f890, result=0xbfdde708, base=0x8f73928, scope=LDB_SCOPE_SUBTREE, attrs=0xbfdde754, exp_fmt=0x8a72b0b "%s") at lib/ldb/common/ldb.c:1140 req = (struct ldb_request *) 0x917dac8 res = (struct ldb_result *) 0x8bc79f8 expression = 0x940a2e8 "(objectclass=group)" ap = 0xbfdde6ec "�E�\bNTͷ\v+�\b" ret = 0 #20 0x085431f2 in gendb_search_v (ldb=0x951f890, mem_ctx=0x951f890, basedn=0x8f73928, msgs=0xbfdde758, attrs=0xbfdde754, format=0x8a52f4a "(objectclass=group)", ap=0xbfdde780 "P�\005\t\224y�\b��ݿwn\231\b\200�\005") at ../lib/util/util_ldb.c:53 scope = LDB_SCOPE_SUBTREE res = (struct ldb_result *) 0x0 expr = 0x8f845b8 "(objectclass=group)" ret = -1210478216 __FUNCTION__ = "gendb_search_v" #21 0x08513176 in samdb_search_count (sam_ldb=0x951f890, mem_ctx=0x951f890, ---Type to continue, or q to quit--- basedn=0x8f73928, format=0x8a52f4a "(objectclass=group)") at dsdb/common/util.c:198 ap = 0xbfdde780 "P�\005\t\224y�\b��ݿwn\231\b\200�\005" res = (struct ldb_message **) 0x8f85a00 attrs = {0x0} ret = 88 #22 0x08496759 in construct_primary_group_token (module=0x94b9f50, msg=0x8bc32d8) at dsdb/samdb/ldb_modules/operational.c:105 ldb = (struct ldb_context *) 0x951f890 primary_group_token = 157199104 #23 0x08496877 in operational_search_post_process (module=0x94b9f50, msg=0x8bc32d8, attrs=0x8f840a0) at dsdb/samdb/ldb_modules/operational.c:169 ldb = (struct ldb_context *) 0x951f890 i = 4 a = 0 #24 0x08496aa2 in operational_callback (req=0x902a9b0, ares=0x8f85a38) at dsdb/samdb/ldb_modules/operational.c:231 ac = (struct operational_context *) 0x905cc80 ret = 146551464 #25 0x08479b96 in ldb_module_send_entry (req=0x902a9b0, msg=0x8bc32d8, ctrls=0x0) at lib/ldb/common/ldb_modules.c:675 ares = (struct ldb_reply *) 0x8f85a38 #26 0x084ebfb7 in extended_callback (req=0x905dc98, ares=0x9196bf8) ---Type to continue, or q to quit--- at dsdb/samdb/ldb_modules/extended_dn_out.c:395 ac = (struct extended_search_context *) 0x8bc3118 control = (struct ldb_control *) 0x0 dereference_control = (struct dsdb_openldap_dereference_result_control *) 0x0 ret = 0 i = 1 j = 146110868 msg = (struct ldb_message *) 0x8bc32d8 p = (struct extended_dn_out_private *) 0x8bff368 #27 0x08479b96 in ldb_module_send_entry (req=0x905dc98, msg=0x8bc32d8, ctrls=0x0) at lib/ldb/common/ldb_modules.c:675 ares = (struct ldb_reply *) 0x9196bf8 #28 0x0848f296 in kludge_acl_callback (req=0x8e45440, ares=0x92de2d0) at dsdb/samdb/ldb_modules/kludge_acl.c:294 ldb = (struct ldb_context *) 0x951f890 ac = (struct kludge_acl_context *) 0x8f75fb8 data = (struct kludge_private_data *) 0x952e240 i = 18 ret = 146551464 #29 0x08479b96 in ldb_module_send_entry (req=0x8e45440, msg=0x8bc32d8, ctrls=0x0) at lib/ldb/common/ldb_modules.c:675 ares = (struct ldb_reply *) 0x92de2d0 ---Type to continue, or q to quit--- #30 0x084e391d in partition_req_callback (req=0x917d240, ares=0x8f76ef8) at dsdb/samdb/ldb_modules/partition.c:216 ac = (struct partition_context *) 0x9453f40 module = (struct ldb_module *) 0x0 nreq = (struct ldb_request *) 0x8bc32d8 ret = 154337976 #31 0x08479b96 in ldb_module_send_entry (req=0x917d240, msg=0x8bc32d8, ctrls=0x0) at lib/ldb/common/ldb_modules.c:675 ares = (struct ldb_reply *) 0x8f76ef8 #32 0x0848715a in map_return_entry (ac=0x8e45248, ares=0x8ba7630) at lib/ldb/ldb_map/ldb_map_outbound.c:1088 el = (struct ldb_message_element *) 0x917d2a8 attrs = (const char * const *) 0x92de468 ldb = (struct ldb_context *) 0x951f890 i = 1 #33 0x084875de in map_remote_search_callback (req=0x956bdd8, ares=0x8ba7630) at lib/ldb/ldb_map/ldb_map_outbound.c:1234 ac = (struct map_context *) 0x8e45248 ret = 0 #34 0x08479b96 in ldb_module_send_entry (req=0x956bdd8, msg=0x917cfc0, ctrls=0x0) at lib/ldb/common/ldb_modules.c:675 ares = (struct ldb_reply *) 0x8ba7630 #35 0x084d9f5b in ps_callback (req=0x956bf40, ares=0x8e8c728) ---Type to continue, or q to quit--- at lib/ldb/modules/paged_searches.c:173 ac = (struct ps_context *) 0x8fd0e20 ret = 152555408 #36 0x08479b96 in ldb_module_send_entry (req=0x956bf40, msg=0x917cfc0, ctrls=0x0) at lib/ldb/common/ldb_modules.c:675 ares = (struct ldb_reply *) 0x8e8c728 #37 0x08497bcc in ildb_callback (req=0x917d608) at lib/ldb/ldb_ildap/ldb_ildap.c:326 ldb = (struct ldb_context *) 0x951f890 ac = (struct ildb_context *) 0x956bff8 status = {v = 155900072} search = (struct ldap_SearchResEntry *) 0x917d960 msg = (struct ldap_message *) 0x917d958 controls = (struct ldb_control **) 0x0 ldbmsg = (struct ldb_message *) 0x917cfc0 referral = 0x899862a "\211E�\213E�\203�\024[]�U\211�S\203�\024�{Gt�\201�R�\033" callback_failed = false request_done = false ret = 0 i = 0 #38 0x08499288 in ldap_match_message (conn=0x8f61940, msg=0x917d958) at libcli/ldap/ldap_client.c:177 ---Type to continue, or q to quit--- req = (struct ldap_request *) 0x917d608 i = 0 __FUNCTION__ = "ldap_match_message" #39 0x084993c0 in ldap_recv_handler (private_data=0x8f61940, blob= {data = 0x917d7b8 "0\201\200\002\001\016d{\004.cn=Administrators,cn=Builtin,dc=mesainc,dc=com0I0\037\004\tobjectSid1\022\004\020\001\002", length = 131}) at libcli/ldap/ldap_client.c:209 status = {v = 0} conn = (struct ldap_connection *) 0x8f61940 msg = (struct ldap_message *) 0x917d958 asn1 = (struct asn1_data *) 0x917d9c0 #40 0x086d1dd0 in packet_recv (pc=0x953fb48) at lib/stream/packet.c:414 npending = 151 status = {v = 0} nread = 131 blob = { data = 0x917d7b8 "0\201\200\002\001\016d{\004.cn=Administrators,cn=Builtin,dc=mesainc,dc=com0I0\037\004\tobjectSid1\022\004\020\001\002", length = 131} recv_retry = false __FUNCTION__ = "packet_recv" #41 0x0849942e in ldap_read_io_handler (private_data=0x8f61940, flags=1) at libcli/ldap/ldap_client.c:221 conn = (struct ldap_connection *) 0x8f61940 ---Type to continue, or q to quit--- #42 0x084994b0 in ldap_io_handler (ev=0x8b77058, fde=0x9480ae0, flags=1, private_data=0x8f61940) at libcli/ldap/ldap_client.c:237 conn = (struct ldap_connection *) 0x8f61940 #43 0x0899b6f4 in epoll_event_loop () No symbol table info available. #44 0x0899bd55 in std_event_loop_once () No symbol table info available. #45 0x089994eb in _tevent_loop_once () No symbol table info available. #46 0x08470c26 in ldb_wait (handle=0x8d9efe0, type=LDB_WAIT_ALL) at lib/ldb/common/ldb.c:506 ev = (struct tevent_context *) 0x8b77058 ret = 0 #47 0x083e6e54 in ldapsrv_SearchRequest (call=0x8e45638) at ldap_server/ldap_backend.c:399 req = (struct ldap_SearchRequest *) 0x9332068 ent = (struct ldap_SearchResEntry *) 0xb7cd544e done = (struct ldap_Result *) 0x50 ent_r = (struct ldapsrv_reply *) 0xa done_r = (struct ldapsrv_reply *) 0xb7cd4ee4 local_ctx = (TALLOC_CTX *) 0x8def178 samdb = (struct ldb_context *) 0x951f890 basedn = (struct ldb_dn *) 0x905bd88 ---Type to continue, or q to quit--- res = (struct ldb_result *) 0x94f21a8 lreq = (struct ldb_request *) 0x925b198 search_control = (struct ldb_control *) 0xb7d99140 search_options = (struct ldb_search_options_control *) 0x8e454c0 extended_dn_control = (struct ldb_control *) 0x0 extended_dn_decoded = (struct ldb_extended_dn_control *) 0x0 scope = LDB_SCOPE_BASE attrs = (const char **) 0x8f840a0 scope_str = 0x8a363cc "BASE" errstr = 0x0 success_limit = 0 result = -1 ldb_ret = 0 i = 1 j = 144268468 extended_type = 1 __FUNCTION__ = "ldapsrv_SearchRequest" #48 0x083e9189 in ldapsrv_do_call (call=0x8e45638) at ldap_server/ldap_backend.c:911 i = 0 msg = (struct ldap_message *) 0x9332060 __FUNCTION__ = "ldapsrv_do_call" #49 0x083e45e9 in ldapsrv_process_message (conn=0x92d6c70, msg=0x9332060) ---Type to continue, or q to quit--- at ldap_server/ldap_server.c:91 call = (struct ldapsrv_call *) 0x8e45638 status = {v = 146110868} blob = {data = 0x8d9ef60 "�6�\b", length = 153971824} __FUNCTION__ = "ldapsrv_process_message" #50 0x083e497a in ldapsrv_decode (private_data=0x92d6c70, blob= {data = 0x0, length = 0}) at ldap_server/ldap_server.c:166 status = {v = 0} conn = (struct ldapsrv_connection *) 0x92d6c70 asn1 = (struct asn1_data *) 0x8d9ef90 msg = (struct ldap_message *) 0x9332060 #51 0x086d1dd0 in packet_recv (pc=0x94bcd78) at lib/stream/packet.c:414 npending = 137 status = {v = 0} nread = 117 blob = {data = 0x917d240 "", length = 117} recv_retry = false __FUNCTION__ = "packet_recv" #52 0x083e4a73 in ldapsrv_recv (c=0x952a498, flags=1) at ldap_server/ldap_server.c:201 conn = (struct ldapsrv_connection *) 0x92d6c70 #53 0x080e400c in stream_io_handler (conn=0x952a498, flags=) at smbd/service_stream.c:94 ---Type to continue, or q to quit--- No locals. #54 0x0899b6f4 in epoll_event_loop () No symbol table info available. #55 0x0899bd55 in std_event_loop_once () No symbol table info available. #56 0x089994eb in _tevent_loop_once () No symbol table info available. #57 0x0899970c in tevent_common_loop_wait () No symbol table info available. #58 0x089997ca in _tevent_loop_wait () No symbol table info available. #59 0x080dcbd5 in main (argc=4, argv=0x4) at smbd/server.c:375 No locals. (gdb) (gdb)