| Summary: | net_applet segfaults | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Colin Guthrie <mageia> |
| Component: | RPM Packages | Assignee: | Thierry Vignaud <thierry.vignaud> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | Normal | CC: | arnaud, dantou, mageia, mageia, rene, richard.j.walker, thierry.vignaud |
| Version: | Cauldron | Keywords: | PATCH |
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | drakx-net-applet-1.28-2.mga4 | CVE: | |
| Status comment: | |||
| Bug Depends on: | 11286 | ||
| Bug Blocks: | |||
| Attachments: |
Backtrace of one crash
Workaround |
||
|
Description
Colin Guthrie
2013-12-08 12:16:44 CET
Also crashes when trying to connet wireless (wifi) network. I right click on the applet and try to activate wifi via Activate connections (?) [in danish: Aktive grænsesnit] the menu point just below ... VPN ... bash-4.2$ net_applet Subroutine Gtk3::main redefined at /usr/lib/perl5/vendor_perl/5.18.1/Gtk3.pm line 304. Cannot open /dev/input/eventX: Adgang nægtet Cannot open /dev/input/eventX: Adgang nægtet Cannot open /dev/input/eventX: Adgang nægtet Cannot open /dev/input/eventX: Adgang nægtet Cannot open /dev/input/eventX: Adgang nægtet Cannot open /dev/input/eventX: Adgang nægtet Cannot open /dev/input/eventX: Adgang nægtet Cannot open /dev/input/eventX: Adgang nægtet Cannot open /dev/input/eventX: Adgang nægtet Cannot open /dev/input/eventX: Adgang nægtet Cannot open /dev/input/eventX: Adgang nægtet Cannot open /dev/input/eventX: Adgang nægtet Segmentfejl Created attachment 4595 [details]
Backtrace of one crash
Seems like a crash in glib, more specifically some dbus related something or other.
It also seems like net_applet does a lot of forking (i.e. once per second) which seems less than optimal...
OK, so some investigation later it seems to be the usernetctl check that causes the crash...
In lib/network/tools.pm in run_interface_command we call:
system("/usr/sbin/usernetctl $intf report")
If I remove this, everything works fine.
Created attachment 4597 [details]
Workaround
So there seems to be many references to perl system() and threads which is what seems to be the problem here. Not sure if there are any specific fixes we can apply globally.
As a work around, the attached patch works for me.
Thierry, can you take a look at this patch? I'm certain there is a nicer way but this works for me. Assignee:
bugsquad =>
thierry.vignaud Go ahead. Keywords:
(none) =>
PATCH Closing Status:
NEW =>
RESOLVED Crash solved - CONFIRMED. I just updated this morning, and it is now possible to disconnect the wired network without the applet crashing (seg.faulting). Surprisingly the error reported e.g. under Bug 6031 seems to be fixed also. I tried for the 1.001'st time to connect wifi via the applet - and EUREKA it works. I am writing this message via the wifi connection now. PS. I don't know how to report across different errors/bug reports - but now you know. PPS: Sorry Colin for shouting both confirmed and eureka :-) Thank you so much, all of you, for a quick fix. (In reply to René Lagoni Neukirch from comment #8) > PPS: Sorry Colin for shouting both confirmed and eureka :-) > > Thank you so much, all of you, for a quick fix. We generally don't get too annoyed when the shouts are praise ;) Glad to have helped! |