[Samba] smbd died when startet after slapd

Mario Wolff mailing at mailing.schubert-gruppe.de
Thu Nov 3 12:11:34 GMT 2005


Hello all,
yesterday i've rebootet our fileserver. Everything was fine. Samba up, 
slapd up, getent passwd/groups working. Test-Logon on one Workstation ok.
This morning our users  can't logon to the domain. Bad!
In many logs i got smb panics. Here's an example:

smbd: 
/home/devel/openldap/build-area/openldap2-2.1.30/libraries/liblber/io.c:50
8: ber_get_next: Assertion `ber->ber_buf == ((void *)0)' failed.
[2005/11/04 07:30:59, 0] lib/fault.c:fault_report(36)
  ===============================================================
[2005/11/04 07:30:59, 0] lib/fault.c:fault_report(37)
  INTERNAL ERROR: Signal 6 in pid 6579 (3.0.14a-Debian)
  Please read the appendix Bugs of the Samba HOWTO collection
[2005/11/04 07:30:59, 0] lib/fault.c:fault_report(39)
  ===============================================================
[2005/11/04 07:30:59, 0] lib/util.c:smb_panic2(1495)
  PANIC: internal error
[2005/11/04 07:30:59, 0] lib/util.c:smb_panic2(1503)
  BACKTRACE: 44 stack frames:
   #0 /usr/sbin/smbd(smb_panic2+0x111) [0x81eb301]
   #1 /usr/sbin/smbd(smb_panic+0x1a) [0x81eb1ea]
   #2 /usr/sbin/smbd [0x81d7368]
   #3 [0xffffe420]
   #4 /lib/tls/libc.so.6(abort+0x1d2) [0x401bdfa2]
   #5 /lib/tls/libc.so.6(__assert_fail+0x10f) [0x401b62df]
   #6 /usr/lib/liblber.so.2(ber_get_next+0xfd) [0x4005937d]
   #7 /usr/lib/libldap_r.so.2 [0x4002a096]
   #8 /usr/lib/libldap_r.so.2 [0x40029da5]
   #9 /lib/libnss_ldap.so.2 [0x4064df4a]
   #10 /lib/libnss_ldap.so.2 [0x4064db3a]
   #11 /lib/libnss_ldap.so.2(_nss_ldap_initgroups_dyn+0x10a) [0x4065095a]
   #12 /lib/tls/libc.so.6 [0x4023ab54]
   #13 /lib/tls/libc.so.6(initgroups+0x6b) [0x4023aa4b]
   #14 /usr/sbin/smbd [0x81cd7f4]
   #15 /usr/sbin/smbd [0x81cd9c4]
   #16 /usr/sbin/smbd(getgroups_user+0x46) [0x81cdb16]
   #17 /usr/sbin/smbd(pdb_default_enum_group_memberships+0x29) [0x81cdc59]
   #18 /usr/sbin/smbd [0x81c1765]
   #19 /usr/sbin/smbd [0x81b5864]
   #20 /usr/sbin/smbd(pdb_enum_group_memberships+0x4e) [0x81b70fe]
   #21 /usr/sbin/smbd [0x822b112]
   #22 /usr/sbin/smbd [0x822b26e]
   #23 /usr/sbin/smbd(make_server_info_sam+0x140) [0x822b560]
   #24 /usr/sbin/smbd [0x82262b4]
   #25 /usr/sbin/smbd [0x82265b1]
   #26 /usr/sbin/smbd [0x82239ff]
   #27 /usr/sbin/smbd(_net_sam_logon+0xb2c) [0x812496c]
   #28 /usr/sbin/smbd [0x81224a7]
   #29 /usr/sbin/smbd(api_rpcTNP+0x16c) [0x8161dfc]
   #30 /usr/sbin/smbd(api_pipe_request+0xba) [0x8161baa]
   #31 /usr/sbin/smbd [0x815c3f8]
   #32 /usr/sbin/smbd [0x815c76f]
   #33 /usr/sbin/smbd [0x815c964]
   #34 /usr/sbin/smbd [0x815cbc3]
   #35 /usr/sbin/smbd(write_to_pipe+0xfb) [0x815cb0b]
   #36 /usr/sbin/smbd(reply_pipe_write_and_X+0x120) [0x80a1200]
   #37 /usr/sbin/smbd [0x80d7a76]
   #38 /usr/sbin/smbd [0x80d7d00]
   #39 /usr/sbin/smbd(process_smb+0x8c) [0x80d7f0c]
   #40 /usr/sbin/smbd(smbd_process+0x168) [0x80d8c58]
   #41 /usr/sbin/smbd(main+0x505) [0x82655f5]
   #42 /lib/tls/libc.so.6(__libc_start_main+0xf4) [0x401a9974]
   #43 /usr/sbin/smbd [0x8079b01]

After checking and trying as much things as possible i've restartet the 
slapd and the problem was not longer there. Once again: slapd was up, 
getent passwd/group was fine, even without restart.
Should i start samba befor slapd to fix such problems in the future? Any 
other suggestions?

My environment:
-Debian 3.1 (Sarge)
-slapd 2.2.23
-Samba Version 3.0.14a-Debian as PDC
-homedrives on BDC
-212 Users

Thanks for help!
Regards,
Mario Wolff

PS: Had a Problem with libnss-ldap: see 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=323580 . Fixed it with 
removing "--enable-rfc2307bis" from configure options.


More information about the samba mailing list