← Back to team overview

openjdk team mailing list archive

[Bug 445009] Re: Eclipse SIGSEGVs in libpango

 

Update 2:
I appologize for spamming the thread with comments. I spoke a little too soon: turning off Assistive Technologies did *NOT* solve the problem. (It merely seemed to prevent a crash on another window.)

So in essence, Eclipse crashes when hitting Cancel on the "Help -> Install new software" menu.
(BTW, with other windows such as File -> Open the decorations seem to be native from the desktop. I suppose this is on purpose.)

Anyway, below is a run done with gdb. A lot of the SIGSEGV do not
manifest when running "normally"; a few of them don't seem to show up
when doing export GDK_NATIVE_WINDOWS=true before running the gdb
session.


jbatista@karmic:~$ gdb /usr/lib/eclipse/eclipse
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib/eclipse/eclipse...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/lib/eclipse/eclipse 
[Thread debugging using libthread_db enabled]
Executing new program: /usr/lib/eclipse/eclipse
[Thread debugging using libthread_db enabled]
[New Thread 0xb7bb5b70 (LWP 8967)]
[New Thread 0xb7b34b70 (LWP 8968)]
[New Thread 0xb7ae3b70 (LWP 8969)]
[New Thread 0xb7a92b70 (LWP 8970)]
[New Thread 0xb7a41b70 (LWP 8971)]
[New Thread 0xb79c0b70 (LWP 8972)]
[New Thread 0xb796fb70 (LWP 8973)]
[New Thread 0xb78ddb70 (LWP 8974)]
[New Thread 0xb788cb70 (LWP 8975)]
[New Thread 0xb76ffb70 (LWP 8976)]
[New Thread 0xb768eb70 (LWP 8977)]
[New Thread 0xb763db70 (LWP 8978)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb788cb70 (LWP 8975)]
0x019a123b in ?? ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x019c5352 in ?? ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x019992ad in ?? ()
(gdb) cont
Continuing.
[New Thread 0xb75e9b70 (LWP 8979)]
[New Thread 0xb7598b70 (LWP 8980)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb75e9b70 (LWP 8979)]
0x01202461 in ?? () from /usr/lib/jvm/java-6-openjdk/jre/bin/../lib/i386/client/libjvm.so
(gdb) cont
Continuing.

(eclipse:8955): GLib-WARNING **: g_set_prgname() called multiple times
[Thread 0xb75e9b70 (LWP 8979) exited]

[New Thread 0xb75e9b70 (LWP 8981)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7a41b70 (LWP 8971)]
0x01107999 in ?? () from /usr/lib/jvm/java-6-openjdk/jre/bin/../lib/i386/client/libjvm.so
(gdb) 
Continuing.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb75e9b70 (LWP 8981)]
0x01930437 in ?? ()
(gdb) cont
Continuing.
[New Thread 0xb71d1b70 (LWP 8982)]
[New Thread 0xb6f70b70 (LWP 8983)]
[New Thread 0xb6f10b70 (LWP 8984)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7fdc6c0 (LWP 8955)]
0x012010f1 in ?? () from /usr/lib/jvm/java-6-openjdk/jre/bin/../lib/i386/client/libjvm.so
(gdb) cont
Continuing.
[Thread 0xb71d1b70 (LWP 8982) exited]
[Thread 0xb75e9b70 (LWP 8981) exited]
[New Thread 0xb75e9b70 (LWP 8989)]
[Thread 0xb75e9b70 (LWP 8989) exited]
[New Thread 0xb75e9b70 (LWP 8993)]
[New Thread 0xb71d1b70 (LWP 8997)]
[Thread 0xb75e9b70 (LWP 8993) exited]
[Thread 0xb71d1b70 (LWP 8997) exited]
[New Thread 0xb71d1b70 (LWP 9001)]
[Thread 0xb71d1b70 (LWP 9001) exited]
[New Thread 0xb71d1b70 (LWP 9005)]
[Thread 0xb71d1b70 (LWP 9005) exited]
[New Thread 0xb71d1b70 (LWP 9009)]
[Thread 0xb71d1b70 (LWP 9009) exited]
[New Thread 0xb71d1b70 (LWP 9013)]
[Thread 0xb71d1b70 (LWP 9013) exited]
[New Thread 0xb71d1b70 (LWP 9017)]
[Thread 0xb71d1b70 (LWP 9017) exited]
[New Thread 0xb71d1b70 (LWP 9021)]
[Thread 0xb71d1b70 (LWP 9021) exited]
[New Thread 0xb71d1b70 (LWP 9025)]
[New Thread 0xb75e9b70 (LWP 9026)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb71d1b70 (LWP 9025)]
0x0192293c in ?? ()
(gdb) cont
Continuing.
[New Thread 0xb6da5b70 (LWP 9028)]

Program received signal SIGSEGV, Segmentation fault.
0x01a32ac8 in ?? ()
(gdb) cont
Continuing.
[New Thread 0xb6d50b70 (LWP 9029)]

