Bug 1046 - Crash (jvm segfault) when using a one-jar
Summary: Crash (jvm segfault) when using a one-jar
Status: RESOLVED INVALID
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 2
Hardware: All all
: --- enhancement
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2014-08-16 13:28 CEST by Mark Raynsford
Modified: 2014-09-01 16:38 CEST (History)
1 user (show)

See Also:
Type: ---
SCM Refs:
Workaround: ---


Attachments
Output of java -Djogamp.debug=true (425.47 KB, text/plain)
2014-08-16 13:33 CEST, Mark Raynsford
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Raynsford 2014-08-16 13:28:10 CEST
The following jar will crash the jvm:

https://www.dropbox.com/s/hnh4zwrlazlpqx2/uber-project-1.0-SNAPSHOT.jar

The jar is produced using the maven-dependencies plugin, that packs all dependencies into a single jar.

Filing this here so that it doesn't get lost: Not sure if it's JOGL/GlueGen's fault or not.
Comment 1 Mark Raynsford 2014-08-16 13:33:19 CEST
Created attachment 621 [details]
Output of java -Djogamp.debug=true

The debug log shows that the crash occurs just after attempting to load libGL.so.1.
Comment 2 Mark Raynsford 2014-08-16 14:31:20 CEST
Discussion started here:

http://jogamp.org/log/irc/jogamp_20140816050529.html#l19
Comment 3 Sven Gothel 2014-09-01 16:38:13 CEST
http://jogamp.org/wiki/index.php/JogAmp_JAR_File_Handling#Fat-Jar

The provided test jar file does not comply w/ our
supported models .. (separate, fat, 'tagged').

it loads some native libs from the jar file 'root' folder,
which fail for some reason.