Old libtalloc2 version dependency
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Trusty |
New
|
Undecided
|
Unassigned | ||
talloc (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Trusty |
New
|
Undecided
|
Marc Deslauriers |
Bug Description
Description of the problem:
Samba crashes if libtalloc2 is not installed when a share is accessed by a non-Linux system.
Steps to reproduce:
1. Install KUbuntu 14.04.
2. Get a root terminal up and type
apt-get update
apt-get install samba
3. Add the following to end of /etc/samba/smb.conf :
[tmp]
path = /tmp
browseable = yes
read only = no
guest ok = yes
4. Run
service smbd reload
5. Connect to the share using something other than Linux (e.g. Windows 7 Explorer, Windows 2012 Explorer, OS X 10.9.5 Finder).
Expected result:
Contents of /tmp to be displayed.
Actual result:
The client hangs because the samba server has core dumped.
How reproducible is the issue:
It is reproducible every time.
Additional information:
Connecting to the share using Linux (e.g. using smbclient or Nautilus on another system) always works without issue.
Looking in /var/log/
#0 0x00007ff3d014ccc9 in raise () from /lib/x86_
#1 0x00007ff3d01500d8 in abort () from /lib/x86_
#2 0x00007ff3d187d64b in dump_core ()
from /usr/lib/
#3 0x00007ff3d2bed287 in smb_panic_s3 ()
from /usr/lib/
#4 0x00007ff3d39648df in smb_panic ()
from /usr/lib/
#5 0x00007ff3d06ebb5f in _talloc_zero ()
from /usr/lib/
#6 0x00007ff3d06f27b3 in talloc_set_memlimit ()
from /usr/lib/
#7 0x0000000000000000 in ?? ()
Looking in /var/log/
[2016/07/21 11:31:48.763178, 0] ../source3/
talloc: access after free error - first free may be at ../source3/
[2016/07/21 11:31:48.763218, 0] ../source3/
Bad talloc magic value - access after free
[2016/07/21 11:31:48.763222, 0] ../source3/
PANIC (pid 5987): Bad talloc magic value - access after free
[2016/07/21 11:31:48.763833, 0] ../source3/
BACKTRACE: 29 stack frames:
#0 /usr/lib/
#1 /usr/lib/
#2 /usr/lib/
#3 /usr/lib/
#4 /usr/lib/
#5 /usr/lib/
#6 /usr/lib/
#7 /usr/lib/
#8 /usr/lib/
#9 /usr/lib/
#10 /usr/lib/
#11 /usr/lib/
#12 /usr/lib/
#13 /usr/lib/
#14 /usr/lib/
#15 /usr/lib/
#16 /usr/lib/
#17 /usr/lib/
#18 /usr/lib/
#19 /usr/lib/
#20 /usr/lib/
#21 smbd(+0x96b6) [0x7ff3d3ffe6b6]
#22 /usr/lib/
#23 /usr/lib/
#24 /usr/lib/
#25 /usr/lib/
#26 smbd(main+0x15b4) [0x7ff3d3ffc6c4]
#27 /lib/x86_
#28 smbd(+0x7a96) [0x7ff3d3ffca96]
[2016/07/21 11:31:48.763882, 0] ../source3/
smb_panic(): calling panic action [/usr/share/
[2016/07/21 11:31:48.766436, 0] ../source3/
smb_panic(): action returned status 0
[2016/07/21 11:31:48.766470, 0] ../source3/
dumping core in /var/log/
Running
apt-get install libtalloc2
service smbd restart
resolves the problem.
Version information:
Ubuntu 14.04.3 LTS
libsmbclient 2:4.3.9+
libwbclient0 2:4.1.6+
python-samba 2:4.3.9+
samba 2:4.3.9+
samba-common 2:4.3.9+
samba-common-bin 2:4.3.9+
samba-dsdb-modules 2:4.3.9+
samba-libs 2:4.3.9+
samba-vfs-modules 2:4.3.9+
smbclient 2:4.3.9+
summary: |
- Missing libtalloc2 dependency + Missing libtalloc2 version dependency |
summary: |
- Missing libtalloc2 version dependency + Old libtalloc2 version dependency |
Others appear to be seeing the same issue too: https:/ /answers. launchpad. net/ubuntu/ +question/ 291448 .