Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230221 - gnome-base/nautilus and gtk file picker segfault if blank cd is in cd drive
Summary: gnome-base/nautilus and gtk file picker segfault if blank cd is in cd drive
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High major with 1 vote (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-30 16:41 UTC by Michael Arntzenius
Modified: 2009-05-31 08:49 UTC (History)
0 users

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


Attachments
gdb backtrace of the nautilus crash (backtrace,1.46 KB, text/plain)
2008-06-30 16:45 UTC, Michael Arntzenius
Details
backtrace after recompilation -O2 (btrace,1.53 KB, text/plain)
2008-07-03 16:27 UTC, Michael Arntzenius
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Arntzenius 2008-06-30 16:41:48 UTC
If I insert a blank cd (specifically a blank cdr, not an audio or data cd; those don't cause this problem) into my laptop's cd drive and then start nautilus, it segfaults immediately without writing any error message to stdout/err. Alternatively, I can start nautilus and then insert the blank cd; the cd light shows some activity for a brief period before nautilus segfaults. The same happens to any application using a gtk file picker.

Reproducible: Always

Steps to Reproduce:
1. Insert a blank cdr into cd drive
2. Run nautilus OR open a gtk file picker in ANY application.

OR

1. Run nautilus OR open a gtk file picker in ANY application.
2. Insert a blank cdr into cd drive.
3. Wait for a few seconds.



emerge --info:

Portage 2.2_rc1 (default-linux/amd64/2006.1/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.21-suspend2-r7 x86_64)
=================================================================
System uname: Linux-2.6.21-suspend2-r7-x86_64-Intel-R-_Core-TM-2_CPU_T5600_@_1.83GHz-with-glibc2.2.5
Timestamp of tree: Mon, 30 Jun 2008 07:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.23-r3
ABI="amd64"
ACCEPT_KEYWORDS="amd64 ~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 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"
CACA_FONT="5x7"
CACA_GEOMETRY="256x114"
CBUILD="x86_64-pc-linux-gnu"
CCACHE_DIR="/var/tmp/ccache/"
CCACHE_SIZE="2G"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-O0 -g -march=nocona -pipe"
CFLAGS_x86="-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
COLORFGBG="15;0"
COLORTERM="rxvt"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-O0 -g -march=nocona -pipe"
DEFAULT_ABI="amd64"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_WARNING_DELAY="10"
FEATURES="ccache distlocks nostrip parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GDK_USE_XFT="1"
GENERATION="2"
GENTOO_MIRRORS="http://lug.mtu.edu/gentoo/ http://gentoo.binarycompass.org/ http://gentoo.osuosl.org/"
GIT_EDITOR="emacsclient"
GPG_AGENT_INFO="/tmp/gpg-sPBhSk/S.gpg-agent:2623:1"
HG="/usr/bin/hg"
HGEDITOR="emacsclient"
HOME="/home/daedalus"
HUSHLOGIN="FALSE"
INFODIR="/usr/GNUstep/System/Library/Documentation/info:/usr/GNUstep/Local/Library/Documentation/info"
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.1/info:/usr/share/info/emacs-23:/usr/GNUstep/System/Library/Documentation/info:/usr/GNUstep/Local/Library/Documentation/info"
INPUT_DEVICES="keyboard mouse"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS=""
LDFLAGS_x86="-m elf_i386 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_x86="lib32"
LIBGL_DRIVERS_PATH="/usr/lib64/dri:/usr/lib32/dri"
LOGNAME="root"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36: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: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:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=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:*.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:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=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:"
MAIL="/var/mail/daedalus"
MAKEOPTS="-j3"
MANPATH="/etc/java-config-2/current-system-vm/man:/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.1/man:/opt/blackdown-jdk-1.4.2.03/man:/etc/java-config/system-vm/man/:/usr/GNUstep/System/Library/Documentation/man:/usr/GNUstep/Local/Library/Documentation/man"
MC_MODE=""
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib /usr/lib /usr/kde/*/lib /usr/qt/*/lib /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
NOCOLOR="true"
OLDPWD="/home/daedalus"
OPENGL_PROFILE="xorg-x11"
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_NICENESS="5"
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_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="   "
PORT_LOGDIR="/var/log/portage/"
PWD="/home/daedalus"
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.1:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin"
RPMDIR="/usr/portage/rpm"
RUBYOPT="-rauto_gem"
SBCL_HOME="/usr/lib64/sbcl"
SBCL_SOURCE_ROOT="/usr/lib64/sbcl/src"
SHELL="/bin/zsh"
SHLVL="3"
SSH_AGENT_PID="2597"
SSH_AUTH_SOCK="/tmp/ssh-mTVWpG2596/agent.2596"
STAGE1_USE="nptl nptlonly unicode"
STY="12596.pts-1.elysium"
SUDO_COMMAND="/usr/bin/emerge -v --info"
SUDO_GID="1000"
SUDO_UID="1000"
SUDO_USER="daedalus"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="screen"
TEXINPUTS="/usr/lib64/ocaml/ocamldoc:"
USE="X a52 aac acpi aim alsa amd64 ao apm bash-completion berkdb bluetooth bzip2 cairo caps cddb cdparanoia cdr cli cracklib crypt css cups curl dbus dri dvd dvdr emacs emboss encode exif fam ffmpeg fftw firefox flac fortran ftp fuse gdbm gif gmp gnome gnutls gpm gstreamer gtk gtk2 gtkhtml hal hardened iconv imap imlib ipod ipv6 isdnlog jabber java jpeg latex ldap libedit mad matroska midi mikmod mime mmap mp3 mpeg mplayer mudflap mule musepack ncurses nls nptl nptlonly nsplugin objc objc-gc ogg openmp pam pcmcia pcre pdf png ppds pppd python quicktime readline reflection sasl sdl session sharedmem smp sockets spell spl sqlite sqlite3 ssl startup-notification svg tcpd theora threads tidy tiff truetype unicode usb vorbis wifi x264 xft xml xorg xpm xulrunner xv xvid 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 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
USER="root"
USERLAND="GNU"
USERNAME="root"
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 USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="radeon"
VMHANDLE="blackdown-jdk-1.4.2"
WINDOW="2"
WINDOWID="14680070"
WINDOWPATH="8"
WMII_9MENU="wmii9menu -font -*-architect-medium-r-normal-*-11-* -nf #eeeeee -nb #000000 -sf #ff5500 -sb #151515 -br unusedn"
WMII_ADDRESS="unix!/tmp/ns.daedalus.:0/wmii"
WMII_CONFPATH="/home/daedalus/.wmii-3.5:/usr/local/etc/wmii-3.5"
WMII_FOCUSCOLORS="#ffa000 #080840 #404099"
WMII_FONT="-*-architect-medium-r-normal-*-11-*"
WMII_MENU="dmenu -b -fn -*-architect-medium-r-normal-*-11-* -nf #eeeeee -nb #000000 -sf #ff5500 -sb #151515"
WMII_NORMCOLORS="#dddddd #000000 #666666"
WMII_NS_DIR="/tmp/ns.daedalus.:0"
WMII_TERM="urxvtc -e screen zsh"
XAUTHORITY="/home/daedalus/.Xauthority"
XDG_SESSION_COOKIE="2e7840e1f12c9be864bb120045be8a70-1214829248.144610-1811810501"
_="/usr/bin/sudo"
Comment 1 Michael Arntzenius 2008-06-30 16:45:27 UTC
Created attachment 158977 [details]
gdb backtrace of the nautilus crash
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-06-30 21:26:01 UTC
erm, worksforme. The backstrace seems to be missing some important elements so you'd probably want to rebuild more packages with debugging symbols.

Please also try to compile glib/gvfs/nautilus with -O2 not -O0 (I know this looks silly but just try it)
Comment 3 Michael Arntzenius 2008-07-03 16:27:29 UTC
Created attachment 159431 [details]
backtrace after recompilation -O2

Here's the backtrace after I recompiled glib/gvfs/nautilus with -O2.

The last call in the stack trace is at address 0x0. This is what happens if you call a function pointer equal to 0 (ie NULL), so I'm not sure it's indicative of something "missing" from the backtrace. And, sure enough, gfile.c:4013 calls through a function pointer:

static void
open_read_async_thread (GSimpleAsyncResult *res,
			GObject            *object,
			GCancellable       *cancellable)
{
  GFileIface *iface;
  GFileInputStream *stream;
  GError *error = NULL;

  iface = G_FILE_GET_IFACE (object);
  // this is line 4013
  stream = iface->read_fn (G_FILE (object), cancellable, &error); // and here's the function pointer call

  if (stream == NULL)
    {
      g_simple_async_result_set_from_error (res, error);
      g_error_free (error);
    }
  else
    g_simple_async_result_set_op_res_gpointer (res, stream, g_object_unref);
}

If the backtrace is still not good enough, what other packages should I compile with debugging enabled to get a better one?
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-02-28 13:17:41 UTC
Ouch sorry for not getting back to you sooner. It seems that the issue is in gvfs if I got you right. Does it still happen with gvfs-1.0.3 or latest 0.2.5 in tree ?
Could you report it upstream if so and paste the link here ?
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-05-31 08:49:08 UTC
please get back to us.