Bug 10386 - samba panic in latest build
Summary: samba panic in latest build
Status: RESOLVED INVALID
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
: 10407 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-01-17 20:49 UTC by Nick Semenkovich
Modified: 2022-01-05 17:34 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Semenkovich 2014-01-17 20:49:22 UTC
Running from the ~latest git version, Win 8.1 client.

The Samba 'panic action' script, /home/semenko/panic-action,
was called for PID 7355 (/usr/local/samba/sbin/smbd).

This means there was a problem with the program, such as a segfault.
User is: ()
Below is a backtrace for this process generated with gdb, which shows
the state of the program at the time the error occurred.  The Samba log
files may contain additional information about the problem.

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f1437fa746a in __libc_waitpid (pid=8019, stat_loc=stat_loc@entry=0x7fff9fdae660, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:31
#0  0x00007f1437fa746a in __libc_waitpid (pid=8019, stat_loc=stat_loc@entry=0x7fff9fdae660, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:31
        resultvar = 18446744073709551104
        oldtype = <optimized out>
        result = <optimized out>
#1  0x00007f1437f2bfae in do_system (line=0x7f143d8d78a0 "/home/semenko/panic-action 7355") at ../sysdeps/posix/system.c:148
        __result = <optimized out>
        _buffer = {__routine = 0x7f1437f2c260 <cancel_handler>, __arg = 0x7fff9fdae670, __canceltype = 0, __prev = 0x0}
        _avail = 1
        status = <optimized out>
        save = <optimized out>
        pid = 8019
        sa = {__sigaction_handler = {sa_handler = 0x1, sa_sigaction = 0x1}, sa_mask = {__val = {65536, 0 <repeats 15 times>}}, sa_flags = 0, sa_restorer = 0x7f143d8d78a0}
        omask = {__val = {6272, 139724873738704, 140735875311600, 139724913682992, 140735875314528, 0, 0, 139724867168150, 4294967040, 139724839623320, 139724867065344, 292082469544, 0, 206158430224, 140735875311616, 139724871590008}}
#2  0x00007f14396a6c56 in smb_panic_s3 (why=0x7f143ae44434 "assert failed: ret") at ../source3/lib/util.c:798
        cmd = 0x7f143d8d78a0 "/home/semenko/panic-action 7355"
        result = 32532
        __FUNCTION__ = "smb_panic_s3"
#3  0x00007f143b12ed8c in smb_panic (why=0x7f143ae44434 "assert failed: ret") at ../lib/util/fault.c:159
No locals.
#4  0x00007f143ac9600e in defer_open_done (req=0x0) at ../source3/smbd/open.c:1625
        state = 0x7f143daf7ed0
        status = {v = 0}
        ret = false
        __FUNCTION__ = "defer_open_done"
#5  0x00007f143a955e46 in _tevent_req_notify_callback (req=0x7f143dc18a60, location=0x7f14396ec7a0 "../source3/lib/dbwrap/dbwrap_watch.c:378") at ../lib/tevent/tevent_req.c:102
No locals.
#6  0x00007f143a955e9b in tevent_req_finish (req=0x7f143dc18a60, state=TEVENT_REQ_DONE, location=0x7f14396ec7a0 "../source3/lib/dbwrap/dbwrap_watch.c:378") at ../lib/tevent/tevent_req.c:117
No locals.
#7  0x00007f143a955ec2 in _tevent_req_done (req=0x7f143dc18a60, location=0x7f14396ec7a0 "../source3/lib/dbwrap/dbwrap_watch.c:378") at ../lib/tevent/tevent_req.c:123
No locals.
#8  0x00007f14396afcbb in dbwrap_record_watch_done (subreq=0x0) at ../source3/lib/dbwrap/dbwrap_watch.c:378
        req = 0x7f143dc18a60
        state = 0x7f143dc18be0
        rec = 0x7f143dac3e60
        ret = 0
#9  0x00007f143a955e46 in _tevent_req_notify_callback (req=0x7f143d3cf0b0, location=0x7f14396eee50 "../source3/lib/msg_channel.c:198") at ../lib/tevent/tevent_req.c:102
No locals.
#10 0x00007f143a955e9b in tevent_req_finish (req=0x7f143d3cf0b0, state=TEVENT_REQ_DONE, location=0x7f14396eee50 "../source3/lib/msg_channel.c:198") at ../lib/tevent/tevent_req.c:117
No locals.
#11 0x00007f143a955fc0 in tevent_req_trigger (ev=0x7f143d17fb80, im=0x7f143d3cf180, private_data=0x7f143d3cf0b0) at ../lib/tevent/tevent_req.c:174
        req = 0x7f143d3cf0b0
#12 0x00007f143a95527c in tevent_common_loop_immediate (ev=0x7f143d17fb80) at ../lib/tevent/tevent_immediate.c:135
        im = 0x7f143d3cf180
        handler = 0x7f143a955f71 <tevent_req_trigger>
        private_data = 0x7f143d3cf0b0
#13 0x00007f14396c7696 in run_events_poll (ev=0x7f143d17fb80, pollrtn=0, pfds=0x0, num_pfds=0) at ../source3/lib/events.c:192
        state = 0x7f143ae524e8
        pollfd_idx = 0x7f143ae52507
        fde = 0x7fff9fdaea70
        __FUNCTION__ = "run_events_poll"
#14 0x00007f14396c7d0a in s3_event_loop_once (ev=0x7f143d17fb80, location=0x7f143ae52db8 "../source3/smbd/process.c:3663") at ../source3/lib/events.c:303
        state = 0x7f143d1806f0
        timeout = 2147483647
        num_pfds = 32532
        ret = -1613043008
        poll_errno = 32767
#15 0x00007f143a9543c3 in _tevent_loop_once (ev=0x7f143d17fb80, location=0x7f143ae52db8 "../source3/smbd/process.c:3663") at ../lib/tevent/tevent.c:530
        ret = 32532
        nesting_stack_ptr = 0x0
#16 0x00007f143acc4f9c in smbd_process (ev_ctx=0x7f143d17fb80, msg_ctx=0x7f143d17fc70, sock_fd=40, interactive=false) at ../source3/smbd/process.c:3663
        frame = 0x7f143d8d7840
        conn = 0x7f143d6a2760
        sconn = 0x7f143dd360c0
        ss = {ss_family = 2, __ss_align = 0, __ss_padding = "\213\311\312\036k5\262\201\t\227n9\024\177\000\000\v\000\000\000\000\000\000\000p\374\027=\024\177\000\000\000\000\000\000\024\177\000\000\001\000j9\v\000\000\000\200\373\027=\024\177\000\000\260\342\027=\024\177\000\000p\354ڟ\377\177\000\000\241bj9\024\177\000\000(\227n9\024\177\000\000\t\227n9\024\177", '\000' <repeats 13 times>, "\024\001\177\000"}
        sa = 0x7fff9fdaebd0
        sa_socklen = 16
        local_address = 0x7f143d1841e0
        remote_address = 0x7f143d182350
        locaddr = 0x7f143dcf3e90 "iconv(UTF-8,CP850)"
        remaddr = 0x7f143d68ae60 ""
        rhost = 0x0
        ret = 0
        __FUNCTION__ = "smbd_process"
#17 0x00007f143b79ae61 in smbd_accept_connection (ev=0x7f143d17fb80, fde=0x7f143e1a3ff0, flags=1, private_data=0x7f143d992260) at ../source3/smbd/server.c:647
        status = {v = 0}
        s = 0x0
        msg_ctx = 0x7f143d17fc70
        addr = {ss_family = 2, __ss_align = 0, __ss_padding = '\000' <repeats 16 times>, "H\233\336>\024\177\000\000\320\355ڟ\377\177\000\000P\355ڟ\377\177\000\000\005,\022;\024\177\000\000H\233\336>\024\177\000\000\320\355ڟ\377\177\000\000;\000\000\000\000\000\000\000O=\017\000\000\000\000\000\360\355ڟ\377\177\000\000\034vl9\024\177\000\000\031\221\331R\000\000\000\000\030\356ڟ\377\177\000"}
        in_addrlen = 16
        fd = 40
        pid = 0
        unique_id = 9345590910941579659
        __FUNCTION__ = "smbd_accept_connection"
#18 0x00007f14396c7b8f in run_events_poll (ev=0x7f143d17fb80, pollrtn=1, pfds=0x7f143dd55c40, num_pfds=6) at ../source3/lib/events.c:257
        pfd = 0x7f143dd55c60
        flags = 1
        state = 0x7f143d1806f0
        pollfd_idx = 0x7f143d17fda0
        fde = 0x7f143e1a3ff0
        __FUNCTION__ = "run_events_poll"
#19 0x00007f14396c7e1b in s3_event_loop_once (ev=0x7f143d17fb80, location=0x7f143b79f9de "../source3/smbd/server.c:973") at ../source3/lib/events.c:326
        state = 0x7f143d1806f0
        timeout = 59999
        num_pfds = 6
        ret = 1
        poll_errno = 4
#20 0x00007f143a9543c3 in _tevent_loop_once (ev=0x7f143d17fb80, location=0x7f143b79f9de "../source3/smbd/server.c:973") at ../lib/tevent/tevent.c:530
        ret = 32532
        nesting_stack_ptr = 0x0
#21 0x00007f143b79bb19 in smbd_parent_loop (ev_ctx=0x7f143d17fb80, parent=0x7f143d184f00) at ../source3/smbd/server.c:973
        ret = 0
        frame = 0x7f143d17ea50
        __FUNCTION__ = "smbd_parent_loop"
#22 0x00007f143b79d411 in main (argc=4, argv=0x7fff9fdaf368) at ../source3/smbd/server.c:1613
        is_daemon = true
        interactive = false
        Fork = false
        no_process_group = false
        log_stdout = false
        ports = 0x0
        profile_level = 0x0
        opt = -1
        pc = 0x7f143d17dfc0
        print_build_options = false
        long_options = {{longName = 0x0, shortName = 0 '\000', argInfo = 4, arg = 0x7f14384b9220 <poptHelpOptions>, val = 0, descrip = 0x7f143b79faa9 "Help options:", argDescrip = 0x0}, {longName = 0x7f143b79fab7 "daemon", shortName = 68 'D', argInfo = 0, arg = 0x0, val = 1000, descrip = 0x7f143b79fabe "Become a daemon (default)", argDescrip = 0x0}, {longName = 0x7f143b79fad8 "interactive", shortName = 105 'i', argInfo = 0, arg = 0x0, val = 1001, descrip = 0x7f143b79fae8 "Run interactive (not a daemon)", argDescrip = 0x0}, {longName = 0x7f143b79fb07 "foreground", shortName = 70 'F', argInfo = 0, arg = 0x0, val = 1002, descrip = 0x7f143b79fb18 "Run daemon in foreground (for daemontools, etc.)", argDescrip = 0x0}, {longName = 0x7f143b79fb49 "no-process-group", shortName = 0 '\000', argInfo = 0, arg = 0x0, val = 1003, descrip = 0x7f143b79fb60 "Don't create a new process group", argDescrip = 0x0}, {longName = 0x7f143b79fb81 "log-stdout", shortName = 83 'S', argInfo = 0, arg = 0x0, val = 1004, descrip = 0x7f143b79fb8c "Log to stdout", argDescrip = 0x0}, {longName = 0x7f143b79fb9a "build-options", shortName = 98 'b', argInfo = 0, arg = 0x0, val = 98, descrip = 0x7f143b79fba8 "Print build options", argDescrip = 0x0}, {longName = 0x7f143b79fbbc "port", shortName = 112 'p', argInfo = 1, arg = 0x7fff9fdaef20, val = 0, descrip = 0x7f143b79fbc1 "Listen on the specified ports", argDescrip = 0x0}, {longName = 0x7f143b79fbdf "profiling-level", shortName = 80 'P', argInfo = 1, arg = 0x7fff9fdaef28, val = 0, descrip = 0x7f143b79fbef "Set profiling level", argDescrip = 0x7f143b79fc03 "PROFILE_LEVEL"}, {longName = 0x0, shortName = 0 '\000', argInfo = 4, arg = 0x7f1439d4b360 <popt_common_samba>, val = 0, descrip = 0x7f143b79fc11 "Common samba options:", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000', argInfo = 4, arg = 0x7f1439d4aaa0 <popt_common_dynconfig>, val = 0, descrip = 0x7f143b79fc28 "Build-time configuration overrides:", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000', argInfo = 0, arg = 0x0, val = 0, descrip = 0x0, argDescrip = 0x0}}
        parent = 0x7f143d184f00
        frame = 0x7f143d17c1a0
        status = {v = 0}
        ev_ctx = 0x7f143d17fb80
        msg_ctx = 0x7f143d17fc70
        server_id = {pid = 2181, task_id = 0, vnn = 4294967295, unique_id = 14464294711189982165}
        se = 0x7f143d1851b0
        np_dir = 0x7f143dd55c40 "\v"
        smbd_shim_fns = {cancel_pending_lock_requests_by_fid = 0x7f143aca199d <smbd_cancel_pending_lock_requests_by_fid>, send_stat_cache_delete_message = 0x7f143acac152 <smbd_send_stat_cache_delete_message>, change_to_root_user = 0x7f143ac8b16d <smbd_change_to_root_user>, become_authenticated_pipe_user = 0x7f143ac8b223 <smbd_become_authenticated_pipe_user>, unbecome_authenticated_pipe_user = 0x7f143ac8b288 <smbd_unbecome_authenticated_pipe_user>, contend_level2_oplocks_begin = 0x7f143ad1c9e7 <smbd_contend_level2_oplocks_begin>, contend_level2_oplocks_end = 0x7f143ad1ca5a <smbd_contend_level2_oplocks_end>, become_root = 0x7f143ac8b4a8 <smbd_become_root>, unbecome_root = 0x7f143ac8b4d0 <smbd_unbecome_root>, exit_server = 0x7f143ad11d87 <smbd_exit_server>, exit_server_cleanly = 0x7f143ad11da4 <smbd_exit_server_cleanly>}
        __FUNCTION__ = "main"
A debugging session is active.

	Inferior 1 [process 7355] will be detached.

Quit anyway? (y or n) [answered Y; input not from terminal]
Comment 1 Nick Semenkovich 2015-03-27 16:55:31 UTC
Closing as I haven't seen this for a while.
Comment 2 Björn Jacke 2022-01-05 17:34:41 UTC
*** Bug 10407 has been marked as a duplicate of this bug. ***