Bug 610 - JOGL crash with ATI Mobility Radeon HD 4200 in libX11 XQueryExtension on application exit
Summary: JOGL crash with ATI Mobility Radeon HD 4200 in libX11 XQueryExtension on appl...
Status: RESOLVED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: x11 (show other bugs)
Version: 2
Hardware: pc_x86_64 linux
: --- normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2012-08-26 09:12 CEST by Xerxes Rånby
Modified: 2012-09-21 22:20 CEST (History)
0 users

See Also:
Type: ---
SCM Refs:
jogl f2cfb6119a3663715ed2d572643949b3bef58662 jogl ba846a478d616327817dd530dbdcd9a786be5b7a
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xerxes Rånby 2012-08-26 09:12:59 CEST
Testcase:

wget http://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z
7z x jogamp-all-platforms.7z
cd jogamp-all-platforms
wget https://raw.github.com/xranby/jogl-demos/master/src/demos/es2/RawGL2ES2demo.java
javac -cp jar/jogl-all.jar:jar/gluegen-rt.jar RawGL2ES2demo.java
java -cp jar/jogl-all.jar:jar/gluegen-rt.jar:. RawGL2ES2demo

# Now close the window to trigger the crash
# using the ATI mobility Radeon 5470 driver:
# fglrx_2%3a8.881-0ubuntu4.1_amd64.deb  and 
# fglrx-amdcccle_2%3a8.881-0ubuntu4.1_amd64.deb on a
# x86_64 Ubuntu 12.04 system

Output:

Chosen GLCapabilities: GLCaps[glx vid 0xa5, fbc 0xa5: on-scr, rgba 0x8/8/8/8, trans-rgba 0xff/ff/ff/ff, accum-rgba 0/0/0/0, dp/st/ms: 24/0/0, dbl, mono  , hw, GLProfile[GL2ES2/GL3bc.hw]]
INIT GL IS: jogamp.opengl.gl4.GL4bcImpl
GL_VENDOR: ATI Technologies Inc.
GL_RENDERER: ATI Mobility Radeon HD 4200 Series
GL_VERSION: 3.3.11627 Compatibility Profile Context
Horray! vertex shader compiled
Horray! fragment shader compiled
Window resized to width=1366 height=744
Window resized to width=1358 height=719
Window resized to width=1358 height=718
Window resized to width=1168 height=638
Window resized to width=800 height=515
Window resized to width=670 height=489
Window resized to width=672 height=470
Window resized to width=650 height=438
Window resized to width=618 height=402
Window resized to width=612 height=376
Window resized to width=616 height=366
Window resized to width=616 height=363
Window resized to width=616 height=354
Window resized to width=604 height=340
Window resized to width=564 height=319
Window resized to width=520 height=303
Window resized to width=511 height=297
cleanup, remember to release shaders
X11Util.Display: Shutdown (close open / pending Displays: false, open (no close attempt): 2/2, pending (not closed, marked uncloseable): 1)
X11Util: Open X11 Display Connections: 2
X11Util: Open[0]: NamedX11Display[:0, 0x7f484c290fa0, refCount 1, unCloseable true]
X11Util: Open[1]: NamedX11Display[:0, 0x7f4834006b90, refCount 1, unCloseable true]
X11Util: Pending X11 Display Connections: 1
X11Util: Pending[0]: NamedX11Display[:0, 0x7f4840006480, refCount 0, unCloseable true]
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f482b3bfc58, pid=8210, tid=139948559836928
#
# JRE version: 6.0_24-b24
# Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea6 1.11.3
# Distribution: Ubuntu 12.04 LTS, package 6b24-1.11.3-1ubuntu0.12.04.1
# Problematic frame:
# C  [libX11.so.6+0x33c58]  XQueryExtension+0x28

The NEWT window stays open after the crash.
Comment 1 Xerxes Rånby 2012-08-26 09:16:12 CEST
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff48a9700 (LWP 8450)]
0x00007fffcf89ec58 in XQueryExtension ()
   from /usr/lib/x86_64-linux-gnu/libX11.so.6
(gdb) bt
#0  0x00007fffcf89ec58 in XQueryExtension ()
   from /usr/lib/x86_64-linux-gnu/libX11.so.6
#1  0x00007fffcf892c55 in XInitExtension ()
   from /usr/lib/x86_64-linux-gnu/libX11.so.6
#2  0x00007fffcfbac02b in XextAddDisplay ()
   from /usr/lib/x86_64-linux-gnu/libXext.so.6
#3  0x00007fffcd3a5119 in ?? () from /usr/lib/fglrx/libGL.so.1
#4  0x00007fffcd39bb42 in ?? () from /usr/lib/fglrx/libGL.so.1
#5  0x00007ffff48a8980 in ?? ()
#6  0x00007fffcd3fe8b1 in ?? () from /usr/lib/fglrx/libGL.so.1
#7  0x00007ffff48a8980 in ?? ()
#8  0x00007ffff7de992d in ?? () from /lib64/ld-linux-x86-64.so.2
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)
Comment 2 Xerxes Rånby 2012-09-07 19:06:26 CEST
Fix comited to:
https://github.com/sgothel/jogl/commit/f2cfb6119a3663715ed2d572643949b3bef58662
please test
Comment 4 Sven Gothel 2012-09-21 22:20:11 CEST
Regression (Bug 621) fixed w/ commit ba846a478d616327817dd530dbdcd9a786be5b7a