Hi, please find attatched the back trace from my winbindd (samba 3.0.0) panic,
thanks Andy Smith. -----Original Message----- From: Andrew Bartlett [mailto:[EMAIL PROTECTED] Sent: 12 November 2003 00:12 To: ww m-pubsyssamba Cc: [EMAIL PROTECTED] Subject: RE: [Samba] RE: winbindd panic daemon dies On Wed, 2003-11-12 at 01:00, ww m-pubsyssamba wrote: > Hi, > > I haven't been able to work out how to capture the backtrace, > I've installed winbind with debug compiled and also gdbm. I hope you mean gdb - the GNU Debugger, not the database :-) > I get the output shown below, what do I need to do next? If you look in the manpage for smb.conf, you can setup a 'panic action'. This can do anything from popping up gdb in an xterm to mailing you a backtrace. The example in the smb.conf is panic action = "/bin/sleep 90000" This makes winbind just hang in there, so you can attach the debugger Then you can attach gdb in the normal way: gdb /path/to/samba/winbind 2348 where 2348 is the pid of the near-dead winbindd. Run 'bt full' and give us the result. Andrew Bartlett -- Andrew Bartlett [EMAIL PROTECTED] Manager, Authentication Subsystems, Samba Team [EMAIL PROTECTED] Student Network Administrator, Hawker College [EMAIL PROTECTED] http://samba.org http://build.samba.org http://hawkerc.net BBCi at http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this.
(gdb) bt full #0 0xfef9ebbc in _waitid () from /usr/lib/libc.so.1 No symbol table info available. #1 0xfef57e14 in _waitpid () from /usr/lib/libc.so.1 No symbol table info available. #2 0xfef937c8 in system () from /usr/lib/libc.so.1 No symbol table info available. #3 0xce46c in smb_panic (why=0x262598 "internal error") at lib/util.c:1391 cmd = 0x358908 "/bin/sleep 90000" result = 16 #4 0xaa840 in fault_report (sig=10) at lib/fault.c:41 counter = 1 #5 0xaa8c4 in sig_fault (sig=10) at lib/fault.c:61 No locals. #6 <signal handler called> No symbol table info available. #7 0xfef42f34 in _malloc_unlocked () from /usr/lib/libc.so.1 No symbol table info available. #8 0xfef42d9c in malloc () from /usr/lib/libc.so.1 No symbol table info available. #9 0xbb9fc in vasprintf (ptr=0xffbfd884, format=0x2641b8 "%s%s%s:%d", ap=0xffbfd864) at lib/snprintf.c:854 ret = 102 ap2 = 0xffbfd864 ---Type <return> to continue, or q <return> to quit--- #10 0xbbaa8 in asprintf (ptr=0xffbfd884, format=0x2641b8 "%s%s%s:%d") at lib/snprintf.c:874 ap = 0xffbfd864 ret = 182 #11 0xc290c in ipstr_list_add (ipstr_list=0xffbfd994, service=0x321de0) at lib/util_str.c:1671 new_ipstr = 0x0 #12 0xc2a20 in ipstr_list_make (ipstr_list=0xffbfd994, ip_list=0x321db8, ip_count=88) at lib/util_str.c:1703 i = 5 #13 0x13f118 in namecache_store (name=0xffbfe320 "national.core.bbc.co.uk", name_type=28, num_names=88, ip_list=0x321db8) at libsmb/namecache.c:148 expiry = 1069410722 key = 0x358020 "NBT/NATIONAL.CORE.BBC.CO.UK#1C" value_string = 0x337100 "172.20.160.253:389,172.20.68.215:389,10.152.7.10:389,132.185.48.87:389,10.162.8.2:389" i = 175376400 ret = 3383735 #14 0x149930 in internal_resolve_name ( name=0xffbfe320 "national.core.bbc.co.uk", name_type=28, return_iplist=0xffbfe720, return_count=0xffbfe728, resolve_order=0x27aff8 "hosts") at libsmb/namequery.c:1093 name_resolve_list = "hosts\000o\002uk\000À\f\000!\000\001\000\000\002X\0---Type <return> to continue, or q <return> to quit--- 00.\000\000\000 \000\000\000\000\203\000\000\000\000\000\000\000\nÿÿÿÿ\000\000\000\000ÿ¿Ûôÿ!î\024ÿ {Ð\000\000\000\000\0003Z\bÿ¿Ü`ÿ¿ÜX~þþÿ\201\001\001\000\000\000ÿ\000\000\000\002Cÿ¿Ý\224ÿ¿Þ\024ÿ¿Þ\224ÿ¿Ûø\000\000\000\001\000\000\000\022þûÀ\000\000\000\002Cþûò¨\000\000\000\000ÿ¿Þ\020ÿ¿Ý\220\000\000\000\000ÿ¿Ü\230\000\000\000\003\000\000 [EMAIL PROTECTED]@\000\000\0002\000\000\000\006"... tok = "hosts", '\000' <repeats 11 times>, "þü\025 þü\025¤þü\025\220þü\025\224ÿÿëÿ\000\000\000\017þûüTÿ¿ç\030", '\000' <repeats 19 times>, "\003\000\000\000u", '\000' <repeats 11 times>, "\003\000\000\000\000ÿ¿á²þûüS\000\000\000\nþü\025Ð\177ÿÿÿþü\025\234", '\000' <repeats 16 times>, "þü\025 \000\000\000\000\0005\214\eþü\025\224ÿÿëÿþûü?þûüT\001\000\000\002", '\000' <repeats 19 times>, "\003\000\000\000d", '\000' <repeats 11 times>, "\003\000\000\000\000\000\000\000\003o\002uk\000\000\000\003!\000\001\000\000\002X\000.\000\000\000d\000X"... ptr = 0xffbfdb45 "" allones = 0 allzeros = 0 is_address = 0 result = 1 i = -17033780 #15 0x14abd0 in get_dc_list (domain=0xffbfe320 "national.core.bbc.co.uk", ip_list=0xffbfe720, count=0xffbfe728, dns_only=1, ordered=0xffbfe17c) at libsmb/namequery.c:1365 ---Type <return> to continue, or q <return> to quit--- resolve_oder = 0x27aff8 "hosts" #16 0x14a168 in get_sorted_dc_list ( domain=0xffbfe320 "national.core.bbc.co.uk", ip_list=0xffbfe720, count=0xffbfe728, dns_only=1) at libsmb/namequery.c:1217 ordered = 0 #17 0x1ce690 in ads_find_dc (ads=0x335378) at libads/ldap.c:149 c_realm = 0x358c08 "national.core.bbc.co.uk" count = 88 i = 0 ip_list = (struct ip_service *) 0x321db8 realm = "national.core.bbc.co.uk\000\000\000\000\002\000\000\000\001", '\000' <repeats 43 times>, "\002\000\000\000\001\000\000\000\000\000\000\000\200", '\000' <repeats 11 times>, "\002\000\000\000\001\000\000\000\000\000\000\0008J,i¸\000\000\000(\000\000\000\030\004¢Æ\233", '\000' <repeats 19 times>, "\002\000\000\000\001\000\000\000\000\000\000\000\001", '\000' <repeats 35 times>, "\004\000\000\005\216\000\000\000\000\000\000\000\027", '\000' <repeats 11 times>, "\e\000\000\000\"\000\000\000\000\000\000\0002034\000\000\000\000\030ÿÿÿÿ\0003R\220\0003S\020þûòÈÿ¿äp\000\000\000\001\000\000\001\000þ"... got_realm = 1 use_own_domain = 0 #18 0x1ce93c in ads_connect (ads=0x335378) at libads/ldap.c:211 version = 3 status = {error_type = 3363704, err = {rc = 3339584, nt_status = { ---Type <return> to continue, or q <return> to quit--- v = 3339584}}, minor_status = 3363704} #19 0x1e0ed0 in ads_dc_name (domain=0x332120 "national.core.bbc.co.uk", dc_ip=0xffbfe9dc, srv_name=0xffbff090 "") at libsmb/namequery_dc.c:53 ads = (ADS_STRUCT *) 0x335378 realm = 0x332120 "national.core.bbc.co.uk" #20 0x1e15a8 in get_dc_name (domain=0x332120 "national.core.bbc.co.uk", srv_name=0xffbff090 "", ip_out=0xffbfeee4) at libsmb/namequery_dc.c:178 dc_ip = {S_un = {S_un_b = {s_b1 = 0 '\000', s_b2 = 0 '\000', s_b3 = 0 '\000', s_b4 = 0 '\000'}, S_un_w = {s_w1 = 0, s_w2 = 0}, S_addr = 0}} ret = 0 our_domain = 0 #21 0x55338 in cm_open_connection (domain=0x332120 "national.core.bbc.co.uk", pipe_index=1, new_conn=0xffbfef88) at nsswitch/winbindd_cm.c:133 result = {v = 0} machine_password = 0xffbfefb0 "" machine_krb5_principal = 0x23 <Address 0x23 out of bounds> ipc_username = 0x4 <Address 0x4 out of bounds> ipc_domain = 0xff28a28c "" ipc_password = 0x7efefeff <Address 0x7efefeff out of bounds> dc_ip = {S_un = {S_un_b = {s_b1 = 0 '\000', s_b2 = 0 '\000', s_b3 = 0 '\000', s_b4 = 0 '\000'}, S_un_w = {s_w1 = 0, s_w2 = 0}, S_addr = 0}} ---Type <return> to continue, or q <return> to quit--- i = -17029404 retry = 1 #22 0x56904 in cm_check_for_native_mode_win2k ( domain=0x332120 "national.core.bbc.co.uk") at nsswitch/winbindd_cm.c:422 result = {v = 0} conn = {prev = 0x0, next = 0x0, domain = "national.core.bbc.co.uk", '\000' <repeats 232 times>, controller = '\000' <repeats 255 times>, pipe_name = "\\PIPE\\lsarpc", '\000' <repeats 243 times>, mutex_ref_count = 0, cli = 0x0, pol = {data1 = 0, data2 = 0, data3 = 0, data4 = 0, data5 = "\000\000\000\000\000\000\000"}} ctr = {basic = 0x0} ret = 0 #23 0x48620 in add_trusted_domain (domain_name=0x321760 "NATIONAL", alt_name=0x343c50 "national.core.bbc.co.uk", methods=0x2b089c, sid=0x3211b4) at nsswitch/winbindd_util.c:139 domain = (struct winbindd_domain *) 0x332020 contact_name = 0x332120 "national.core.bbc.co.uk" alternative_name = 0x343c50 "national.core.bbc.co.uk" #24 0x48cbc in add_trusted_domains (domain=0x31ba38) at nsswitch/winbindd_util.c:226 mem_ctx = (TALLOC_CTX *) 0x343030 result = {v = 0} ---Type <return> to continue, or q <return> to quit--- t = 1069410021 names = (char **) 0x320fa8 alt_names = (char **) 0x346078 num_domains = 10 dom_sids = (DOM_SID *) 0x320fd8 null_sid = {sid_rev_num = 0 '\000', num_auths = 0 '\000', id_auth = "\000\000\000\000\000", sub_auths = {0 <repeats 15 times>}} i = 7 new_domain = (struct winbindd_domain *) 0x344618 #25 0x49070 in init_domain_list () at nsswitch/winbindd_util.c:289 domain = (struct winbindd_domain *) 0x31ba38 #26 0x4817c in domain_list () at nsswitch/winbindd_util.c:56 No locals. #27 0x49098 in find_domain_from_name (domain_name=0x307e90 "WORLDWIDE") at nsswitch/winbindd_util.c:303 domain = (struct winbindd_domain *) 0x0 #28 0x488fc in rescan_trusted_domains () at nsswitch/winbindd_util.c:171 last_scan = 0 now = 1069410011 mydomain = (struct winbindd_domain *) 0x0 #29 0x3fbd8 in process_loop () at nsswitch/winbindd.c:575 state = (struct winbindd_cli_state *) 0x0 r_fds = {fds_bits = {258, 384, 1006944, 1023, 3245136, 3245136, ---Type <return> to continue, or q <return> to quit--- 0 <repeats 12 times>, 3245136, 257356, 0, -8, -32, 2905857, -4196424, 265712, 902064, 2880808, 0, 0, 258, 384}} w_fds = {fds_bits = {0, 0, 0, 0, 0, 0, 0, 3245136, 27, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2880808, 0, 0, 258, 384, 0, -4196536, 1859540, -4196536, 2880808, 131, 0}} maxfd = 0 listen_sock = 0 listen_priv_sock = 0 selret = 0 timeout = {tv_sec = 1969648384, tv_usec = 0} #30 0x40e00 in main (argc=2, argv=0xffbffd7c) at nsswitch/winbindd.c:929 logfile = "/usr/local/samba/var/log.winbindd\000ö\020ÿ0hÄ", '\000' <repeats 16 times>, "ÿ¿ùhÿ0gè", '\000' <repeats 16 times>, "ÿ\003y\024", '\000' <repeats 24 times>, "ÿ\026ª8ÿ<\2314\000\000\000\001\000\002ç¸\000\002í\220ÿ=\004\200\000\000\000\000ÿ¿ùÈÿ\b+¼\000\000\000\000\000\000\000\000ÿ¿ùÈÿ0pp", '\000' <repeats 19 times>, "\002\000\200\000\000\177ÿÿÿ\000\000\000\000ÿ?\200Èÿ?\206Ìÿ?\2018ÿ?\206Ìÿÿÿÿ", '\000' <repeats 20 times>, "ÿ?\201ä\000\002í\220ÿ<É\200ÿ"... interactive = 1 Fork = 0 log_stdout = 1 long_options = {{longName = 0x0, shortName = 0 '\000', argInfo = 4, arg = 0x2b67ec, val = 0, descrip = 0x2510d0 "Help options", argDescrip = 0x0}, {longName = 0x2510e0 "stdout", shortName = 83 'S', ---Type <return> to continue, or q <return> to quit--- argInfo = 7, arg = 0x2b0890, val = 1, descrip = 0x2510e8 "Log to stdout", argDescrip = 0x0}, {longName = 0x2510f8 "foreground", shortName = 70 'F', argInfo = 7, arg = 0x2b088c, val = 0, descrip = 0x251108 "Daemon in foreground mode", argDescrip = 0x0}, { longName = 0x251128 "interactive", shortName = 105 'i', argInfo = 0, arg = 0x0, val = 105, descrip = 0x251138 "Interactive mode", argDescrip = 0x0}, {longName = 0x251150 "single-daemon", shortName = 89 'Y', argInfo = 7, arg = 0x2b068c, val = 0, descrip = 0x251160 "Single daemon mode", argDescrip = 0x0}, { longName = 0x251178 "no-caching", shortName = 110 'n', argInfo = 7, arg = 0x2b0688, val = 0, descrip = 0x251188 "Disable caching", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000', argInfo = 4, arg = 0x2b65cc, val = 0, descrip = 0x251198 "Common samba options:", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000', argInfo = 0, arg = 0x0, val = 0, descrip = 0x0, argDescrip = 0x0}} pc = 0x318450 opt = -1
-- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba