Crashes due to freeing unused mutex
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Fix Released
|
High
|
Scott James Remnant (Canonical) |
Bug Description
Using network-manager (0.6.1-0ubuntu2) I get the attached messages on syslog.
(Seems to be caused of incompability with old ways of configuring network on Ubuntu.)
Rui Matos (tiagomatos) wrote : syslog | #1 |
j^ (j) wrote : Re: network-manager crashes | #2 |
is this a syslog from booting or druing/after the update?
Mario Đanić (mario-danic) wrote : | #3 |
Also, please give us info how to reproduce.
Changed in network-manager: | |
status: | Unconfirmed → Needs Info |
Rui Matos (tiagomatos) wrote : /etc/network/interfaces | #4 |
- /etc/network/interfaces Edit (256 bytes, text/plain)
My interfaces file. I only want my wired connection managed with NM. Guess it is well configured for that purpose, but it might help diagnosing this.
Rui Matos (tiagomatos) wrote : Re: network-manager crashes | #5 |
To j^:
It happened on both. But I should add that I had the unnofficial 0.6 packages installed before. Yet I guess I updated all the needed packages.
To Mario:
To reproduce, only reboot :-)
Mario Đanić (mario-danic) wrote : | #6 |
Are you using master server archive for packages?
Rui Matos (tiagomatos) wrote : sources.list | #8 |
Changed in network-manager: | |
assignee: | nobody → mario-danic |
status: | Needs Info → Confirmed |
foxy123 (foxy) wrote : Re: network-manager crashes | #9 |
I've got a similar prolem with NM 0.6.1:
~$ sudo killall NetworkManager
NetworkManager: no process killed
:~$ sudo NetworkManager --no-daemon
NetworkManager: <information> starting...
NetworkManager: <WARNING> main (): nm_data_new: Setting up dbus filter
NetworkManager: <information> Deactivating device eth0.
NetworkManager: <WARNING> nm_signal_handler (): Caught signal 11. Generating backtrace...
NetworkManager: ******************* START *******
NetworkManager: (no debugging symbols found)
NetworkManager: Using host libthread_db library "/lib/tls/
NetworkManager: (no debugging symbols found)
NetworkManager: (no debugging symbols found)
NetworkManager: (no debugging symbols found)
NetworkManager: (no debugging symbols found)
NetworkManager: (no debugging symbols found)
NetworkManager: (no debugging symbols found)
NetworkManager: [Thread debugging using libthread_db enabled]
NetworkManager: [New Thread -1211578688 (LWP 5612)]
NetworkManager: (no debugging symbols found)
NetworkManager: (no debugging symbols found)
NetworkManager: (no debugging symbols found)
NetworkManager: (no debugging symbols found)
NetworkManager: (no debugging symbols found)
NetworkManager: (no debugging symbols found)
NetworkManager: (no debugging symbols found)
NetworkManager: (no debugging symbols found)
NetworkManager: (no debugging symbols found)
NetworkManager: (no debugging symbols found)
NetworkManager: (no debugging symbols found)
NetworkManager: 0xffffe410 in __kernel_vsyscall ()
NetworkManager: ******************* END *******
Gaëtan Petit (gaetanp) wrote : | #10 |
seems to have the same problem on both of my comp
Øystein Viggen (oysteivi) wrote : | #11 |
I was seeing the same thing until I removed the following line from /etc/network/
iface eth1 inet dhcp
With this line removed, I no longer have this problem.
I had no auto eth1, if that makes any difference.
Chris Lee (chris-lee-gertner) wrote : | #12 |
I have a similar crash (Bug 37091 -- marked as a dup of this one). I also have a line
iface eth1 inet static
(similar to the one above) in my /etc/network/
I cannot remove this, however, because this how I block network-manager from using my internal wireless card, which is unreliable with the current dapper system. Instead, I use a PCMCIA card.
Richard Ferguson (ufergus) wrote : | #13 |
I can also confirm this bug and the above fix. Once I removed all lines in /etc/network/
Runar Ingebrigtsen (ringe) wrote : EASY FIX - remove old ways | #14 |
I get this error on a Centrino laptop with (lspci):
0000:02:01.0 Network controller: Intel Corporation PRO/Wireless 2915ABG MiniPCI Adapter (rev 05)
The ipw2200 driver.
The problem disappears when commenting out all configuration options in /etc/network/
Dapper should default to NetworkManager
description: | updated |
Runar Ingebrigtsen (ringe) wrote : Re: network-manager crashes because of old ways configuration | #15 |
This is a big problem for regular users, no errors are being displayed explaining the crash or that the crash occurs. To a normal user, the nm-applet just doesn't appear.
neoflight (srnvas) wrote : | #16 |
True. I spend a million hours to figure that out from various sources...
Now atleast i have the nm-applet working. But it doesnt work as promised:...it is supposed to connect to the wired with the static addresses when connected and turn the wireless off. I have to manually turn the wireless off to get the wired connection working.
Alexandre Kraft (alexandre-kraft) wrote : | #17 |
Similar crash on a Centrino laptop (ipw2200 driver).
I have to commented out the line setting iface eth1 in /etc/network/
neoflight (srnvas) wrote : | #18 |
similarly...i havent been able to connect to the wireless with WEP encryption
Rui Matos (tiagomatos) wrote : | #19 |
Here is a backtrace:
Apr 11 02:32:46 localhost NetworkManager: ******************* START *******
Apr 11 02:32:47 localhost NetworkManager: Using host libthread_db library "/lib/tls/
Apr 11 02:32:47 localhost NetworkManager: [Thread debugging using libthread_db enabled]
Apr 11 02:32:47 localhost NetworkManager: [New Thread -1211926848 (LWP 13973)]
Apr 11 02:32:47 localhost NetworkManager: 0xffffe410 in __kernel_vsyscall ()
Apr 11 02:32:47 localhost NetworkManager:
Apr 11 02:32:47 localhost NetworkManager: Thread 1 (Thread -1211926848 (LWP 13973)):
Apr 11 02:32:47 localhost NetworkManager: #0 0xffffe410 in __kernel_vsyscall ()
Apr 11 02:32:47 localhost NetworkManager: #1 0xb7f11463 in __waitpid_nocancel () from /lib/tls/
Apr 11 02:32:47 localhost NetworkManager: #2 0x0806ac32 in nm_logging_
Apr 11 02:32:47 localhost NetworkManager: #3 0x0806ae05 in nm_signal_handler (signo=11) at nm-logging.c:166
Apr 11 02:32:47 localhost NetworkManager: #4 <signal handler called>
Apr 11 02:32:47 localhost NetworkManager: #5 0xb7f0ce47 in pthread_
Apr 11 02:32:47 localhost NetworkManager: from /lib/tls/
Apr 11 02:32:47 localhost NetworkManager: #6 0x08059a3b in nm_device_
Apr 11 02:32:47 localhost NetworkManager: at nm-device-
Apr 11 02:32:47 localhost NetworkManager: #7 0xb7c66eac in g_object_unref () from /usr/lib/
Apr 11 02:32:47 localhost NetworkManager: #8 0x08055e50 in nm_device_new (iface=0x80aa5d8 "wlan0",
Apr 11 02:32:47 localhost NetworkManager: rg/freedesktop/
Apr 11 02:32:47 localhost NetworkManager: test_dev=0, test_dev_
Apr 11 02:32:47 localhost NetworkManager: at nm-device.c:205
Apr 11 02:32:47 localhost NetworkManager: #9 0x080658aa in nm_create_
Apr 11 02:32:47 localhost NetworkManager: udi=0x80aaf40 "/org/freedeskt
Apr 11 02:32:47 localhost NetworkManager: iface=0x80aa5d8 "wlan0", test_device=0,
Apr 11 02:32:47 localhost NetworkManager: test_device_
Apr 11 02:32:47 localhost NetworkManager: #10 0x08065edf in nm_add_
Apr 11 02:32:47 localhost NetworkManager: at NetworkManager.
Apr 11 02:32:47 localhost NetworkManager: #11 0x0806655e in nm_hal_init (data=0x8094110) at NetworkManager.
Apr 11 02:32:47 localhost NetworkManager: #12 0x080672ea in main (argc=1, argv=0xbff7e894) at NetworkManager.
Apr 11 02:32:47 localhost NetworkManager: #0 0xffffe410 in __kernel_vsyscall ()
Apr 11 02:32:47 localhost NetworkManager: ******************* END *******
I tried to look at the code but couldn't come up with nothing (knowing about nothing about NM and glib). But I can see that #7 g_object_unref() is calling into #6 nm_device_
Tom Chance (tom-acrewoods) wrote : | #20 |
I can confirm a similar bug that occurs when I have a configuration for my wireless card in the interfaces file. Here's the relevant section of the syslog:
Apr 14 21:07:44 localhost NetworkManager: <information>
Apr 14 21:07:44 localhost NetworkManager: <WARNING>^I main (): nm_data_new: Setting up dbus filter
Apr 14 21:07:45 localhost NetworkManager: <WARNING>^I nm_signal_handler (): Caught signal 11. Generating backtrace...
Apr 14 21:07:45 localhost NetworkManager: ******************* START *******
Apr 14 21:07:45 localhost NetworkManager: Frame 0: /usr/sbin/
Apr 14 21:07:45 localhost NetworkManager: Frame 1: /usr/sbin/
Apr 14 21:07:45 localhost NetworkManager: Frame 2: [0xffffe420]
Apr 14 21:07:45 localhost NetworkManager: Frame 3: /usr/sbin/
Apr 14 21:07:45 localhost NetworkManager: Frame 4: /usr/lib/
Apr 14 21:07:45 localhost NetworkManager: Frame 5: /usr/sbin/
Apr 14 21:07:45 localhost NetworkManager: Frame 6: /usr/sbin/
Apr 14 21:07:45 localhost NetworkManager: Frame 7: /usr/sbin/
Apr 14 21:07:45 localhost NetworkManager: Frame 8: /usr/sbin/
Apr 14 21:07:45 localhost NetworkManager: Frame 9: /usr/sbin/
Apr 14 21:07:45 localhost NetworkManager: Frame 10: /lib/tls/
Apr 14 21:07:45 localhost NetworkManager: Frame 11: /usr/sbin/
Apr 14 21:07:45 localhost NetworkManager: ******************* END *******
Mario Đanić (mario-danic) wrote : | #21 |
We've got 0.6.2 now.
Changed in network-manager: | |
status: | Confirmed → Fix Released |
Rui Matos (tiagomatos) wrote : | #22 |
No, this is not fixed as of the 0.6.2-0ubuntu4 version.
Changed in network-manager: | |
status: | Fix Released → Confirmed |
MrFaber (mr-faber-gmx) wrote : | #23 |
Similar crash on a Centrino laptop (ipw2200 driver).
I have to commented out the line setting iface eth1 in /etc/network/
Without commenting out I got this debug messages:
sudo NetworkManager --no-daemon
NetworkManager: <information> starting...
NetworkManager: <WARNING> main (): nm_data_new: Setting up dbus filter
NetworkManager: <information> eth0: Device is fully-supported using driver 'e100'.
NetworkManager: <information> nm_device_init(): waiting for device's worker thread to start
NetworkManager: <information> nm_device_init(): device's worker thread started, continuing.
NetworkManager: <information> Now managing wired Ethernet (802.3) device 'eth0'.
NetworkManager: <information> eth1: Device is fully-supported using driver 'ipw2200'.
NetworkManager: <information> nm_device_init(): waiting for device's worker thread to start
NetworkManager: <information> nm_device_init(): device's worker thread started, continuing.
NetworkManager: <information> Now managing wireless (802.11) device 'eth1'.
NetworkManager: <information> Updating allowed wireless network lists.
NetworkManager: <WARNING> nm_dbus_
NetworkManager: <WARNING> nm_signal_handler (): Caught signal 2, shutting down normally.
NetworkManager: <information> Caught terminiation signal
NetworkManager: <debug info> [1146763008.632036] nm_print_open_socks (): Open Sockets List:
NetworkManager: <debug info> [1146763008.632711] nm_print_open_socks (): Open Sockets List Done.
NetworkManager: <information> Deactivating device eth0.
NetworkManager: <information> Deactivating device eth1.
user@uber:~$ sudo vim /etc/network/
user@uber:~$ sudo NetworkManager --no-daemon
NetworkManager: <information> starting...
NetworkManager: <WARNING> main (): nm_data_new: Setting up dbus filter
NetworkManager: <information> eth0: Device is fully-supported using driver 'e100'.
NetworkManager: <information> nm_device_init(): waiting for device's worker thread to start
NetworkManager: <information> nm_device_init(): device's worker thread started, continuing.
NetworkManager: <information> Now managing wired Ethernet (802.3) device 'eth0'.
NetworkManager: <WARNING> nm_signal_handler (): Caught signal 11. Generating backtrace...
NetworkManager: ******************* START *******
NetworkManager: Frame 0: NetworkManager [0x806ac48]
NetworkManager: Frame 1: NetworkManager [0x806adf5]
NetworkManager: Frame 2: [0xffffe420]
NetworkManager: Frame 3: NetworkManager [0x8059a3b]
NetworkManager: Frame 4: /usr/lib/
NetworkManager: Frame 5: NetworkManager(
NetworkManager: Frame 6: NetworkManager(
NetworkManager: Frame 7: NetworkManager(
NetworkManager: Frame 8: NetworkManager(
MrFaber (mr-faber-gmx) wrote : | #24 |
It seems that I have found the bug at least the reason for the crash. If /etc/network/
Chris Lee (chris-lee-gertner) wrote : | #25 |
Using my /etc/networking
-------
iface lo inet loopback auto lo
iface eth1 inet static
address 192.168.1.114
netmask 255.255.255.0
wireless-essid ??????
wireless-key ?????????
gateway 192.168.1.1
-------
I tried NM6.2 from today, and go the following crash (from syslog):
May 4 10:33:29 localhost NetworkManager: <WARNING>^I main (): nm_data_new: Setting up dbus filter
May 4 10:33:29 localhost NetworkManager: <information>
May 4 10:33:29 localhost NetworkManager: <information>
May 4 10:33:29 localhost NetworkManager: <information>
May 4 10:33:29 localhost NetworkManager: <information>^INow managing wireless (802.11) device 'eth0'.
May 4 10:33:29 localhost kernel: [4297908.926000] ADDRCONF(
May 4 10:33:29 localhost NetworkManager: <WARNING>^I nm_signal_handler (): Caught signal 11. Generating backtrace...
May 4 10:33:29 localhost NetworkManager: ******************* START *******
May 4 10:33:30 localhost NetworkManager: (no debugging symbols found)
May 4 10:33:30 localhost NetworkManager: Using host libthread_db library "/lib/tls/
May 4 10:33:30 localhost NetworkManager: (no debugging symbols found)
May 4 10:33:30 localhost last message repeated 5 times
May 4 10:33:30 localhost NetworkManager: [Thread debugging using libthread_db enabled]
May 4 10:33:30 localhost NetworkManager: [New Thread -1211685184 (LWP 9990)]
May 4 10:33:30 localhost NetworkManager: [New Thread -1211688016 (LWP 10007)]
May 4 10:33:30 localhost NetworkManager: (no debugging symbols found)
May 4 10:33:31 localhost last message repeated 15 times
May 4 10:33:31 localhost NetworkManager: 0xffffe410 in __kernel_vsyscall ()
May 4 10:33:31 localhost NetworkManager: ******************* END *******
txshtkckr (crf) wrote : | #26 |
Got a gdb session going on the -dbg version during a crash and found some interesting things...
(gdb) ptype NMDevice80211Wi
[...]
double freqs[32];
}
(gdb) print *self->priv
... num_freqs = -1 '�', freqs = {1.325822970196
-2.
-2.
-2.
-2.
-2.
-2.
-2.
-2.
-2.
-2.
-2.
-2.
-2.
-2.
-2.
-2.
...
[ scan_mutex is 0x58 ?!?!?! ]
(gdb) x/48fg self->priv->freqs
0x37ea0f56 <pthread_
0x37ea0f66 <g_thread_
...
0x37ea1046 <g_thread_
0x37ea1056 <pthread_
0x37ea1066 <g_thread_
0x37ea1076 <g_strerror@plt+2>: 9.1483482540142
0x37ea1086 <g_malloc@plt+2>: 9.5829329920041
0x37ea1096 <pthread_
0x37ea10a6 <pthread_
0x37ea10b6 <pthread_
Looks like it was writing frequency values well past the end of the array, there...
txshtkckr (crf) wrote : | #27 |
Actually, digging deeper, it looks like this is coming from the handling of scan_mutex, and the early-out mechanism for devices that appear to be off limits because nm_system_
The mutex is allocated in real_init. But in nm-device.c, the check for whether or not the device is disabled happens before the call to the type-specific init function. That means the cleanup code is getting called for an object that is not fully initialized. The cleanup code tries to free the scan_mutex, which was never allocated, and BOOM!
txshtkckr (crf) wrote : Patch for bug #37084 | #28 |
- Patch for bug #37084 Edit (2.2 KiB, text/plain)
This patch changes nm-device-
The assumption that dispose always has a fully initialized object to work with exists throughout this code. It is definitely backwards logic that the original author should correct to avoid this kind of problem in the future.
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: network-manager crashes because of old ways configuration | #29 |
If everyone could test that patch and let us know whether it
a) fixes the bug
b) causes any new problems
Then I should be able to get an upload out with it asap.
Thanks!
Chris Lee (chris-lee-gertner) wrote : | #30 |
The patch did indeed fix the crash!! txshtkckr rules!
Unfortunately, while network-manager is not crashing, DHCP is failied for me, so I'm back to 0.5.1. But I suppose that must be a separate issue (??).
txshtkckr (crf) wrote : | #31 |
Not sure. It had been working perfectly for me, but now my DHCPs are failing as well. Haven't dug into it far enough to figure that one out... :(
Rui Matos (tiagomatos) wrote : | #32 |
I reported this on the NM list and got an answer[1] from Dan Williams.
[1] http://
txshtkckr (crf) wrote : | #33 |
Sorry, my first patch submission... didn't think about license concerns. GPL is fine by me for it. I'll submit it to the NM list as soon as I figure out where to subscribe to it at. ;)
crf
Dennis Kaarsemaker (dennis) wrote : Re: [Bug 37084] Re: network-manager crashes because of old ways configuration | #34 |
Celso Pinto (cpinto) wrote : Re: network-manager crashes because of old ways configuration | #35 |
I got something similar:
(gdb) bt
#0 0xb7f58e47 in pthread_
#1 0x08059a3b in nm_device_
#2 0xb7cb2eac in g_object_unref () from /usr/lib/
#3 0x08055e50 in nm_device_new ()
#4 0x0806589a in nm_create_
#5 0x08065ecf in nm_add_
#6 0x0806654e in nm_hal_init ()
#7 0x080672da in main ()
Any idea if the proposed patch will fix this problem as well? This happened when HAL(?) started using the wired-network card as eth1 and the wireless-network card as eth0, and I had a static configuration for the wired card in /etc/network/
txshtkckr (crf) wrote : Re: [Bug 37084] Re: network-manager crashes because of old ways configuration | #36 |
Yes, that looks like it is probably the same problem, both by the trace and
your description of the circumstances. Although, it would also be nice to
find out why your eth0 and eth1 switched places, as well. That should really
be deterministic for a sane system...
crf
-------
From: Celso Pinto <email address hidden>
Date: Monday 08 May 2006 19:24
Subj: [Bug 37084] Re: network-manager crashes because of old ways
configuration
To: <email address hidden>
Cc:
I got something similar:
(gdb) bt
#0 0xb7f58e47 in pthread_
from /lib/tls/
#1 0x08059a3b in nm_device_
#2 0xb7cb2eac in g_object_unref () from /usr/lib/
#3 0x08055e50 in nm_device_new ()
#4 0x0806589a in nm_create_
#5 0x08065ecf in nm_add_
#6 0x0806654e in nm_hal_init ()
#7 0x080672da in main ()
Any idea if the proposed patch will fix this problem as well? This happened
when HAL(?) started using the wired-network card as eth1 and the
wireless-network card as eth0, and I had a static configuration for the wired
card in /etc/network/
--
network-manager crashes because of old ways configuration
https:/
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: network-manager crashes because of old ways configuration | #37 |
After testing, I'm convinced that this is the right patch for the job -- and that it's unrelated to any DHCP problems
Changed in network-manager: | |
status: | Confirmed → Fix Released |
Changed in network-manager: | |
assignee: | mario-danic → keybuk |
status: | Fix Released → Fix Committed |
Changed in network-manager: | |
status: | Fix Committed → Fix Released |
Scott Robinson (scott-ubuntu) wrote : | #38 |
What packages need to be installed to get the NM syslog trace to display proper debugging symbols?
network manager crash log