Author Topic: VM Crash on exit. (Ubuntu 64bit)  (Read 8942 times)

Offline rschwemm

  • byte
  • *
  • Posts: 18
    • View Profile
VM Crash on exit. (Ubuntu 64bit)
« on: December 06, 2010, 12:12:52 pm »
Hi there!

This is my first post here. So I'll start with saying: Hello everyone!
Now to my problem:

On my Ubuntu-Machine the JVM crashes when I try to shutdown the OpenGL renderer.

This is what gets logged. (I tried to remove non-jpct-stuff, but I may have missed sth.)

Code: [Select]
Java version is: 1.6.0_22
-> support for BufferedImage
Version helper for 1.5+ initialized!
-> using BufferedImage
Software renderer (OpenGL mode) initialized
Software renderer disposed
Can't find desired videomode (1024 x 768 x 32) - searching for alternatives
Can't find alternative videomode (1024 x 768 x 32) - trying something else
Current mode:1024 x 768 x 24 @75Hz
Software renderer disposed
Driver is: unknown OpenGL driver on ATI Technologies Inc. / ATI Radeon HD 4770
GL_ARB_texture_env_combine supported and used!
FBO supported and used!
OpenGL renderer initialized (using 4 texture stages)
[App specific logs...]
OpenGL renderer disposed
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f69b8f55d28, pid=7357, tid=140092072720144
#
# JRE version: 6.0_22-b04
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.1-b03 mixed mode linux-amd64 )
# Problematic frame:
# C  [libX11.so.6+0x37d28]  XQueryExtension+0x28
#
# An error report file with more information is saved as:
# /path/to/hs_err_pid7357.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Java Result: 134


The initialization code looks about this:
Code: [Select]
buffer = new FrameBuffer(1024, 768, FrameBuffer.SAMPLINGMODE_NORMAL);
buffer.disableRenderer(IRenderer.RENDERER_SOFTWARE);
buffer.enableRenderer(IRenderer.RENDERER_OPENGL, IRenderer.MODE_OPENGL);

The deinitialization code looks about this:
Code: [Select]
buffer.disableRenderer(IRenderer.RENDERER_OPENGL);
buffer.dispose();

[...]

System.exit(0);

But the crash occures also, if the first two lines are commented out.
My best guess is, that the following System.exit() call has to kill some onliving threads.
If that is the case, how do can I wait for these threads to terminate? And why doesn't this
happen on my Win7 (32bit) machine?

The generated log:
Code: [Select]
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f69b8f55d28, pid=7357, tid=140092072720144
#
# JRE version: 6.0_22-b04
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.1-b03 mixed mode linux-amd64 )
# Problematic frame:
# C  [libX11.so.6+0x37d28]  XQueryExtension+0x28
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0x0000000040d41800):  VMThread [stack: 0x00007f69ba2af000,0x00007f69ba3b0000] [id=7364]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0xffffffffb4105858

Registers:
RAX=0x0000000040cf8aa0, RBX=0xffffffffb4104ef0, RCX=0x00007f69ba3ae618, RDX=0x00007f69ba3ae614
RSP=0x00007f69ba3ae5b0, RBP=0x00007f69b3104cd0, RSI=0x00007f69b3104cd0, RDI=0xffffffffb4104ef0
R8 =0x00007f69ba3ae61c, R9 =0x0000000000000000, R10=0x00007f69e46fa748, R11=0x00007f69e43b3820
R12=0x00007f69ba3ae614, R13=0x0000000040cf8aa0, R14=0x0000000040cf8aa0, R15=0x0000000000000000
RIP=0x00007f69b8f55d28, EFL=0x0000000000010202, CSGSFS=0x0000000000000033, ERR=0x0000000000000005
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007f69ba3ae5b0)
0x00007f69ba3ae5b0:   00007f69e4d3f048 00007f69e46f8e40
0x00007f69ba3ae5c0:   ffffffffb4104ef0 0000000000000020
0x00007f69ba3ae5d0:   00007f69b3104cd0 ffffffffb4104ef0
0x00007f69ba3ae5e0:   00007f69b3104cd0 0000000000000011
0x00007f69ba3ae5f0:   0000000040cf8aa0 0000000040cf8aa0
0x00007f69ba3ae600:   0000000000000000 00007f69b8f4a202
0x00007f69ba3ae610:   00007f69b4108b60 00007f69b3237c80
0x00007f69ba3ae620:   00007f69b3237c80 ffffffffb4104ef0
0x00007f69ba3ae630:   0000000000000011 00007f69b9262782
0x00007f69ba3ae640:   000000000000000b 00007f69e43884e8
0x00007f69ba3ae650:   00007f69b4115e60 00007f69b3104cd0
0x00007f69ba3ae660:   00007f69ba3ae6d0 0000000000000000
0x00007f69ba3ae670:   ffffffffb4104ef0 00007f69b324f370
0x00007f69ba3ae680:   00007f69b3104cd0 00007f69b4108b60
0x00007f69ba3ae690:   000000000000000f 00007f69b30b68e1
0x00007f69ba3ae6a0:   00007f69ba3ae6d0 0000000000000028
0x00007f69ba3ae6b0:   00007f69ba3ae6d0 0000000000000000
0x00007f69ba3ae6c0:   00007f69e4d3f048 00007f69b30adf52
0x00007f69ba3ae6d0:   00007f69ba3ae8b0 00007f69b3104c61
0x00007f69ba3ae6e0:   0000000000000000 00007f69e4b2d6cc
0x00007f69ba3ae6f0:   00007f69e4d40168 00007f69e4d406f8
0x00007f69ba3ae700:   0000000040cec270 00007f69b40faaa0
0x00007f69ba3ae710:   00007f69b40ffc50 00007f69b40300e0
0x00007f69ba3ae720:   00007f69b4002b40 00007f69b4054b30
0x00007f69ba3ae730:   0000000040ce2560 0000000040ce1ec0
0x00007f69ba3ae740:   0000000040cdf570 00007f69b41000f0
0x00007f69ba3ae750:   0000000040ce0b00 0000000040ce3af0
0x00007f69ba3ae760:   00007f69b41474c0 00007f69b4108b60
0x00007f69ba3ae770:   00007f69e4d3d7d8 00007f69e4d1d000
0x00007f69ba3ae780:   00007f69b40d98e0 00007f69b400c9f0
0x00007f69ba3ae790:   00007f69b400ce90 00007f69b40faf90
0x00007f69ba3ae7a0:   00007f69b40ff7b0 00007f69b4140a20

