Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 87884

Summary: gtk2 file-selector segfaults
Product: Gentoo Linux Reporter: Florian Engelhardt <flo>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED INVALID    
Severity: major CC: chainsaw, sound
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: folder view

Description Florian Engelhardt 2005-04-04 03:29:35 UTC
The gtk2 file selector segfaults in two applications under different circumstances:

1. Sylpheed-Claws gtk2 cvs version (1.9.6cvs21)
everytime when trying to scroll

2. beep-media-player (0.9.7)
everytime when doubleclicking on a direcotry, but not if i
start bmp in a gdb session !?!?

Reproducible: Always
Steps to Reproduce:
1. beep-media-player
2. open
3. doubleclick on a directory

Actual Results:  
flo@HAL2000 ~ $ beep-media-player 

Received SIGSEGV

This could be a bug in BMP. If you don't know why this happened, send a mail to
us at beepmp-devel@lists.sourceforge.net

Aborted


Expected Results:  
should open that folder

Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.4.1, glibc-2.3.4.20050125-r1,
2.6.10-ac8 i686)
=================================================================
System uname: 2.6.10-ac8 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 10:16:55)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -funroll-loops"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="en_GB.utf8"
LC_ALL="en_GB.utf8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib alsa apm avi berkdb bitmap-fonts crypt cups curl dillo dvd
emboss encode fam flac font-server foomaticdb fortran gdbm gif gpm gtk gtk2
imagemagick imlib ipv6 jpeg ldap libg++ libwww mad maildir mbox mikmod mmx motif
mozilla moznoxft mp3 mpeg mysql ncurses nls nntp nptl nptlonly oggvorbis opengl
oracle oss pam pdflib perl png python quicktime readline samba sdl slang spell
sse sse2 ssl svga tcltk tcpd theora tiff truetype truetype-fonts type1-fonts
unicode xml2 xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 1 Florian Engelhardt 2005-04-04 03:38:46 UTC
remerging gtk, atk and pango fixed the problem with beep-media-player.
But the Bug in sylpheed-claws still resides
Comment 2 Florian Engelhardt 2005-04-04 05:00:41 UTC
well, i was to fast, beep media player still segfaults ... :(
Comment 3 foser (RETIRED) gentoo-dev 2005-04-04 06:38:18 UTC
we don't deal with cvs versions.

Anyone can rep the bmp problem ?
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2005-04-04 06:53:14 UTC
I'll try adding -funroll-loops to my CFLAGS, that might be enough, known unstable flag. 

Florian, are you sure it's 0.9.7 that you're using? Stable x86 is 0.9.7-r4 and unstable ~x86 is 0.9.7-r5.
I need a few hours before I'm back home on a useful PC, could you try without -funroll-loops in your CFLAGS?
Comment 5 Florian Engelhardt 2005-04-04 07:09:02 UTC
Created attachment 55273 [details]
folder view
Comment 6 Florian Engelhardt 2005-04-04 07:16:25 UTC
in this folder view you can see the file selector after clicking
on the open button in bmp.
i can open all folders expect "prodigy" and the folders under that one.
if i open every folder from the first one, than go back, and open
the next one, it works with all folders. After that, clicking the open
button and double click on one of the folder that were leading a crash,
does work without any problems !?!

i am compiling it right now (the 0.9.7-r5 version) with
CFLAGS="-march=pentium4 -O3 -pipe"
.....

compiling ...

after all, i dont think, that this bug is a bug in beep media player,
becouse in the sylpheed-claws version (exact the same as in my first post)
at home, i dont have this problem. I also dont have this problem
in bmp at home.


compiling done...

no, doesnt work.
Comment 7 Florian Engelhardt 2005-04-04 07:30:43 UTC
i tried recompiling gtk+ without -funroll-loops, but the bug still exists.

which packages are related to the gtk2 file selector?

Comment 8 Florian Engelhardt 2005-04-04 07:37:01 UTC
i got it.
remerging glib fixed it, the bug in bmp and the sylpheed bug :))

thats allways a big problem. the software it self is not buggy and
i need to remerge something to fix a bug.
why is this not done automaticaly?
Comment 9 foser (RETIRED) gentoo-dev 2005-04-04 07:53:21 UTC
not reproducable.
Comment 10 Florian Engelhardt 2005-04-04 08:06:17 UTC
emerge glib with ...

CFLAGS="-march=pentium4 -Os -pipe -fomit-frame-pointer -funroll-loops"
a double click on the folder leads to a segfault

CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -funroll-loops"
is working

CFLAGS="-march=pentium4 -Os -pipe -fomit-frame-pointer"
a SINGLE click on the folder leads to a segfault

CFLAGS="-march=pentium4 -O2 -pipe"
is working :(

CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
is working !

CFLAGS="-march=pentium4 -Os -pipe -fomit-frame-pointer"
a SINGLE click on the folder leads to a segfault


so it seems to be the -Os flag, allthough at my home computer (athlon xp) it works perfect with -Os ?