[Pkg-samba-maint] Bug#1089853: samba: segmentation fault with wrong interface
Mrten
mrten_debianbug at ii.nl
Sat Dec 14 00:30:19 GMT 2024
Package: samba
Version: 2:4.17.12+dfsg-0+deb12u1
Severity: normal
Dear Maintainer,
* What led up to the situation?
a reboot changed the name of the interface, then it took me a while
to notice that samba wasn't up.
when investigating, i discovered that a wrong interface name
segfaults samba, there is a mail with a stacktrace:
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f601987eb93 in __GI___wait4 (pid=1273892,
stat_loc=stat_loc at entry=0x7ffce3c6db78, options=options at entry=0,
usage=usage at entry=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
#0 0x00007f601987eb93 in __GI___wait4 (pid=1273892,
stat_loc=stat_loc at entry=0x7ffce3c6db78, options=options at entry=0,
usage=usage at entry=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
#1 0x00007f601987eb57 in __GI___waitpid (pid=<optimized out>,
stat_loc=stat_loc at entry=0x7ffce3c6db78, options=options at entry=0) at
./posix/waitpid.c:38
#2 0x00007f60197f72fb in do_system (line=<optimized out>) at
../sysdeps/posix/system.c:171
#3 0x00007f6019d109c7 in smb_panic_s3 () from
/lib/x86_64-linux-gnu/libsmbconf.so.0
#4 0x00007f60199ee7ca in smb_panic () from
/usr/lib/x86_64-linux-gnu/samba/libgenrand-samba4.so.0
#5 0x00007f6019e5a57a in ?? () from
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0
#6 0x00007f6019e5a9f3 in smbd_exit_server () from
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0
#7 0x00007f60199f3264 in exit_server () from
/usr/lib/x86_64-linux-gnu/samba/libsmbd-shim-samba4.so.0
#8 0x000055ed5a1ae3bf in main ()
A debugging session is active.
Inferior 1 [process 1273888] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (process 1273888) detached]
if I change the interfaces = line to the correct interface name no crash
occurs.
also, the mail refers to the samba-dbgsym package, which does not
exist for me:
If the problem persists, you are encouraged to first install the
samba-dbgsym package, which contains the debugging symbols for the
Samba binaries. Then submit the provided information as a bug report to
Debian. For information about the procedure for submitting bug
reports, please see http://www.debian.org/Bugs/Reporting or the reportbug(1)
manual page.
-- Package-specific info:
* /etc/samba/smb.conf present, and attached
* /var/lib/samba/dhcp.conf present, and attached
-- System Information:
Debian Release: 12.8
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-28-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_USER, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages samba depends on:
ii init-system-helpers 1.65.2
ii libbsd0 0.11.7-2
ii libc6 2.36-9+deb12u9
ii libcups2 2.4.2-3+deb12u8
ii libgnutls30 3.7.9-2+deb12u3
ii libldap-2.5-0 2.5.13+dfsg-5
ii libldb2 2:2.6.2+samba4.17.12+dfsg-0+deb12u1
ii libpam-modules 1.5.2-6+deb12u1
ii libpam-runtime 1.5.2-6+deb12u1
ii libpopt0 1.19+dfsg-1
ii libtalloc2 2.4.0-f2
ii libtasn1-6 4.19.0-2
ii libtdb1 1.4.8-2
ii libtevent0 0.14.1-1
ii passwd 1:4.13+dfsg1-1+b1
ii procps 2:4.0.2-3
ii python3 3.11.2-1+b1
ii python3-dnspython 2.3.0-1
ii python3-samba 2:4.17.12+dfsg-0+deb12u1
ii samba-common 2:4.17.12+dfsg-0+deb12u1
ii samba-common-bin 2:4.17.12+dfsg-0+deb12u1
ii samba-libs 2:4.17.12+dfsg-0+deb12u1
ii tdb-tools 1.4.8-2
Versions of packages samba recommends:
ii attr 1:2.5.1-4
ii logrotate 3.21.0-1
ii python3-markdown 3.4.1-2
ii samba-ad-provision 2:4.17.12+dfsg-0+deb12u1
ii samba-dsdb-modules 2:4.17.12+dfsg-0+deb12u1
ii samba-vfs-modules 2:4.17.12+dfsg-0+deb12u1
Versions of packages samba suggests:
pn bind9 <none>
pn bind9utils <none>
ii chrony 4.3-2+deb12u1
pn ctdb <none>
pn ldb-tools <none>
pn ufw <none>
pn winbind <none>
-- no debconf information
-------------- next part --------------
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = L13
#### Networking ####
# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
; interfaces = 127.0.0.0/8 eth0
; interfaces = 192.168.27.71 127.0.0.1
interfaces = enp3s0
# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself. However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
bind interfaces only = yes
#### Debugging/Accounting ####
# This tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m
# Cap the size of the individual log files (in KiB).
max log size = 1000
# We want Samba to only log to /var/log/samba/log.{smbd,nmbd}.
# Append syslog at 1 if you want important messages to be sent to syslog too.
logging = file
# Do something sensible when Samba crashes: mail the admin a backtrace
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller".
#
# Most people will want "standalone server" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.
server role = standalone server
obey pam restrictions = yes
# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
unix password sync = yes
# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan at informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
pam password change = yes
# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
map to guest = bad user
############ Misc ############
# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
; include = /home/samba/etc/smb.conf.%m
# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
; idmap config * : backend = tdb
; idmap config * : range = 3000-7999
; idmap config YOURDOMAINHERE : backend = tdb
; idmap config YOURDOMAINHERE : range = 100000-999999
; template shell = /bin/bash
# Setup usershare options to enable non-root users to share folders
# with the net usershare command.
# Maximum number of usershare. 0 means that usershare is disabled.
# usershare max shares = 100
# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
# usershare allow guests = yes
#======================= Share Definitions =======================
[homes]
comment = Home Directories
browseable = no
# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
read only = yes
# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
create mask = 0700
# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
directory mask = 0700
# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# The following parameter makes sure that only "username" can connect
# to \\server\username
# This might need tweaking when using external authentication schemes
valid users = %S
# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; read only = yes
[tmp]
path = /home/samba
writable = yes
force user = samba
guest ok = yes
[TimeMachine-bugs]
path = /timemachine/timemachine/bugs
browseable = yes
writable = yes
valid users = tm-bugs
fruit:time machine = yes
fruit:time machine max size = 1T
vfs objects = catia fruit streams_xattr
block size = 1024
[TimeMachine-pinkpanther]
path = /timemachine/timemachine/pinkpanther
browseable = yes
writable = yes
valid users = tm-pinkpanther
fruit:time machine = yes
fruit:time machine max size = 500G
vfs objects = catia fruit streams_xattr
block size = 1024
[TimeMachine-nachtvleugel]
path = /timemachine/timemachine/nachtvleugel
browseable = yes
writable = yes
valid users = tm-nachtvleugel
fruit:time machine = yes
fruit:time machine max size = 500G
vfs objects = catia fruit streams_xattr
block size = 1024
More information about the Pkg-samba-maint
mailing list