Am Freitag, 25. Oktober 2002 22:22 schrieb Brian Paul: > Charl P. Botha wrote: > > Dear list, > > > > This bug has so far been reproduced on my M7 (mobile 7500) laptop with > > DRI CVS as well as on a TiBook (i.e. PPC) with 7500 (thanks Wouter). > > > > Download http://cpbotha.net/thingies/glthreads.c and compile it with > > something like: > > gcc -I../include -O3 -ansi -pedantic -fPIC -ffast-math -D_SVID_SOURCE \ > > -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include glthreads.c \ > > -L../lib -lglut -lGLU -lGL -lm -o glthreads > > > > This is an example from the mesademos I've modified to show the bug. You > > have to run with RADEON_TCL_FORCE_DISABLE=1 (if you have TCL hardware) > > else you will get the VTXFMT assert bug or your X will lock up. This is > > the case with the stock glthreads too. If you have an R200, try with > > R200_NO_TCL=1 > > > > Run glthreads with something like: glthreads -n 5 > > > > Focus one of the windows and press any key. This will terminate the > > thread, wait for it and then kill the glxcontext and window (my > > modification). At this point, if you're using a radeon, you should see: > > drmCmdBuffer: -22 and the app will terminate. > > > > Does anyone have any ideas on this? > > I found the problem. The call to R200_FIREVERTICES() was in the wrong > place (as someone suggested). It's supposed to be near the top. I'll > check in the fix for both the radeon and r200 driver soon. > > glthreads seems to work fine now (with or without h/w tcl) on the r200.
This is true got it running with n=100,150,200 ;-) Felix fix cured it. But all my threaded VTK apps (VTXFMT) crash. Sometimes it is halfway running, now. Two windows come up, one sometimes with content, the other empty white colored, sometimes both only white. Most wanted bug fix, please ;-) VTK/bin> ./TaskParallelism r200CreateScreen r200CreateScreen r200_makeX86Normal3fv/197 CVAL 0 OFFSET 14 VAL 41bd16e0 r200_makeX86Normal3fv/198 CVAL 4 OFFSET 20 VAL 41bd16e4 r200_makeX86Normal3fv/199 CVAL 8 OFFSET 25 VAL 41bd16e8 r200_makeX86Normal3fv done Speicherschutzverletzung VTK/bin> unlimit coredumpsize VTK/bin> ./TaskParallelism r200CreateScreen r200_makeX86Normal3fv/197 CVAL 0 OFFSET 14 VAL 41bd16e0 r200_makeX86Normal3fv/198 CVAL 4 OFFSET 20 VAL 41bd16e4 r200_makeX86Normal3fv/199 CVAL 8 OFFSET 25 VAL 41bd16e8 r200_makeX86Normal3fv done r200CreateScreen TaskParallelism: r200_vtxfmt.c:925: r200FlushVertices: Assertion `vb.context == ctx' failed. Abbruch (core dumped) [-] Reading symbols from /lib/libm.so.6...done. Loaded symbols for /lib/libm.so.6 Reading symbols from /usr/lib/libstdc++-libc6.2-2.so.3...done. Loaded symbols for /usr/lib/libstdc++-libc6.2-2.so.3 Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done. Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2 Reading symbols from /usr/X11R6/lib/modules/dri/r200_dri.so...done. Loaded symbols for /usr/X11R6/lib/modules/dri/r200_dri.so #0 0x417d2701 in kill () from /lib/libc.so.6 (gdb) bt #0 0x417d2701 in kill () from /lib/libc.so.6 #1 0x4003489a in pthread_kill () from /lib/libpthread.so.0 #2 0x40034d92 in raise () from /lib/libpthread.so.0 #3 0x417d3a23 in abort () from /lib/libc.so.6 #4 0x417cd0ea in __assert_fail () from /lib/libc.so.6 #5 0x41b8bb65 in r200FlushVertices () from /usr/X11R6/lib/modules/dri/r200_dri.so #6 0x4023a658 in vtkOpenGLRenderWindow::SetPixelData () from /opt/VTK/V4.0/VTK/lib/libvtkRendering.so #7 0x40082fbc in vtkCompositeManager::Composite () from /opt/VTK/V4.0/VTK/lib/libvtkParallel.so #8 0x40081bf9 in vtkCompositeManager::EndRender () from /opt/VTK/V4.0/VTK/lib/libvtkParallel.so #9 0x4007f899 in vtkCompositeManagerEndRender () from /opt/VTK/V4.0/VTK/lib/libvtkParallel.so #10 0x4154a1dd in vtkCallbackCommand::Execute () from /opt/VTK/V4.0/VTK/lib/libvtkCommon.so #11 0x415a1416 in vtkSubjectHelper::InvokeEvent () from /opt/VTK/V4.0/VTK/lib/libvtkCommon.so #12 0x415a1762 in vtkObject::InvokeEvent () from /opt/VTK/V4.0/VTK/lib/libvtkCommon.so #13 0x401ff32b in vtkRenderWindow::Render () from /opt/VTK/V4.0/VTK/lib/libvtkRendering.so #14 0x4024884a in vtkXOpenGLRenderWindow::Render () from /opt/VTK/V4.0/VTK/lib/libvtkRendering.so #15 0x4022d81e in vtkXRenderWindowInteractorCallback () from /opt/VTK/V4.0/VTK/lib/libvtkRendering.so #16 0x40fc7f3e in XtDispatchEventToWidget () from /usr/X11R6/lib/libXt.so.6 #17 0x40fc8832 in _XtDefaultDispatcher () from /usr/X11R6/lib/libXt.so.6 #18 0x40fc8bb9 in XtDispatchEvent () from /usr/X11R6/lib/libXt.so.6 #19 0x4022c352 in vtkXRenderWindowInteractor::Start () from /opt/VTK/V4.0/VTK/lib/libvtkRendering.so #20 0x40081152 in vtkCompositeManager::StartInteractor () from /opt/VTK/V4.0/VTK/lib/libvtkParallel.so #21 0x080496d0 in process () #22 0x400b64a2 in vtkThreadedController::Start () from /opt/VTK/V4.0/VTK/lib/libvtkParallel.so #23 0x400b6160 in vtkThreadedController::vtkThreadedControllerStart () from /opt/VTK/V4.0/VTK/lib/libvtkParallel.so #24 0x4159e650 in vtkMultiThreader::SingleMethodExecute () from /opt/VTK/V4.0/VTK/lib/libvtkCommon.so #25 0x400b6800 in vtkThreadedController::SingleMethodExecute () from /opt/VTK/V4.0/VTK/lib/libvtkParallel.so #26 0x08049776 in main () #27 0x417c27d1 in __libc_start_main () from /lib/libc.so.6 I'll try viewperf later when I have the 2.5.44-mm5 kernel up and running. Cheers, Dieter ------------------------------------------------------- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel