Comment 13 for bug 845158

Revision history for this message
Xerxes RĂ„nby (xranby) wrote :

The patch http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=7178/1 in #10 enables the user to kill the stuck process when this bug triggers but it do not fix the deadlock itself.

Testcase that can reproduce this lock bug using a pandaboard running kernel 3.1 using Ubuntu oneiric with the ubuntu-omap4-extras package installed:

# First I installed all build dependencies needed
sudo apt-get install openjdk-6-jdk ant git gcc libgl1-mesa-dev libglu1-mesa-dev xorg-dev libice-dev libsm-dev libx11-dev libxext-dev libxxf86vm-dev libxinerama-dev libxrandr-dev libxrender-dev install p7zip-full

# clone the jogamp sourcecode into the machine using git
git clone git://jogamp.org/srv/scm/gluegen.git gluegen
git clone git://jogamp.org/srv/scm/jogl.git jogl

# according to the JOGL build instructions i had to unset CLASSPATH to prevent
# the build to pick up any system installed GlueGen or JOGL files during compilation.
unsetenv CLASSPATH
unset CLASSPATH

cd gluegen/make
# Make sure that TARGET_PLATFORM_LIBS and TARGET_JAVA_LIBS match my
# system, for example to make it build for Ubuntu armhf Precise i had to set:
# export TARGET_PLATFORM_LIBS=/usr/lib/arm-linux-gnueabihf
# export TARGET_JAVA_LIBS=/usr/lib/jvm/default-java/jre/lib/arm
# in the file scripts/make.gluegen.all.linux-armv7.sh
#
sh scripts/make.gluegen.all.linux-armv7.sh

# gluegen BUILD SUCESSFUL

# Next step building of JOGL
cd ../../jogl/make
# Similary here check that TARGET_PLATFORM_LIBS
# and TARGET_JAVA_LIBS are set to match your system
# then start the build.
#
sh scripts/make.jogl.all.linux-armv7.sh

# jogl BUILD SUCESSFUL

# run all the jogl unittests
sh scripts/make.jogl.all.linux-armv7.sh junit.run

#The lock bugs triggers on my pandaboard after running the unittest for about 10 minutes.