Bug 680573

Summary: wpa_gui crashes at startup
Product: [openSUSE] openSUSE 11.4 Reporter: Harald Koenig <koenig>
Component: NetworkAssignee: Vladimir Botka <vbotka>
Status: VERIFIED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: meissner
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Harald Koenig 2011-03-17 17:31:48 UTC
wpa_gui output and gdb backtrace:

GLib-GIO:ERROR:gdbusconnection.c:2279:initable_init: assertion failed: (connection->initialization_error == NULL)
[New Thread 0x7ffff19fb700 (LWP 13660)]

Program received signal SIGABRT, Aborted.
0x00007ffff6236ab5 in raise () from /lib64/libc.so.6
(gdb) where
#0  0x00007ffff6236ab5 in raise () from /lib64/libc.so.6
#1  0x00007ffff6237fb6 in abort () from /lib64/libc.so.6
#2  0x00007ffff5f7d5b2 in g_assertion_message () from /lib64/libglib-2.0.so.0
#3  0x00007ffff5f7db40 in g_assertion_message_expr ()
   from /lib64/libglib-2.0.so.0
#4  0x00007ffff2356f45 in ?? () from /lib64/libgio-2.0.so.0
#5  0x00007ffff2357841 in g_bus_get_sync () from /lib64/libgio-2.0.so.0
#6  0x00007ffff25ed15d in ?? () from /usr/lib64/libgconf-2.so.4
#7  0x00007ffff25ed3f2 in gconf_activate_server ()
   from /usr/lib64/libgconf-2.so.4
#8  0x00007ffff25f6e44 in ?? () from /usr/lib64/libgconf-2.so.4
#9  0x00007ffff25f7542 in ?? () from /usr/lib64/libgconf-2.so.4
#10 0x00007ffff25f7941 in ?? () from /usr/lib64/libgconf-2.so.4
#11 0x00007ffff25fa952 in gconf_engine_get_fuller ()
   from /usr/lib64/libgconf-2.so.4
#12 0x00007ffff25facfc in gconf_engine_get_entry ()
   from /usr/lib64/libgconf-2.so.4
#13 0x00007ffff25fd99e in ?? () from /usr/lib64/libgconf-2.so.4
#14 0x00007ffff260003d in ?? () from /usr/lib64/libgconf-2.so.4
#15 0x00007ffff2600633 in gconf_client_get_bool ()
   from /usr/lib64/libgconf-2.so.4
#16 0x00007ffff768b35c in ?? () from /usr/lib64/libQtGui.so.4
#17 0x00007ffff7386e1e in ?? () from /usr/lib64/libQtGui.so.4
#18 0x00007ffff7311e35 in QApplicationPrivate::construct(_XDisplay*, unsigned long, unsigned long) () from /usr/lib64/libQtGui.so.4
#19 0x00007ffff7312721 in QApplication::QApplication(int&, char**, int) ()
   from /usr/lib64/libQtGui.so.4
#20 0x000000000040d0ee in ?? ()
#21 0x000000000040d132 in ?? ()
#22 0x00007ffff6222bfd in __libc_start_main () from /lib64/libc.so.6
#23 0x000000000040ca89 in ?? ()
#24 0x00007fffffffd958 in ?? ()
#25 0x000000000000001c in ?? ()
#26 0x0000000000000001 in ?? ()
#27 0x00007fffffffdec6 in ?? ()
#28 0x0000000000000000 in ?? ()
(gdb) q
A debugging session is active.



strace output (tail):

