Samba4 panic action

Ricky Nance ricky.nance at weaubleau.k12.mo.us
Fri Oct 12 06:21:29 MDT 2012


Steve, if you are building from git, the file gdb_backtrace can be found at
samba-master/selftest/gdb_backtrace, you will just simply add the line to
your smb.conf pointing at that file, and restart samba, then try to
recreate the bug. You should then get backtraces in /usr/local/samba/var as
files.

Ricky

On Fri, Oct 12, 2012 at 6:59 AM, steve <steve at steve-ss.com> wrote:

> On 12/10/12 12:55, Andrew Bartlett wrote:
>
>> On Fri, 2012-10-12 at 12:51 +0200, steve wrote:
>>
>>> On 11/10/12 21:21, Jeremy Allison wrote:
>>>
>>>> On Thu, Oct 11, 2012 at 06:30:27PM +0200, steve wrote:
>>>>
>>>>> On 11/10/12 13:32, Andrew Bartlett wrote:
>>>>>
>>>>>> On Thu, 2012-10-11 at 13:18 +0200, steve wrote:
>>>>>>
>>>>>>> Version 4.1.0pre1-GIT-957f9fa
>>>>>>> Hi
>>>>>>> Accessing shares on the s3fs server from a w7 client hangs with this:
>>>>>>>
>>>>>>
>>>>>> Thanks for testing this, and I'm sorry this caused you trouble.
>>>>>>
>>>>>> The attached patch fixes the changes I made earlier today, and is in
>>>>>> autobuild.
>>>>>>
>>>>>> Andrew Bartlett
>>>>>>
>>>>>>  Hi
>>>>> I applied the patch and all is well for W7 but now XP hangs with
>>>>> this as soon as anything is read from the file server:
>>>>> ]
>>>>> /usr/local/samba/sbin/smbd:
>>>>>
>>>>
>>>> Can you build with -g please and attach with gdb to get a
>>>> backtrace with line numbers ?
>>>>
>>>> Thanks !
>>>>
>>>> Jeremy.
>>>>
>>>>
>>> OK. I spoke too soon. w7 works OK. XP still crashes with the LO v3.5.6
>>>
>>> Here is the trace:
>>>
>>> (gdb) bt full
>>> #0  0xb7fdc424 in __kernel_vsyscall ()
>>> No symbol table info available.
>>> #1  0xb76113f8 in __epoll_wait_nocancel () from /lib/libc.so.6
>>> No symbol table info available.
>>> #2  0xb7e69b90 in epoll_event_loop (std_ev=0x806fcf8, tvalp=0xbfffef04)
>>>       at ../lib/tevent/tevent_standard.**c:282
>>>           ret = 134675704
>>>           i = 1350038816
>>>           events = {{events = 1, data = {ptr = 0xb7e60ff4, fd =
>>> -1209659404,
>>>                 u32 = 3085307892, u64 = 20265177076}}}
>>>           timeout = 4691
>>>
>>
>> That's not a trace of a smbd stuck running 'sleep'.
>>
>> Wait until you see the message in the logs, or set
>>
>> panic action = /path/to/gdb_backtrace %d
>>
>> and let it handle it for you.
>>
>> Andrew Bartlett
>>
>>
> Hi
> OK
> I don't know where to set:
>
> panic action = /path/to/gdb_backtrace %d
>
> so here is the trace of the PID's:
>
> ps aux | grep samba
> root      4166  0.2  1.3  97092 25796 ?        S    11:46   0:16
> /usr/local/samba/
> root      4511  0.0  1.2  97064 25392 ?        S    12:15   0:00
> /usr/local/samba/
> root      6649  0.4  1.8  97404 35784 pts/0    S+   13:31   0:06 samba -i
> -M single
> root      6650  0.0  1.6  92756 32200 ?        Ss   13:31   0:00
> /usr/local/samba/
> root      6672  0.0  1.0  92756 20384 ?        S    13:31   0:00
> /usr/local/samba/
> root      7020  0.0  1.3  96616 26232 ?        S    13:43   0:00
> /usr/local/samba/
>
> In the order in which they appear:
>
>
> gdb) bt full
> #0  0xb7730424 in __kernel_vsyscall ()
>
> No symbol table info available.
> #1  0xb6a4d523 in __waitpid_nocancel () from /lib/libc.so.6
>
> No symbol table info available.
> #2  0xb69d65c0 in do_system () from /lib/libc.so.6
>
> No symbol table info available.
> #3  0xb7703ecb in system () from /lib/libpthread.so.0
>
> No symbol table info available.
> #4  0xb70e265b in smb_panic_s3 (why=0xb76e7881 "internal error")
>     at ../source3/lib/util.c:823
>         cmd = 0x9e79540 "/bin/sleep 999999999"
>         result = -1080271736
>         __FUNCTION__ = "smb_panic_s3"
> #5  0xb76d5ea2 in smb_panic (why=0xb76e7881 "internal error")
>     at ../lib/util/fault.c:159
> No locals.
> #6  0xb76d5b63 in fault_report (sig=11) at ../lib/util/fault.c:77
>         counter = 1
>         __FUNCTION__ = "fault_report"
> #7  0xb76d5b74 in sig_fault (sig=11) at ../lib/util/fault.c:88
> No locals.
> #8  <signal handler called>
>
> No symbol table info available.
> #9  0xb692a56a in security_token_has_sid (token=0x0, sid=0x9e793e0)
>
> ---Type <return> to continue, or q <return> to quit---
>     at ../libcli/security/security_**token.c:109
>         i = 0
> #10 0xb692abb4 in se_access_check (sd=0x9e79220, token=0x0,
> access_desired=1,
>     access_granted=0xbf9c6318) at ../libcli/security/access_**check.c:229
>         ace = 0x9e793b0
>         i = 0
>         bits_remaining = 1
>         explicitly_denied_bits = 0
>         owner_rights_allowed = 0
>         owner_rights_denied = 0
>         owner_rights_default = true
>         __FUNCTION__ = "se_access_check"
> #11 0xb692ae26 in se_file_access_check (sd=0x9e79220, token=0x0,
>     priv_open_requested=true, access_desired=1, access_granted=0xbf9c6318)
>     at ../libcli/security/access_**check.c:340
>         bits_remaining = 152449088
>         status = {v = 166166800}
>         __FUNCTION__ = "se_file_access_check"
> #12 0xb745fe21 in smbd_check_access_rights (conn=0x9714320,
> smb_fname=0x9e78b00,
>     use_privs=true, access_mask=1) at ../source3/smbd/open.c:137
>
>         status = {v = 0}
>         sd = 0x9e79220
>         rejected_share_access = 0
>         rejected_mask = 1
>
> ---Type <return> to continue, or q <return> to quit---
>         __FUNCTION__ = "smbd_check_access_rights"
> #13 0xb7401d73 in dptr_create (conn=0x9714320, req=0x9e78220, fsp=0x0,
>     path=0x9e784c0 "Administrator/Application Data/LibreOffice",
>     old_handle=false, expect_close=true, spid=1408, wcard=0x9e78520 "3",
>     wcard_has_wild=false, attr=22, dptr_ret=0xbf9c6434)
>     at ../source3/smbd/dir.c:534
>         ret = 0
>         backup_intent = true
>         smb_dname = 0x9e78b00
>
>         status = {v = 0}
>         sconn = 0x99f3020
>         dptr = 0x0
>         dir_hnd = 0x957c538
>         __FUNCTION__ = "dptr_create"
> #14 0xb7446c50 in call_trans2findfirst (conn=0x9714320, req=0x9e78220,
>     pparams=0x92e1cbc, total_params=104, ppdata=0x92e1cc4, total_data=0,
>     max_data_bytes=16384) at ../source3/smbd/trans2.c:2499
>         smb_dname = 0x9e78410
>         params = 0x957c538 "\026"
>         pdata = 0x9f0e600 ""
>         data_end = 0x9f135ff ""
>         dirtype = 22
>         maxentries = 1366
>         findfirst_flags = 23
>
> ---Type <return> to continue, or q <return> to quit---
>         close_after_first = true
>         close_if_end = true
>         requires_resume_key = true
>         info_level = 259
>         directory = 0x9e784c0 "Administrator/Application Data/LibreOffice"
>         mask = 0x9e78520 "3"
>         p = 0x9e784ea ""
>         last_entry_off = 0
>         dptr_num = -1
>         numentries = 0
>         i = 1
>         finished = false
>         dont_descend = false
>         out_of_space = false
>         space_remaining = 104
>         mask_contains_wcard = false
>         ea_list = 0x0
>         ntstatus = {v = 0}
>         ask_sharemode = true
>         ctx = 0x9e78110
>         dirptr = 0x0
>         sconn = 0x99f3020
>         ucf_flags = 3
>         backup_priv = true
>
>
>
>         -------------
>
>     (gdb) bt full
> #0  0xb7730424 in __kernel_vsyscall ()
>
> No symbol table info available.
> #1  0xb6a4d523 in __waitpid_nocancel () from /lib/libc.so.6
>
> No symbol table info available.
> #2  0xb69d65c0 in do_system () from /lib/libc.so.6
>
> No symbol table info available.
> #3  0xb7703ecb in system () from /lib/libpthread.so.0
>
> No symbol table info available.
> #4  0xb70e265b in smb_panic_s3 (why=0xb76e7881 "internal error")
>     at ../source3/lib/util.c:823
>         cmd = 0x9cf58c8 "/bin/sleep 999999999"
>         result = -1080271736
>         __FUNCTION__ = "smb_panic_s3"
> #5  0xb76d5ea2 in smb_panic (why=0xb76e7881 "internal error")
>     at ../lib/util/fault.c:159
> No locals.
> #6  0xb76d5b63 in fault_report (sig=11) at ../lib/util/fault.c:77
>         counter = 1
>         __FUNCTION__ = "fault_report"
> #7  0xb76d5b74 in sig_fault (sig=11) at ../lib/util/fault.c:88
> No locals.
> #8  <signal handler called>
>
> No symbol table info available.
> #9  0xb692a56a in security_token_has_sid (token=0x0, sid=0x9cf5768)
>
> ---Type <return> to continue, or q <return> to quit---
>     at ../libcli/security/security_**token.c:109
>         i = 0
> #10 0xb692abb4 in se_access_check (sd=0x9cf55a8, token=0x0,
> access_desired=1,
>     access_granted=0xbf9c6318) at ../libcli/security/access_**check.c:229
>         ace = 0x9cf5738
>         i = 0
>         bits_remaining = 1
>         explicitly_denied_bits = 0
>         owner_rights_allowed = 0
>         owner_rights_denied = 0
>         owner_rights_default = true
>         __FUNCTION__ = "se_access_check"
> #11 0xb692ae26 in se_file_access_check (sd=0x9cf55a8, token=0x0,
>     priv_open_requested=true, access_desired=1, access_granted=0xbf9c6318)
>     at ../libcli/security/access_**check.c:340
>         bits_remaining = 152449088
>         status = {v = 164578392}
>         __FUNCTION__ = "se_file_access_check"
> #12 0xb745fe21 in smbd_check_access_rights (conn=0x9a1c8c0,
> smb_fname=0x9cf4e88,
>     use_privs=true, access_mask=1) at ../source3/smbd/open.c:137
>
>         status = {v = 0}
>         sd = 0x9cf55a8
>         rejected_share_access = 0
>         rejected_mask = 1
>
>         --------------
>
>   (gdb) bt full
> #1  0xb6da63f8 in __epoll_wait_nocancel () from /lib/libc.so.6
>
> No symbol table info available.
> #2  0xb75feb90 in epoll_event_loop (std_ev=0x9883d48, tvalp=0xbfbc9174)
>     at ../lib/tevent/tevent_standard.**c:282
>         ret = 159923528
>         i = 1350042723
>         events = {{events = 1, data = {ptr = 0xb75f5ff4, fd = -1218486284,
>               u32 = 3076481012, u64 = 20256350196}}}
>         timeout = 4503
> #3  0xb75ff473 in std_event_loop_once (ev=0x9883cd0,
>
>     location=0x805665f "../source4/smbd/server.c:486"**)
>     at ../lib/tevent/tevent_standard.**c:567
>         std_ev = 0x9883d48
>         tval = {tv_sec = 4, tv_usec = 502066}
> #4  0xb75fa544 in _tevent_loop_once (ev=0x9883cd0,
>
>     location=0x805665f "../source4/smbd/server.c:486"**)
>     at ../lib/tevent/tevent.c:507
>         ret = 0
>         nesting_stack_ptr = 0x0
> #5  0xb75fa75f in tevent_common_loop_wait (ev=0x9883cd0,
>
>     location=0x805665f "../source4/smbd/server.c:486"**)
>     at ../lib/tevent/tevent.c:608
> -----------------------
>     (gdb) bt full
> #0  0xb7762424 in __kernel_vsyscall ()
>
> No symbol table info available.
> #1  0xb6aac8b2 in poll () from /lib/libc.so.6
>
> No symbol table info available.
> #2  0xb713091f in s3_event_loop_once (ev=0x87200a8,
>     location=0x805535e "../source3/smbd/server.c:944"**)
>     at ../source3/lib/events.c:336
>         state = 0x8722250
>         timeout = 59991
>         num_pfds = 6
>         ret = 1
> #3  0xb717b544 in _tevent_loop_once (ev=0x87200a8,
>     location=0x805535e "../source3/smbd/server.c:944"**)
>
>     at ../lib/tevent/tevent.c:507
>         ret = 0
>         nesting_stack_ptr = 0x0
> #4  0x08051779 in smbd_parent_loop (ev_ctx=0x87200a8, parent=0x8724518)
>     at ../source3/smbd/server.c:944
>         ret = 0
>         frame = 0x8721458
>         __FUNCTION__ = "smbd_parent_loop"
> #5  0x0805303b in main (argc=5, argv=0xbf9d9034) at
> ../source3/smbd/server.c:1551
>         is_daemon = true
>         interactive = false
> ---------------------
>
>     (gdb) bt full
> #0  0xb7762424 in __kernel_vsyscall ()
>
> No symbol table info available.
> #1  0xb6aac8b2 in poll () from /lib/libc.so.6
>
> No symbol table info available.
> #2  0xb713091f in s3_event_loop_once (ev=0x87200a8,
>     location=0xb75f6bf0 "../source3/printing/queue_**process.c:326")
>     at ../source3/lib/events.c:336
>         state = 0x87203e8
>         timeout = 60000
>         num_pfds = 3
>         ret = 0
> #3  0xb717b544 in _tevent_loop_once (ev=0x87200a8,
>     location=0xb75f6bf0 "../source3/printing/queue_**process.c:326")
>
>     at ../lib/tevent/tevent.c:507
>         ret = 0
>         nesting_stack_ptr = 0x0
> #4  0xb717b75f in tevent_common_loop_wait (ev=0x87200a8,
>     location=0xb75f6bf0 "../source3/printing/queue_**process.c:326")
>     at ../lib/tevent/tevent.c:608
>         ret = 0
> #5  0xb717b811 in _tevent_loop_wait (ev=0x87200a8,
>     location=0xb75f6bf0 "../source3/printing/queue_**process.c:326")
>
>     at ../lib/tevent/tevent.c:627
> No locals.
> ---------------------
>     (gdb) bt full
> #0  0xb7762424 in __kernel_vsyscall ()
>
> No symbol table info available.
> #1  0xb6a7f523 in __waitpid_nocancel () from /lib/libc.so.6
>
> No symbol table info available.
> #2  0xb6a085c0 in do_system () from /lib/libc.so.6
>
> No symbol table info available.
> #3  0xb7735ecb in system () from /lib/libpthread.so.0
>
> No symbol table info available.
> #4  0xb711465b in smb_panic_s3 (why=0xb7719881 "internal error")
>     at ../source3/lib/util.c:823
>         cmd = 0x92ad888 "/bin/sleep 999999999"
>         result = -1080197656
>         __FUNCTION__ = "smb_panic_s3"
> #5  0xb7707ea2 in smb_panic (why=0xb7719881 "internal error")
>     at ../lib/util/fault.c:159
> No locals.
> #6  0xb7707b63 in fault_report (sig=11) at ../lib/util/fault.c:77
>         counter = 1
>         __FUNCTION__ = "fault_report"
> #7  0xb7707b74 in sig_fault (sig=11) at ../lib/util/fault.c:88
> No locals.
> #8  <signal handler called>
>
> No symbol table info available.
> #9  0xb695c56a in security_token_has_sid (token=0x0, sid=0x92ad728)
>
>
> Cheers,
> Steve
>
>
>
>
>


--


More information about the samba-technical mailing list