Can you also build samba with debug symbols. You'll have to uncomment the 
--enable-developer section in the ports/net/samba/Makefile and rebuild and 
reinstall.


Ian McWilliam

________________________________________
From: owner-po...@openbsd.org [owner-po...@openbsd.org] on behalf of johnw 
[johnw.m...@gmail.com]
Sent: Wednesday, 1 June 2016 3:52 PM
To: ports@openbsd.org
Cc: Ian McWilliam; Jeremie Courreges-Anglas
Subject: Re: SAMBA crash of smbd(18370) signal 6

Hi, smbd crash again.
>> A gdb backtrace would help.
>>
>> doas gdb smbd /var/crash/smbd/something.core, type 'bt'
>>
>> BTW testparm is nice but it contains lots of extra data, it is a good
>> thing to have its output plus the original smb.conf.
Sorry to say that, I forget to mkdir -m 700 /var/crash/smbd, so no core
this time.

I attached /etc/samba/smb.conf.

>
> In your smb config file add
>
> panic action = /bin/sleep 9000
>
> Start smbd, do what ever you do to make it crash and attach to the smbd 
> process using gdb.
>
>

I found some crash message in /var/log/samba/log.smbd (attached) like this:

[2016/06/01 13:14:14.773811,  0] ../lib/util/fault.c:79(fault_report)
  INTERNAL ERROR: Signal 11 in pid 92776 (4.4.3)
  Please read the Trouble-Shooting section of the Samba HOWTO
[2016/06/01 13:14:14.773862,  0] ../lib/util/fault.c:81(fault_report)
  ===============================================================
[2016/06/01 13:14:14.773876,  0] ../source3/lib/util.c:791(smb_panic_s3)
  PANIC (pid 92776): internal error
[2016/06/01 13:14:14.774048,  0] ../source3/lib/util.c:902(log_stack_trace)
  BACKTRACE: 1 stack frames:
   #0 0x11bbe8ae751e <log_stack_trace+62> at
/usr/local/lib/libsmbconf.so.0.0
[2016/06/01 13:14:14.774116,  0] ../source3/lib/util.c:803(smb_panic_s3)
  smb_panic(): calling panic action [/bin/sleep 9000]

then I run gdb /usr/local/sbin/smbd 92776 as root

and then type bt

(gdb) bt
#0  0x000011bc8570973a in _thread_sys_wait4 () at <stdin>:2
#1  0x000011bc856f9e79 in *_libc_wait4_cancel (wpid=Variable "wpid" is
not available.
) at /usr/src/lib/libc/sys/w_wait4.c:27
#2  0x000011bc8571ad4d in *_libc_system (command=Variable "command" is
not available.
) at /usr/src/lib/libc/stdlib/system.c:69
#3  0x000011bbe8ae766d in smb_panic_s3 () from
/usr/local/lib/libsmbconf.so.0.0
#4  0x000011bc3b68362d in smb_panic () from
/usr/local/lib/libsamba-util.so.1.0
#5  0x000011bc3b68383f in sig_fault () from
/usr/local/lib/libsamba-util.so.1.0
#6  <signal handler called>
#7  0x000011b98ce0a52a in smbd_sig_chld_handler () from /usr/local/sbin/smbd
#8  0x000011bc86ee89eb in tevent_common_check_signal () from
/usr/local/lib/libtevent.so.0.2
#9  0x000011bbe8afcc51 in run_events_poll () from
/usr/local/lib/libsmbconf.so.0.0
#10 0x000011bbe8afd270 in s3_event_loop_once () from
/usr/local/lib/libsmbconf.so.0.0
#11 0x000011bc86ee4dd1 in _tevent_loop_once () from
/usr/local/lib/libtevent.so.0.2
#12 0x000011bc86ee4e4b in tevent_common_loop_wait () from
/usr/local/lib/libtevent.so.0.2
#13 0x000011b98ce0c0f0 in main () from /usr/local/sbin/smbd
Current language:  auto; currently asm



Thank all.

Reply via email to