wpa_supplicant crashes in: wpa_supplicant_dbus_notify_state_change (wpa_s=)

Bug #91676 reported by Vicente Ruiz
20
Affects Status Importance Assigned to Milestone
wpa_supplicant
Fix Released
Medium
wpasupplicant (Ubuntu)
Fix Released
Medium
Reinhard Tartler

Bug Description

Binary package hint: wpasupplicant

wpa_supplicant crash when i execute manually:

sudo wpa_supplicant -Dwext -ieth1 -cwpa.conf

Command output:

vruiz@SamsungX05:~/Desktop/Revisar$ sudo wpa_supplicant -Dwext -ieth1 -cwpa.conf
Password:
bind(PF_UNIX): Address already in use
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/eth1' manually if it is not used anymore
Failed to initialize control interface '/var/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

Fallo de segmentación (core dumped)
vruiz@SamsungX05:~/Desktop/Revisar$

If i kill wpa_supplicant process and i execute it newly, wpa_supplicant works correctly.

More info:
 -> Ubuntu : Feisty Herd5
 -> Kernel : 2.6.20-9-generic
 -> Interface : Intel Corporation PRO/Wireless LAN 2100 3B Mini PCI Adapter
 -> wpa.conf :
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
network={
   ssid="cviugr-v2"
 key_mgmt=WPA-EAP
 proto=WPA
 eap=TTLS
 <email address hidden>"
 <email address hidden>"
 password="xxxxxx"
 priority=2
 phase2="auth=PAP"
}

ProblemType: Crash
Architecture: i386
Date: Mon Mar 12 12:49:41 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /sbin/wpa_supplicant
Package: wpasupplicant 0.5.5-4
PackageArchitecture: i386
ProcCmdline: wpa_supplicant -Dwext -ieth1 -cwpa.conf
ProcCwd: /home/vruiz/Desktop/Revisar
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=es_ES.UTF-8
Signal: 11
SourcePackage: wpasupplicant
Stacktrace: #0 0x0806a19a in ?? ()
StacktraceTop: ?? ()
ThreadStacktrace:

Uname: Linux SamsungX05 2.6.20-9-generic #2 SMP Mon Feb 26 03:01:44 UTC 2007 i686 GNU/Linux
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin netdev plugdev powerdev scanner video

Revision history for this message
Vicente Ruiz (uve) wrote :
Revision history for this message
Vicente Ruiz (uve) wrote :
Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks for your bug report.

Changed in wpasupplicant:
importance: Undecided → Medium
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:wpa_supplicant_dbus_notify_state_change (wpa_s=) at ctrl_iface_dbus.c:652

description: updated
Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Changed in wpasupplicant:
status: Unknown → Fix Released
Revision history for this message
Reinhard Tartler (siretart) wrote :

okay, so this seems to be fixed in upstream 0.5.7, feisty currently ships with 0.5.5. feisty+1 will ship the 0.6 wpa_supplicant branch. Unsure if we should upgrade wpa_supplicant in feisty for this bug, will ask the Release Managers

Changed in wpasupplicant:
status: Unconfirmed → Confirmed
Revision history for this message
Reinhard Tartler (siretart) wrote :

As requested by Mithrandir, here a changelog.diff

Revision history for this message
Reinhard Tartler (siretart) wrote :

and here a diffstat

Revision history for this message
Reinhard Tartler (siretart) wrote :

NB: according to http://hostap.epitest.fi/wpa_supplicant/ version 0.5.7 is the latest stable release which upstream recommends for distribution. New features and testbed is the 0.6 branch, which is available from e.g. debian/experimental. The diffstat may seem rather big, this is because 0.5.5 was still a development release, which got testing and heavy bugfixing. Nevertheless, 0.5.5 works for most use cases. Apart from the reported crashes here, of course.

Revision history for this message
Reinhard Tartler (siretart) wrote :

seting to needs info because I need approval from an Release Manager for this Upload

Changed in wpasupplicant:
assignee: nobody → siretart
status: Confirmed → Needs Info
Revision history for this message
Reinhard Tartler (siretart) wrote :

here a debdiff:
>> debdiff wpasupplicant_0.5.5-4.dsc wpasupplicant_0.5.7-0ubuntu1.dsc P diffstat :0.0
dpkg-source: warning: extracting unsigned source package (/srv/scratch/packages/wpasupplicant/ubuntu/wpasupplicant_0.5.7-0ubuntu1.dsc)
 aes.h | 25
 bignum.c | 230 +++
 bignum.h | 38
 crypto_internal.c | 670 ++++++++++
 debian/changelog | 6
 debian/control | 3
 des.c | 476 +++++++
 libtommath.c | 2370 ++++++++++++++++++++++++++++++++++++
 openssl-0.9.8d-tls-extensions.patch | 429 ++++++
 os_internal.c | 441 ++++++
 rsa.c | 359 +++++
 rsa.h | 29
 tests/test_x509v3.c | 69 +
 vs2005/eapol_test/eapol_test.vcproj | 365 +++++
 14 files changed, 5509 insertions(+), 1 deletion(-)

Revision history for this message
Reinhard Tartler (siretart) wrote :

10:05:47 < Mithrandir> siretart: looks good to me, go ahead.

Changed in wpasupplicant:
status: Needs Info → In Progress
Revision history for this message
Reinhard Tartler (siretart) wrote :

Launchpad-Bugs-Fixed: 91676
Changes:
 wpasupplicant (0.5.7-0ubuntu1) feisty; urgency=low
 .
   * New upstream release
     * fixed dbus ctrl_iface to validate message interface before
       dispatching to avoid a possible segfault [Bug 190] / LP: #91676
       (UVF exception granted by Mithrandir)

Changed in wpasupplicant:
status: In Progress → Fix Released
Changed in wpasupplicant:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.