Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 333257 - networkmanager-0.8.1-r3 failure with nm-system-settings.conf
Summary: networkmanager-0.8.1-r3 failure with nm-system-settings.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Robert Piasek (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-17 23:36 UTC by I am
Modified: 2010-08-23 15:50 UTC (History)
5 users (show)

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


Attachments
/etc/conf.d/net (net,3.60 KB, text/plain)
2010-08-18 11:08 UTC, I am
Details

Note You need to log in before you can comment on or make changes to this bug.
Description I am 2010-08-17 23:36:46 UTC
in the provided nm-system-settings.conf is a line change:

from:

plugins=keyfile

to:

plugins=ifnet,keyfile

but with this line I get a crash, and with the old one none


Aug 18 01:18:22 localhost NetworkManager[27905]: <info> NetworkManager (version 0.8.1) is starting...
Aug 18 01:18:22 localhost NetworkManager[27905]: <info> Read config file /etc/NetworkManager/nm-system-settings.conf
Aug 18 01:18:22 localhost NetworkManager[27905]: <info> modem-manager is now available
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Initializing!
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: management mode: managed
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Monitoring /etc/conf.d/hostname
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Monitoring /etc/conf.d/net
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Monitoring /etc/wpa_supplicant/wpa_supplicant.conf
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: global:modules-( "wpa_supplicant" )
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: global:wpa_supplicant_wlan0-"-Dwext"
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Can't handle this line: postup(){
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: global:if [[ ${IFACE} - ppp1 ]]; then
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Can't handle this line: route add -net 10.0.0.0 netmask 255.255.255.255 dev ppp1
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Can't handle this line: fi
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Can't handle this line: return 0;
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Can't handle this line: }
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Loading connections
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: guessed connection type (ppp0) = pppoe
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: update_connection_setting_from_config_block: name:ppp0, id:System (ppp0), uuid: 4bcaf4ca-f470-de68-847f-6fccb0076572
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Can't handle ipv4 address: ppp, missing netmask or prefix
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Connection verified ppp0:1
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: guessed connection type (wlan0) = 802-11-wireless
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: update_connection_setting_from_config_block: name:wlan0, id:System (wlan0), uuid: bc78c09a-4c5c-6789-0a97-7566d33b64fe
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: wireless_setting added for wlan0
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Using DHCP for wlan0
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: DHCP client id: 1:0:a0:24:ab:fb:9c
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Connection verified wlan0:1
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: guessed connection type (ppp1) = pppoe
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: update_connection_setting_from_config_block: name:ppp1, id:System (ppp1), uuid: b09330da-837d-fd61-31ee-a7db67cf8cfa
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Can't handle ipv4 address: ppp, missing netmask or prefix
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Connection verified ppp1:0
Aug 18 01:18:22 localhost NetworkManager[27905]: nm_connection_get_setting: assertion `g_type_is_a (setting_type, NM_TYPE_SETTING)' failed
Aug 18 01:18:22 localhost NetworkManager[27905]: nm_setting_to_hash: assertion `NM_IS_SETTING (setting)' failed
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Initialzation complete!
Aug 18 01:18:22 localhost NetworkManager[27905]: <info> Loaded plugin ifnet: (C) 1999-2010 Gentoo Foundation, Inc. To report bugs please use bugs.gentoo.org with [networkmanager] or [dagger] prefix.
Aug 18 01:18:22 localhost NetworkManager[27905]: <info> Loaded plugin keyfile: (c) 2007 - 2008 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: getting unmanaged specs...
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: (21926912) ... get_connections.
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: (21926912) connections count: 3
Aug 18 01:18:22 localhost NetworkManager[27905]: Ignoring insecure configuration file '/etc/NetworkManager/system-connections/.keep_net-misc_networkmanager-0'
Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: getting unmanaged specs...
Aug 18 01:18:22 localhost NetworkManager[27905]: <info> found WiFi radio killswitch rfkill3 (at /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill3) (driver <unknown>)
Aug 18 01:18:22 localhost NetworkManager[27905]: <info> found WWan radio killswitch rfkill1 (at /sys/devices/platform/thinkpad_acpi/rfkill/rfkill1) (driver thinkpad_acpi)
Aug 18 01:18:22 localhost NetworkManager[27905]: <info> WiFi enabled by radio killswitch; enabled by state file
Aug 18 01:18:22 localhost NetworkManager[27905]: <info> WWAN disabled by radio killswitch; disabled by state file
Aug 18 01:18:22 localhost NetworkManager[27905]: <info> WiMAX enabled by radio killswitch; enabled by state file
Aug 18 01:18:22 localhost NetworkManager[27905]: <info> Networking is enabled by state file
Aug 18 01:18:22 localhost NetworkManager[27905]: <info> (eth0): carrier is OFF
Aug 18 01:18:22 localhost NetworkManager[27905]: <info> (eth0): new Ethernet device (driver: 'e1000e' ifindex: 6)
Aug 18 01:18:22 localhost NetworkManager[27905]: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/0
Aug 18 01:18:22 localhost NetworkManager[27905]: <warn> caught signal 6. Generating backtrace...
Aug 18 01:18:22 localhost NetworkManager[27905]: ******************* START **********************************
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 0: /usr/sbin/NetworkManager (nm_logging_backtrace+0x3f) [0x4543cf]
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 1: /usr/sbin/NetworkManager (0x400000+0x440109) [0x440109]
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 2: /lib/libpthread.so.0 (0x7f4c093be000+0x7f4c093cd120) [0x7f4c093cd120]
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 3: /lib/libc.so.6 (gsignal+0x35) [0x7f4c084c31b5]
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 4: /lib/libc.so.6 (abort+0x180) [0x7f4c084c45e0]
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 5: /usr/lib/libglib-2.0.so.0 (g_assertion_message+0x131) [0x7f4c08cd31c1]
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 6: /usr/lib/libglib-2.0.so.0 (0x7f4c08c6f000+0x7f4c08cd36e0) [0x7f4c08cd36e0]
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 7: /usr/sbin/NetworkManager (0x400000+0x429094) [0x429094]
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 8: /usr/sbin/NetworkManager (0x400000+0x44d4dc) [0x44d4dc]
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 9: /usr/lib/libgobject-2.0.so.0 (g_closure_invoke+0x16a) [0x7f4c097ec53a]
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 10: /usr/lib/libgobject-2.0.so.0 (0x7f4c097df000+0x7f4c098004a1) [0x7f4c098004a1]
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 11: /usr/lib/libgobject-2.0.so.0 (g_signal_emit_valist+0x7c0) [0x7f4c098019a0]
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 12: /usr/lib/libgobject-2.0.so.0 (g_signal_emit+0x83) [0x7f4c09801f33]
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 13: /usr/sbin/NetworkManager (nm_udev_manager_query_devices+0xa6) [0x43a626]
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 14: /usr/sbin/NetworkManager (nm_manager_start+0x1d1) [0x44e381]
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 15: /usr/sbin/NetworkManager (main+0x120d) [0x44132d]
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 16: /lib/libc.so.6 (__libc_start_main+0xfd) [0x7f4c084afbbd]
Aug 18 01:18:22 localhost NetworkManager[27905]: Frame 17: /usr/sbin/NetworkManager (0x400000+0x41d6b9) [0x41d6b9]
Aug 18 01:18:22 localhost NetworkManager[27905]: ******************* END **********************************

Reproducible: Always
Comment 1 Mu Qiao (RETIRED) gentoo-dev 2010-08-18 07:09:48 UTC
(In reply to comment #0)
> in the provided nm-system-settings.conf is a line change:
> 
> from:
> 
> plugins=keyfile
> 
> to:
> 
> plugins=ifnet,keyfile
> 
> but with this line I get a crash, and with the old one none
> 
> 
> Aug 18 01:18:22 localhost NetworkManager[27905]: <info> NetworkManager (version
> 0.8.1) is starting...
> Aug 18 01:18:22 localhost NetworkManager[27905]: <info> Read config file
> /etc/NetworkManager/nm-system-settings.conf
> Aug 18 01:18:22 localhost NetworkManager[27905]: <info> modem-manager is now
> available
> Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet:
> Initializing!
> Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: management
> mode: managed
> Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Monitoring
> /etc/conf.d/hostname
> Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Monitoring
> /etc/conf.d/net
> Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Monitoring
> /etc/wpa_supplicant/wpa_supplicant.conf
> Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet:
> global:modules-( "wpa_supplicant" )
> Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet:
> global:wpa_supplicant_wlan0-"-Dwext"
> Aug 18 01:18:22 localhost NetworkManager[27905]:    SCPlugin-Ifnet: Can't
> handle this line: postup(){

Currently, you could comment all the functions you defined in /etc/conf.d/net. Or if they are important to you, you could remove 'ifnet' from the line 'plugins=ifnet,keyfile'. Then I think you won't get the crash.

I'm working on this problem now.
Comment 2 Mu Qiao (RETIRED) gentoo-dev 2010-08-18 07:14:15 UTC
(In reply to comment #0)
> in the provided nm-system-settings.conf is a line change:
> 
> from:
> 
> plugins=keyfile
> 
> to:
> 
> plugins=ifnet,keyfile
> 
> but with this line I get a crash, and with the old one none
> 
> 

And could you please give me your /etc/conf.d/net? That would be a great help.
Comment 3 I am 2010-08-18 11:08:26 UTC
Created attachment 243425 [details]
/etc/conf.d/net
Comment 4 Robert Piasek (RETIRED) gentoo-dev 2010-08-18 11:18:51 UTC
Can you please try if NM from my overlay (layman -a dagger) fixes the issue for you? If it does, we will add it to portage.

Thanks,
Rob
Comment 5 I am 2010-08-18 21:46:47 UTC
(In reply to comment #4)
> Can you please try if NM from my overlay (layman -a dagger) fixes the issue for
> you? If it does, we will add it to portage.
> 
> Thanks,
> Rob
> 

your ebuild (networkmanager-0.8.1-r6) fixes the issue.
Comment 6 Robert Piasek (RETIRED) gentoo-dev 2010-08-19 08:33:08 UTC
Thank you for your time spent on testing.

I'll wait another day or two before pushing this patch to portage tree. I want to get as many bugs fixed as possible before pushing new version.
Comment 7 Alessandro Capogna 2010-08-20 20:03:20 UTC
same problem here, 0.8-r1 version on amd64. With ifnet in with nm-system-settings.conf it wont work, but if i remove it nm work well. This problem appear after update from 0.7.2 to 0.8-r1 and also if i comment /etc/conf.d/net lines


# error in /var/log/meggase if i start using /etc/init.d/NetworkManager start


Aug 20 21:36:09 chaos NetworkManager: <info>  starting...

Aug 20 21:36:09 chaos NetworkManager: <info>  modem-manager is now available

Aug 20 21:36:09 chaos NetworkManager: <ERROR>   [1282332969.535035] main (): Failed to initialize the network manager: Key file does not have key 'WWANEnabled'

Aug 20 21:36:09 chaos NetworkManager: traceback:

Aug 20 21:36:09 chaos NetworkManager:   /usr/sbin/NetworkManager(main+0xf89) [0x43aa69]

Aug 20 21:36:09 chaos NetworkManager:   /lib/libc.so.6(__libc_start_main+0xfd) [0x7ff0152d1bbd]

Aug 20 21:36:09 chaos NetworkManager:   /usr/sbin/NetworkManager() [0x41bba9]

Aug 20 21:36:09 chaos kernel: [ 1973.254398] NetworkManager[12342] trap int3 ip:43aaee sp:7fff75cf71b0 error:0

 



# error running NetworkManager --no-daemon


NetworkManager: <info>  starting...

NetworkManager: <info>  modem-manager is now available

(NetworkManager:12370): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.

This indicates a bug in someone's code. You must ensure an error is NULL before it's set.

The overwriting error message was: Could not load plugin 'ifnet': /usr/lib64/NetworkManager/libnm-settings-plugin-ifnet.so: cannot open shared object file: No such file or directory

NetworkManager: <ERROR> [1282333083.345359] main (): Failed to initialize the network manager: Key file does not have key 'WWANEnabled'

NetworkManager: traceback:

NetworkManager:         NetworkManager(main+0xf89) [0x43aa69]

NetworkManager:         /lib/libc.so.6(__libc_start_main+0xfd) [0x7fce452c9bbd]

NetworkManager:         NetworkManager() [0x41bba9]

Trace/breakpoint trap
Comment 8 Fabiano Francesconi 2010-08-21 12:27:30 UTC
I have the same identical problem with the just-stabilized v0.8-r1

I don't know if these issues might be merged in the same bug-report.

I had to remove "ifnet" because that plugin is not shipped with the ebuild (or maybe it's installed if using specific useflag).
Comment 9 Mu Qiao (RETIRED) gentoo-dev 2010-08-21 12:49:48 UTC
(In reply to comment #8)
> I have the same identical problem with the just-stabilized v0.8-r1
> 
> I don't know if these issues might be merged in the same bug-report.
> 
> I had to remove "ifnet" because that plugin is not shipped with the ebuild (or
> maybe it's installed if using specific useflag).
> 

Yes, ifnet plug-in is not working well for v0.8-r1. Currently the stable version would be networkmanager-0.8.1-r6 in dagger's overlay. It will be pushed into portage soon.
Comment 10 Fabiano Francesconi 2010-08-21 13:01:28 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > I have the same identical problem with the just-stabilized v0.8-r1
> > 
> > I don't know if these issues might be merged in the same bug-report.
> > 
> > I had to remove "ifnet" because that plugin is not shipped with the ebuild (or
> > maybe it's installed if using specific useflag).
> > 
> 
> Yes, ifnet plug-in is not working well for v0.8-r1. Currently the stable
> version would be networkmanager-0.8.1-r6 in dagger's overlay. It will be pushed
> into portage soon.
> 

Then why on Earth did our developer stabilized that without removing it from the config file?

Darn it.
Comment 11 Mu Qiao (RETIRED) gentoo-dev 2010-08-21 13:35:30 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > (In reply to comment #8)
> > > I have the same identical problem with the just-stabilized v0.8-r1
> > > 
> > > I don't know if these issues might be merged in the same bug-report.
> > > 
> > > I had to remove "ifnet" because that plugin is not shipped with the ebuild (or
> > > maybe it's installed if using specific useflag).
> > > 
> > 
> > Yes, ifnet plug-in is not working well for v0.8-r1. Currently the stable
> > version would be networkmanager-0.8.1-r6 in dagger's overlay. It will be pushed
> > into portage soon.
> > 
> 
> Then why on Earth did our developer stabilized that without removing it from
> the config file?
> 
> Darn it.
> 

It's not enabled by default for 0.8-r1. It's enabled by default for 0.8-r3 though it has problem with dhcpcd/dhclient. Everything would be fine soon.
Comment 12 Robert Piasek (RETIRED) gentoo-dev 2010-08-23 10:46:37 UTC
That problem should be now fixed. Please sync and re-install NM.
Since it was just a minor config file update, I didn't bump the revision.


Comment 13 Robert Piasek (RETIRED) gentoo-dev 2010-08-23 15:50:53 UTC
I'm closing this bug down. If you have any other problems after re-building latest version from portage, please re-open.