RHEL6 init.d script (was Re: Initscript Debian Wheezy)

Ricky Nance ricky.nance at weaubleau.k12.mo.us
Thu Sep 6 12:58:40 MDT 2012


Are you using configure or configure.developer. It doesn't really matter, I
am just curious how similar our setups are.

On Thu, Sep 6, 2012 at 1:55 PM, David Rivera <rivera.david87 at gmail.com>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.
>
> On Thu, Sep 6, 2012 at 10:52 AM, Ricky Nance <
> ricky.nance at weaubleau.k12.mo.us> wrote:
>
>> Sorry that was a pastefail!...  http://paste.ubuntu.com/1189110/
>>
>> On Thu, Sep 6, 2012 at 12:48 PM, Jeremy Allison <jra at samba.org> wrote:
>>
>> > On Thu, Sep 06, 2012 at 10:23:03AM -0500, Ricky Nance wrote:
>> > > Marc, odd thing happened to me just now. I just spent the last 20 mins
>> > > troubleshooting slow/unresponsive windows machines (across the
>> network)
>> > > because smbd 'hung' and samba had died (well I had restarted it and
>> smbd
>> > > didn't die as it should have). Not trying to be snide with this, but
>> > please
>> > > explain to me again how this can't happen? Check the last couple of
>> lines
>> > > here http://paste.ubuntu.com/1189108/ . I agree with you this
>> shouldn't
>> > > ever be a problem, but it is on occasion, and the init script didn't
>> > > perform as expected (making sure the processes are actually dead
>> before
>> > say
>> > > 'OK' on the stop line). Also, there has never been an ability to run
>> smbd
>> > > and samba at the same time unless samba spawned it (otherwise samba
>> just
>> > > fails to run right if smbd is running first), and I am always within a
>> > few
>> > > days of the current git as I am constantly testing things for the
>> > project.
>> > > As for the PID causing samba to not start that I was referring to, I
>> > think
>> > > it must have been this commit
>> > >
>> >
>> http://gitweb.samba.org/?p=samba.git;a=commit;h=d6bba7bf1a77244bc47eaeef67bb9680175ec0bcbut
>> > > I do recall something that Jeremy Allison patched (I think) so this
>> > > may
>> > > not be the one I am thinking of, but either way that issue has been
>> > > resolved.
>> > >
>> > > Here is a backtrace of the smbd process that had died, but failed to
>> > > terminate.. http://paste.ubuntu.com/1189108/
>> >
>> > That isn't a backtrace, it's a process list.
>> >
>> > Jeremy.
>> >
>>
>>
>>
>> --
>>
>
>


--


More information about the samba-technical mailing list