Hello Zoon,
Since 11.2 I got lots of Samba crashes, hoped for 4.8.2 that fixed it, but still panics:
Jul 11 11:35:57 ewnas01 smbd[6853]: ===============================================================
Jul 11 11:35:57 ewnas01 smbd[6853]: [2018/07/11 11:35:57.311185, 0] ../lib/util/fault.c:79(fault_report)
Jul 11 11:35:57 ewnas01 smbd[6853]: INTERNAL ERROR: Signal 11 in pid 6853 (4.8.2)
Jul 11 11:35:57 ewnas01 smbd[6853]: Please read the Trouble-Shooting section of the Samba HOWTO
Jul 11 11:35:57 ewnas01 smbd[6853]: [2018/07/11 11:35:57.311327, 0] ../lib/util/fault.c:81(fault_report)
Jul 11 11:35:57 ewnas01 smbd[6853]: ===============================================================
Jul 11 11:35:57 ewnas01 smbd[6853]: [2018/07/11 11:35:57.311420, 0] ../source3/lib/util.c:815(smb_panic_s3)
Jul 11 11:35:57 ewnas01 smbd[6853]: PANIC (pid 6853): internal error
Jul 11 11:35:57 ewnas01 smbd[6853]: [2018/07/11 11:35:57.313280, 0] ../source3/lib/util.c:926(log_stack_trace)
Jul 11 11:35:57 ewnas01 smbd[6853]: BACKTRACE: 7 stack frames:
Jul 11 11:35:57 ewnas01 smbd[6853]: #0 0x8046ce0de <log_stack_trace+0x1e> at /usr/local/lib/libsmbconf.so.0
Jul 11 11:35:57 ewnas01 smbd[6853]: #1 0x8046cded8 <smb_panic_s3+0x98> at /usr/local/lib/libsmbconf.so.0
Jul 11 11:35:57 ewnas01 smbd[6853]: #2 0x80211e8a7 <smb_panic+0x27> at /usr/local/lib/libsamba-util.so.0
Jul 11 11:35:57 ewnas01 smbd[6853]: #3 0x80211ee50 <string_sub_once> at /usr/local/lib/libsamba-util.so.0
Jul 11 11:35:57 ewnas01 smbd[6853]: #4 0x80211e873 <fault_setup+0x73> at /usr/local/lib/libsamba-util.so.0
Jul 11 11:35:57 ewnas01 smbd[6853]: #5 0x801cd8946 <pthread_sigmask+0x536> at /lib/libthr.so.3
Jul 11 11:35:57 ewnas01 smbd[6853]: #6 0x801cd7eb2 <pthread_getspecific+0xe12> at /lib/libthr.so.3
Jul 11 11:35:57 ewnas01 smbd[6853]: [2018/07/11 11:35:57.313386, 0] ../source3/lib/dumpcore.c:310(dump_core)
Jul 11 11:35:57 ewnas01 smbd[6853]: unable to change to %N.core
Jul 11 11:35:57 ewnas01 smbd[6853]: refusing to dump core
Jul 11 11:35:57 ewnas01 smbd[58862]: [2018/07/11 11:35:57.318506, 0] ../lib/tdb_wrap/tdb_wrap.c:64(tdb_wrap_log)
Jul 11 11:35:57 ewnas01 smbd[58862]: tdb(/var/db/samba4/gencache_notrans.tdb): allrecord_lock == 0
Jul 11 11:35:59 ewnas01 nmbd[12624]: [2018/07/11 11:35:59.537594, 0] ../lib/util/become_daemon.c:138(daemon_ready)
Jul 11 11:35:59 ewnas01 nmbd[12624]: daemon_ready: STATUS=daemon 'nmbd' finished starting up and ready to serve connections</pthread_getspecific+0xe12></pthread_sigmask+0x536></fault_setup+0x73></string_sub_once></smb_panic+0x27></smb_panic_s3+0x98></log_stack_trace+0x1e>
At 11:35:59 was my Samba restart, after that all worked again, but users have to restart, because they can't reach the shares anymore, quite annoying :(
I have similar trouble: Samba suddenly crashes after several hours usage. Got repeating errors in the system log like:
It seems that in my case the trouble was caused by using a slow (but serviceable, i checked it) USB stick for swap. I reconfigure my XigmaNAS to work w/o swap, and there is no more Samba panics for three days uptime. I think, this may be a common trouble because using the same device for embedded XigmaNAS installation and for swap is the default option in the installer.
Last edit: Migel 2018-11-29