Instructions: (pc=0x00007f69b8f55d28)
0x00007f69b8f55d18:   89 d4 4c 89 74 24 f0 4c 89 7c 24 f8 48 83 ec 58
0x00007f69b8f55d28:   48 8b 87 68 09 00 00 49 89 f5 48 89 cd 4d 89 c6

Stack: [0x00007f69ba2af000,0x00007f69ba3b0000],  sp=0x00007f69ba3ae5b0,  free space=3fd0000000000000018k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libX11.so.6+0x37d28]  XQueryExtension+0x28

VM_Operation (0x00007f69e364d580): Exit, mode: safepoint, requested by thread 0x0000000040ce8000


---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x00007f69b40ec000 JavaThread "AWT-XAWT" daemon [_thread_blocked, id=7373, stack(0x00007f69b3aef000,0x00007f69b3bf0000)]
  0x00007f69b4040800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=7372, stack(0x00007f69b8242000,0x00007f69b8343000)]
  0x0000000040d76000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=7370, stack(0x00007f69b98a2000,0x00007f69b99a3000)]
  0x0000000040d71000 JavaThread "CompilerThread1" daemon [_thread_blocked, id=7369, stack(0x00007f69b99a3000,0x00007f69b9aa4000)]
  0x0000000040d6e000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=7368, stack(0x00007f69b9aa4000,0x00007f69b9ba5000)]
  0x0000000040d6c000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=7367, stack(0x00007f69b9ba5000,0x00007f69b9ca6000)]
  0x0000000040d47800 JavaThread "Finalizer" daemon [_thread_blocked, id=7366, stack(0x00007f69ba0ad000,0x00007f69ba1ae000)]
  0x0000000040d46000 JavaThread "Reference Handler" daemon [_thread_blocked, id=7365, stack(0x00007f69ba1ae000,0x00007f69ba2af000)]
  0x0000000040ce8000 JavaThread "main" [_thread_blocked, id=7360, stack(0x00007f69e354e000,0x00007f69e364f000)]

Other Threads:
=>0x0000000040d41800 VMThread [stack: 0x00007f69ba2af000,0x00007f69ba3b0000] [id=7364]

VM state:at safepoint (shutting down)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x0000000040ce5040] Threads_lock - owner thread: 0x0000000040d41800

Heap
 PSYoungGen      total 17536K, used 3051K [0x00007f69d4f50000, 0x00007f69d61b0000, 0x00007f69df6a0000)
  eden space 16256K, 18% used [0x00007f69d4f50000,0x00007f69d524ae10,0x00007f69d5f30000)
  from space 1280K, 0% used [0x00007f69d6070000,0x00007f69d6070000,0x00007f69d61b0000)
  to   space 1280K, 0% used [0x00007f69d5f30000,0x00007f69d5f30000,0x00007f69d6070000)
 PSOldGen        total 34112K, used 9063K [0x00007f69c00a0000, 0x00007f69c21f0000, 0x00007f69d4f50000)
  object space 34112K, 26% used [0x00007f69c00a0000,0x00007f69c0979de8,0x00007f69c21f0000)
 PSPermGen       total 21248K, used 9329K [0x00007f69baca0000, 0x00007f69bc160000, 0x00007f69c00a0000)
  object space 21248K, 43% used [0x00007f69baca0000,0x00007f69bb5bc5f8,0x00007f69bc160000)

