You are not logged in.

#1 2025-05-08 16:20:40

mipi
Member
From: Germany
Registered: 2018-01-03
Posts: 46

Samba server does not start due to core dump

Hi,
I cloned and change my system drive in my file server. After that the Samba server (smb.server) does not start anymore.

systemctl start smb.service

creates a core dump:

1 admin@earth ~ % journalctl -xeu smb.service
Mai 08 18:00:23 earth.de smbd[1389]: [2025/05/08 18:00:23.027948,  0] ../../source3/lib/dumpcore.c:318(dump_core)
Mai 08 18:00:23 earth.de smbd[1389]:   coredump is handled by helper binary specified at /proc/sys/kernel/core_pattern
Mai 08 18:00:23 earth.de smbd[1389]: 
Mai 08 18:00:23 earth.de systemd-coredump[1395]: [?] Process 1389 (smbd) of user 0 dumped core.
                                                 
                                                 Stack trace of thread 1389:
                                                 #0  0x00007d650121c74c n/a (libc.so.6 + 0x9774c)
                                                 #1  0x00007d65011c2dc0 raise (libc.so.6 + 0x3ddc0)
                                                 #2  0x00007d65011aa57a abort (libc.so.6 + 0x2557a)
                                                 #3  0x00007d65016a4c19 dump_core (libsmbconf.so.0 + 0x55c19)
                                                 #4  0x00007d65016a4c75 smb_panic_s3 (libsmbconf.so.0 + 0x55c75)
                                                 #5  0x00007d65013ee9d7 smb_panic (libgenrand-private-samba.so + 0x29d7)
                                                 #6  0x00007d65013eea81 n/a (libgenrand-private-samba.so + 0x2a81)
                                                 #7  0x00007d65011c2ef0 n/a (libc.so.6 + 0x3def0)
                                                 #8  0x00007d65012f0fd5 n/a (libc.so.6 + 0x16bfd5)
                                                 #9  0x00007d6500e55807 n/a (libtdb.so.1 + 0x6807)
                                                 #10 0x00007d6500e55da0 n/a (libtdb.so.1 + 0x6da0)
                                                 #11 0x00007d6500e5ee5f tdb_open_ex (libtdb.so.1 + 0xfe5f)
                                                 #12 0x00007d65009d4471 tdb_wrap_open (libtdb-wrap-private-samba.so + 0x1471)
                                                 #13 0x00007d65016ac1ce n/a (libsmbconf.so.0 + 0x5d1ce)
                                                 #14 0x00007d65016ad477 gencache_parse (libsmbconf.so.0 + 0x5e477)
                                                 #15 0x00007d65016ae4c7 idmap_cache_find_xid2sid (libsmbconf.so.0 + 0x5f4c7)
                                                 #16 0x00007d650159668c xid_to_sid (libsamba-passdb.so.0 + 0x2e68c)
                                                 #17 0x00007d6501596a2f gid_to_sid (libsamba-passdb.so.0 + 0x2ea2f)
                                                 #18 0x00007d65013d6021 n/a (libauth-private-samba.so + 0x16021)
                                                 #19 0x00007d65013d996f create_local_nt_token_from_info3 (libauth-private-samba.so + 0x199>
                                                 #20 0x00007d65013d4c13 n/a (libauth-private-samba.so + 0x14c13)
                                                 #21 0x00007d65013dba22 n/a (libauth-private-samba.so + 0x1ba22)
                                                 #22 0x00007d65013d4240 init_guest_session_info (libauth-private-samba.so + 0x14240)
                                                 #23 0x000055d177e2b7e3 main (/usr/bin/smbd + 0x57e3)
                                                 #24 0x00007d65011ac6b5 n/a (libc.so.6 + 0x276b5)
                                                 #25 0x00007d65011ac769 __libc_start_main (libc.so.6 + 0x27769)
                                                 #26 0x000055d177e2d235 _start (/usr/bin/smbd + 0x7235)
                                                 ELF object binary architecture: AMD x86-64
░░ Subject: Speicherabbild für Prozess 1389 (smbd) generiert
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ Documentation: man:core(5)
░░ 
░░ Prozess 1389 (smbd) ist abgebrochen worden und
░░ ein Speicherabbild wurde generiert.
░░ 
░░ Üblicherweise ist dies ein Hinweis auf einen Programmfehler und sollte
░░ als Fehler dem jeweiligen Hersteller gemeldet werden.
Mai 08 18:00:23 earth.de systemd[1]: smb.service: Main process exited, code=dumped, status=6/ABRT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit smb.service has exited.
░░ 
░░ The process' exit code is 'dumped' and its exit status is 6.
Mai 08 18:00:23 earth.de systemd[1]: smb.service: Failed with result 'core-dump'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit smb.service has entered the 'failed' state with result 'core-dump'.
Mai 08 18:00:23 earth.de systemd[1]: Failed to start Samba SMB Daemon.
░░ Subject: A start job for unit smb.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit smb.service has finished with a failure.
░░ 
░░ The job identifier is 2428 and the job result is failed.
lines 271-336/336 (END)

I have no clue what I can do. Any idea?

Thanks, mipi

Offline

#2 2025-05-08 17:01:11

mipi
Member
From: Germany
Registered: 2018-01-03
Posts: 46

Re: Samba server does not start due to core dump

There's another interesting message:

Mai 08 18:55:42 earth.de kernel: BTRFS error (device nvme0n1p2): unable to fixup (regular) error at logical 181388902400 on dev /dev/nvme0n1p2 physical 181388902400

The ssd that I cloned has a partition with Btrfs.

Last edited by mipi (2025-05-08 17:01:38)

Offline

#3 2025-05-08 21:31:57

seth
Member
Registered: 2012-09-03
Posts: 64,189

Re: Samba server does not start due to core dump

Please never use "-x", it's effectively spam.
smbd aborts, looks like a malformed config - typically you'll also get  an error message about what it doesn't like if you run it from an interactive shell and there's also https://man.archlinux.org/man/testparm.1

The filesystem error could be related iff that's the relevant partition and samba used libraries or its config file cover the compromised block
https://man.archlinux.org/man/btrfs-ins … al.8#inode - I guess…
https://wiki.archlinux.org/title/Btrfs#btrfs_check

Offline

Board footer

Powered by FluxBB