Use as javaagent segfaults java on Ubuntu
Original report by Anonymous.
I tried using ScenicView via the javaagent method. After I load my application, I get a segfault in the java executable (Ubuntu 14.04, java 1.8.0_20, ScenicView built from repository version on 2015-02-13):
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0xa6081908, pid=18056, tid=1641511744
JRE version: Java(TM) SE Runtime Environment (8.0_20-b26) (build 1.8.0_20-b26)
Java VM: Java HotSpot(TM) Server VM (25.20-b23 mixed mode linux-x86 )
Problematic frame:
C 0xa6081908
Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
Compiled method (c1) 41240 5881 1 sun.invoke.util.ValueConversions::identity (2 bytes) total in heap [0xa7cd8bc8,0xa7cd8d68] = 416 relocation [0xa7cd8c98,0xa7cd8cbc] = 36 main code [0xa7cd8cc0,0xa7cd8d20] = 96 stub code [0xa7cd8d20,0xa7cd8d40] = 32 scopes data [0xa7cd8d40,0xa7cd8d44] = 4 scopes pcs [0xa7cd8d44,0xa7cd8d64] = 32 dependencies [0xa7cd8d64,0xa7cd8d68] = 4
Looking at the hs log, the current thread was the JavaFX application thread. I don't see this crash without ScenicView.
Looks like a nice tool, but I haven't been able to use it yet.
Original comment by Neil Brown (Bitbucket: twistedsquare, GitHub: twistedsquare).
Following up on the above issue (which was me, before I signed up): I see the same behaviour on Mac OS X with 8u20 and 8u31; a segfault that pinpoints sun.invoke.util.ValueConversions::identity (2 bytes) as the crash location, when running with -javaagent