Dynamic libraries:
40000000-40009000 r-xp 00000000 08:03 5375                               /usr/lib/jvm/java-6-sun-1.6.0.22/jre/bin/java
40108000-4010a000 rwxp 00008000 08:03 5375                               /usr/lib/jvm/java-6-sun-1.6.0.22/jre/bin/java
40cdf000-415bb000 rwxp 00000000 00:00 0                                  [heap]
7f69b06cd000-7f69b06d0000 ---p 00000000 00:00 0
7f69b06d0000-7f69b07ce000 rwxp 00000000 00:00 0
7f69b07ce000-7f69b07d0000 r-xp 00000000 08:03 143                        /usr/lib/libXinerama.so.1.0.0
7f69b07d0000-7f69b09cf000 ---p 00002000 08:03 143                        /usr/lib/libXinerama.so.1.0.0
7f69b09cf000-7f69b09d0000 r-xp 00001000 08:03 143                        /usr/lib/libXinerama.so.1.0.0
7f69b09d0000-7f69b09d1000 rwxp 00002000 08:03 143                        /usr/lib/libXinerama.so.1.0.0
7f69b09d1000-7f69b0a01000 r-xp 00000000 08:03 133554                     /usr/lib/fglrx/libatiadlxx.so
7f69b0a01000-7f69b0b01000 ---p 00030000 08:03 133554                     /usr/lib/fglrx/libatiadlxx.so
7f69b0b01000-7f69b0b08000 rwxp 00030000 08:03 133554                     /usr/lib/fglrx/libatiadlxx.so
7f69b0b26000-7f69b1226000 rwxs 00006000 00:05 8282                       /dev/ati/card0
7f69b1226000-7f69b2b7f000 r-xp 00000000 08:03 665203                     /usr/lib/fglrx/dri/fglrx_dri.so
7f69b2b7f000-7f69b2c7f000 ---p 01959000 08:03 665203                     /usr/lib/fglrx/dri/fglrx_dri.so
7f69b2c7f000-7f69b2d94000 rwxp 01959000 08:03 665203                     /usr/lib/fglrx/dri/fglrx_dri.so
7f69b2d94000-7f69b2e74000 rwxp 00000000 00:00 0
7f69b2e74000-7f69b2e77000 ---p 00000000 00:00 0
7f69b2e77000-7f69b2f75000 rwxp 00000000 00:00 0
7f69b2f75000-7f69b2f7c000 r-xp 00000000 08:03 133894                     /usr/lib/fglrx/libatiuki.so.1.0
7f69b2f7c000-7f69b307c000 ---p 00007000 08:03 133894                     /usr/lib/fglrx/libatiuki.so.1.0
7f69b307c000-7f69b307d000 rwxp 00007000 08:03 133894                     /usr/lib/fglrx/libatiuki.so.1.0
7f69b307d000-7f69b307e000 rwxp 00000000 00:00 0
7f69b307e000-7f69b312c000 r-xp 00000000 08:03 133740                     /usr/lib/fglrx/libGL.so.1.2
7f69b312c000-7f69b322c000 ---p 000ae000 08:03 133740                     /usr/lib/fglrx/libGL.so.1.2
7f69b322c000-7f69b3250000 rwxp 000ae000 08:03 133740                     /usr/lib/fglrx/libGL.so.1.2
7f69b3250000-7f69b3257000 rwxp 00000000 00:00 0
7f69b3257000-7f69b325c000 r-xp 00000000 08:03 4072                       /usr/lib/libXxf86vm.so.1.0.0
7f69b325c000-7f69b345b000 ---p 00005000 08:03 4072                       /usr/lib/libXxf86vm.so.1.0.0
7f69b345b000-7f69b345c000 r-xp 00004000 08:03 4072                       /usr/lib/libXxf86vm.so.1.0.0
7f69b345c000-7f69b345d000 rwxp 00005000 08:03 4072                       /usr/lib/libXxf86vm.so.1.0.0
7f69b345d000-7f69b3465000 r-xp 00000000 08:03 3858                       /usr/lib/libXrandr.so.2.2.0
7f69b3465000-7f69b3664000 ---p 00008000 08:03 3858                       /usr/lib/libXrandr.so.2.2.0
7f69b3664000-7f69b3665000 r-xp 00007000 08:03 3858                       /usr/lib/libXrandr.so.2.2.0
7f69b3665000-7f69b3666000 rwxp 00008000 08:03 3858                       /usr/lib/libXrandr.so.2.2.0
7f69b3666000-7f69b36d4000 r-xp 00000000 08:03 788641                     /home/roland/Documents/Code/DiplomArbeit/SquadSim/libs/native/linux/liblwjgl64.so
7f69b36d4000-7f69b38d3000 ---p 0006e000 08:03 788641                     /home/roland/Documents/Code/DiplomArbeit/SquadSim/libs/native/linux/liblwjgl64.so
7f69b38d3000-7f69b38d5000 r-xp 0006d000 08:03 788641                     /home/roland/Documents/Code/DiplomArbeit/SquadSim/libs/native/linux/liblwjgl64.so
7f69b38d5000-7f69b38d6000 rwxp 0006f000 08:03 788641                     /home/roland/Documents/Code/DiplomArbeit/SquadSim/libs/native/linux/liblwjgl64.so
7f69b38d6000-7f69b38d7000 r-xs 00000000 08:03 171848                     /var/cache/fontconfig/c05880de57d1f5e948fdfacc138775d9-le64.cache-3
7f69b38d7000-7f69b38e0000 r-xs 00000000 08:03 136292                     /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-le64.cache-3
7f69b38e0000-7f69b38e4000 r-xs 00000000 08:03 171846                     /var/cache/fontconfig/99e8ed0e538f840c565b6ed5dad60d56-le64.cache-3
7f69b38e4000-7f69b38e7000 r-xs 00000000 08:03 171845                     /var/cache/fontconfig/f24b2111ab8703b4e963115a8cf14259-le64.cache-3
7f69b38e7000-7f69b38ea000 r-xs 00000000 08:03 171844                     /var/cache/fontconfig/e383d7ea5fbe662a33d9b44caf393297-le64.cache-3
7f69b38ea000-7f69b38ed000 r-xs 00000000 08:03 171843                     /var/cache/fontconfig/2cd17615ca594fa2959ae173292e504c-le64.cache-3
7f69b38ed000-7f69b38ee000 r-xs 00000000 08:03 171143                     /var/cache/fontconfig/e7071f4a29fa870f4323321c154eba04-le64.cache-3
7f69b38ee000-7f69b38f1000 r-xs 00000000 08:03 213560                     /var/cache/fontconfig/b5ea634b0fb353b8ea17632d1f9ef766-le64.cache-3
7f69b38f1000-7f69b38f5000 r-xs 00000000 08:03 171141                     /var/cache/fontconfig/6eb3985aa4124903f6ff08ba781cd364-le64.cache-3
7f69b38f5000-7f69b38f6000 r-xs 00000000 08:03 171140                     /var/cache/fontconfig/4c73fe0c47614734b17d736dbde7580a-le64.cache-3
7f69b38f6000-7f69b38f7000 r-xs 00000000 08:03 171138                     /var/cache/fontconfig/0d8c3b2ac0904cb8a57a757ad11a4a08-le64.cache-3
7f69b38f7000-7f69b38f8000 r-xs 00000000 08:03 170844                     /var/cache/fontconfig/6a53c69dea097a2d716e069445527da8-le64.cache-3
7f69b38f8000-7f69b38fd000 r-xs 00000000 08:03 170668                     /var/cache/fontconfig/062808c12e6e608270f93bb230aed730-le64.cache-3
7f69b38fd000-7f69b3903000 r-xs 00000000 08:03 170666                     /var/cache/fontconfig/a755afe4a08bf5b97852ceb7400b47bc-le64.cache-3
7f69b3903000-7f69b3907000 r-xs 00000000 08:03 170662                     /var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-le64.cache-3
7f69b3907000-7f69b3917000 r-xs 00000000 08:03 170637                     /var/cache/fontconfig/0f34bcd4b6ee430af32735b75db7f02b-le64.cache-3
7f69b3917000-7f69b391a000 r-xs 00000000 08:03 170410                     /var/cache/fontconfig/d60319d88cac85ba9e1a07bd06cfbb8c-le64.cache-3
7f69b391a000-7f69b391b000 r-xs 00000000 08:03 170062                     /var/cache/fontconfig/4794a0821666d79190d59a36cb4f44b5-le64.cache-3
7f69b391b000-7f69b3925000 r-xs 00000000 08:03 169888                     /var/cache/fontconfig/d52a8644073d54c13679302ca1180695-le64.cache-3
7f69b3925000-7f69b3938000 r-xs 00000000 08:03 169751                     /var/cache/fontconfig/e13b20fdb08344e0e664864cc2ede53d-le64.cache-3
7f69b39ae000-7f69b39ee000 rwxs 00011000 00:05 8282                       /dev/ati/card0
7f69b39ee000-7f69b39ef000 r-xp 00000000 08:03 7262                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libjawt.so
7f69b39ef000-7f69b3aee000 ---p 00001000 08:03 7262                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libjawt.so
7f69b3aee000-7f69b3aef000 rwxp 00000000 08:03 7262                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libjawt.so
7f69b3aef000-7f69b3af2000 ---p 00000000 00:00 0
7f69b3af2000-7f69b3bf0000 rwxp 00000000 00:00 0
7f69b3bf0000-7f69b3bf5000 r-xp 00000000 08:03 137                        /usr/lib/libXfixes.so.3.1.0
7f69b3bf5000-7f69b3df4000 ---p 00005000 08:03 137                        /usr/lib/libXfixes.so.3.1.0
7f69b3df4000-7f69b3df5000 r-xp 00004000 08:03 137                        /usr/lib/libXfixes.so.3.1.0
7f69b3df5000-7f69b3df6000 rwxp 00005000 08:03 137                        /usr/lib/libXfixes.so.3.1.0
7f69b3df6000-7f69b3dff000 r-xp 00000000 08:03 4887                       /usr/lib/libXrender.so.1.3.0
7f69b3dff000-7f69b3ffe000 ---p 00009000 08:03 4887                       /usr/lib/libXrender.so.1.3.0
7f69b3ffe000-7f69b3fff000 r-xp 00008000 08:03 4887                       /usr/lib/libXrender.so.1.3.0
7f69b3fff000-7f69b4000000 rwxp 00009000 08:03 4887                       /usr/lib/libXrender.so.1.3.0
7f69b4000000-7f69b47ff000 rwxp 00000000 00:00 0
7f69b47ff000-7f69b8000000 ---p 00000000 00:00 0
7f69b801a000-7f69b8023000 r-xp 00000000 08:03 998                        /usr/lib/libXcursor.so.1.0.2
7f69b8023000-7f69b8222000 ---p 00009000 08:03 998                        /usr/lib/libXcursor.so.1.0.2
7f69b8222000-7f69b8223000 r-xp 00008000 08:03 998                        /usr/lib/libXcursor.so.1.0.2
7f69b8223000-7f69b8224000 rwxp 00009000 08:03 998                        /usr/lib/libXcursor.so.1.0.2
7f69b8232000-7f69b8242000 rwxs fdde0000 00:05 8282                       /dev/ati/card0
7f69b8242000-7f69b8245000 ---p 00000000 00:00 0
7f69b8245000-7f69b8343000 rwxp 00000000 00:00 0
7f69b8343000-7f69b83bc000 r-xp 00000000 08:03 7238                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libfontmanager.so
7f69b83bc000-7f69b84bb000 ---p 00079000 08:03 7238                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libfontmanager.so
7f69b84bb000-7f69b84d0000 rwxp 00078000 08:03 7238                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libfontmanager.so
7f69b84d0000-7f69b84e1000 rwxp 00000000 00:00 0
7f69b84e1000-7f69b84e6000 r-xp 00000000 08:03 88                         /usr/lib/libXdmcp.so.6.0.0
7f69b84e6000-7f69b86e5000 ---p 00005000 08:03 88                         /usr/lib/libXdmcp.so.6.0.0
7f69b86e5000-7f69b86e6000 r-xp 00004000 08:03 88                         /usr/lib/libXdmcp.so.6.0.0
7f69b86e6000-7f69b86e7000 rwxp 00005000 08:03 88                         /usr/lib/libXdmcp.so.6.0.0
7f69b86e7000-7f69b86e9000 r-xp 00000000 08:03 5435                       /usr/lib/libXau.so.6.0.0
7f69b86e9000-7f69b88e8000 ---p 00002000 08:03 5435                       /usr/lib/libXau.so.6.0.0
7f69b88e8000-7f69b88e9000 r-xp 00001000 08:03 5435                       /usr/lib/libXau.so.6.0.0
7f69b88e9000-7f69b88ea000 rwxp 00002000 08:03 5435                       /usr/lib/libXau.so.6.0.0
7f69b88ea000-7f69b8905000 r-xp 00000000 08:03 90                         /usr/lib/libxcb.so.1.1.0
7f69b8905000-7f69b8b05000 ---p 0001b000 08:03 90                         /usr/lib/libxcb.so.1.1.0
7f69b8b05000-7f69b8b06000 r-xp 0001b000 08:03 90                         /usr/lib/libxcb.so.1.1.0
7f69b8b06000-7f69b8b07000 rwxp 0001c000 08:03 90                         /usr/lib/libxcb.so.1.1.0
7f69b8b07000-7f69b8b15000 r-xp 00000000 08:03 2489                       /usr/lib/libXi.so.6.1.0
7f69b8b15000-7f69b8d15000 ---p 0000e000 08:03 2489                       /usr/lib/libXi.so.6.1.0
7f69b8d15000-7f69b8d16000 r-xp 0000e000 08:03 2489                       /usr/lib/libXi.so.6.1.0
7f69b8d16000-7f69b8d17000 rwxp 0000f000 08:03 2489                       /usr/lib/libXi.so.6.1.0
7f69b8d17000-7f69b8d1c000 r-xp 00000000 08:03 5949                       /usr/lib/libXtst.so.6.1.0
7f69b8d1c000-7f69b8f1c000 ---p 00005000 08:03 5949                       /usr/lib/libXtst.so.6.1.0
7f69b8f1c000-7f69b8f1d000 r-xp 00005000 08:03 5949                       /usr/lib/libXtst.so.6.1.0
7f69b8f1d000-7f69b8f1e000 rwxp 00006000 08:03 5949                       /usr/lib/libXtst.so.6.1.0
7f69b8f1e000-7f69b904f000 r-xp 00000000 08:03 120                        /usr/lib/libX11.so.6.3.0
7f69b904f000-7f69b924f000 ---p 00131000 08:03 120                        /usr/lib/libX11.so.6.3.0
7f69b924f000-7f69b9250000 r-xp 00131000 08:03 120                        /usr/lib/libX11.so.6.3.0
7f69b9250000-7f69b9254000 rwxp 00132000 08:03 120                        /usr/lib/libX11.so.6.3.0
7f69b9254000-7f69b9265000 r-xp 00000000 08:03 2017                       /usr/lib/libXext.so.6.4.0
7f69b9265000-7f69b9464000 ---p 00011000 08:03 2017                       /usr/lib/libXext.so.6.4.0
7f69b9464000-7f69b9465000 r-xp 00010000 08:03 2017                       /usr/lib/libXext.so.6.4.0
7f69b9465000-7f69b9466000 rwxp 00011000 08:03 2017                       /usr/lib/libXext.so.6.4.0
7f69b946c000-7f69b9470000 r-xs 00000000 08:03 142487                     /var/cache/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-le64.cache-3
7f69b9470000-7f69b9484000 r-xs 00000000 08:03 136267                     /var/cache/fontconfig/865f88548240fee46819705c6468c165-le64.cache-3
7f69b9484000-7f69b94c6000 r-xp 00000000 08:03 7213                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/xawt/libmawt.so
7f69b94c6000-7f69b95c5000 ---p 00042000 08:03 7213                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/xawt/libmawt.so
7f69b95c5000-7f69b95d0000 rwxp 00041000 08:03 7213                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/xawt/libmawt.so
7f69b95d0000-7f69b95d2000 rwxp 00000000 00:00 0
7f69b95d2000-7f69b9664000 r-xp 00000000 08:03 7285                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libawt.so
7f69b9664000-7f69b9763000 ---p 00092000 08:03 7285                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libawt.so
7f69b9763000-7f69b977c000 rwxp 00091000 08:03 7285                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libawt.so
7f69b977c000-7f69b97a1000 rwxp 00000000 00:00 0
7f69b97a1000-7f69b97a2000 ---p 00000000 00:00 0
7f69b97a2000-7f69b98a2000 rwxp 00000000 00:00 0
7f69b98a2000-7f69b98a5000 ---p 00000000 00:00 0
7f69b98a5000-7f69b99a3000 rwxp 00000000 00:00 0
7f69b99a3000-7f69b99a6000 ---p 00000000 00:00 0
7f69b99a6000-7f69b9aa4000 rwxp 00000000 00:00 0
7f69b9aa4000-7f69b9aa7000 ---p 00000000 00:00 0
7f69b9aa7000-7f69b9ba5000 rwxp 00000000 00:00 0
7f69b9ba5000-7f69b9ba8000 ---p 00000000 00:00 0
7f69b9ba8000-7f69b9ca6000 rwxp 00000000 00:00 0
7f69b9ca6000-7f69ba0ad000 r-xp 00000000 08:03 139002                     /usr/lib/locale/locale-archive
7f69ba0ad000-7f69ba0b0000 ---p 00000000 00:00 0
7f69ba0b0000-7f69ba1ae000 rwxp 00000000 00:00 0
7f69ba1ae000-7f69ba1b1000 ---p 00000000 00:00 0
7f69ba1b1000-7f69ba2af000 rwxp 00000000 00:00 0
7f69ba2af000-7f69ba2b0000 ---p 00000000 00:00 0
7f69ba2b0000-7f69ba6e6000 rwxp 00000000 00:00 0
7f69ba6e6000-7f69ba87e000 r-xs 03013000 08:03 7208                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/rt.jar
7f69ba87e000-7f69ba8a6000 rwxp 00000000 00:00 0
7f69ba8a6000-7f69ba8a7000 ---p 00000000 00:00 0
7f69ba8a7000-7f69ba9a7000 rwxp 00000000 00:00 0
7f69ba9a7000-7f69ba9a8000 ---p 00000000 00:00 0
7f69ba9a8000-7f69baab3000 rwxp 00000000 00:00 0
7f69baab3000-7f69baad2000 rwxp 00000000 00:00 0
7f69baad2000-7f69baae3000 rwxp 00000000 00:00 0
7f69baae3000-7f69bab7a000 rwxp 00000000 00:00 0
7f69bab7a000-7f69bab85000 rwxp 00000000 00:00 0
7f69bab85000-7f69baba4000 rwxp 00000000 00:00 0
7f69baba4000-7f69babb5000 rwxp 00000000 00:00 0
7f69babb5000-7f69bac4b000 rwxp 00000000 00:00 0
7f69bac4b000-7f69bac55000 rwxp 00000000 00:00 0
7f69bac55000-7f69bac9f000 rwxp 00000000 00:00 0
7f69bac9f000-7f69bc160000 rwxp 00000000 00:00 0
7f69bc160000-7f69c00a0000 rwxp 00000000 00:00 0
7f69c00a0000-7f69c21f0000 rwxp 00000000 00:00 0
7f69c21f0000-7f69d4f50000 rwxp 00000000 00:00 0
7f69d4f50000-7f69d61b0000 rwxp 00000000 00:00 0
7f69d61b0000-7f69df6a0000 rwxp 00000000 00:00 0
7f69df6a0000-7f69df6a2000 r-xs 00019000 08:03 788732                     /home/.../libs/quickhull3d.jar
7f69df6a2000-7f69df6a5000 r-xs 0001d000 08:03 788733                     /home/.../libs/lwjgl_util.jar
7f69df6a5000-7f69df6ae000 r-xs 000a4000 08:03 788734                     /home/.../libs/lwjgl.jar
7f69df6ae000-7f69df91e000 rwxp 00000000 00:00 0
7f69df91e000-7f69e26ae000 rwxp 00000000 00:00 0
7f69e26ae000-7f69e26bc000 r-xp 00000000 08:03 7240                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libzip.so
7f69e26bc000-7f69e27be000 ---p 0000e000 08:03 7240                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libzip.so
7f69e27be000-7f69e27c1000 rwxp 00010000 08:03 7240                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libzip.so
7f69e27c1000-7f69e27c2000 rwxp 00000000 00:00 0
7f69e27c2000-7f69e27ce000 r-xp 00000000 08:03 7936                       /lib/libnss_files-2.12.1.so
7f69e27ce000-7f69e29cd000 ---p 0000c000 08:03 7936                       /lib/libnss_files-2.12.1.so
7f69e29cd000-7f69e29ce000 r-xp 0000b000 08:03 7936                       /lib/libnss_files-2.12.1.so
7f69e29ce000-7f69e29cf000 rwxp 0000c000 08:03 7936                       /lib/libnss_files-2.12.1.so
7f69e29cf000-7f69e29d9000 r-xp 00000000 08:03 6164                       /lib/libnss_nis-2.12.1.so
7f69e29d9000-7f69e2bd8000 ---p 0000a000 08:03 6164                       /lib/libnss_nis-2.12.1.so
7f69e2bd8000-7f69e2bd9000 r-xp 00009000 08:03 6164                       /lib/libnss_nis-2.12.1.so
7f69e2bd9000-7f69e2bda000 rwxp 0000a000 08:03 6164                       /lib/libnss_nis-2.12.1.so
7f69e2bda000-7f69e2be2000 r-xp 00000000 08:03 7933                       /lib/libnss_compat-2.12.1.so
7f69e2be2000-7f69e2de1000 ---p 00008000 08:03 7933                       /lib/libnss_compat-2.12.1.so
7f69e2de1000-7f69e2de2000 r-xp 00007000 08:03 7933                       /lib/libnss_compat-2.12.1.so
7f69e2de2000-7f69e2de3000 rwxp 00008000 08:03 7933                       /lib/libnss_compat-2.12.1.so
7f69e2de3000-7f69e2dea000 r-xp 00000000 08:03 7242                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/native_threads/libhpi.so
7f69e2dea000-7f69e2eeb000 ---p 00007000 08:03 7242                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/native_threads/libhpi.so
7f69e2eeb000-7f69e2eed000 rwxp 00008000 08:03 7242                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/native_threads/libhpi.so
7f69e2eed000-7f69e2eee000 rwxp 00000000 00:00 0
7f69e2eee000-7f69e2f05000 r-xp 00000000 08:03 7935                       /lib/libnsl-2.12.1.so
7f69e2f05000-7f69e3104000 ---p 00017000 08:03 7935                       /lib/libnsl-2.12.1.so
7f69e3104000-7f69e3105000 r-xp 00016000 08:03 7935                       /lib/libnsl-2.12.1.so
7f69e3105000-7f69e3106000 rwxp 00017000 08:03 7935                       /lib/libnsl-2.12.1.so
7f69e3106000-7f69e3108000 rwxp 00000000 00:00 0
7f69e3108000-7f69e3130000 r-xp 00000000 08:03 7261                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libjava.so
7f69e3130000-7f69e3230000 ---p 00028000 08:03 7261                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libjava.so
7f69e3230000-7f69e3237000 rwxp 00028000 08:03 7261                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libjava.so
7f69e3237000-7f69e3244000 r-xp 00000000 08:03 7235                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libverify.so
7f69e3244000-7f69e3343000 ---p 0000d000 08:03 7235                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libverify.so
7f69e3343000-7f69e3346000 rwxp 0000c000 08:03 7235                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/libverify.so
7f69e3346000-7f69e334d000 r-xp 00000000 08:03 4460                       /lib/librt-2.12.1.so
7f69e334d000-7f69e354c000 ---p 00007000 08:03 4460                       /lib/librt-2.12.1.so
7f69e354c000-7f69e354d000 r-xp 00006000 08:03 4460                       /lib/librt-2.12.1.so
7f69e354d000-7f69e354e000 rwxp 00007000 08:03 4460                       /lib/librt-2.12.1.so
7f69e354e000-7f69e3551000 ---p 00000000 00:00 0
7f69e3551000-7f69e364f000 rwxp 00000000 00:00 0
7f69e364f000-7f69e36d1000 r-xp 00000000 08:03 4503                       /lib/libm-2.12.1.so
7f69e36d1000-7f69e38d0000 ---p 00082000 08:03 4503                       /lib/libm-2.12.1.so
7f69e38d0000-7f69e38d1000 r-xp 00081000 08:03 4503                       /lib/libm-2.12.1.so
7f69e38d1000-7f69e38d2000 rwxp 00082000 08:03 4503                       /lib/libm-2.12.1.so
7f69e38d2000-7f69e40ac000 r-xp 00000000 08:03 7269                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/server/libjvm.so
7f69e40ac000-7f69e41ae000 ---p 007da000 08:03 7269                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/server/libjvm.so
7f69e41ae000-7f69e433f000 rwxp 007dc000 08:03 7269                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/server/libjvm.so
7f69e433f000-7f69e437a000 rwxp 00000000 00:00 0
7f69e437a000-7f69e44f4000 r-xp 00000000 08:03 4462                       /lib/libc-2.12.1.so
7f69e44f4000-7f69e46f3000 ---p 0017a000 08:03 4462                       /lib/libc-2.12.1.so
7f69e46f3000-7f69e46f7000 r-xp 00179000 08:03 4462                       /lib/libc-2.12.1.so
7f69e46f7000-7f69e46f8000 rwxp 0017d000 08:03 4462                       /lib/libc-2.12.1.so
7f69e46f8000-7f69e46fd000 rwxp 00000000 00:00 0
7f69e46fd000-7f69e46ff000 r-xp 00000000 08:03 7939                       /lib/libdl-2.12.1.so
7f69e46ff000-7f69e48ff000 ---p 00002000 08:03 7939                       /lib/libdl-2.12.1.so
7f69e48ff000-7f69e4900000 r-xp 00002000 08:03 7939                       /lib/libdl-2.12.1.so
7f69e4900000-7f69e4901000 rwxp 00003000 08:03 7939                       /lib/libdl-2.12.1.so
7f69e4901000-7f69e4919000 r-xp 00000000 08:03 4472                       /lib/libpthread-2.12.1.so
7f69e4919000-7f69e4b18000 ---p 00018000 08:03 4472                       /lib/libpthread-2.12.1.so
7f69e4b18000-7f69e4b19000 r-xp 00017000 08:03 4472                       /lib/libpthread-2.12.1.so
7f69e4b19000-7f69e4b1a000 rwxp 00018000 08:03 4472                       /lib/libpthread-2.12.1.so
7f69e4b1a000-7f69e4b1e000 rwxp 00000000 00:00 0
7f69e4b1e000-7f69e4b3e000 r-xp 00000000 08:03 4544                       /lib/ld-2.12.1.so
7f69e4b41000-7f69e4b42000 rwxs 00005000 00:05 8282                       /dev/ati/card0
7f69e4b42000-7f69e4b44000 rwxs 00002000 00:05 8282                       /dev/ati/card0
7f69e4b44000-7f69e4b4d000 r-xs 0006d000 08:03 788737                     /home/.../libs/log4j-1.2.16.jar
7f69e4b4d000-7f69e4b50000 r-xs 00040000 08:03 788735                     /home/.../libs/jpct.jar
7f69e4b50000-7f69e4b5a000 rwxp 00000000 00:00 0
7f69e4b5a000-7f69e4c10000 rwxp 00000000 00:00 0
7f69e4c10000-7f69e4c13000 rwxp 00000000 00:00 0
7f69e4c13000-7f69e4c1a000 r-xp 00000000 08:03 7211                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/jli/libjli.so
7f69e4c1a000-7f69e4d1b000 ---p 00007000 08:03 7211                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/jli/libjli.so
7f69e4d1b000-7f69e4d1d000 rwxp 00008000 08:03 7211                       /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/jli/libjli.so
7f69e4d1d000-7f69e4d1e000 rwxp 00000000 00:00 0
7f69e4d1e000-7f69e4d22000 r-xs 0001f000 08:03 788736                     /home/.../libs/jinngine.jar
7f69e4d22000-7f69e4d32000 r-xs 00114000 08:03 788731                     /home/.../libs/cx3djava100a.jar
7f69e4d32000-7f69e4d3a000 rwxs 00000000 08:03 662422                     /tmp/hsperfdata_roland/7357 (deleted)
7f69e4d3a000-7f69e4d3b000 rwxp 00000000 00:00 0
7f69e4d3b000-7f69e4d3c000 ---p 00000000 00:00 0
7f69e4d3c000-7f69e4d3e000 rwxp 00000000 00:00 0
7f69e4d3e000-7f69e4d3f000 r-xp 00020000 08:03 4544                       /lib/ld-2.12.1.so
7f69e4d3f000-7f69e4d40000 rwxp 00021000 08:03 4544                       /lib/ld-2.12.1.so
7f69e4d40000-7f69e4d41000 rwxp 00000000 00:00 0
7fff7d553000-7fff7d574000 rwxp 00000000 00:00 0                          [stack]
7fff7d5ff000-7fff7d600000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

