Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523700 - net-misc/networkmanager-0.9.10.0 - NetworkManager: segmentation fault in g_str_hash (v=0x0) at .../work/glib-2.40.2/glib/ghash.c:1802
Summary: net-misc/networkmanager-0.9.10.0 - NetworkManager: segmentation fault in g_st...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-25 13:09 UTC by Jelte Fennema
Modified: 2014-10-26 09:48 UTC (History)
5 users (show)

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


Attachments
emerge --info (file_523700.txt,17.62 KB, text/plain)
2014-09-29 20:02 UTC, Jelte Fennema
Details
patch (networkmanager-0.9.10.0-fix-config-dhcp.patch,675 bytes, patch)
2014-10-08 06:40 UTC, hongruiqi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jelte Fennema 2014-09-25 13:09:25 UTC
I upgraded my world (including networkmanager) yesterday and now networkmanager crashes every time I try to connect to a wireless network. It shows the available wireless networks in nm-applet, but when I click on one it pops up a dialog with:

Connection failure
Failed to add/activate connection
(4) Message did not receive a reply (timeout by message bus)

I have tried downgrading everything connected with networkmanager. I finally fixed it by downgrading networkmanager, nm-applet, libnl (to 3.2.24-r1), modemmanager and wpa_supplicant. libnl seemed to be the last one needed.

Wired connections worked just fine

Reproducible: Always

Steps to Reproduce:
1. Update networkmanager, nm-applet, libnl, modemmanager and wpa_supplicant to the latest unstable version
2. Try connecting to a wireless network
Actual Results:  
NetworkManager crashes

Expected Results:  
NetworkManager keeps working and connects to the selected network
Comment 1 Pacho Ramos gentoo-dev 2014-09-26 09:49:10 UTC
If it's crashing we need some kind of backtrace:
https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces

If it's not really crashing but showing some errors, please check the logs output when the problem is reproduced
Comment 2 Jelte Fennema 2014-09-26 10:20:57 UTC
I'm away for the weekend, so I'll try to trace it after I come back.
I'm quite sure it crashes btw, since nm-applet says it is not running and the process is gone.
Comment 3 Miroslav Šulc gentoo-dev 2014-09-26 11:47:24 UTC
i do not have backtrace either but this is what ends up in system log:

