Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130671 - scite segmentation fault pressing meta-keys (ALT, CTRL, SHIFT....)
Summary: scite segmentation fault pressing meta-keys (ALT, CTRL, SHIFT....)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal critical (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-20 16:24 UTC by Fabio Bonfante
Modified: 2006-09-03 10:20 UTC (History)
3 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 Fabio Bonfante 2006-04-20 16:24:12 UTC
Pressing ALT, CTRL, SHIFT, CAPS-LOCK, "WIN" or scrolling the mouse cause a segmentation fault.

I tried upgrading from 1.62 to 1.68 with new versions but nothing changed... so i start a little debugging session...
Well, even with "nostrip" feature the only message on the console is "segmentation fault", only using gdb i found something...

---------------------------------
fabio@thor ~ $ gdb scite
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) start
Breakpoint 1 at 0x805fd5e
Starting program: /usr/bin/scite
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 14239)]
[Switching to Thread 16384 (LWP 14239)]
0x0805fd5e in main ()
(gdb) continue
Continuing.

(scite:14239): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

Program received signal SIGSEGV, Segmentation fault.
0xb7b73d52 in gdk_display_add_client_message_filter () from /usr/lib/libgdk-x11-2.0.so.0
(gdb) exit
Undefined command: "exit".  Try "help".
(gdb) quit
The program is running.  Exit anyway? (y or n) y

---------------------------------

i use stable gtk+ library x11-libs/gtk+-2.8.12

my emerge info

---------------------------------

Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.3.6, glibc-2.3.5-r3, 2.6.15-suspend2-r8 i686)
=================================================================
System uname: 2.6.15-suspend2-r8 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -mfpmath=sse -pipe -fomit-frame-pointer -mmmx -msse -msse2 -maccumulate-outgoing-args"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -mfpmath=sse -pipe -fomit-frame-pointer -mmmx -msse -msse2 -maccumulate-outgoing-args"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/ http://gentoo.ngi.it/ http://trillian.cc.gatech.edu/pub/mirrors/ftp.gentoo.com/ ftp://ftp.heanet.ie/pub/gentoo/"
LDFLAGS="-O4"
LINGUAS="it"
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 7zip X a52 aac acpi alsa apache2 arts asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cddb cdparanoia cdr chm cli crypt cups curl dbus directfb dri dts dv dvd dvdread eds emboss encode esd ethereal exif expat fam fbcon fbsplash ffmpeg flac freetds gcj gd gdbm gif gimp glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal idn ieee1394 imagemagick imlib innodb ipv6 isdnlog java jikes jpeg jpeg2k junit kernel_linux lcms ldap libg++ libwww lirc lua lzo mad matroska mhash mikmod ming mmx mng mod mono motif mozilla mozsvg mp3 mpeg mysql mythtv nas ncurses nfs nls nptl nsplugin objc odbc ogg oggvorbis openal opengl oss pam pcmcia pcre pdf pdflib perl php png postgres pppd python qt quicktime readline real reflection ruby samba scanner sdl session skins slang sndfile speex spell spl sqlite sse sse2 ssl stream streamout svg tcltk tcpd tga theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vcd vorbis webservices win32codecs wmf wxwindows xine xinerama xml xml2 xmms xosd xpm xv xvid xvmc zlib video_cards_radeon linguas_it userland_GNU elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS

----------------------------------------------

somebody had the same problem?
Comment 1 mjs 2006-05-23 10:37:09 UTC
I experience the same.. just after i have upgraded to the stable gtk 2.8. 1.62 was absolutely unusable, and after upgrading to 1.68 i still experience a lot of annoying crashes.
for some files the probability of crashing is higher, for others it never crashes.  I couldn't find any special triggers in the files, I have files with unicode characters that work just fine. I'm not using pango for rendering because pango is way too slow for my taste. sometimes i have to wait a bit before doing anything with the newly started scite, but often waiting doesnt help. it crashes on pressing alt( e.g. for moving the window around), rightclicking, using the menubar. I have met no other gtk that started segfaulting like scite after the update.

