Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303257 - nm-connection-editor connection list empty
Summary: nm-connection-editor connection list empty
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-02 20:00 UTC by Schrangl Lukas
Modified: 2014-09-13 15:34 UTC (History)
7 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 Schrangl Lukas 2010-02-02 20:00:07 UTC
nm-connection-editor won't show any connections, the list is simply empty.

Reproducible: Always

Steps to Reproduce:
Start nm-connection-editor in a terminal

Actual Results:  
This is the output I get:
** (nm-connection-editor:27912): WARNING **: No registered treeview for connection type '802-3-ethernet'

** (nm-connection-editor:27912): WARNING **: No registered treeview for connection type '802-11-wireless'

** (nm-connection-editor:27912): WARNING **: No registered treeview for connection type 'vpn'

** (nm-connection-editor:27912): WARNING **: No registered treeview for connection type '802-3-ethernet'


Expected Results:  
It should simply work, as it does on other computers/distributions

Portage 2.1.6.13 (hardened/linux/amd64/10.0/no-multilib, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-hardened-r2 x86_64)
=================================================================
System uname: Linux-2.6.32-hardened-r2-x86_64-AMD_Athlon-tm-_II_X2_240e_Processor-with-gentoo-1.12.13
Timestamp of tree: Sun, 31 Jan 2010 01:45:01 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ABI="amd64"
ACCEPT_KEYWORDS="amd64"
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"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol"
APACHE2_MODULES="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 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"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-march=amdfam10 -O2 -pipe -fforce-addr"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
COLORTERM="gnome-terminal"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /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 /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-march=amdfam10 -O2 -pipe -fforce-addr"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-5HnEhrwtLB,guid=991b8160ba4d2c00e44dbad94b682a9a"
DEFAULT_ABI="amd64"
DESKTOP_SESSION="gnome"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="-v"
EMERGE_WARNING_DELAY="10"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GDK_USE_XFT="1"
GDMSESSION="gnome"
GDM_LANG="de_AT.UTF-8"
GDM_XSERVER_LOCATION="local"
GENTOO_MIRRORS="http://gentoo.inode.at/ http://gentoo.lagis.at/ http://gentoo.c3sl.ufpr.br/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ "
GNOME_DESKTOP_SESSION_ID="this-is-deprecated"
GNOME_KEYRING_PID="5566"
GNOME_KEYRING_SOCKET="/tmp/keyring-rGbMwV/socket"
GTK_RC_FILES="/etc/gtk/gtkrc:/home/lukas/.gtkrc-1.2-gnome2"
HOME="/home/lukas"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/info"
INPUT_DEVICES="evdev"
KERNEL="linux"
LANG="de_AT.UTF-8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LINGUAS="de"
LOGNAME="lukas"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAKEOPTS="-j3"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/man"
MULTILIB_ABIS="amd64"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OLDPWD="/home/lukas/Software/nm/network-manager-applet-0.7.2/src"
OPENGL_PROFILE="xorg-x11"
ORBIT_SOCKETDIR="/tmp/orbit-lukas"
PAGER="/usr/bin/less"
PATH="/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4:/usr/games/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc x86-openbsd ppc-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage_local/hardened-dev"
PRELINK_PATH_MASK="/usr/lib64/klibc"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/home/lukas/Software/nm/network-manager-applet-0.7.2"
PYTHONDONTWRITEBYTECODE="1"
QEMU_USER_TARGETS="arm armeb i386 mips mipsel ppc ppc64 ppc64abi32 x86_64"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby18"
SANE_CONFIG_DIR="/etc/sane.d"
SESSION_MANAGER="local/luktopf3:@/tmp/.ICE-unix/5580,unix/luktopf3:/tmp/.ICE-unix/5580"
SHELL="/bin/bash"
SHLVL="1"
SSH_AGENT_PID="5599"
SSH_AUTH_SOCK="/tmp/keyring-rGbMwV/socket.ssh"
STAGE1_USE="hardened nptl nptlonly pic"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
USB_DEVFS_PATH="/dev/bus/usb"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bzip2 cairo cddb cdr cli consolekit cracklib crypt cups cxx dbus djvu dri dvb dvd dvdr eds exif fam ffmpeg flac gdbm gmp gnome gnome-keyring gpm gstreamer gtk hal hardened iconv icu ipv6 jpeg justify lcms libnotify lzo mad mmap mmx modules mp3 mpeg mudflap ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pcre pdf perl pic png policykit pppd python readline reflection resolvconf scanner session smp sndfile spl sse sse2 ssl startup-notification svg sysfs tcpd theora threads tiff truetype unicode urandom usb v4l v4l2 vim-syntax vorbis wmf x264 xcb xml xorg xulrunner xv xvid xvmc zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" QEMU_USER_TARGETS="arm armeb i386 mips mipsel ppc ppc64 ppc64abi32 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon"
USER="lukas"
USERLAND="GNU"
USERNAME="lukas"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="radeon"
WINDOWID="41954882"
WINDOWPATH="7"
XAUTHORITY="/home/lukas/.Xauthority"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share:/usr/share/gdm"
XDG_MENU_PREFIX="gnome-"
XDG_SESSION_COOKIE="053e405b3137aa1d6a1c46694b5d64b3-1265117850.4789-1293226234"
_="/usr/bin/emerge"
bash4="4.0.35(2)-release"
Comment 1 Schrangl Lukas 2010-02-02 20:12:45 UTC
I forgot to say, networkmanager and nm-applet's versions are 0.7.2 for both.

