Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203489 - app-editors/scite dies with gtk+-2.12.* while opening or saving files
Summary: app-editors/scite dies with gtk+-2.12.* while opening or saving files
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-27 17:45 UTC by Raoul Proença
Modified: 2008-06-09 19:51 UTC (History)
2 users (show)

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


Attachments
The backtrace (backtrace.log,232 bytes, text/plain)
2007-12-27 18:10 UTC, Raoul Proença
Details
debug information with splitdebug enabled (scite.debug,147.18 KB, application/octet-stream)
2007-12-27 18:37 UTC, Raoul Proença
Details
gdb backtrace (backtrace.log,1.41 KB, text/plain)
2007-12-30 14:29 UTC, Raoul Proença
Details
full gdb backtrace (backtrace_full.log,6.66 KB, text/plain)
2007-12-30 14:29 UTC, Raoul Proença
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raoul Proença 2007-12-27 17:45:09 UTC
Hello,

Since gtk+-2.12.* appeared in the stable x86 branch, I can't open or save files. Scite dies as soon as the open / save window appears.

gdb output :

(gdb) run
Starting program: /usr/bin/scite
(no debugging symbols found)
...
[Thread debugging using libthread_db enabled]
[New Thread 0xb73d06d0 (LWP 10079)]
(no debugging symbols found)
...
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb73d06d0 (LWP 10079)]
0xb7810b7a in strftime_l () from /lib/libc.so.6
(gdb) bt
#0  0xb7810b7a in strftime_l () from /lib/libc.so.6
#1  0xb7810a1f in strftime () from /lib/libc.so.6
#2  0xb7d394bc in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#3  0xbfcf5f70 in ?? ()
#4  0x00000100 in ?? ()
#5  0x00000000 in ?? ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y

I reinstall the whole system with emerge -e world with no success. Thanks in advance.

Reproducible: Always

Steps to Reproduce:
1. Launch scite,
2. try to open a file
3. or save content into a file.

Actual Results:  
The editor dies with a segmentation fault message.

Expected Results:  
The editor should have displayed the open / save window normally.

raoul@a7jc ~ $ emerge --info
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 Genuine Intel(R) CPU T2400 @ 1.83GHz
Timestamp of tree: Thu, 27 Dec 2007 10:46:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
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.10-r5
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.23-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
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/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/"
LANG="fr_FR.utf8"
LC_ALL="fr_FR.utf8"
LINGUAS="fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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="X a52 aac acpi alsa ao apache2 arts audiofile bash-completion berkdb bitmap-fonts bluetooth bzip2 cddb cdparanoia cdr cli cracklib crypt ctype cups dbus dga directfb dri dts dv dvb dvd dvdr dvdread encode evo fam ffmpeg firefox flac ftp gd gdbm gif gphoto2 gpm gstreamer gtk gtk2 hal iconv ieee1394 imlib isdnlog java javascript joystick jpeg kde kdexdeltas ldap libg++ lirc lm_sensors mad matroska mbox midi mikmod mmx mp3 mpeg mplayer mudflap mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcmcia pcre pdf perl php png posix postgres ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba scanner sdl session sox spell spl sqlite sqlite3 sse sse2 ssl svga symlink tcpd tidy truetype truetype-fonts type1-fonts unicode usb v4l vcd vorbis wifi win32codecs x86 xine xml xorg xv xvid zlib" ALSA_CARDS="hda-intel" 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" LINGUAS="fr" LIRC_DEVICES="mceusb2" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-12-27 17:58:05 UTC
We need a more useful backtrace, thanks.