16241 poll([{fd=8, events=POLLOUT}], 1, -1) = 1 ([{fd=8, revents=POLLOUT}])
16241 sendto(8, "AUTH\r\n", 6, MSG_NOSIGNAL, NULL, 0) = 6
16241 poll([{fd=8, events=POLLIN}], 1, -1) = 1 ([{fd=8, revents=POLLIN}])
16241 recvfrom(8, "REJECTED EXTERNAL DBUS_COOKIE_SH"..., 4096, 0, NULL, NULL) = 46
16241 poll([{fd=8, events=POLLOUT}], 1, -1) = 1 ([{fd=8, revents=POLLOUT}])
16241 sendto(8, "AUTH EXTERNAL 30\r\n", 18, MSG_NOSIGNAL, NULL, 0) = 18
16241 poll([{fd=8, events=POLLIN}], 1, -1) = 1 ([{fd=8, revents=POLLIN}])
16241 recvfrom(8, "OK 934a97b5c138ab1fd7c15bcd00000"..., 4096, 0, NULL, NULL) = 37
16241 poll([{fd=8, events=POLLOUT}], 1, -1) = 1 ([{fd=8, revents=POLLOUT}])
16241 sendto(8, "NEGOTIATE_UNIX_FD\r\n", 19, MSG_NOSIGNAL, NULL, 0) = 19
16241 poll([{fd=8, events=POLLIN}], 1, -1) = 1 ([{fd=8, revents=POLLIN}])
16241 recvfrom(8, "AGREE_UNIX_FD\r\n", 4096, 0, NULL, NULL) = 15
16241 poll([{fd=8, events=POLLOUT}], 1, -1) = 1 ([{fd=8, revents=POLLOUT}])
16241 sendto(8, "BEGIN\r\n", 7, MSG_NOSIGNAL, NULL, 0) = 7
16241 pipe2([9, 10], O_CLOEXEC)         = 0
16241 sched_get_priority_min(SCHED_OTHER) = 0
16241 sched_get_priority_max(SCHED_OTHER) = 0
16241 mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f7a78420000
16241 mprotect(0x7f7a78420000, 4096, PROT_NONE) = 0
16241 clone(child_stack=0x7f7a78c1ff90, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f7a78c209d0, tls=0x7f7a78c20700, child_tidptr=0x7f7a78c209d0) = 16242
16241 sched_yield( <unfinished ...>
16242 set_robust_list(0x7f7a78c209e0, 0x18 <unfinished ...>
16241 <... sched_yield resumed> )       = 0
16242 <... set_robust_list resumed> )   = 0
16241 sched_yield( <unfinished ...>
16242 poll([{fd=9, events=POLLIN}], 1, 0 <unfinished ...>
16241 <... sched_yield resumed> )       = 0
16242 <... poll resumed> )              = 0 (Timeout)
16241 sched_yield( <unfinished ...>
16242 poll([{fd=8, events=POLLIN}], 1, 0 <unfinished ...>
16241 <... sched_yield resumed> )       = 0
16242 <... poll resumed> )              = 1 ([{fd=8, revents=POLLIN|POLLHUP}])
16241 sched_yield( <unfinished ...>
16242 recvmsg(8,  <unfinished ...>
16241 <... sched_yield resumed> )       = 0
16242 <... recvmsg resumed> {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16}], msg_controllen=0, msg_flags=0}, 0) = 0
16241 sched_yield( <unfinished ...>
16242 poll([{fd=9, events=POLLIN}], 1, 0 <unfinished ...>
16241 <... sched_yield resumed> )       = 0
16242 <... poll resumed> )              = 0 (Timeout)
16241 pipe2( <unfinished ...>
16242 poll([{fd=9, events=POLLIN}], 1, -1 <unfinished ...>
16241 <... pipe2 resumed> [11, 12], O_CLOEXEC) = 0
16241 poll([{fd=11, events=POLLIN}], 1, 0) = 0 (Timeout)
16241 close(11)                         = 0
16241 close(12)                         = 0
16241 write(2, "**\nGLib-GIO:ERROR:gdbusconnectio"..., 117) = 117
16241 rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
16241 tgkill(16241, 16241, SIGABRT)     = 0
16241 --- SIGABRT (Aborted) @ 0 (0) ---
16242 +++ killed by SIGABRT (core dumped) +++
Comment 1 Marcus Meissner 2011-03-18 07:30:46 UTC
is the session dbus perhaps not running? hmm
Comment 2 Harald Koenig 2011-03-18 09:43:32 UTC
(In reply to comment #1)
> is the session dbus perhaps not running? hmm

more information: I'm running xfce4 -- but no, dbus seems to run:

harald > ps uax |grep dbus
harald    2389  0.0  0.0   6608   820 pts/4    S+   10:40   0:00 grep dbus
100       2776  0.0  0.0  28600  2028 ?        Ss   Mar17   0:29 /bin/dbus-daemon --system
harald    7222  0.0  0.0  15764   600 ?        S    Mar17   0:00 dbus-launch --sh-syntax --exit-with-session
harald    7224  0.0  0.0  21132  2104 ?        Ss   Mar17   0:01 /bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
Comment 3 Vladimir Botka 2011-03-21 21:01:31 UTC
I'm not able to reproduce. wpa_gui is working fine in xfce. The wpa_gui is installed in /usr/sbin, but shall be run as user. Set ctrl_interface-group=users in wpa_supplicant.conf and run wpa_supplicant as root.
Comment 4 Vladimir Botka 2011-03-21 21:02:17 UTC
Can you run wpa_gui as user ?
Comment 5 Harald Koenig 2011-03-24 15:20:05 UTC
(In reply to comment #3)
> I'm not able to reproduce. wpa_gui is working fine in xfce. The wpa_gui is
> installed in /usr/sbin, but shall be run as user. Set
> ctrl_interface-group=users in wpa_supplicant.conf and run wpa_supplicant as
> root.

(In reply to comment #4)
> Can you run wpa_gui as user ?

wpa_gui starts up as normal user, but adapter selection is empty, scan does not work, ... , so it's not really working at all (same in 11.3).

one more data point:  I just noticed, that starting emacs in a "su" xterm session as root crashes too (while xclock or xterm start fine in the same su-root xterm).

gdb bactrace:

Program received signal SIGABRT, Aborted.
0x00007ffff385edb7 in kill () from /lib64/libc.so.6
(gdb) where
#0  0x00007ffff385edb7 in kill () from /lib64/libc.so.6
#1  0x00000000004e2ff5 in abort ()
#2  0x00007ffff64b35b2 in g_assertion_message () from /lib64/libglib-2.0.so.0
#3  0x00007ffff64b3b40 in g_assertion_message_expr () from /lib64/libglib-2.0.so.0
#4  0x00007ffff2cbef45 in ?? () from /lib64/libgio-2.0.so.0
#5  0x00007ffff2cbf841 in g_bus_get_sync () from /lib64/libgio-2.0.so.0
#6  0x00007ffff41fb15d in ?? () from /usr/lib64/libgconf-2.so.4
#7  0x00007ffff41fb3f2 in gconf_activate_server () from /usr/lib64/libgconf-2.so.4
#8  0x00007ffff4204e44 in ?? () from /usr/lib64/libgconf-2.so.4
#9  0x00007ffff4205542 in ?? () from /usr/lib64/libgconf-2.so.4
#10 0x00007ffff4205941 in ?? () from /usr/lib64/libgconf-2.so.4
#11 0x00007ffff4208952 in gconf_engine_get_fuller () from /usr/lib64/libgconf-2.so.4
#12 0x00007ffff4208cfc in gconf_engine_get_entry () from /usr/lib64/libgconf-2.so.4
#13 0x00007ffff420b99e in ?? () from /usr/lib64/libgconf-2.so.4
#14 0x00007ffff420e03d in ?? () from /usr/lib64/libgconf-2.so.4
#15 0x00007ffff420e783 in gconf_client_get_string () from /usr/lib64/libgconf-2.so.4
#16 0x00000000004d19e9 in ?? ()
#17 0x00000000004a64d8 in ?? ()
#18 0x00000000004b2cc7 in ?? ()
#19 0x000000000055bcce in ?? ()
#20 0x00000000005965b5 in ?? ()
#21 0x000000000055de0d in ?? ()
#22 0x000000000055ba12 in ?? ()
#23 0x00000000005965b5 in ?? ()
#24 0x000000000055d90d in ?? ()
#25 0x000000000055e55e in ?? ()
#26 0x00000000005956b2 in ?? ()
#27 0x000000000055de0d in ?? ()
#28 0x000000000055ba12 in ?? ()
#29 0x00000000005965b5 in ?? ()
#30 0x000000000055de0d in ?? ()
#31 0x000000000055dfa6 in ?? ()
#32 0x000000000055d5c3 in ?? ()
#33 0x00000000004eb3f0 in ?? ()
#34 0x000000000055ae7f in ?? ()
#35 0x00000000004ee94e in ?? ()
#36 0x000000000055af97 in ?? ()
#37 0x00000000004ee9e8 in ?? ()
#38 0x00000000004eee1c in ?? ()
#39 0x00000000004eef94 in ?? ()
#40 0x00000000004e40ef in ?? ()
#41 0x00007ffff384abfd in __libc_start_main () from /lib64/libc.so.6
#42 0x0000000000414179 in ?? ()
#43 0x00007fffffffd958 in ?? ()
#44 0x000000000000001c in ?? ()
#45 0x0000000000000001 in ?? ()
#46 0x00007fffffffdec3 in ?? ()
#47 0x0000000000000000 in ?? ()
(gdb) Mar 24 16:14:08 harald su: (to root) harald on /dev/pts/4
Comment 6 Vladimir Botka 2011-03-24 19:26:12 UTC
(In reply to comment #5)
> wpa_gui starts up as normal user, but adapter selection is empty, scan does not
> work, ... , so it's not really working at all (same in 11.3).

Is wpa_supplicant running ?  Would it be possible to post the output of the command "ps -aux | grep wpa" ? How to run wpa_gui  can be found here [1].

[1] http://en.opensuse.org/SDB:WiFi#wpa_gui

It would be good to open a separate bug report for the xterm/emacs problem.
Comment 7 Harald Koenig 2011-03-25 08:21:34 UTC
(In reply to comment #6)

> Is wpa_supplicant running ?  Would it be possible to post the output of the
> command "ps -aux | grep wpa" ? How to run wpa_gui  can be found here [1].

sure:

harald > ps -aux | grep wpa
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root     28575  0.0  0.0  26512   972 ?        Ss   09:04   0:00 wpa_supplicant -iwlan0 -c/var/run/wpa_supplicant-wlan0.conf -Dnl80211 -P/var/run/wpa_supplicant/wlan0.pid -B
root     31106  0.0  0.0   6612   572 pts/0    S+   09:05   0:00 grep wpa

> [1] http://en.opensuse.org/SDB:WiFi#wpa_gui

using wpa_gui was no problem up to 11.3 -- upgrade to 11.3 broke my setup.

> It would be good to open a separate bug report for the xterm/emacs problem.

ACK: #682563

just for the record, now knowing about that emacs-gtk issue: 
IMHO it's the identical issue -- it's related to glib and not directly an wpa* problem:

harald # wpa_gui 
**
GLib-GIO:ERROR:gdbusconnection.c:2279:initable_init: assertion failed: (connection->initialization_error == NULL)
Aborted (core dumped)

harald # emacs
**
GLib-GIO:ERROR:gdbusconnection.c:2279:initable_init: assertion failed: (connection->initialization_error == NULL)
Fatal error (6)Aborted (core dumped)
Comment 8 Vladimir Botka 2011-03-25 10:33:10 UTC
(In reply to comment #5)
> gdb bactrace:
> 
> Program received signal SIGABRT, Aborted.
> 0x00007ffff385edb7 in kill () from /lib64/libc.so.6

As of the Comment#3 wpa_gui is working fine. Closed as duplicate of bnc#682563.

For the record: The "GLib-GIO:ERROR:gdbusconnection.c:2279" is tracked in bnc#679129

*** This bug has been marked as a duplicate of bug 682563 ***