Bug 2583 - if NetworkManager is not running claws hangs for 30 seconds at startup and shutdown
Summary: if NetworkManager is not running claws hangs for 30 seconds at startup and sh...
Status: RESOLVED INVALID
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Other (show other bugs)
Version: 3.8.0
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2012-01-21 02:54 UTC by Tom Horsley
Modified: 2012-06-11 06:23 UTC (History)
0 users

See Also:


Attachments

Description Tom Horsley 2012-01-21 02:54:35 UTC
I wanted to take a look at building claws-mail from the source rpm on my fedora 16 system, so I installed the source rpm and all the development packages that needs to suck in. One of those packages dragged in NetworkManager. (I had previously erase it because it caused so many problems just like this :-). That left my machine in the state of NetworkManager installed, but not running. When I started claws-mail, nothing showed up for 30 seconds. I ran an strace and found this nonsense:

21:25:23.974684 socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC, 0) = 7
21:25:23.974732 connect(7, {sa_family=AF_FILE, path="/var/run/dbus/system_bus_socket"}, 33) = 0
...
21:25:24.124108 sendmsg(7, {msg_name(0)=NULL, msg_iov(2)=[{"l\1\0\1#\0\0\0\5\0\0\0\177\0\0\0\1\1o\0\25\0\0\0/org/fre"..., 144}, {"\36\0\0\0org.freedesktop.NetworkManag"..., 35}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 179
...
21:25:24.124718 poll([{fd=7, events=POLLIN}], 1, 25000) = 1 ([{fd=7, revents=POLLIN}])
21:25:49.126227 recvmsg(7, {msg_name(0)=NULL, msg_iov(1)=[{"l\3\1\1;\0\0\0\5\0\0\0m\0\0\0\6\1s\0\7\0\0\0:1.1817\0"..., 2048}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 187

That opens a dbus connection, then eventually tries to talk about network manager to dbus, then finally hits the last poll shown which takes from 25:24 to 25:49 to return.

It would be nice if all the HAVE_NETWORKMANAGER_SUPPORT code was not only ifdefed, but also checked a runtime flag so I could set a preference or option to tell claws to forget the furshlugginer NetworkManager.
Comment 1 Paul 2012-01-27 08:03:09 UTC
Try setting the 'use_networkmanager' hidden pref to 0

Note You need to log in before you can comment on or make changes to this bug.