SWAT segfaults when trying to view full configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba |
Won't Fix
|
High
|
|||
samba (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
When running swat on a 32bit 12.04 install, swat segfaults when the user clicks on the "Full View" button in the configuration menu. This only happens on the 32bit install, the 64bit install seems fine.
This was reported to upstream under https:/
swat crashes with the following backtrace (sorry for the missing debug symbols, the samba-dbg package doesn't seem to help gdb getting debug symbols for swat):
(gdb) bt
#0 0xb72340c0 in ?? ()
#1 0xb7d7923c in _talloc_free () from /usr/lib/
#2 0x80215875 in smb_iconv_close ()
#3 0x80204d65 in ?? ()
#4 0x802051d8 in smb_iconv_
#5 0x801f2bf5 in init_iconv ()
#6 0x801f2c32 in lazy_initialize
#7 0x801f35e5 in convert_
#8 0x80074c99 in cgi_load_variables ()
#9 0x80071e3c in main ()
A relatively straightforward way to reproduce the crash in gdb is running gdb swat, and then typing in
GET /viewconfig HTTP/1.1
Authorization: Basic <base64 of user:pass>
then grab the xsrf and xsrf_time values in the form displayed...
GET /viewconfig?
Authorization: Basic <base64 of user:pass>
and the segfault happens.
With the current v3-6-test git HEAD from the samba git, this doesn't happen. The last time this code was touched upstream was in 2009, so I'm not sure a code change caused this.
You cannot reproduce the crash if you start swat with -a to skip the authentication logic, so you need to set up a root password for this to work.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: swat 2:3.6.3-2ubuntu2.3
ProcVersionSign
Uname: Linux 3.2.0-25-
ApportVersion: 2.0.1-0ubuntu8
Architecture: i386
Date: Wed Jun 20 13:41:39 2012
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release i386 (20120424.1)
NmbdLog:
Packet send failed to 10.0.2.255(138) ERRNO=Invalid argument
Packet send failed to 10.0.2.255(138) ERRNO=Invalid argument
OtherFailedConnect: Yes
ProcEnviron:
LANGUAGE=en_IE:en
TERM=linux
PATH=(custom, no user)
LANG=en_IE.UTF-8
SHELL=/bin/bash
SambaServerRegr
SmbConfIncluded: Yes
SourcePackage: samba
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in samba: | |
importance: | Unknown → High |
status: | Unknown → In Progress |
Changed in samba: | |
status: | In Progress → Won't Fix |
Can reproduce with a fresh Precise install from CD and selecting "samba" at the install time.
Can't reproduce installing samba directly, looks like a failure related to the added packages "samba, cifs-utils, smbclient,
smbfs, winbind"
This looks like an auth interaction bug between different packages