The problem seems to in src/connection-editor/nm-connection-list.c, function

static GtkTreeView *
get_treeview_for_type (NMConnectionList *list, GType ctype)

153: if (candidate_type == ctype)
seems to always fail for some reason;
once I change the line to
if ((unsigned int)candidate_type == (unsigned int)ctype)
it works as expected (I am not familiar with glib and stuff, so this is probably not the right way to do it; interesting enough is, that
if ((void*)candidate_type == (void*)ctype)
also fails... How come comparing pointers doesn't work?)
Comment 2 Alex Brandt (RETIRED) gentoo-dev 2010-02-26 03:42:36 UTC
Is this stopping networkmanager from connecting to ethernet or nm-applet connecting to networkmanager?  If so could you attach /etc/dbus-1/system.d/NetworkManager.conf to this bug?  If the connection works we'll have to look at the gtk+ version possibly not being correct for networkmanager.
Comment 3 Schrangl Lukas 2010-02-26 14:28:20 UTC
NetworkManger works fine, even the nm-applet itself (the thing in the notification area) does its job, shows all my VPNs and stuff. The only thing that doesn't work is the connection editor (nm-connection-editor) and the problem seems to be the code line I pointed out in comment #1. Maybe that's related to PIC (this is a hardened profile). Still strange, google didn't show one other person with the same problem.
Comment 4 Alex Brandt (RETIRED) gentoo-dev 2010-02-26 17:15:28 UTC
Does nm-connection editor come up correctly if you say right click nm-applet and click "edit connections?"  Otherwise can you let me know what version your x11-libs/gtk+ is.
Comment 5 Schrangl Lukas 2010-02-26 22:17:40 UTC
The dialog appears fine, either with right click on the icon and then edit or left click and then the edit button in the VPN submenu. I can even add a connection, which will appear in the list of the applet, but it won't appear in the nm-connection-editor's list. Anyways, here is what i have installed:

x11-libs/gtk+-2.16.6  USE="cups jpeg tiff vim-syntax -debug -doc -jpeg2k -test -xinerama"

dev-libs/glib-2.20.5-r1  USE="fam hardened -debug -doc (-selinux) -xattr"
Comment 6 Alex Brandt (RETIRED) gentoo-dev 2010-02-28 00:09:44 UTC
Just out of curiosity does a newer version of gtk+ fix the problem as well as the patch you posted?
Comment 7 Schrangl Lukas 2010-02-28 02:32:13 UTC
I upgraded to

dev-libs/glib-2.22.4  USE="fam hardened -debug -doc (-selinux) -xattr"
x11-libs/gtk+-2.18.6  USE="cups jpeg tiff vim-syntax (-aqua) -debug -doc -jpeg2k -test -xinerama"

and (to be sure) rebooted, but no change.
BTW I wouldn't consider what I did a solution, unless it is specified somewhere that an unsigned int has to be at least the size of a pointer.
Comment 8 Thomas Sachau gentoo-dev 2010-03-11 19:48:14 UTC
Could you tell me, where you got that ebuild from? I dont see it in main portage tree.
Comment 9 Alex Brandt (RETIRED) gentoo-dev 2010-03-11 19:57:30 UTC
That ebuild is in the main portage tree as shown here:
eix -I networkmanager
[I] net-misc/networkmanager
     Available versions:  0.6.6 (~)0.7.1-r3 0.7.1-r6 (~)0.7.1_p20090824 0.7.2 (~)0.8 {avahi bluetooth connection-sharing crypt debug dhclient dhcpcd doc gnome gnutls nss resolvconf}                                                                         
     Installed versions:  0.8(05:09:28 PM 02/26/2010)(bluetooth dhcpcd doc gnutls nss -avahi -connection-sharing -dhclient -resolvconf)                                                                                                                       
     Homepage:            http://www.gnome.org/projects/NetworkManager/
     Description:         Network configuration and management in an easy way. Desktop environment independent.
Comment 10 Schrangl Lukas 2010-03-11 23:26:32 UTC
It's in the main tree, latest stable version (it is also in what you pasted here, right between (~)0.7.1_p20090824 and (~)0.8).
Comment 11 Ronald 2010-06-20 07:12:38 UTC
Just did an emerge -e world a couple of days ago (hardened profile). I can confirm this bug is hardened specific. When compiled with PIE, nm-connection-editor does not list any network connections (altough they are available and working).

This is fixed by switching to the nopie gcc configuration under hardened.
Comment 12 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-07-07 17:58:04 UTC
(In reply to comment #11)
> Just did an emerge -e world a couple of days ago (hardened profile). I can
> confirm this bug is hardened specific. When compiled with PIE,
> nm-connection-editor does not list any network connections (altough they are
> available and working).
> 
> This is fixed by switching to the nopie gcc configuration under hardened.
> 

Thanks for the follow-up, reassigning to hardened...
Comment 13 Xake 2012-02-19 06:42:14 UTC
Is this bug still valid? I cannot remember ever having this problem.
That said, I am not using nm-connection-editor THAT often.
Comment 14 Magnus Granberg gentoo-dev 2012-02-19 10:50:37 UTC
Do this still heppen if you use newer compiler like 4.5.3?
Comment 15 Alex Brandt (RETIRED) gentoo-dev 2014-08-30 21:15:04 UTC
I assume with these versions of networkmanager and nm-applet no longer in the tree that this bug is invalid.

If I don't hear anything by Sept 13, I'll go ahead and close this bug as invalid.