segmentation fault in wpa_supplicant

Christian Hesse list
Tue Apr 28 04:06:51 PDT 2015


Hello everybody,

I am suffering a segmentation fault in wpa_supplicant (2.4 and git master)
when started with DBus control interface (command option -u). Probably the
problem only exists for drivers that use a management interface. The log looks
like this:

wpa_supplicant[1629]: Could not read interface p2p-dev-wl flags: No such
device
wpa_supplicant[1629]: process 1629: arguments to
dbus_message_iter_append_basic() were incorrect, assertion
"_dbus_check_is_valid_path (*string_p)" failed in file dbus-message.c line
2681.
wpa_supplicant[1629]: This is normally a bug in some application using the
D-Bus library.
wpa_supplicant[1629]: D-Bus not built with -rdynamic so unable to print a
backtrace
systemd-coredump[1767]: Process 1629 (wpa_supplicant) of user 0 dumped core.

I bisected the code and found the bad commit:

> commit 21efc940f6e7f07b84b7e5c5867f3d81594c4fb0
> Author: Tomasz Bursztyka <tomasz.bursztyka at linux.intel.com>
> Date: Thu Oct 23 11:31:19 2014 +0300
>
> wpa_supplicant: Do not register a P2P management interface on DBus
>
> DBus client should always request the proper netdev interface. This will
> be necessary to get a consistent behavior whatever driver is in use:
> iwlwifi (which requires a P2P mgmt dev), ath9/10k (which does not),
> etc...

Reverting this commit fixes the problem. (Though the message about flags
persists.)

The issue has been reported to Arch Linux bug tracker:
https://bugs.archlinux.org/task/44740
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Chris           get my mail address:    */=0;b=c[a++];)
putchar(b-1/(/*               gcc -o sig sig.c && ./sig    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20150428/13f2be23/attachment.pgp>



More information about the Hostap mailing list