Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366781 - net-misc/networkmanager-0.8.2-r10 crashes during shutdown with active connections
Summary: net-misc/networkmanager-0.8.2-r10 crashes during shutdown with active connect...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robert Piasek (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-10 18:16 UTC by Xake
Modified: 2012-04-06 15:23 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xake 2011-05-10 18:16:23 UTC
I noticed that on my system when I shutdown the system openrc tells me that it failed to stop NetworkManager.
After looking into my logs I saw a crash and the backtrace there seemed to be about remove_one_device, and analyzing some other information it occurred to me that this had everything to do with active connections.

How to reproduce:
1. start /etc/init.d/NetworkManager
2. do anything that creates a tcp-connection (control with "netstat -t").
3. /etc/init.d/NetworkManager stop

Actual result:
OpenRC tells you it was never able to stop NetworkManager, printing a backtrace in /var/log/daemon.log.


So currently the reproducable way is if "netstat -t" reports open connection NetworkManager always crash when you try to stop it, if it "netstat -t" does not report open connections then NetworkManager exits cleanly.

For me this occurred with autofs mounting fs4, due to it leaving TCP-connection behind managed by the kernel after the daemons have been closed. It is possible this is also triggered by sshd, as it does not terminate any currently running connections when shutting down.

OpenRC has a option to not terminate the connection during shutdown (and does not do it by default). Maybe NetworkManager should implement something similar?
Comment 1 Robert Piasek (RETIRED) gentoo-dev 2011-06-01 12:06:10 UTC
Hi,

There was quite a few fixes in 0.8.4 in regards to crashes during shutdown. Could you please try if you can reproduce this problem on 0.8.4?
Comment 2 Pacho Ramos gentoo-dev 2011-08-23 12:54:18 UTC
At least on my systems, looks like 0.8.4.0-r2 works fine
Comment 3 Pacho Ramos gentoo-dev 2012-04-06 15:23:50 UTC
(In reply to comment #2)
> At least on my systems, looks like 0.8.4.0-r2 works fine