two gdb runs resulted in this:

---------------------------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218902336 (LWP 22065)]
0xb7bddef7 in gdk_x11_register_standard_event_type ()
   from /usr/lib/libgdk-x11-2.0.so.0
(gdb) bt
#0  0xb7bddef7 in gdk_x11_register_standard_event_type ()
   from /usr/lib/libgdk-x11-2.0.so.0
#1  0x081b9ec0 in ?? ()
---------------------------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1219615040 (LWP 23283)]
0xb7a0ae27 in g_type_check_instance_is_a () from /usr/lib/libgobject-2.0.so.0
(gdb) bt
#0  0xb7a0ae27 in g_type_check_instance_is_a ()
   from /usr/lib/libgobject-2.0.so.0
#1  0xb7b750e0 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#2  0xbfc33d9c in ?? ()
---------------------------------
Comment 2 Fabio Bonfante 2006-05-23 14:56:35 UTC
tnx i was thinking to be alone in this universe... ;-) anyway (it's not properly related at this bug but...) how do you exclude pango from rendering (i use gnome, mybe it's the why..)?
Comment 3 mjs 2006-05-24 10:44:26 UTC
it's the little ! in front of the font names that triggers the usage of pango.
i have this in my .SciTEUser.properties:

---------------------------------
#old and fast, but not really many unicode chars..
if PLAT_GTK
	font.base=font:lucidatypewriter,size:12
	font.small=font:lucidatypewriter,size:10
	font.comment=font:new century schoolbook,size:12
	font.code.comment.box=$(font.comment)
	font.code.comment.line=$(font.comment)
	font.code.comment.doc=$(font.comment)
	font.text=font:times,size:14
	font.text.comment=font:lucidatypewriter,size:10
	font.embedded.base=font:lucidatypewriter,size:12
	font.embedded.comment=font:lucidatypewriter,size:12
	font.monospace=font:!courier,size:12
	font.vbs=font:new century schoolbook,size:12


#pango - with the !
if false
	font.base=font:!lucidatypewriter,size:12
	font.small=font:!lucidatypewriter,size:10
	font.comment=font:!new century schoolbook,size:12
	font.code.comment.box=$(font.comment)
	font.code.comment.line=$(font.comment)
	font.code.comment.doc=$(font.comment)
	font.text=font:!times,size:14
	font.text.comment=font:!lucidatypewriter,size:10
	font.embedded.base=font:!lucidatypewriter,size:12
	font.embedded.comment=font:!lucidatypewriter,size:12
	font.monospace=font:!courier,size:12
	font.vbs=font:!new century schoolbook,size:12
---------------------------------

be warned though, i can't bring it to render kanji/cyrillic/etc correctly which works just fine with pango.. don't know if it would work with other fonts (pango maybe automatically uses the glyphs from another font?).. but it's much faster.
Comment 4 Matthieu 2006-07-02 02:22:33 UTC
Same problem here. The bug seems to have something to do with the language mode of the file (I mean, syntax highlighting, etc.)
When in "plain text mode", scite is much more stable.
Something weird: the bug can happen even when scite does not have focus!!!
If I open a (prolog) file and press F5 to launch an interpreter, focus is on the interpreter, but pressing shift still makes scite segfaults :-(
Comment 5 mjs 2006-08-02 16:05:50 UTC
since I have upgraded to scite 1.70 it hasnt happened anymore.. maybe its really fixed now?
Comment 6 Fabio Bonfante 2006-08-08 09:32:31 UTC
i still use 1.68, and seems all ok, after i upgraded to gnome 2.14 (and gtk* 2.8.19)... will we ever know what happened?
well speaking strictly like an user... now it's fixed for me too, give me some feedback.;-)
Comment 7 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-09-03 10:20:03 UTC
Please use >= 1.70.