Program received signal SIGSEGV, Segmentation fault.
0x0193563d in ?? ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x019c30a6 in ?? ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x0199dec1 in ?? ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x019b3524 in ?? ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x0192fd85 in ?? ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x019b3524 in ?? ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x0199e8be in ?? ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x0199adba in ?? ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x019c6d18 in ?? ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x012d1413 in ?? () from /usr/lib/jvm/java-6-openjdk/jre/bin/../lib/i386/client/libjvm.so
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7fdc6c0 (LWP 8955)]
0x01940520 in ?? ()
(gdb) cont
Continuing.
[New Thread 0xb6cf1b70 (LWP 9030)]

Program received signal SIGSEGV, Segmentation fault.
pango_layout_new (context=0x845ff20) at /build/buildd/pango1.0-1.26.0/pango/pango-layout.c:271
271	/build/buildd/pango1.0-1.26.0/pango/pango-layout.c: Ficheiro ou directoria inexistente.
	in /build/buildd/pango1.0-1.26.0/pango/pango-layout.c
(gdb) cont
Continuing.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00488856, pid=8955, tid=3086862016
#
# JRE version: 6.0-b16
# Java VM: OpenJDK Client VM (14.0-b16 mixed mode, sharing linux-x86 )
# Distribution: Ubuntu 9.10, package 6b16-1.6.1-3ubuntu3
# Problematic frame:
# C  [libpango-1.0.so.0+0x23856]  pango_layout_new+0x36
#
# An error report file with more information is saved as:
# /home/jbatista/hs_err_pid8955.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Program received signal SIGABRT, Aborted.
0x0012d422 in ?? ()
(gdb) cont
Continuing.
[Thread 0xb768eb70 (LWP 8977) exited]
[Thread 0xb6cf1b70 (LWP 9030) exited]
[Thread 0xb76ffb70 (LWP 8976) exited]
[Thread 0xb6d50b70 (LWP 9029) exited]
[Thread 0xb6da5b70 (LWP 9028) exited]
[Thread 0xb75e9b70 (LWP 9026) exited]
[Thread 0xb71d1b70 (LWP 9025) exited]
[Thread 0xb6f10b70 (LWP 8984) exited]
[Thread 0xb6f70b70 (LWP 8983) exited]
[Thread 0xb7598b70 (LWP 8980) exited]
[Thread 0xb763db70 (LWP 8978) exited]
[Thread 0xb788cb70 (LWP 8975) exited]
[Thread 0xb78ddb70 (LWP 8974) exited]
[Thread 0xb796fb70 (LWP 8973) exited]
[Thread 0xb79c0b70 (LWP 8972) exited]
[Thread 0xb7a41b70 (LWP 8971) exited]
[Thread 0xb7a92b70 (LWP 8970) exited]
[Thread 0xb7ae3b70 (LWP 8969) exited]
[Thread 0xb7b34b70 (LWP 8968) exited]
[Thread 0xb7bb5b70 (LWP 8967) exited]

Program terminated with signal SIGABRT, Aborted.
The program no longer exists.
(gdb) cont
The program is not being run.
(gdb)

-- 
Eclipse SIGSEGVs in libpango
https://bugs.launchpad.net/bugs/445009
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.

Status in Eclipse: Fix Released
Status in “eclipse” package in Ubuntu: Fix Released
Status in “openjdk-6” package in Ubuntu: Invalid
Status in “eclipse” source package in Karmic: New
Status in “openjdk-6” source package in Karmic: New
Status in “eclipse” package in Fedora: Fix Committed

Bug description:
=============
BUG
=============
After having started Eclipse 3.5 on Karmic 32bit (openjdk-6-jre 6b16-1.6.1-1ubuntu2) and running it for some minutes, it terminates saying

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xb7b62856, pid=24497, tid=3084424896
#
# JRE version: 6.0_15-b03
# Java VM: Java HotSpot(TM) Client VM (14.1-b02 mixed mode, sharing linux-x86 )
# Problematic frame:
# C  [libpango-1.0.so.0+0x23856]  pango_layout_new+0x36
#
# An error report file with more information is saved as:
# /home/niklas/hs_err_pid24497.log
[...]

Seems to be the bug in https://bugzilla.redhat.com/show_bug.cgi?id=522187 , but for the bug opener, the problem seems to be gone.
Please tell me if you need more information.

=============
WORKAROUND
=============
Disable assistive technologies:
System > Preferences > Assistive Technology Preferences > "Enable assistive technologies"

-OR-

Replace /usr/lib/eclipse/plugins/org.eclipse.swt.gtk.linux.x86_3.5.1.v3555a.jar (rename it to .backup or something) with
32bit Ubuntu: http://launchpadlibrarian.net/36500083/org.eclipse.swt.gtk.linux.x86_3.5.1.v3555a.jar
64bit Ubuntu: http://launchpadlibrarian.net/36643806/org.eclipse.swt.gtk.linux.x86_64_3.5.1.v3555a.jar
(See comment 44 and 47 for more info)







References