The Samba 'panic action' script, /home/semenko/panic-action, was called for PID 18120 (/usr/local/samba/sbin/smbd). This means there was a problem with the program, such as a segfault. User is: (root) 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". 0x00007f9908d8694a in __libc_waitpid (pid=18727, stat_loc=stat_loc@entry=0x7fff9c7761d0, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:31 #0  0x00007f9908d8694a in __libc_waitpid (pid=18727, stat_loc=stat_loc@entry=0x7fff9c7761d0, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:31         resultvar = 18446744073709551104         oldtype =         result = #1  0x00007f9908d0c05e in do_system (line=0x7f990e4cef30 "/home/semenko/panic-action 18120") at ../sysdeps/posix/system.c:148         __result =         _buffer = {__routine = 0x7f9908d0c310 , __arg = 0x7fff9c7761e0, __canceltype = 0, __prev = 0x0}         _avail = 1         status =         save =         pid = 18727         sa = {__sigaction_handler = {sa_handler = 0x1, sa_sigaction = 0x1}, sa_mask = {__val = {65536, 0 }}, sa_flags = 0, sa_restorer = 0x7f990e4cef30}         omask = {__val = {6272, 140295313639888, 140735818457952, 140295327473376, 140735818461056, 0, 0, 140295307064984, 4294967040, 140295279520792, 140295306962416, 296375212712, 0, 206158430224, 140735818457968, 140295311487096}} #2  0x00007f990a487a99 in smb_panic_s3 (why=0x7f990bc23da4 "assert failed: ret") at ../source3/lib/util.c:798         cmd = 0x7f990e4cef30 "/home/semenko/panic-action 18120"         result = 32665         __FUNCTION__ = "smb_panic_s3" #3  0x00007f990bf0fc7d in smb_panic (why=0x7f990bc23da4 "assert failed: ret") at ../lib/util/fault.c:159 No locals. #4  0x00007f990ba73f49 in defer_open_done (req=0x0) at ../source3/smbd/open.c:1533         state = 0x7f990d3dcea0         status = {v = 0}         ret = false         __FUNCTION__ = "defer_open_done" #5  0x00007f990b736b00 in _tevent_req_notify_callback (req=0x7f990e65f1d0, location=0x7f990a4cd820 "../source3/lib/dbwrap/dbwrap_watch.c:378") at ../lib/tevent/tevent_req.c:104 No locals. #6  0x00007f990b736b32 in tevent_req_finish (req=0x7f990e65f1d0, state=TEVENT_REQ_DONE, location=0x7f990a4cd820 "../source3/lib/dbwrap/dbwrap_watch.c:378") at ../lib/tevent/tevent_req.c:113 No locals. #7  0x00007f990b736b59 in _tevent_req_done (req=0x7f990e65f1d0, location=0x7f990a4cd820 "../source3/lib/dbwrap/dbwrap_watch.c:378") at ../lib/tevent/tevent_req.c:119 No locals. #8  0x00007f990a490c57 in dbwrap_record_watch_done (subreq=0x0) at ../source3/lib/dbwrap/dbwrap_watch.c:378         req = 0x7f990e65f1d0         state = 0x7f990e65f350         rec = 0x7f990e445800         ret = 0 #9  0x00007f990b736b00 in _tevent_req_notify_callback (req=0x7f990db39b70, location=0x7f990a4cffb0 "../source3/lib/msg_channel.c:307") at ../lib/tevent/tevent_req.c:104 No locals. #10 0x00007f990b736b32 in tevent_req_finish (req=0x7f990db39b70, state=TEVENT_REQ_DONE, location=0x7f990a4cffb0 "../source3/lib/msg_channel.c:307") at ../lib/tevent/tevent_req.c:113 No locals. #11 0x00007f990b736b59 in _tevent_req_done (req=0x7f990db39b70, location=0x7f990a4cffb0 "../source3/lib/msg_channel.c:307") at ../lib/tevent/tevent_req.c:119 No locals. #12 0x00007f990a49856e in msg_channel_trigger (ev=0x7f990d064b30, im=0x7f990e65f4f0, priv=0x7f990e03de50) at ../source3/lib/msg_channel.c:307         channel = 0x7f990e03de50         req = 0x7f990db39b70         state = 0x7f990db39cf0         num_msgs = 1         __PRETTY_FUNCTION__ = "msg_channel_trigger" #13 0x00007f990b736038 in tevent_common_loop_immediate (ev=0x7f990d064b30) at ../lib/tevent/tevent_immediate.c:135         im = 0x7f990e65f4f0         handler = 0x7f990a498417         private_data = 0x7f990e03de50 #14 0x00007f990a4a8783 in run_events_poll (ev=0x7f990d064b30, pollrtn=0, pfds=0x0, num_pfds=0) at ../source3/lib/events.c:192         state = 0x7f990bc31c28         pollfd_idx = 0x7f990bc31c47         fde = 0x7fff9c776630         __FUNCTION__ = "run_events_poll" #15 0x00007f990a4a8e47 in s3_event_loop_once (ev=0x7f990d064b30, location=0x7f990bc324f8 "../source3/smbd/process.c:3628") at ../source3/lib/events.c:303         state = 0x7f990d0655f0         timeout = 2147483647         num_pfds = 32665         ret = -1669896576         poll_errno = 32767 #16 0x00007f990b735172 in _tevent_loop_once (ev=0x7f990d064b30, location=0x7f990bc324f8 "../source3/smbd/process.c:3628") at ../lib/tevent/tevent.c:530         ret = 32665         nesting_stack_ptr = 0x0 #17 0x00007f990baa2b4c in smbd_process (ev_ctx=0x7f990d064b30, msg_ctx=0x7f990d064c20, sock_fd=40, interactive=false) at ../source3/smbd/process.c:3628         frame = 0x7f990e4ced80         conn = 0x7f990df00f40         sconn = 0x7f990d4d02f0         ss = {ss_family = 2, __ss_align = 0, __ss_padding = "06S\301\356\253\r=\211\250L\n\231\177\000\000\v\000\000\000\000\000\000\000 L\006\r\231\177\000\000\000\000\000\000\231\177\000\000\001\000H\n\v\000\000\000\060K\006\r\231\177\000\000\020#\006\r\231\177\000\000\200hw\234\377\177\000\000\365pH\n\231\177\000\000\250\250L\n\231\177\000\000\211\250L\n\231\177", '\000' , "\024\001\177\000"}         sa = 0x7fff9c7767e0         sa_socklen = 16         local_address = 0x7f990db0d970         remote_address = 0x7f990d069120         locaddr = 0x7f990d066cf0 "smb2 recv queue"         remaddr = 0x7f990db77270 "x\261\303\v\231\177"         rhost = 0x0         ret = 0         __FUNCTION__ = "smbd_process" #18 0x00007f990c57b10a in smbd_accept_connection (ev=0x7f990d064b30, fde=0x7f990d8a28e0, flags=1, private_data=0x7f990dc6f390) at ../source3/smbd/server.c:621         status = {v = 0}         s = 0x0         msg_ctx = 0x7f990d064c20         addr = {ss_family = 2, __ss_align = 0, __ss_padding = "`iw\234\377\177\000\000J<\360\v\231\177\000\000`iw\234\377\177\000\000X6\360\v\231\177\000\000\b\350\314\016\231\177\000\000\360iw\234\377\177\000\000\070\000\000\000\000\000\000\000\246}\000\000\000\000\000\000\070\000\000\000\000\000\000\000\246}\000\000\000\000\000\000\020jw\234\377\177\000\000\t\207J\n\231\177\000\000\070\000\000\000\000\000\000\000\246}\000\000\000\000\000"}         in_addrlen = 16         fd = 40         pid = 0         unique_id = 4399361452944864816         __FUNCTION__ = "smbd_accept_connection" #19 0x00007f990a4a8c8c in run_events_poll (ev=0x7f990d064b30, pollrtn=1, pfds=0x7f990dadf700, num_pfds=6) at ../source3/lib/events.c:257         pfd = 0x7f990dadf720         flags = 1         state = 0x7f990d0655f0         pollfd_idx = 0x7f990e2735b0         fde = 0x7f990d8a28e0         __FUNCTION__ = "run_events_poll" #20 0x00007f990a4a8f58 in s3_event_loop_once (ev=0x7f990d064b30, location=0x7f990c57fa5e "../source3/smbd/server.c:943") at ../source3/lib/events.c:326         state = 0x7f990d0655f0         timeout = 56033         num_pfds = 6         ret = 1         poll_errno = 4 #21 0x00007f990b735172 in _tevent_loop_once (ev=0x7f990d064b30, location=0x7f990c57fa5e "../source3/smbd/server.c:943") at ../lib/tevent/tevent.c:530         ret = 32665         nesting_stack_ptr = 0x0 #22 0x00007f990c57bd74 in smbd_parent_loop (ev_ctx=0x7f990d064b30, parent=0x7f990d069d40) at ../source3/smbd/server.c:943         ret = 0         frame = 0x7f990d068e90         __FUNCTION__ = "smbd_parent_loop" #23 0x00007f990c57d618 in main (argc=4, argv=0x7fff9c776f88) at ../source3/smbd/server.c:1577         is_daemon = true         interactive = false         Fork = false         no_process_group = false         log_stdout = false         ports = 0x0         profile_level = 0x0         opt = -1         pc = 0x7f990d062ea0         print_build_options = false         long_options = {{longName = 0x0, shortName = 0 '\000', argInfo = 4, arg = 0x7f9909299220 , val = 0, descrip = 0x7f990c57fb29 "Help options:", argDescrip = 0x0}, {longName = 0x7f990c57fb37 "daemon", shortName = 68 'D', argInfo = 0, arg = 0x0, val = 1000, descrip = 0x7f990c57fb3e "Become a daemon (default)", argDescrip = 0x0}, {longName = 0x7f990c57fb58 "interactive", shortName = 105 'i', argInfo = 0, arg = 0x0, val = 1001, descrip = 0x7f990c57fb68 "Run interactive (not a daemon)", argDescrip = 0x0}, {longName = 0x7f990c57fb87 "foreground", shortName = 70 'F', argInfo = 0, arg = 0x0, val = 1002, descrip = 0x7f990c57fb98 "Run daemon in foreground (for daemontools, etc.)", argDescrip = 0x0}, {longName = 0x7f990c57fbc9 "no-process-group", shortName = 0 '\000', argInfo = 0, arg = 0x0, val = 1003, descrip = 0x7f990c57fbe0 "Don't create a new process group", argDescrip = 0x0}, {longName = 0x7f990c57fc01 "log-stdout", shortName = 83 'S', argInfo = 0, arg = 0x0, val = 1004, descrip = 0x7f990c57fc0c "Log to stdout", argDescrip = 0x0}, {longName = 0x7f990c57fc1a "build-options", shortName = 98 'b', argInfo = 0, arg = 0x0, val = 98, descrip = 0x7f990c57fc28 "Print build options", argDescrip = 0x0}, {longName = 0x7f990c57fc3c "port", shortName = 112 'p', argInfo = 1, arg = 0x7fff9c776b40, val = 0, descrip = 0x7f990c57fc41 "Listen on the specified ports", argDescrip = 0x0}, {longName = 0x7f990c57fc5f "profiling-level", shortName = 80 'P', argInfo = 1, arg = 0x7fff9c776b48, val = 0, descrip = 0x7f990c57fc6f "Set profiling level", argDescrip = 0x7f990c57fc83 "PROFILE_LEVEL"}, {longName = 0x0, shortName = 0 '\000', argInfo = 4, arg = 0x7f990ab2c360 , val = 0, descrip = 0x7f990c57fc91 "Common samba options:", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000', argInfo = 4, arg = 0x7f990ab2baa0 , val = 0, descrip = 0x7f990c57fca8 "Build-time configuration overrides:", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000', argInfo = 0, arg = 0x0, val = 0, descrip = 0x0, argDescrip = 0x0}}         parent = 0x7f990d069d40         frame = 0x7f990d0601a0         status = {v = 0}         ev_ctx = 0x7f990d064b30         msg_ctx = 0x7f990d064c20         server_id = {pid = 16248, task_id = 0, vnn = 4294967295, unique_id = 2600908560660623475}         se = 0x7f990d06a0a0         np_dir = 0x7f990dadf700 "\v"         smbd_shim_fns = {cancel_pending_lock_requests_by_fid = 0x7f990ba7f834 , send_stat_cache_delete_message = 0x7f990ba89f59 , change_to_root_user = 0x7f990ba69779 , contend_level2_oplocks_begin = 0x7f990bafa793 , contend_level2_oplocks_end = 0x7f990bafa806 , become_root = 0x7f990ba69aa8 , unbecome_root = 0x7f990ba69ad0 , exit_server = 0x7f990baef6d7 , exit_server_cleanly = 0x7f990baef6f4 }         __FUNCTION__ = "main" A debugging session is active.         Inferior 1 [process 18120] will be detached. Quit anyway? (y or n) [answered Y; input not from terminal]