Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534064 - Segmentaion fault when running '/usr/sbin/NetworkManager --no-daemon'
Summary: Segmentaion fault when running '/usr/sbin/NetworkManager --no-daemon'
Status: RESOLVED DUPLICATE of bug 515132
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-31 05:55 UTC by Marat Nepomnyashy
Modified: 2015-01-01 05:50 UTC (History)
1 user (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 Marat Nepomnyashy 2014-12-31 05:55:08 UTC
Segmentaion fault when running '/usr/sbin/NetworkManager --no-daemon'

***************************************************************************

Output looks like this:

root# /usr/sbin/NetworkManager --no-daemon
NetworkManager[5945]: <info> NetworkManager (version 0.9.8.10) is starting...
NetworkManager[5945]: <info> Read config file /etc/NetworkManager/NetworkManager.conf
NetworkManager[5945]: <info> WEXT support is enabled
Segmentation fault

***************************************************************************

Output with gdb:

root# gdb /usr/sbin/NetworkManager --args /usr/sbin/NetworkManager --no-daemon
GNU gdb (Gentoo 7.7.1 p1) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/NetworkManager...Reading symbols from /usr/lib64/debug//usr/sbin/NetworkManager.debug...done.
done.
(gdb) run
Starting program: /usr/sbin/NetworkManager --no-daemon
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 0x7fffeaba9700 (LWP 6016)]
NetworkManager[6012]: <info> NetworkManager (version 0.9.8.10) is starting...
NetworkManager[6012]: <info> Read config file /etc/NetworkManager/NetworkManager.conf
NetworkManager[6012]: <info> WEXT support is enabled

Program received signal SIGSEGV, Segmentation fault.
0x00000000004697ae in nm_netlink_monitor_attach (self=0x710620) at nm-netlink-monitor.c:478
478		g_return_if_fail (NM_IS_NETLINK_MONITOR (self));
(gdb) 


***************************************************************************

Output of 'emerge --info net-misc/networkmanager':
root# emerge --info net-misc/networkmanager 
Portage 2.2.14 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.10.17-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.17-gentoo-x86_64-Intel-R-_Core-TM-_i7-3520M_CPU_@_2.90GHz-with-gentoo-2.2
KiB Mem:    16396368 total,  14850720 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Wed, 31 Dec 2014 01:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.9-r1, 3.2.5-r6, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.12.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
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 multilib my_local_overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -ggdb"
DISTDIR="/var/cache/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news noclean parallel-fetch 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.datapipe.net/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/ http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo http://gentoo.mirrors.hoobly.com/ http://lug.mtu.edu/gentoo/ http://gentoo.netnitco.net http://gentoo.mirrors.pair.com/ rsync://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/ http://mirror.iawnet.sandia.gov/gentoo/ http://gentoo.llarian.net/ rsync://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tds.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.cs.uni.edu/ http://mirror.usu.edu/mirrors/gentoo/"
LANG="en_US.UTF-8"
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/multilib-portage /usr/local/portage"
SYNC="rsync://rsync15.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml 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="keyboard mouse 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="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

net-misc/networkmanager-0.9.8.10-r1 was built with the following:
USE="bluetooth connection-sharing consolekit dhcpcd introspection modemmanager nss ppp resolvconf wext wifi -avahi -dhclient -gnutls -systemd -test -vala" ABI_X86="64"
Comment 1 Marat Nepomnyashy 2014-12-31 05:56:39 UTC
Output of gdb backtrace:

(gdb) backtrace
#0  0x00000000004697ae in nm_netlink_monitor_attach (self=0x710620) at nm-netlink-monitor.c:478
#1  0x000000000046a3e4 in nm_netlink_monitor_get () at nm-netlink-monitor.c:841
#2  0x0000000000426eba in main (argc=1, argv=0x7fffffffe608) at main.c:527
Comment 2 Paul Tobias 2014-12-31 13:19:58 UTC
I have the same issue (probably since I upgraded to net-misc/networkmanager-0.9.8.10-r1). But for me it's happening even with --no-daemon. When I run:
 /etc/init.d/NetworkManager start
I get this in the log:
kernel: [15143.235291] traps: NetworkManager[13018] general protection ip:46969e sp:7ffff121ca40 error:0 in NetworkManager[400000+103000]

gdb shows it's the same issue:
(gdb) backtrace
#0  0x000000000046969e in nm_netlink_monitor_attach ()
#1  0x000000000046a2d4 in nm_netlink_monitor_get ()
#2  0x0000000000426dfa in main ()
Comment 3 Paul Tobias 2014-12-31 13:33:31 UTC
Found the solution here: https://bugs.funtoo.org/browse/FL-1310

Downgrading to either dev-libs/libnl-3.2.23 or dev-libs/libnl-3.2.24-r1 works. So I added =dev-libs/libnl-3.2.25 to /etc/portage/package.mask.

(I don't want to use the latest net-misc/networkmanager-0.9.10.1_pre20141101 because that depends on net-wireless/bluez-5, where duplex profiles are not working.)
Comment 4 Pacho Ramos gentoo-dev 2014-12-31 21:13:39 UTC

*** This bug has been marked as a duplicate of bug 515132 ***
Comment 5 Marat Nepomnyashy 2015-01-01 05:50:34 UTC
(In reply to Paul Tobias from comment #3)
> Found the solution here: https://bugs.funtoo.org/browse/FL-1310
> 
> Downgrading to either dev-libs/libnl-3.2.23 or dev-libs/libnl-3.2.24-r1
> works. So I added =dev-libs/libnl-3.2.25 to /etc/portage/package.mask.
> 
> (I don't want to use the latest net-misc/networkmanager-0.9.10.1_pre20141101
> because that depends on net-wireless/bluez-5, where duplex profiles are not
> working.)

Thanks a lot Paul!  I also have bluez-5 masked.  So I masked '=dev-libs/libnl-3.2.25' as well and now no more segfaults from networkmanager.  Thanks a lot!!!