Recently I've got a SMB server (v4.6.2) set up on CentOS 7.3, kernel 3.10.0-957.21.3.el7.x86_64. In this set up, I have a windows server permanently mapped to the the my SMB server and in the windows server I have a program to constantly delete files after the files are downloaded to the windows server. In my CentOS 7.3 (Same server running the SMB server), I have a program to constantly generate and move files to the SMB server share folder for the windows server to pick up the file.
Upon this set up, I realized that I have a huge file (100GB or more) named "core.<PID>" (not a file name I would generate) appearing every 2-4 days on the SMB server share directory in CentOS 7.3. With this, I proceeded to look the logs in both log.smbd and var/log/messages and this is what was recorded:
In log.smbd:
Code: Select all
smbd_cleanupd_unlock: Cleaning up brl and lock database after unclean shutdown
[2020/09/27 04:15:37.675693, 0] ../source3/lib/popt_common.c:67(popt_s3_talloc_log_fn)
[2020/09/22 04:15:37.676301, 0] ../source3/lib/util.c:791(smb_panic_s3)
[2020/09/22 04:15:37.676640, 0] ../source3/lib/util.c:902(log_stack_trace)
[2020/09/22 04:15:37.676721, 0] ../source3/lib/util_nttoken.c:44(dup_nt_token)
[2020/09/22 04:15:37.676788, 0] ../source3/smbd/sec_ctx.c:226(push_sec_ctx)
[2020/09/22 04:15:37.676845, 0] ../source3/lib/util.c:791(smb_panic_s3)
[2020/09/22 04:15:37.676904, 0] ../source3/lib/util.c:902(log_stack_trace)
[2020/09/22 04:15:37.676963, 0] ../source3/lib/dumpcore.c:273(dump_core)
[2020/09/22 04:15:37.678843, 0] ../source3/lib/popt_common.c:67(popt_s3_talloc_log_fn)
Bad talloc magic value - unknown value
[2020/09/22 04:15:37.678988, 0] ../source3/lib/util.c:791(smb_panic_s3)
PANIC (pid 13296): Bad talloc magic value - unknown value
[2020/09/22 04:15:37.679051, 0] ../source3/lib/util.c:902(log_stack_trace)
BACKTRACE: 0 stack frames:
[2020/09/22 04:15:37.793060, 1] ../source3/smbd/server.c:868(remove_child_pid)
Scheduled cleanup of brl and lock database after unclean shutdown
Code: Select all
Sep 22 04:15:37 localhost journal: out of memory [13296]
Sep 22 04:15:37 localhost journal: out of memory [13296]
Sep 22 04:15:37 localhost journal: out of memory [13296]
Sep 22 04:15:37 localhost journal: out of memory [13296]
Sep 22 04:15:37 localhost journal: out of memory [13296]
Sep 22 04:15:37 localhost journal: out of memory [13296]
Sep 22 04:15:37 localhost journal: out of memory [13296]
Sep 22 04:15:37 localhost journal: out of memory [13296]
Sep 22 04:15:37 localhost journal: out of memory [13296]
Sep 22 04:15:37 localhost smbd[13296]: [2020/09/22 04:15:37.478563, 0] ../source3/lib/popt_common.c:67(popt_s3_talloc_log_fn)
Sep 22 04:15:37 localhost smbd[13296]: Bad talloc magic value - unknown value
Sep 22 04:15:37 localhost smbd[13296]: [2020/09/22 04:15:37.478722, 0] ../source3/lib/util.c:791(smb_panic_s3)
Sep 22 04:15:37 localhost smbd[13296]: PANIC (pid 13296): Bad talloc magic value - unknown value
Sep 22 04:15:37 localhost smbd[13296]: [2020/09/22 04:15:37.478770, 0] ../source3/lib/util.c:902(log_stack_trace)
Sep 22 04:15:37 localhost smbd[13296]: BACKTRACE: 0 stack frames:
Sep 22 04:15:37 localhost smbd[13296]: [2020/09/22 04:15:37.478819, 0] ../source3/lib/dumpcore.c:273(dump_core)
Sep 22 04:15:37 localhost smbd[13296]: dump_core() called recursive