smbd crashed with SIGABRT in dump_core()/setgroups being passed a -1 group is causing crashes.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba |
Fix Released
|
Unknown
|
|||
samba (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Unassigned | ||
Quantal |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
12.04.2 users cannot share dirs with Samba due to smbd crashing with "sys_setgroups failed".
With 12.04.2 shipping linux-generic-
The fix has been included upstream and is Fix-Released in the current development versions of Ubuntu (Quantal+).
[Test Case]
Right click on a folder, e.g. ~/share, from nautilus, and select to share it.
If prompted to install Samba, do so, then logout/login and start over the test case.
Then run `nautilus-
Type: Windows share,
Server: localhost,
Share: share,
Domain name: WORKGROUP,
User name: your unix username,
Password: your unix password.
and press the [Connect] button. It will fail, and /var/log/
[2013/02/18 12:51:16.500421, 0] lib/util.
PANIC (pid 7594): sys_setgroups failed
[Regression Potential]
Since the bug was fixed upstream, and since Samba is now completely unusable, regressions are not very likely.
[Original bug description]
Sorry for not being of any help here. I don't really know what happened. There was suddenly a report about a system problem. and apport started. just updated a few hours ago.
ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: samba 2:3.6.5-3ubuntu2
ProcVersionSign
Uname: Linux 3.5.0-1-generic i686
ApportVersion: 2.2.5-0ubuntu1
Architecture: i386
CrashCounter: 1
Date: Sun Jun 24 19:37:16 2012
ExecutablePath: /usr/sbin/smbd
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha i386 (20120509)
NmbdLog:
ProcCmdline: smbd -F
ProcEnviron:
PATH=(custom, no user)
TERM=linux
SambaServerRegr
Signal: 6
SmbConfIncluded: Yes
SmbLog:
SourcePackage: samba
StacktraceTop:
raise () from /lib/i386-
abort () from /lib/i386-
dump_core ()
smb_panic ()
?? ()
Title: smbd crashed with SIGABRT in raise()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
WindowsFailedCo
tags: | added: precise |
Changed in samba (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | nobody → TJ (intuitivenipple) |
Changed in samba (Ubuntu): | |
status: | In Progress → Triaged |
assignee: | TJ (intuitivenipple) → nobody |
Changed in samba: | |
status: | Unknown → Fix Released |
description: | updated |
StacktraceTop: entry=0xb747eb6 b "sys_setgroups failed") at lib/util.c:1133 security_ ctx (uid=uid@ entry=65534, gid=gid@ entry=65534, ngroups= ngroups@ entry=1, groups= groups@ entry=0xb94e21f 0) at smbd/sec_ctx.c:250 entry=65534, gid=gid@ entry=65534, ngroups= ngroups@ entry=1, groups=0xb94e21f0, token=0xb94e2228) at smbd/sec_ctx.c:320 to_user_ internal (conn=0xb94eaf70, conn@entry=0x64, session_ info=<optimized out>, vuid=100) at smbd/uid.c:304
dump_core () at lib/fault.c:391
smb_panic (why=why@
set_unix_
set_sec_ctx (uid=uid@
change_