NetworkManager[11185]: segfault at 0 ip 00007f667324bbc0 sp 00007fffdfd862f8 error 4 in libglib-2.0.so.0.4000.0[7f6673213000+130000]
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-26 12:37:07 UTC
(In reply to Miroslav Šulc from comment #3)
> i do not have backtrace either

See comment #1.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-26 12:38:08 UTC
  22 Sep 2014; Jeroen Roovers <jer@gentoo.org> libnl-3.2.25.ebuild:
  Restore KEYWORDS (bug #515132).
 
  16 Jul 2014; Jeroen Roovers <jer@gentoo.org> libnl-3.2.25.ebuild:
  Drop keywords again (bug #515132).


Please don't say I should drop keywords /again/ for this bug.
Comment 6 Pacho Ramos gentoo-dev 2014-09-26 13:03:36 UTC
Maybe people is hitting the crash that this patch should fix:
http://cgit.freedesktop.org/NetworkManager/NetworkManager/patch/?id=302b438162e4f14bc2652832e5d2f3a44077b804

Could affected people try? Thanks
Comment 7 Jelte Fennema 2014-09-26 13:14:46 UTC
I cannot test until Monday, but I doubt this is the problem since I'm running a 3.16.2 kernel, which you could hardly describe as an older kernel. 

Dripping keywords might be good btw, since wireless networking is quite a big and useful part of networkmanager.
Comment 8 Miroslav Šulc gentoo-dev 2014-09-26 13:38:45 UTC
i'm on kernel 3.16.3
Comment 9 Ole Langbehn 2014-09-26 20:39:02 UTC
Happens to me, backtrace:

(gdb) bt
#0  0x00000037d9c352a9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00000037d9c36608 in __GI_abort () at abort.c:89
#2  0x00000035a846cbd5 in g_assertion_message (domain=domain@entry=0x4c453c "NetworkManager", file=file@entry=0x4c874f "nm-dbus-manager.c", line=line@entry=901, func=func@entry=0x4c8d00 <FUNCTION.15711> "nm_dbus_manager_unregister_object", 
	message=message@entry=0x257bc70 "assertion failed: (G_IS_OBJECT (object))") at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gtestutils.c:2291
#3  0x00000035a846cc6a in g_assertion_message_expr (domain=domain@entry=0x4c453c "NetworkManager", file=file@entry=0x4c874f "nm-dbus-manager.c", line=line@entry=901, func=func@entry=0x4c8d00 <FUNCTION.15711> "nm_dbus_manager_unregister_object", 
	expr=expr@entry=0x4c8926 "G_IS_OBJECT (object)") at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gtestutils.c:2306
#4  0x000000000046c79e in nm_dbus_manager_unregister_object (self=0x252e100, object=0x254b230) at nm-dbus-manager.c:901
#5  0x000000000045b533 in nm_settings_connection_signal_remove (self=<optimized out>) at settings/nm-settings-connection.c:1589
#6  0x00007fd2260c8d8e in reload_connections (config=config@entry=0x2548830) at plugin.c:343
#7  0x00007fd2260c8f62 in add_connection (config=0x2548830, source=0x25af010, save_to_disk=1, error=0x7fff61519a98) at plugin.c:369
#8  0x000000000045f3a7 in nm_settings_add_connection (self=self@entry=0x252b540, connection=connection@entry=0x25af010, save_to_disk=1, error=error@entry=0x7fff61519b28) at settings/nm-settings.c:942
#9  0x000000000045f6cf in pk_add_cb (chain=0x25bdc00, chain_error=<optimized out>, context=0x25bacc0, user_data=<optimized out>) at settings/nm-settings.c:1048
#10 0x000000000047876d in auth_chain_finish (user_data=0x25bdc00) at nm-manager-auth.c:88
#11 0x00000035a8448815 in g_main_dispatch (context=0x2530ff0) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:3064
#12 g_main_context_dispatch (context=context@entry=0x2530ff0) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:3663
#13 0x00000035a8448b78 in g_main_context_iterate (context=0x2530ff0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:3734
#14 0x00000035a8448e3a in g_main_loop_run (loop=0x25317f0) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:3928
#15 0x0000000000428617 in main (argc=1, argv=0x7fff6151a118) at main.c:678
Comment 10 Ole Langbehn 2014-09-26 20:41:20 UTC
And I'm on kernel 3.16.3

emerge --info:

Portage 2.2.13 (python 2.7.8-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.19-r1, 3.16.3-gentoo x86_64)
=================================================================
System uname: Linux-3.16.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-4800MQ_CPU_@_2.70GHz-with-gentoo-2.2
KiB Mem:    16408064 total,   7114488 free
KiB Swap:   16653308 total,  16653308 free
Timestamp of tree: Wed, 24 Sep 2014 22:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo asux my_local_overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx2 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.1/conf /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/games/angband/edit/ /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core-avx2 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going -j --load-average 12.0 --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/asux /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl acpi alsa amd64 apache2 audiofile bash-completion berkdb bluetooth branding bsf bzip2 cairo caps cdda cddb cdparanoia cdr cli consolekit cracklib crypt css cups curl cvs cxx dbus dga directfb djvu dri dts dv dvd dvdr encode exif fbcon ffmpeg firefox flac fontconfig fortran ftp gd gdbm gif gimp glut gnome gnuplot gphoto2 gpm gstreamer gtk gtk3 gtkhtml gzip handbook iconv icq icu idn ieee1394 imagemagick imap imlib innodb ipod ipv6 jabber java java6 javascript jingle jpeg jpeg2k kde latex lcms ldap libnotify lm_sensors lzma lzo mad matroska mhash mime mmx mmxext mng modules mono motif mozilla mp3 mp4 mpeg mplayer multilib musicbrainz mysql mysqli ncurses nls nptl ocaml ocamlopt odbc ofx ogg openexr opengl openmp pam pcmcia pcre pdf pic plasma png policykit posix postgres ppds qt3support qt4 rdesktop readline recode rss ruby samba sasl sdl session sharedmem shorten smp sockets sound spell sqlite sqlite3 sse sse2 ssl startup-notification subversion svg syslog tcl tcpd theora threads tidy tiff truetype udev udisks unicode upower usb vaapi vhosts vim-syntax vnc vorbis wifi wmf wxwidgets x264 xcb xcomposite xft xine xinerama xml xmpp xosd xpm xscreensaver xsl xv xvid zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_connect proxy_http rewrite setenvif so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965 vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 11 Ole Langbehn 2014-09-27 10:47:42 UTC
versions installed while crash from backtrace happened:

libnl-3.2.25
networkmanager-0.9.10.0

Might have nothing to do with libnl, I downgraded and still got crashes.
Comment 12 Pacho Ramos gentoo-dev 2014-09-27 13:53:25 UTC
(In reply to Ole Langbehn from comment #11)
> versions installed while crash from backtrace happened:
> 
> libnl-3.2.25
> networkmanager-0.9.10.0
> 
> Might have nothing to do with libnl, I downgraded and still got crashes.

And, what is your setup related with packages reported in comment #0? (for example wpa_supplicant version)
Comment 13 Jelte Fennema 2014-09-27 13:59:57 UTC
I'm quite sure libnl is part of of the problem. Since my wireless only worked after I downgraded it.
Comment 14 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-27 18:34:19 UTC
(In reply to Jelte Fennema from comment #13)
> I'm quite sure libnl is part of of the problem. Since my wireless only
> worked after I downgraded it.

But that doesn't mean the problem is in networkmanager itself. If one of its runtime dependencies (did someone mention wpa_supplicant?) uses libnl as well, then the problem is probably there. So you should really answer comment #12.
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-27 18:35:17 UTC
Additionally: 

1) Please post your `emerge --info net-misc/networkmanager net-wireless/wpa_supplicant' output in a comment.
Comment 16 Sebastian Schüller 2014-09-27 23:45:28 UTC
Happend to me too; I tried the applying the patch from comment #6 but it didn't seem to fix it.

$ emerge --info networkmanager wpa_supplicant libnl
Portage 2.2.14_rc1 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.7.4, glibc-2.19-r1, 3.16.3-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.16.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-3520M_CPU_@_2.90GHz-with-gentoo-2.2
KiB Mem:    16162860 total,  14344496 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 27 Sep 2014 13:30:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p49
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.4, 4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo steam-overlay kde raiagent
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/steam /var/lib/layman/kde /var/lib/layman/raiagent"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif git glamor gpm gstreamer gtk iconv ipv6 jpeg kde kipi latex lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp opus otr pam pango pcre pdf perl phonon plasma png policykit ppds pulseaudio python qt3support qt4 readline sdl semantic-desktop session spell sqlite sse sse2 ssl startup-notification subversion svg tcpd tiff truetype udev udisks unicode upower usb vim-syntax vorbis wma wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel 915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

net-misc/networkmanager-0.9.10.0 was built with the following:
USE="consolekit dhclient introspection modemmanager ncurses nss ppp wext wifi -avahi -connection-sharing -dhcpcd -gnutls -resolvconf (-selinux) -systemd -teamd -test -vala" ABI_X86="64"


net-wireless/wpa_supplicant-2.2-r1 was built with the following:
USE="dbus (policykit) qt4 readline ssl -ap -eap-sim -fasteap -gnutls -p2p (-ps3) (-selinux) -smartcard -wimax -wps" ABI_X86="64"


dev-libs/libnl-3.2.25 was built with the following:
USE="python -static-libs -utils" ABI_X86="64 -32 -x32" PYTHON_TARGETS="python2_7 python3_3 -python3_2 -python3_4"
Comment 17 Ole Langbehn 2014-09-28 07:22:20 UTC
# emerge --info net-misc/networkmanager net-wireless/wpa_supplicant dev-libs/libnl modemmanager nm-applet
Portage 2.2.13 (python 2.7.8-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.19-r1, 3.16.3-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.16.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-4800MQ_CPU_@_2.70GHz-with-gentoo-2.2
KiB Mem:    16408064 total,   7848472 free
KiB Swap:   16653308 total,  16653308 free
Timestamp of tree: Wed, 24 Sep 2014 22:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo asux my_local_overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx2 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.1/conf /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/games/angband/edit/ /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core-avx2 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going -j --load-average 12.0 --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/asux /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl acpi alsa amd64 apache2 audiofile bash-completion berkdb bluetooth branding bsf bzip2 cairo caps cdda cddb cdparanoia cdr cli consolekit cracklib crypt css cups curl cvs cxx dbus dga directfb djvu dri dts dv dvd dvdr encode exif fbcon ffmpeg firefox flac fontconfig fortran ftp gd gdbm gif gimp glut gnome gnuplot gphoto2 gpm gstreamer gtk gtk3 gtkhtml gzip handbook iconv icq icu idn ieee1394 imagemagick imap imlib innodb ipod ipv6 jabber java java6 javascript jingle jpeg jpeg2k kde latex lcms ldap libnotify lm_sensors lzma lzo mad matroska mhash mime mmx mmxext mng modules mono motif mozilla mp3 mp4 mpeg mplayer multilib musicbrainz mysql mysqli ncurses nls nptl ocaml ocamlopt odbc ofx ogg openexr opengl openmp pam pcmcia pcre pdf pic plasma png policykit posix postgres ppds qt3support qt4 rdesktop readline recode rss ruby samba sasl sdl session sharedmem shorten smp sockets sound spell sqlite sqlite3 sse sse2 ssl startup-notification subversion svg syslog tcl tcpd theora threads tidy tiff truetype udev udisks unicode upower usb vaapi vhosts vim-syntax vnc vorbis wifi wmf wxwidgets x264 xcb xcomposite xft xine xinerama xml xmpp xosd xpm xscreensaver xsl xv xvid zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_connect proxy_http rewrite setenvif so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965 vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

net-misc/networkmanager-0.9.10.0 was built with the following:
USE="consolekit dhclient introspection ncurses nss wext wifi -avahi -connection-sharing -dhcpcd -gnutls -modemmanager -ppp -resolvconf (-selinux) -systemd -teamd -test -vala" ABI_X86="64"


net-wireless/wpa_supplicant-2.2-r1 was built with the following:
USE="dbus qt4 readline ssl -ap -eap-sim -fasteap -gnutls -p2p (-ps3) (-selinux) -smartcard -wimax -wps" ABI_X86="64"
CFLAGS="-march=core2 -O2 -pipe -ggdb"
CXXFLAGS="-march=core2 -O2 -pipe -ggdb"


dev-libs/libnl-3.2.25 was built with the following:
USE="-python -static-libs -utils" ABI_X86="64 -32 -x32" PYTHON_TARGETS="python2_7 python3_3 -python3_2 -python3_4"


gnome-extra/nm-applet-0.9.10.0 was built with the following:
USE="introspection -bluetooth -gconf -modemmanager" ABI_X86="64"
Comment 18 Pacho Ramos gentoo-dev 2014-09-28 12:16:08 UTC
and all the reporters should provide their backtraces to ensure they are not hitting different crashers (that could be caused by different things)
Comment 19 Jelte Fennema 2014-09-29 20:01:04 UTC
My backtrace:


(gdb) run
Starting program: /usr/sbin/NetworkManager --no-daemon
Vi-mode plugin deprecated. Please use fish's builtin instead.
Got object file from memory but can't read symbols: File truncated.
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff241e700 (LWP 16727)]
[New Thread 0x7ffff1c1d700 (LWP 16731)]
[New Thread 0x7ffff141c700 (LWP 16732)]
[New Thread 0x7fffeaee4700 (LWP 16739)]

(NetworkManager:16704): NetworkManager-ifnet-CRITICAL **: is_managed: assertion 'conn_name != NULL' failed

Program received signal SIGSEGV, Segmentation fault.
g_str_hash (v=0x0) at /var/tmp/portage/dev-libs/glib-2.40.2/work/glib-2.40.2/glib/ghash.c:1802
1802      for (p = v; *p != '\0'; p++)
(gdb) bt
#0  g_str_hash (v=0x0) at /var/tmp/portage/dev-libs/glib-2.40.2/work/glib-2.40.2/glib/ghash.c:1802
#1  0x00007ffff5bd3349 in g_hash_table_lookup_node (hash_return=<synthetic pointer>, key=0x0, hash_table=0x74ef60)
    at /var/tmp/portage/dev-libs/glib-2.40.2/work/glib-2.40.2/glib/ghash.c:368
#2  g_hash_table_lookup (hash_table=0x74ef60, key=key@entry=0x0)
    at /var/tmp/portage/dev-libs/glib-2.40.2/work/glib-2.40.2/glib/ghash.c:1092
#3  0x00007ffff0a0c163 in ifnet_get_data (conn_name=conn_name@entry=0x0, key=key@entry=0x7ffff0a154ba "mac") at net_parser.c:397
#4  0x00007ffff0a0a536 in check_unmanaged (key=<optimized out>, data=<optimized out>, user_data=0x7fffffffcee8) at plugin.c:398
#5  0x00007ffff5bd39e0 in g_hash_table_foreach (hash_table=0x759360, func=func@entry=0x7ffff0a0a4c0 <check_unmanaged>,
    user_data=user_data@entry=0x7fffffffcee8) at /var/tmp/portage/dev-libs/glib-2.40.2/work/glib-2.40.2/glib/ghash.c:1550
#6  0x00007ffff0a0afee in get_unmanaged_specs (config=<optimized out>) at plugin.c:423
#7  0x000000000045f1db in update_specs (self=self@entry=0x729d40, specs_ptr=0x729d28,
    get_specs_func=0x461540 <nm_system_config_interface_get_unmanaged_specs>) at settings/nm-settings.c:505
#8  0x000000000045f2aa in unmanaged_specs_changed (config=<optimized out>, user_data=<optimized out>) at settings/nm-settings.c:524
#9  0x00007ffff60e2398 in g_closure_invoke (closure=0x799be0, return_value=0x0, n_param_values=1, param_values=0x7fffffffd100,
    invocation_hint=0x7fffffffd090) at /var/tmp/portage/dev-libs/glib-2.40.2/work/glib-2.40.2/gobject/gclosure.c:768
#10 0x00007ffff60f3c4d in signal_emit_unlocked_R (node=node@entry=0x764830, detail=detail@entry=0, instance=instance@entry=0x720830,
    emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7fffffffd100)
    at /var/tmp/portage/dev-libs/glib-2.40.2/work/glib-2.40.2/gobject/gsignal.c:3551
#11 0x00007ffff60fb939 in g_signal_emit_valist (instance=instance@entry=0x720830, signal_id=signal_id@entry=35, detail=detail@entry=0,
    var_args=var_args@entry=0x7fffffffd2e0) at /var/tmp/portage/dev-libs/glib-2.40.2/work/glib-2.40.2/gobject/gsignal.c:3307
#12 0x00007ffff60fc132 in g_signal_emit_by_name (instance=instance@entry=0x720830,
    detailed_signal=detailed_signal@entry=0x7ffff0a155e8 "unmanaged-specs-changed")
    at /var/tmp/portage/dev-libs/glib-2.40.2/work/glib-2.40.2/gobject/gsignal.c:3403
#13 0x00007ffff0a0ac2d in reload_connections (config=config@entry=0x720830) at plugin.c:321
#14 0x00007ffff0a0af62 in add_connection (config=0x720830, source=0x7e2fa0, save_to_disk=1, error=0x7fffffffd548) at plugin.c:369
#15 0x000000000045fcf7 in nm_settings_add_connection (self=self@entry=0x729d40, connection=connection@entry=0x7e2fa0, save_to_disk=1,
    error=error@entry=0x7fffffffd5d8) at settings/nm-settings.c:942
#16 0x000000000046001f in pk_add_cb (chain=0x7557d0, chain_error=<optimized out>, context=0x799110, user_data=<optimized out>)
    at settings/nm-settings.c:1048
#17 0x00000000004790cd in auth_chain_finish (user_data=0x7557d0) at nm-manager-auth.c:88
#18 0x00007ffff5be3865 in g_main_dispatch (context=0x73b3e0)
    at /var/tmp/portage/dev-libs/glib-2.40.2/work/glib-2.40.2/glib/gmain.c:3064
#19 g_main_context_dispatch (context=context@entry=0x73b3e0)
    at /var/tmp/portage/dev-libs/glib-2.40.2/work/glib-2.40.2/glib/gmain.c:3663
#20 0x00007ffff5be3bc8 in g_main_context_iterate (context=0x73b3e0, block=block@entry=1, dispatch=dispatch@entry=1,
    self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.40.2/work/glib-2.40.2/glib/gmain.c:3734
#21 0x00007ffff5be3e8a in g_main_loop_run (loop=0x7396e0) at /var/tmp/portage/dev-libs/glib-2.40.2/work/glib-2.40.2/glib/gmain.c:3928
#22 0x0000000000428f67 in main (argc=1, argv=0x7fffffffdbc8) at main.c:678
(gdb)
Comment 20 Jelte Fennema 2014-09-29 20:02:59 UTC
Created attachment 385780 [details]
emerge --info

My emerge --info
Comment 21 Pacho Ramos gentoo-dev 2014-09-29 20:29:58 UTC
Thanks, could you please open a bug upstream at bugzilla.gnome.org providing the backtrace? It is important that you paste the backtrace in the report (don't attach it) to allow their bugzilla to detect duplicated and similar bug reports
Comment 22 Jelte Fennema 2014-09-30 11:55:03 UTC
My report at the gnome bugzilla:
https://bugzilla.gnome.org/show_bug.cgi?id=737645
Comment 23 Ole Langbehn 2014-10-01 00:00:28 UTC
Here's my upstream ticket:

https://bugzilla.gnome.org/show_bug.cgi?id=737691
Comment 24 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-03 09:21:07 UTC
(In reply to Jelte Fennema from comment #22)
> My report at the gnome bugzilla:
> https://bugzilla.gnome.org/show_bug.cgi?id=737645

g_str_hash (v=0x0) at .../work/glib-2.40.2/glib/ghash.c:1802

(In reply to Ole Langbehn from comment #23)
> Here's my upstream ticket:
> 
> https://bugzilla.gnome.org/show_bug.cgi?id=737691

g_assertion_message (domain=domain@entry=0x4c453c "NetworkManager", file=file@entry=0x4c874f "nm-dbus-manager.c", line=line@entry=901, func=func@entry=0x4c8d00 <FUNCTION.15711> "nm_dbus_manager_unregister_object", 
	message=message@entry=0xe6afb0 "assertion failed: (G_IS_OBJECT (object))") at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gtestutils.c:2291

That's a different bug, then?
Comment 25 Cyb3r-Assassin 2014-10-03 09:26:14 UTC
Fixed with this configuration
=dev-libs/newt-0.52.15 ~amd64
=net-libs/libndp-1.4 ~amd64
net-misc/networkmanager ~amd64
Comment 26 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-03 10:27:18 UTC
(In reply to Cyb3r-Assassin from comment #25)
> Fixed with this configuration
> =dev-libs/newt-0.52.15 ~amd64
> =net-libs/libndp-1.4 ~amd64
> net-misc/networkmanager ~amd64

Fix what?
Comment 27 Cyb3r-Assassin 2014-10-03 17:43:41 UTC
(In reply to Jeroen Roovers from comment #26)
> (In reply to Cyb3r-Assassin from comment #25)
> > Fixed with this configuration
> > =dev-libs/newt-0.52.15 ~amd64
> > =net-libs/libndp-1.4 ~amd64
> > net-misc/networkmanager ~amd64
> 
> Fix what?

net-misc/networkmanager-0.9.10.0 with dev-libs/libnl-3.2.25 is broken as per this bug details. If you're using dev-libs/libnl-3.2.25 you need to bring NM up to 0.9.10.0 and dev-libs/newt up to 0.52.15 and everything will work again.
Comment 28 Pacho Ramos gentoo-dev 2014-10-03 18:29:04 UTC
I cannot reproduce any crash with libnl-3.2.25 :|
Comment 29 Pacho Ramos gentoo-dev 2014-10-03 18:50:19 UTC
(In reply to Jelte Fennema from comment #0)
> I upgraded my world (including networkmanager) yesterday and now
> networkmanager crashes every time I try to connect to a wireless network. It
> shows the available wireless networks in nm-applet, but when I click on one
> it pops up a dialog with:
> 

What I would try is to review /var/log/emerge.log to see what concrete packages were updated, then, downgrade them all and see if they still work. If they work, start updating one by one (well, the nm-applet, networkmanager and network-manager-$plugins should be updated at the same time... but for the rest)
Comment 30 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-03 18:54:28 UTC
(In reply to Cyb3r-Assassin from comment #27)
> net-misc/networkmanager-0.9.10.0 with dev-libs/libnl-3.2.25 is broken as per
> this bug details. If you're using dev-libs/libnl-3.2.25 you need to bring NM
> up to 0.9.10.0 and dev-libs/newt up to 0.52.15 and everything will work
> again.

That's just plain wrong. You didn't point out what issue you had that was apparently fixed. This bug is already juggling two different segmentation faults because people are seeing something "similar" and you're just piling on more misinformation.
Comment 31 hongruiqi 2014-10-08 06:40:47 UTC
Created attachment 386226 [details, diff]
patch

Seems something wrong with format string of dhcp config.

It causes value of config_xxx to span multiple lines in /etc/conf.d/net, like

config_scut="
    dhcp
    dhcp6
"

I don't known whether this may cause ifnet handling config incorrectly?

After applying this patch, segment fault in https://bugzilla.gnome.org/show_bug.cgi?id=737645 never appeared.
Comment 32 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-08 06:46:52 UTC
Apparently this bug deals with everything that could ever go wrong with networkmanager.
Comment 33 Pacho Ramos gentoo-dev 2014-10-11 11:47:36 UTC
(In reply to hongruiqi from comment #31)
> Created attachment 386226 [details, diff] [details, diff]
> patch
> 
> Seems something wrong with format string of dhcp config.
> 
> It causes value of config_xxx to span multiple lines in /etc/conf.d/net, like
> 
> config_scut="
>     dhcp
>     dhcp6
> "
> 
> I don't known whether this may cause ifnet handling config incorrectly?
> 
> After applying this patch, segment fault in
> https://bugzilla.gnome.org/show_bug.cgi?id=737645 never appeared.

Can people try this patch? Looks like this is a problem with "ifnet" plugin :S
Comment 34 Pacho Ramos gentoo-dev 2014-10-13 20:49:26 UTC
+*networkmanager-0.9.10.0-r1 (13 Oct 2014)
+
+  13 Oct 2014; Pacho Ramos <pacho@gentoo.org>
+  +files/networkmanager-0.9.10.0-arpingpath.patch,
+  +networkmanager-0.9.10.0-r1.ebuild:
+  Ifnet plugin is now disabled because of it being unattended and unmaintained
+  for a long time, leading to some unfixed bugs and new problems appearing
+  (#443596, #458274, #493370, #498372, #523700). If some day somebody volunteers
+  for fixing/maintaining that plugin and forwarding all that fixes to upstream
+  it could be re-enabled of course. Append configure option regarding systemd
+  unit files install path only when systemd support is enabled to prevent
+  HAVE_SYSTEMD to be true (#524534 by Konstantin Ivanov). Ensure arping is found
+  (#523632 by Kobboi).
+

Please retry with this version that will use keyfile plugin. If you still hit crashes, please get a new backtrace
Comment 35 Ole Langbehn 2014-10-25 09:53:48 UTC
Just to let you know, with updated packages my issue is gone.
Comment 36 Pacho Ramos gentoo-dev 2014-10-25 10:31:30 UTC
Thanks for feedback :)