Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 201615 - sys-block/gparted-0.3.3 crashes when unmounting ext2 partition
Summary: sys-block/gparted-0.3.3 crashes when unmounting ext2 partition
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-07 21:06 UTC by Vladimír Čunát
Modified: 2008-01-14 00:03 UTC (History)
3 users (show)

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


Attachments
the backtrace (gparted-bugreport.txt,258.80 KB, text/plain)
2007-12-07 21:07 UTC, Vladimír Čunát
Details
backtrace from gdb on refreshing devices (backtrace.txt,3.17 KB, text/plain)
2008-01-07 02:31 UTC, Man Shankar
Details
gparted-0.3.3-r1.ebuild (gparted-0.3.3-r1.ebuild,990 bytes, text/plain)
2008-01-12 15:01 UTC, Small_Penguin
Details
Patch required by gparted-0.3.3-r1.ebuild (gparted-0.3.3-refresh-devices-crash.patch,748 bytes, patch)
2008-01-12 15:03 UTC, Small_Penguin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimír Čunát 2007-12-07 21:06:32 UTC
I'm attaching a complete backtrace, enjoy :)

Reproducible: Always

Steps to Reproduce:
1.run gparted
2.select to unmount my ext2 volume

Actual Results:  
just crashed and the volume really got unmounted

Expected Results:  
shouldn't crash
Comment 1 Vladimír Čunát 2007-12-07 21:07:19 UTC
Created attachment 137975 [details]
the backtrace
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-12-07 22:51:01 UTC
Reopen with ebuild name, exact version and emerge --info.

http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 3 Vladimír Čunát 2007-12-08 08:19:55 UTC
Portage 2.1.3.19 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 i686)
=================================================================
System uname: 2.6.23-gentoo-r3 i686 Intel(R) Pentium(R) M processor 1.73GHz
Timestamp of tree: Sat, 08 Dec 2007 07:46:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.supp.name/ http://gentoo.mirror.web4u.cz/ ftp://gentoo.mirror.web4u.cz/ "
LANG="C"
LINGUAS="cs en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="bzip2"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl acpi ads alsa bash-completion battery bitmap-fonts branding bzip2 cairo cdaudio cddb cdr cdrom cli cpudetection cpufreq cracklib crypt css cups dbus dga directfb disk-partition dmi dri dvd dvdnav dvdread dvi enca encode erandom exif fat fbcon fbdev ffmpeg firefox fortran ftp gif glibc-omitfp glut gnome gnutella gpm gstreamer gtk hal hddtemp hpn hwmixer icc iconv icq id3tag imlib isdnlog jpeg jpeg2k kdexdeltas kdrive kerberos ldap linuxthreads-tls lm_sensors mad make-symlinks maps midi mime mmx mmxext mozdevelop mp3 mp4 mpeg mpeg2 mplayer mudflap multicall multitarget music nautilus ncurses net nfs nls nptl nptlonly ogg opengl openmp oss pascal pch pcre pdf perl pidgin pmu png pppd python qt3support qt4 quicktime readline reiser4 reiserfs rtc samba scenarios sdl session shared sockets sounds spell srt sse sse2 ssl stroke subtitles subversion svg swat symlink sysfs tcpd tiff timidity transcode trash-plugin truetype type1 unicode usb v4l v4l2 valgrind vim-syntax vim-with-x vorbis wifi win32codecs wmf wxwindows x264 x86 xfce xforms xine xinerama xml xorg xv xvid xvmc zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en" USERLAND="GNU" VIDEO_CARDS="i810 vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 4 Vladimír Čunát 2007-12-08 08:29:09 UTC
I use:
gparted-0.3.3
parted-1.8.6

maybe the error occured some other package, just tell me the ebuilds you need to know the versions
Comment 5 Mateusz 2007-12-20 18:35:31 UTC
The same error.
Comment 6 Man Shankar 2007-12-30 16:19:10 UTC
(In reply to comment #5)
> The same error.
> 
I get the same errors. It also happens on any occasion that gparted needs to refresh devices.

Interestingly I had a working gparted ,prior to upgrading gtk+ from 2.10.14 to 2.12.1-r2 . I guess this is the problem because on downgrading gtk+ , gparted started working fine again. I m on amd64.
Comment 7 Man Shankar 2008-01-02 22:57:18 UTC
could you please check your GTK+ version. 
Comment 8 Vladimír Čunát 2008-01-05 16:36:46 UTC
My current versions of GTK+ are 2.12.1-r2, 1.2.10-r12
Maybe I have updated it since I posted the backtrack, but it still crashes anyway.
Comment 9 Man Shankar 2008-01-06 19:28:56 UTC
like i mentioned in #6 , on my machine this problem only seems too occur with the latest version of gtk+(2), that is the version you are using. Could you please try 
running gparted with GTK+2.10.14 obviously certain other packages like gtkmm,glibmm will also have to be downgraded. But that seems to solve the problem for me and i m sure it could be helpful in solving this bug.Perhaps there is some incompatibility . I m attaching the backtrace of gparted with the latest gtk+ version , i produced this segfauilt by refreshing the devices.
Comment 10 Man Shankar 2008-01-07 02:31:36 UTC
Created attachment 140346 [details]
backtrace from gdb on refreshing devices
Comment 11 Sonny Lander 2008-01-12 06:29:39 UTC
Seems the new Gparted LiveCD has a patch applied from this bug msg 15 to fix a similar if not the same problem.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=446522
Comment 12 Small_Penguin 2008-01-12 14:59:18 UTC
There is a patch available for gparted-0.3.3 upstream:
http://bugzilla.gnome.org/show_bug.cgi?id=470387

Direct link to the patch (from comment #6):
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=15;filename=gparted-refresh-devices-crash.diff;att=1;bug=446522

After applying the patch, refreshing devices does not cause a crash anymore.

I'll attach an updated ebuild and the patch immediately.
Comment 13 Small_Penguin 2008-01-12 15:01:41 UTC
Created attachment 140812 [details]
gparted-0.3.3-r1.ebuild

Updated gparted-0.3.3.ebuild.
Comment 14 Small_Penguin 2008-01-12 15:03:39 UTC
Created attachment 140814 [details, diff]
Patch required by gparted-0.3.3-r1.ebuild

Tested, works ok here.
Comment 15 Man Shankar 2008-01-12 16:48:21 UTC
(In reply to comment #14)
> Created an attachment (id=140814) [edit]
> Patch required by gparted-0.3.3-r1.ebuild
> 
> Tested, works ok here.
> 

When can we expect it in the portage tree ?
Comment 16 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-01-13 00:59:53 UTC
> When can we expect it in the portage tree ?
> 

This is not the kind of comment that'll get things to move faster, rather the opposite. Thanks.

I'll look at it tomorrow unless another dev beats me to it.
Comment 17 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-01-14 00:03:53 UTC
fix is in tree, thanks for reporting.