FS#46619 - [glib2] version 2.46 cause Oracle java to fail

Attached to Project: Arch Linux
Opened by Ondrej Fafejta (fafi) - Friday, 09 October 2015, 08:25 GMT
Last edited by Jan Alexander Steffens (heftig) - Saturday, 10 October 2015, 17:46 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jan de Groot (JGC)
Jan Alexander Steffens (heftig)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 14
Private No

Details

Description:

When I upgraded g2lib to version 2.46
intellij idea can not run.
see log file in attachment.

#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f532099dbe0, pid=5416, tid=139996006450944

When I downgraded g2lib to version 2.44 all works fine.


Additional info:
* package version(s)
glib2-2.46.0-2
oracle jdk 8u60-1 - installed from aur https://aur.archlinux.org/packages/jdk/

Steps to reproduce:
* upgrade g2lib to version 2.46
* execute ./idea.sh
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Saturday, 10 October 2015, 17:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.46.0-3, in testing.
Comment by Jan de Groot (JGC) - Friday, 09 October 2015, 08:48 GMT
I don't see any relation to glib2 in your logfile. Can you enable coredumps and debug this?
Comment by Alexandre Bique (babali) - Friday, 09 October 2015, 10:06 GMT
I got the same issue here.
Comment by Alexandre Bique (babali) - Friday, 09 October 2015, 10:06 GMT
Program terminated with signal SIGABRT, Aborted.
#0 0x00007fef024795f8 in raise () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7fee91337700 (LWP 1504))]
(gdb) bt
#0 0x00007fef024795f8 in raise () from /usr/lib/libc.so.6
#1 0x00007fef0247aa7a in abort () from /usr/lib/libc.so.6
#2 0x00007fef01d8c915 in os::abort(bool) () from /usr/lib/jvm/java-8-jdk/jre/lib/amd64/server/libjvm.so
#3 0x00007fef01f2a103 in VMError::report_and_die() () from /usr/lib/jvm/java-8-jdk/jre/lib/amd64/server/libjvm.so
#4 0x00007fef01f2a5ae in crash_handler(int, siginfo*, void*) () from /usr/lib/jvm/java-8-jdk/jre/lib/amd64/server/libjvm.so
#5 <signal handler called>
#6 0x00007fef01d8297a in os::print_hex_dump(outputStream*, unsigned char*, unsigned char*, int) () from /usr/lib/jvm/java-8-jdk/jre/lib/amd64/server/libjvm.so
#7 0x00007fef01f285e9 in VMError::report(outputStream*) () from /usr/lib/jvm/java-8-jdk/jre/lib/amd64/server/libjvm.so
#8 0x00007fef01f29cfa in VMError::report_and_die() () from /usr/lib/jvm/java-8-jdk/jre/lib/amd64/server/libjvm.so
#9 0x00007fef01d91e3f in JVM_handle_linux_signal () from /usr/lib/jvm/java-8-jdk/jre/lib/amd64/server/libjvm.so
#10 0x00007fef01d886f3 in signalHandler(int, siginfo*, void*) () from /usr/lib/jvm/java-8-jdk/jre/lib/amd64/server/libjvm.so
#11 <signal handler called>
#12 0x00007fee6d9d5be0 in ?? ()
#13 0x00007fef02c0a579 in __nptl_deallocate_tsd.part.4 () from /usr/lib/libpthread.so.0
#14 0x00007fef02c0b658 in start_thread () from /usr/lib/libpthread.so.0
#15 0x00007fef0252f13d in clone () from /usr/lib/libc.so.6
(gdb)
Comment by Alexandre Bique (babali) - Friday, 09 October 2015, 10:07 GMT
(gdb) info threads
Id Target Id Frame
33 Thread 0x7feecc919700 (LWP 1496) 0x00007fef02c11428 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
32 Thread 0x7fee6e48c700 (LWP 1510) 0x00007fef02c13fad in read () from /usr/lib/libpthread.so.0
31 Thread 0x7feecc203700 (LWP 1501) 0x00007fef02c11428 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
30 Thread 0x7feecc515700 (LWP 1500) 0x00007fef02c11428 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
29 Thread 0x7feecc616700 (LWP 1499) 0x00007fef02c1107f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
28 Thread 0x7feeccc1c700 (LWP 1493) 0x00007fef02c1107f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
27 Thread 0x7feecca1a700 (LWP 1495) 0x00007fef02c11428 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
26 Thread 0x7fee91b4a700 (LWP 1502) 0x00007fef02c1107f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
25 Thread 0x7feeec6ad700 (LWP 1488) 0x00007fef02c1107f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
24 Thread 0x7feeccb1b700 (LWP 1494) 0x00007fef02c132d7 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
23 Thread 0x7feecdcfc700 (LWP 1489) 0x00007fef02c11428 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
22 Thread 0x7feecc818700 (LWP 1497) 0x00007fef01dda584 in PhaseChaitin::elide_copy(Node*, int, Block*, Node_List&, Node_List&, bool) () from /usr/lib/jvm/java-8-jdk/jre/lib/amd64/server/libjvm.so
21 Thread 0x7feeec7ae700 (LWP 1487) 0x00007fef02c1107f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
20 Thread 0x7feeedbfc700 (LWP 1485) 0x00007fef02c1107f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
19 Thread 0x7feecd021700 (LWP 1492) 0x00007fef02c1107f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
18 Thread 0x7feecd122700 (LWP 1491) 0x00007fef02c1107f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
17 Thread 0x7feeeddfe700 (LWP 1483) 0x00007fef02c1107f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
16 Thread 0x7fef00188700 (LWP 1481) 0x00007fef02c1107f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
15 Thread 0x7feeedcfd700 (LWP 1484) 0x00007fef02c1107f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
14 Thread 0x7feecc717700 (LWP 1498) 0x00007fef02c11428 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
13 Thread 0x7fef02fec700 (LWP 1478) 0x00007fef02c1107f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
12 Thread 0x7feeedafb700 (LWP 1486) 0x00007fef02c1107f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
11 Thread 0x7fee90f3b700 (LWP 1506) 0x00007fef02c11428 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
10 Thread 0x7feeedeff700 (LWP 1482) 0x00007fef02c1107f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
9 Thread 0x7fef00289700 (LWP 1480) 0x00007fef02c1107f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
8 Thread 0x7fee90f02700 (LWP 1507) 0x00007fef0252618d in poll () from /usr/lib/libc.so.6
7 Thread 0x7fef0038a700 (LWP 1479) 0x00007fef02c1107f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
6 Thread 0x7fef02fee700 (LWP 1477) 0x00007fef02c0c70d in pthread_join () from /usr/lib/libpthread.so.0
5 Thread 0x7feecd223700 (LWP 1490) 0x00007fef02c11428 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
4 Thread 0x7fee6e58d700 (LWP 1509) 0x00007fef02c1107f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
3 Thread 0x7fee908dd700 (LWP 1508) 0x00007fef02c11428 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
2 Thread 0x7fee91438700 (LWP 1503) 0x00007fef0252618d in poll () from /usr/lib/libc.so.6
* 1 Thread 0x7fee91337700 (LWP 1504) 0x00007fef024795f8 in raise () from /usr/lib/libc.so.6
(gdb)
Comment by freswa (frederik) - Friday, 09 October 2015, 11:11 GMT
Same problem here. Downgrade fixes Idea but breaks GTK3 (also downgrade needed).
Comment by Fabio Falci (fabiofalci) - Friday, 09 October 2015, 15:45 GMT
Same problem here.

