RHEL6 init.d script (was Re: Initscript Debian Wheezy)
Andreas Schneider
asn at samba.org
Fri Sep 7 04:04:23 MDT 2012
On Thursday 06 September 2012 12:06:15 Jeremy Allison wrote:
> On Thu, Sep 06, 2012 at 11:55:23AM -0700, David Rivera wrote:
> > Hi,
> >
> > I'm having the exact same problem. I've been getting the following panic
> > running samba 4 with s3fs. The system is Ubuntu Linux 11.10 x86-64 running
> > samba version 4.0.0beta9-GIT-a3b67e5. Backtrace using panic action =
> > /path/to/ gdb_backtrace %d in smb.conf returned nothing in the logs and I
> > wasn't able to run samba under gdb as I needed the file server to be
> > functional asap. I did, however, run gdb_backtrace manually with the pid
> > of one of the smbd process which did panic. gdb_backtrace output is here
> > http://pastebin.com/Kjymcckg .
> >
> > This was in log.smbd:
> >
> > [2012/09/04 14:41:07.217180, 0] ../source3/lib/popt_common.c:67
> > (popt_s3_talloc_log_fn)
> >
> > Bad talloc magic value - access after free
> >
> > [2012/09/04 14:41:07.217279, 0] ../source3/lib/util.c:810(smb_panic_s3)
> >
> > PANIC (pid 17355): Bad talloc magic value - access after free
> >
> > [2012/09/04 14:41:07.218110, 0]
> > ../source3/lib/util.c:921(log_stack_trace)
> >
> > BACKTRACE: 37 stack frames:
> > #0 /usr/local/samba/lib/libsmbconf.so.0(log_stack_trace+0x1f)
> >
> > [0x7f31e5adca71]
> >
> > #1 /usr/local/samba/lib/libsmbconf.so.0(smb_panic_s3+0x6e)
> > [0x7f31e5adc8bf]
> > #2 /usr/local/samba/lib/libsamba-util.so.0(smb_panic+0x28)
> > [0x7f31e791d0ca]
> > #3 /usr/local/samba/lib/private/libtalloc.so.2(+0x1f7f)
> > [0x7f31e6d7df7f]
> > #4 /usr/local/samba/lib/private/libtalloc.so.2(+0x1ffb)
> > [0x7f31e6d7dffb]
> > #5 /usr/local/samba/lib/private/libtalloc.so.2(+0x2078)
> > [0x7f31e6d7e078]
> > #6 /usr/local/samba/lib/private/libtalloc.so.2(_talloc_free+0x36)
> >
> > [0x7f31e6d7ff2d]
> >
> > #7 /usr/local/samba/lib/private/libsmbd_base.so(+0x16a7f2)
> > [0x7f31e70ef7f2]
> > #8 /usr/local/samba/lib/private/libtalloc.so.2(+0x2ba9)
> > [0x7f31e6d7eba9]
> > #9 /usr/local/samba/lib/private/libtalloc.so.2(+0x3c00)
> > [0x7f31e6d7fc00]
> > #10 /usr/local/samba/lib/private/libtalloc.so.2(+0x2d4c)
> > [0x7f31e6d7ed4c]
> > #11 /usr/local/samba/lib/private/libtalloc.so.2(+0x3c00)
> > [0x7f31e6d7fc00]
> > #12 /usr/local/samba/lib/private/libtalloc.so.2(+0x2d4c)
> > [0x7f31e6d7ed4c]
> > #13 /usr/local/samba/lib/private/libtalloc.so.2(+0x3c00)
> > [0x7f31e6d7fc00]
> > #14 /usr/local/samba/lib/private/libtalloc.so.2(+0x2d4c)
> > [0x7f31e6d7ed4c]
> > #15 /usr/local/samba/lib/private/libtalloc.so.2(+0x3c00)
> > [0x7f31e6d7fc00]
> > #16 /usr/local/samba/lib/private/libtalloc.so.2(+0x2d4c)
> > [0x7f31e6d7ed4c]
> > #17 /usr/local/samba/lib/private/libtalloc.so.2(_talloc_free+0x102)
> >
> > [0x7f31e6d7fff9]
> >
> > #18 /usr/local/samba/lib/private/libsmbd_base.so(+0x18b019)
> > [0x7f31e7110019] #19
> > /usr/local/samba/lib/private/libsmbd_base.so(+0x18b24c)
> > [0x7f31e711024c] #20 /usr/local/samba/sbin/smbd() [0x40823b]
> > #21 /usr/local/samba/lib/libsmbconf.so.0(messaging_dispatch_rec+0x83)
> >
> > [0x7f31e5ae5dc1]
> >
> > #22 /usr/local/samba/lib/libsmbconf.so.0(+0x2d259) [0x7f31e5ae7259]
> > #23 /usr/local/samba/lib/libsmbconf.so.0(+0x2be87) [0x7f31e5ae5e87]
> > #24 /usr/local/samba/lib/private/libtevent.so.0
> >
> > (tevent_common_check_signal+0x213) [0x7f31e5d4c2ff]
> >
> > #25 /usr/local/samba/lib/libsmbconf.so.0(run_events_poll+0x2f)
> >
> > [0x7f31e5af9ad8]
> >
> > #26 /usr/local/samba/lib/libsmbconf.so.0(+0x4037b) [0x7f31e5afa37b]
> > #27 /usr/local/samba/lib/private/libtevent.so.0(_tevent_loop_once+0xe4)
> >
> > [0x7f31e5d47f0a]
> >
> > #28 /usr/local/samba/lib/private/libsmbd_base.so(smbd_process+0x1309)
> >
> > [0x7f31e70d1b80]
> >
> > #29 /usr/local/samba/sbin/smbd() [0x409570]
> > #30 /usr/local/samba/lib/libsmbconf.so.0(run_events_poll+0x716)
> >
> > [0x7f31e5afa1bf]
> >
> > #31 /usr/local/samba/lib/libsmbconf.so.0(+0x40456) [0x7f31e5afa456]
> > #32 /usr/local/samba/lib/private/libtevent.so.0(_tevent_loop_once+0xe4)
> >
> > [0x7f31e5d47f0a]
> >
> > #33 /usr/local/samba/sbin/smbd() [0x40a1b7]
> > #34 /usr/local/samba/sbin/smbd(main+0x1567) [0x40b870]
> > #35 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)
> > [0x7f31e437d30d] #36 /usr/local/samba/sbin/smbd() [0x4052a9]
> >
> > [2012/09/04 14:41:07.219719, 0] ../source3/lib/util.c:822(smb_panic_s3)
> >
> > smb_panic(): calling panic action [/bin/sleep 999999999]
> >
> > Let me know if anything else is needed and thanks for your help in
> > advance.
>
> What's in log.smbd doesn't show any symbols. What we need is for you to
> attach to the parent of the /bin/sleep process with gdb and get a backtrace
> giving line numbers. You can do this whilst other smbd processes are still
> active, so it won't break your file server.
If you build with debug symbols you have normally a full backtrace in the
logfile too. Just scroll below the first short backtrace. After that you will
find the full one.
-- andreas
--
Andreas Schneider GPG-ID: F33E3FC6
Samba Team asn at samba.org
www.samba.org
More information about the samba-technical
mailing list