Public bug reported:

Ubuntu mesa contains the patch 113_fix_tls.diff that triggers a freezing impact:
+++
 extern __thread void *u_current_user
-    __attribute__((tls_model("initial-exec")));
+    __attribute__((tls_model("global-dynamic")));
+++

JogAmp JOGL have triaged that this bug are introduced by this ubuntu local 
patch:
https://jogamp.org/bugzilla/show_bug.cgi?id=566

I am able to reproduce this bug using Ubuntu 11.10 + mesa 7.11
GL_VENDOR: X.Org
GL_RENDERER: Gallium 0.4 on AMD RV770
GL_VERSION: 2.1 Mesa 7.11

Testcase (large ~150mb)
wget http://processing.googlecode.com/files/processing-2.0a5-linux.tgz
tar zxvf processing-2.0a5-linux.tgz
cd processing-2.0a5
./processing
#open File->Examples... Pick Topics->Geometry-> double click on RGBCube
#run the sketch ctrl-r
#output below:

xranby@hp ~/processing-2.0a5 $ ./processing 
Info: XInitThreads() called for concurrent Thread support
<window opens>
<freeze>

Backtrace of the stalled window thread.

(gdb) bt
#0  0x00118e3f in pthread_mutex_lock ()
   from /lib/i386-linux-gnu/libpthread.so.0
#1  0x0058701b in ?? () from /lib/ld-linux.so.2
#2  0x0059781d in ___tls_get_addr () from /lib/ld-linux.so.2
#3  0x0305e558 in ?? () from /usr/lib/i386-linux-gnu/dri/libgallium.so
#4  0x0218e3be in dri_make_current ()
   from /usr/lib/i386-linux-gnu/dri/r600_dri.so
#5  0x0216b1bf in ?? () from /usr/lib/i386-linux-gnu/dri/r600_dri.so
#6  0x074e4b8d in ?? () from /usr/lib/i386-linux-gnu/mesa/libGL.so.1
#7  0x074bcb97 in glXMakeCurrentReadSGI ()
   from /usr/lib/i386-linux-gnu/mesa/libGL.so.1
#8  0x082f329a in 
Java_jogamp_opengl_x11_glx_GLX_dispatch_1glXMakeContextCurrent1(__complex 
__complex __complex __complex __complex) ()
   from 
/tmp/jogamp.tmp.cache_000000/jln4751330094528893169/jln2305029403340098767/libjogl_desktop.so

** Affects: mesa (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to mesa in Ubuntu.
https://bugs.launchpad.net/bugs/965798

Title:
  Multithreaded tls_model("global-dynamic") glXMakeContextCurrent
  ___tls_get_addr () freeze/deadlock

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/965798/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to