Time travelling to 8-Oct worked for me.

https://wiki.archlinux.org/index.php/Arch_Rollback_Machine#Time_travel
Comment by Doug Newgard (Scimmia) - Friday, 09 October 2015, 15:45 GMT
Are all of you using oracle jdk 8u60-1 from the AUR?
Comment by freswa (frederik) - Friday, 09 October 2015, 15:46 GMT
> Are all of you using oracle jdk 8u60-1 from the AUR?

I do.

java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
Comment by Fabio Falci (fabiofalci) - Friday, 09 October 2015, 15:48 GMT
No.
I've downloaded jdk7 from oracle website.

java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
Comment by Alexandre Bique (babali) - Friday, 09 October 2015, 15:50 GMT
I'm using jdk 8u51-2
Comment by Doug Newgard (Scimmia) - Friday, 09 October 2015, 15:59 GMT
So all of you are using Oracle java (unsupported) instead of openjdk. Sounds like the problem might lie there.
Comment by Alexandre Bique (babali) - Friday, 09 October 2015, 16:01 GMT
Doug, maybe glib2 broke something?
Comment by Doug Newgard (Scimmia) - Friday, 09 October 2015, 16:05 GMT
It's possible, but when there are 4 people here experiencing it, all with unsupported software in the chain, there's not much we can do.
Comment by Alexandre Bique (babali) - Friday, 09 October 2015, 16:10 GMT
Let's keep this bug open until it is fixed. Did someone report the issue upstream?
Comment by Fabio Falci (fabiofalci) - Friday, 09 October 2015, 16:13 GMT
Have installed openjdk and worked.
It looks like an issue with oracle jdk.
Comment by Alexandre Bique (babali) - Friday, 09 October 2015, 16:14 GMT Comment by Alexandre Bique (babali) - Friday, 09 October 2015, 16:15 GMT
As a workaround you can start idea.sh like this:

LD_PRELOAD=/lib/libglib-2.0.so idea.sh
Comment by Jan Alexander Steffens (heftig) - Friday, 09 October 2015, 22:10 GMT Comment by freswa (frederik) - Friday, 09 October 2015, 22:13 GMT
Works for me. Thanks!
Comment by Ondrej Fafejta (fafi) - Saturday, 10 October 2015, 13:27 GMT
Upgrade glib2 to version 2.46.0-2 does not help for me. See attachment log file.

Starting idea with command below works perfectly (tested with glib2 2.46.0-2)
LD_PRELOAD=/lib/libglib-2.0.so idea.sh
Comment by freswa (frederik) - Saturday, 10 October 2015, 13:29 GMT
You have to use the package that @heftig provides: http://pkgbuild.com/~heftig/glib2-2.46.0-2-x86_64.pkg.tar.xz

It is a different package than the "normal" glib2-2.46.0-2
Comment by Ondrej Fafejta (fafi) - Saturday, 10 October 2015, 14:34 GMT
sorry, my mistake.
package http://pkgbuild.com/~heftig/glib2-2.46.0-2-x86_64.pkg.tar.xz
works perfectly.

Thanks for fast bug fix.

Loading...