http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 2 Raoul Proença 2007-12-27 18:10:58 UTC
Created attachment 139441 [details]
The backtrace
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-12-27 18:14:25 UTC
(In reply to comment #2)

Please, read the howto linked in Comment #1; the backtrace you attached lacks any debugging symbols whatsoever.
Comment 4 Raoul Proença 2007-12-27 18:37:50 UTC
Created attachment 139445 [details]
debug information with splitdebug enabled
Comment 5 Raoul Proença 2007-12-27 18:41:44 UTC
Debug information with splitdebug enabled attached.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-12-27 18:48:22 UTC
Sigh. Please, reopen once you've fully understood the howto and have attached a *useful* backtrace.
Comment 7 Raoul Proença 2007-12-30 09:14:30 UTC
(In reply to comment #6)
> Sigh. Please, reopen once you've fully understood the howto and have attached a
> *useful* backtrace.
> 

I'm sorry but I *really* don't understand what I can do more. In /etc/make.conf, I've used:

[...]
CFLAGS="-march=prescott -O2 -ggdb"
[...]
FEATURES="splitdebug"
[...]

and all I get is what I've already posted:

raoul@a7jc ~ $ gdb scite
GNU gdb 6.7.1
Copyright (C) 2007 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 "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/scite
[Thread debugging using libthread_db enabled]
[New Thread 0xb73126d0 (LWP 19742)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb73126d0 (LWP 19742)]
0xb7754b7a in strftime_l () from /lib/libc.so.6
(gdb) bt
#0  0xb7754b7a in strftime_l () from /lib/libc.so.6
#1  0xb7754a1f in strftime () from /lib/libc.so.6
#2  0xb7c7d4bc in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#3  0xbfa564f0 in ?? ()
#4  0x00000100 in ?? ()
#5  0x00000000 in ?? ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-12-30 09:32:51 UTC
/me gives up... 
Comment 9 Krzysztof Pawlik (RETIRED) gentoo-dev 2007-12-30 12:56:23 UTC
Raoul: please try 1.74 (currently ~arch).
Comment 10 Raoul Proença 2007-12-30 13:18:54 UTC
(In reply to comment #9)
> Raoul: please try 1.74 (currently ~arch).
> 

Hi,

Thanks for your responses. Same problem with 1.74.

raoul@a7jc ~ $ gdb scite
GNU gdb 6.7.1
Copyright (C) 2007 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 "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/scite
[Thread debugging using libthread_db enabled]
[New Thread 0xb73246d0 (LWP 12473)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb73246d0 (LWP 12473)]
0xb7766b7a in strftime_l () from /lib/libc.so.6
(gdb) bt
#0  0xb7766b7a in strftime_l () from /lib/libc.so.6
#1  0xb7766a1f in strftime () from /lib/libc.so.6
#2  0xb7c8f4bc in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#3  0xbfbd9530 in ?? ()
#4  0x00000100 in ?? ()
#5  0x00000000 in ?? ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y
Comment 11 Krzysztof Pawlik (RETIRED) gentoo-dev 2007-12-30 13:21:22 UTC
Please compile both scite and gtk+ with debugging information.

Use CFLAGS like "-ggdb3 -O0" (of course add -march and other required variables).
Comment 12 Raoul Proença 2007-12-30 14:29:15 UTC
Created attachment 139627 [details]
gdb backtrace

Ok. Compiled x11-libs/gtk+-2.12.1-r2 and app-editors/scite-1.72 with CFLAGS="-march=prescott -O0 -ggdb3".
Comment 13 Raoul Proença 2007-12-30 14:29:58 UTC
Created attachment 139629 [details]
full gdb backtrace

The same with bt full.
Comment 14 Krzysztof Pawlik (RETIRED) gentoo-dev 2007-12-31 10:29:01 UTC
I've managed to recreate the error, but only with locale set to fr_FR.UTF-8. It looks like a bug in gtk+. The file chooser crashes SciTE, Gnome people: please advise.

Raoul: in the meantime please try LC_ALL="C" to see if SciTE works for you with English locale.
Comment 15 Raoul Proença 2007-12-31 12:23:45 UTC
(In reply to comment #14)
> I've managed to recreate the error, but only with locale set to fr_FR.UTF-8. It
> looks like a bug in gtk+. The file chooser crashes SciTE, Gnome people: please
> advise.
> 
> Raoul: in the meantime please try LC_ALL="C" to see if SciTE works for you with
> English locale.
> 

Sorry for my late response.
You're right ! Everything works fine using English locale. Thanks.

raoul@a7jc ~ $ scite
Erreur de segmentation
raoul@a7jc ~ $ export LC_ALL="C"
raoul@a7jc ~ $ scite
raoul@a7jc ~ $
Comment 16 Krzysztof Pawlik (RETIRED) gentoo-dev 2007-12-31 13:00:01 UTC
(In reply to comment #15)
> You're right ! Everything works fine using English locale. Thanks.

Yes, but that's a workaround. Could you test other GTK+ apps with open file dialogs (like Firefox) to confirm that the problem is in GTK+ file dialog?
Comment 17 Raoul Proença 2007-12-31 13:28:19 UTC
(In reply to comment #16)

> Yes, but that's a workaround.

Of course, but it would be useful for the moment.

> Could you test other GTK+ apps with open file
> dialogs (like Firefox) to confirm that the problem is in GTK+ file dialog?

It seems that only scite is concerned. I've tried with openoffice, eclipse, gimp, audacious, realplayer and have no problem with "Open a file" or "Save to a file" dialogs. I've been using some of these programs after gtk+ upgrade and only scite segfaulted.
Comment 18 Krzysztof Pawlik (RETIRED) gentoo-dev 2008-06-09 19:51:47 UTC
If 1.76 doesn't fix this please report this to upstream, as it looks like SciTE specific bug.