VM Arguments:
jvm_args: -Dfile.encoding=UTF-8 -Djava.library.path=/home/.../libs/native/linux
java_command: squadsim.Main
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
USERNAME=[...]
LD_LIBRARY_PATH=/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/server:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/../lib/amd64
SHELL=/bin/bash
DISPLAY=:0.0

Signal Handlers:
SIGSEGV: [libjvm.so+0x731250], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x731250], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x5f5e30], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0x5f5e30], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGXFSZ: [libjvm.so+0x5f5e30], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x5f5e30], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x5f8650], sa_mask[0]=0x00000004, sa_flags=0x10000004
SIGHUP: [libjvm.so+0x5f83a0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGTERM: [libjvm.so+0x5f83a0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGQUIT: [libjvm.so+0x5f83a0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004


---------------  S Y S T E M  ---------------

OS:squeeze/sid

uname:Linux 2.6.35-23-generic #41-Ubuntu SMP Wed Nov 24 11:55:36 UTC 2010 x86_64
libc:glibc 2.12.1 NPTL 2.12.1
rlimit: STACK 8192k, CORE 0k, NPROC infinity, NOFILE 1024, AS infinity
load average:0.21 0.41 0.50

CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 11, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3

Memory: 4k page, physical 2055476k(112468k free), swap 2136608k(2128608k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (17.1-b03) for linux-amd64 JRE (1.6.0_22-b04), built on Sep 15 2010 01:07:59 by "java_re" with gcc 3.2.2 (SuSE Linux)

time: Mon Dec  6 11:47:20 2010
elapsed time: 2 seconds

Thanks in advance!
    Roland

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: VM Crash on exit. (Ubuntu 64bit)
« Reply #1 on: December 06, 2010, 12:52:54 pm »
There are no threads running at that time that were spawned by jPCT. You can easily see that when looking at the thread list of the dump. I noticed similar problems on some Windows based systems. It always helped to remove the dispose()-calls and rely on System.exit(0); alone to clean up the place.
In this case, this obviously isn't the problem. I'm a bit stuck here...which version of LWJGL are you using? Maybe an update/downdate helps?
« Last Edit: December 06, 2010, 01:08:43 pm by EgonOlsen »

Offline rschwemm

  • byte
  • *
  • Posts: 18
    • View Profile
Re: VM Crash on exit. (Ubuntu 64bit)
« Reply #2 on: December 06, 2010, 01:17:34 pm »
I'm not sure about the version. So I replaced all jars (jpct and lwjgl) by those present in the currently loadable JPCT package.
No change regarding the error though. According to the folder name, it would be LWJGL 2.4.2.

Perhaps I should mention that this crash is perfectly reproducible here. It happens every time. If further information would be helpful, just say what you need.

I'm going to try the latest LWJGL version (2.6) as next step. And I will check, if the examples crash as well.
Concerning the downgrade: Any suggestions which version(s) is known to work / is recommended?
(I'd prefer to stay up to date. This is not an issue at "runtime". But if it helps to pinpoint the problem...)

Thanks for your time!
    Roland

Offline rschwemm

  • byte
  • *
  • Posts: 18
    • View Profile
Re: VM Crash on exit. (Ubuntu 64bit)
« Reply #3 on: December 06, 2010, 01:26:07 pm »
Upgrading LWJGL to version 2.6 fixed it.
Still, I think this is odd. If you're interested I'd provide any help I can to figure out what this is about.

I'm always curious about the why!

Thanks a lot!
  Roland

Edit:
I was way to fast :-/
The crash probability went down. but it still happens.
Now trying the examples.
« Last Edit: December 06, 2010, 01:27:44 pm by rschwemm »

Offline rschwemm

  • byte
  • *
  • Posts: 18
    • View Profile
Re: VM Crash on exit. (Ubuntu 64bit)
« Reply #4 on: December 06, 2010, 01:44:49 pm »
Ok, obviously the car & fps example use the software renderer.
The helloworld example however does crash.

run_opengl.sh & run_awtgl.sh produce the same crash. However, run_awtgl.sh seems to have trouble rendering at all.
The created window stays blank.

This indicates, that this is not a problem with my code. Maybe ATI cards are problematic? Unfortunately I don't have
any nvidia cards flying around to test it. Since this doesn't happen when booting windows, it seems to be a problem
either LWJGL or the graphics card driver (or even the Java distribution?).

This officially sucks ;-). I'll watch out for a workaround. But if you have any ideas left, let me know.

Offline rschwemm

  • byte
  • *
  • Posts: 18
    • View Profile
Re: VM Crash on exit. (Ubuntu 64bit)
« Reply #5 on: December 06, 2010, 02:02:13 pm »
After digging  a bit around I found the following:

http://lwjgl.org/forum/index.php/topic,2350.0.html

and more interesting:
http://jogamp.762907.n3.nabble.com/SIGSEGV-when-closing-JOGL-applications-td895912.html

Post by Sven Gothel:
Quote
So, we decided to 'ignore' this SEGV thingy until further investigation,
however, it has something to do with X11 and multithreading.

We use 'XInitThreads()' to setup X11 multithreading support
and it seems that the [J]AWT implementation in the JVM calls
X11 functions before and after JOGL runs.

The lack of calling 'XInitThreads()' in the JVM/JRE (when using AWT)
is already identified as a huge pain and a workaround for this
does not seem to be a good idea at all(*).

The best solution would be to convince Oracle/OpenJDK to issue
the XInitThread() call ASAP (before any other X11 call),
and to revisit some _global_ AWT locks, since they are probably no more necessary.
This would allow true inter-component multithreading with X11
without the need of a global AWT toolkit lock and hence
a fluent X11 workflow where threads won't disturb each other anymore.

BTW .. without XInitThreads() and with XLockDisplay
it was not possible with the NV driver to manage lifecycle operations
(create, makecurrent/release, destroy) in a reliable manner across threads.
Eg:
  thread1: createContext, makeCurrent, some-rendering, release ..
  thread1: stops
  thread2: makeCurrent/release, destroyContext
           -> hangs somewhere, ie makeCurrent, swapBuffer or destroy

So .. we have to think about this, and triage this in more detail.

Multithreading in JOGL is not about using multiple rendering threads
here, but to allow multiple threads to use the same X11 Display connection
for rendering and event dispatching undisturbed, read: non blocking.

For now, all I can say is, don't worry about this message,
it ain't even considered a failure/error with the junit tests.

So this is not a JPCT thing.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: VM Crash on exit. (Ubuntu 64bit)
« Reply #6 on: December 07, 2010, 08:10:51 am »
Good to know.  ;D