Re: shape demo crashes root

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Wed, 17 Jan 2007 09:13:06 +0100


Hi Roger,

I cannot reproduce this problem.
Is it the only problem that you have experienced?

  -Did you run the other GL tutorials?
  -Did you run the $ROOTSYS/test/stressXXXX suite?
  -What is your version of OpenGL/Mesa ?

Rene Brun

Roger Mason wrote:
> Hello,
>
> I compiled root 5.14/00 using gcc-4.1.1. All seems OK except that
> shapes.C causes a segmentation fault and crashes CINT.
>
> I'm attaching the output in the hope that it may help someone figure
> out what is wrong.
>
> Thanks for your help,
> Roger
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> *** Break *** segmentation violation
> Generating stack trace...
> 0xb66df0cc in memcpy + 0x1c from /lib/libc.so.6
> 0xb57660a7 in TX11GLManager::ReadGLBuffer(int) + 0x137 from /usr/local/lib/root
> /libRGL.so
> 0xb5759eae in TGLViewer::SwapBuffers() const + 0x9e from /usr/local/lib/root/li
> bRGL.so
> 0xb575a0e2 in TGLViewer::PostDraw() + 0x22 from /usr/local/lib/root/libRGL.so
> 0xb575c061 in TGLViewer::DoDraw() + 0x2b1 from /usr/local/lib/root/libRGL.so
> 0xb5765624 in TX11GLManager::DrawViewer(TVirtualViewer3D*) + 0x14 from /usr/loc
> al/lib/root/libRGL.so
> 0xb575d123 in TGLViewer::RequestDraw(short) + 0x173 from /usr/local/lib/root/li
> bRGL.so
> 0xb575fb92 in TGLViewer::EndScene() + 0x2a2 from /usr/local/lib/root/libRGL.so
> 0xb6d20b33 in TPad::PaintModified() + 0x223 from /usr/local/lib/root/libGpad.so
> .5.14
> 0xb6cfca01 in TCanvas::Update() + 0xf1 from /usr/local/lib/root/libGpad.so.5.14
> 0xb6d578c7 in <unknown> from /usr/local/lib/root/libGpad.so.5.14
> 0xb73cc1ea in Cint::G__ExceptionWrapper(int (*)(G__value*, char const*, G__para
> m*, int), G__value*, char*, G__param*, int) + 0x6a from /usr/local/lib/root/libC
> int.so.5.14
> 0xb7494df4 in G__call_cppfunc + 0x204 from /usr/local/lib/root/libCint.so.5.14
> 0xb746ea2d in G__interpret_func + 0xc6d from /usr/local/lib/root/libCint.so.5.1
> 4
> 0xb7463018 in G__getfunction + 0x17f8 from /usr/local/lib/root/libCint.so.5.14
> 0xb74f903e in G__getstructmem + 0x72e from /usr/local/lib/root/libCint.so.5.14
> 0xb74f0bc4 in G__getvariable + 0xa84 from /usr/local/lib/root/libCint.so.5.14
> 0xb7443c9d in G__getitem + 0x9d from /usr/local/lib/root/libCint.so.5.14
> 0xb7449238 in G__getexpr + 0x4708 from /usr/local/lib/root/libCint.so.5.14
> 0xb74a3102 in G__exec_function + 0xa2 from /usr/local/lib/root/libCint.so.5.14
> 0xb74a6fb3 in G__exec_statement + 0x3193 from /usr/local/lib/root/libCint.so.5.
> 14
> 0xb746f853 in G__interpret_func + 0x1a93 from /usr/local/lib/root/libCint.so.5.
> 14
> 0xb746315d in G__getfunction + 0x193d from /usr/local/lib/root/libCint.so.5.14
> 0xb7443d2e in G__getitem + 0x12e from /usr/local/lib/root/libCint.so.5.14
> 0xb7449238 in G__getexpr + 0x4708 from /usr/local/lib/root/libCint.so.5.14
> 0xb745040a in G__calc_internal + 0x2da from /usr/local/lib/root/libCint.so.5.14
> 0xb74b0f52 in G__process_cmd + 0x3aa2 from /usr/local/lib/root/libCint.so.5.14
> 0xb79460fc in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) + 0x1b
> c from /usr/local/lib/root/libCore.so.5.14
> 0xb7940b8a in TCint::ProcessLineSynch(char const*, TInterpreter::EErrorCode*) +
> 0x5a from /usr/local/lib/root/libCore.so.5.14
> 0xb7870e48 in TApplication::ProcessFile(char const*, int*) + 0x7e8 from /usr/lo
> cal/lib/root/libCore.so.5.14
> 0xb786d6ca in TApplication::ProcessLine(char const*, bool, int*) + 0x5da from /
> usr/local/lib/root/libCore.so.5.14
> 0xb6d08f6c in TControlBarButton::Action() + 0x4c from /usr/local/lib/root/libGp
> ad.so.5.14
> 0xb6119151 in TRootControlBar::ProcessMessage(long, long, long) + 0x21 from /us
> r/local/lib/root/libGui.so
> 0xb606ac80 in TGFrame::HandleClientMessage(Event_t*) + 0x60 from /usr/local/lib
> /root/libGui.so
> 0xb606dc9c in TGMainFrame::HandleClientMessage(Event_t*) + 0x2c from /usr/local
> /lib/root/libGui.so
> 0xb606e78d in TGFrame::HandleEvent(Event_t*) + 0x1ed from /usr/local/lib/root/l
> ibGui.so
> 0xb603dc74 in TGClient::HandleEvent(Event_t*) + 0x44 from /usr/local/lib/root/l
> ibGui.so
> 0xb603e07e in TGClient::ProcessOneEvent() + 0xae from /usr/local/lib/root/libGu
> i.so
> 0xb603e0ec in TGClient::HandleInput() + 0x2c from /usr/local/lib/root/libGui.so
> 0xb603e120 in TGInputHandler::Notify() + 0x20 from /usr/local/lib/root/libGui.s
> o
> 0xb79d519b in TUnixSystem::DispatchOneEvent(bool) + 0x4b from /usr/local/lib/ro
> ot/libCore.so.5.14
> 0xb78f2cbe in TSystem::InnerLoop() + 0x1e from /usr/local/lib/root/libCore.so.5
> .14
> 0xb78f447b in TSystem::Run() + 0x7b from /usr/local/lib/root/libCore.so.5.14
> 0xb786c888 in TApplication::Run(bool) + 0x38 from /usr/local/lib/root/libCore.s
> o.5.14
> 0xb68c947e in TRint::Run(bool) + 0x30e from /usr/local/lib/root/libRint.so.5.14
> 0x08048deb in main + 0x7b from /usr/local/bin/root.exe
> 0xb6689878 in __libc_start_main + 0xd8 from /lib/libc.so.6
> 0x08048ce1 in TApplicationImp::ShowMembers(TMemberInspector&, char*) + 0x41 fro
> m /usr/local/bin/root.exe
> Root > Function shapes() busy flag cleared
> Error: class,struct,union or type Rgl not defined /usr/local/share/doc/root/tut
> orials/geom/shapes.C:82:
> Error: class,struct,union or type Rgl not defined /usr/local/share/doc/root/tut
> orials/geom/shapes.C:82:
> Error: class,struct,union or type Rgl not defined /usr/local/share/doc/root/tut
> orials/geom/shapes.C:82:
> Error: class,struct,union or type Rgl not defined /usr/local/share/doc/root/tut
> orials/geom/shapes.C:82:
> Error: class,struct,union or type Rgl not defined /usr/local/share/doc/root/tut
> orials/geom/shapes.C:82:
> Error: class,struct,union or type Rgl not defined /usr/local/share/doc/root/tut
> orials/geom/shapes.C:82:
> Error: class,struct,union or type Rgl not defined /usr/local/share/doc/root/tut
> orials/geom/shapes.C:82:
> Error: class,struct,union or type Rgl not defined /usr/local/share/doc/root/tut
> orials/geom/shapes.C:82:
> Error: class,struct,union or type Rgl not defined /usr/local/share/doc/root/tut
> orials/geom/shapes.C:82:
> Error in <TGLScene::TakeLock>: Unable take ModifyLock, already DrawLock
> Error in <TGLScene::DestroyPhysicals>: expected ModifyLock
> Error in <TGLScene::DestroyLogicals>: expected ModifyLock
> Error in <TGLScene::ReleaseLock>: Unable release ModifyLock, is DrawLock
> *** glibc detected *** /usr/local/bin/root.exe: munmap_chunk(): invalid pointer:
> 0xb54cc008 ***
> ======= Backtrace: =========
> /lib/libc.so.6[0xb66d73d0]
> /usr/lib/libX11.so.6[0xb64d1599]
> /usr/local/lib/root/libRGL.so(_ZN13TX11GLManager15DeleteGLContextEi+0xc7)[0xb576
> 5ee7]
> /usr/local/lib/root/libGpad.so.5.14(_ZN4TPadD2Ev+0xea)[0xb6d1eaca]
> /usr/local/lib/root/libGpad.so.5.14(_ZN7TCanvasD0Ev+0x85)[0xb6cfd655]
> /usr/local/lib/root/libGui.so(_ZN11TRootCanvas12ReallyDeleteEv+0x86)[0xb61115f6]
> /usr/local/lib/root/libGui.so[0xb6373489]
> /usr/local/lib/root/libCint.so.5.14(_ZN4Cint11G__CallFunc7ExecuteEPv+0x9e)[0xb73
> e6cee]
> /usr/local/lib/root/libCore.so.5.14(_ZN12TQConnection13ExecuteMethodEv+0x84)[0xb
> 78cf114]
> /usr/local/lib/root/libCore.so.5.14(_ZN8TQObject4EmitEPKc+0x194)[0xb78d3c44]
> /usr/local/lib/root/libCore.so.5.14(_ZN6TTimer7TimeoutEv+0x2a)[0xb78714aa]
> /usr/local/lib/root/libCore.so.5.14(_ZN6TTimer6NotifyEv+0x21)[0xb7903111]
> /usr/local/lib/root/libCore.so.5.14(_ZN6TTimer10CheckTimerERK5TTime+0x2b)[0xb790
> 2e3b]
> /usr/local/lib/root/libCore.so.5.14(_ZN11TUnixSystem14DispatchTimersEb+0x97)[0xb
> 79d2517]
> /usr/local/lib/root/libCore.so.5.14(_ZN11TUnixSystem16DispatchOneEventEb+0x1e1)[
> 0xb79d5331]
> /usr/local/lib/root/libCore.so.5.14(_ZN7TSystem9InnerLoopEv+0x1e)[0xb78f2cbe]
> /usr/local/lib/root/libCore.so.5.14(_ZN7TSystem3RunEv+0x7b)[0xb78f447b]
> /usr/local/lib/root/libCore.so.5.14(_ZN12TApplication3RunEb+0x38)[0xb786c888]
> /usr/local/lib/root/libRint.so.5.14(_ZN5TRint3RunEb+0x30e)[0xb68c947e]
> /usr/local/bin/root.exe(main+0x7b)[0x8048deb]
> /lib/libc.so.6(__libc_start_main+0xd8)[0xb6689878]
> /usr/local/bin/root.exe(_ZN15TApplicationImp11ShowMembersER16TMemberInspectorPc+
> 0x41)[0x8048ce1]
> ======= Memory map: ========
> 08048000-0804a000 r-xp 00000000 fe:00 137352 /usr/local/bin/root.exe
> 0804a000-0804b000 rw-p 00001000 fe:00 137352 /usr/local/bin/root.exe
> 0804b000-091d4000 rw-p 0804b000 00:00 0 [heap]
> b542d000-b55ac000 rw-p b542d000 00:00 0
> b55ac000-b55b2000 r-xp 00000000 fe:00 820325 /usr/lib/libdrm.so.2.0.0
> b55b2000-b55b3000 rw-p 00005000 fe:00 820325 /usr/lib/libdrm.so.2.0.0
> b55b3000-b55b7000 r-xp 00000000 fe:00 820315 /usr/lib/libXxf86vm.so.1.0.0
> b55b7000-b55b8000 rw-p 00003000 fe:00 820315 /usr/lib/libXxf86vm.so.1.0.0
> b55b8000-b5609000 r-xp 00000000 fe:00 820344 /usr/lib/opengl/xorg-x11/lib/li
> bGL.so.1.2
> b5609000-b560f000 rwxp 00050000 fe:00 820344 /usr/lib/opengl/xorg-x11/lib/li
> bGL.so.1.2
> b560f000-b5610000 rwxp b560f000 00:00 0
> b5610000-b5689000 r-xp 00000000 fe:00 820341 /usr/lib/libGLU.so.1.3.060501
> b5689000-b568a000 rw-p 00079000 fe:00 820341 /usr/lib/libGLU.so.1.3.060501
> b568a000-b5860000 r-xp 00000000 fe:00 153944 /usr/local/lib/root/libRGL.so.5
> .14
> b5860000-b586c000 rw-p 001d6000 fe:00 153944 /usr/local/lib/root/libRGL.so.5
> .14
> b586c000-b586e000 rw-p b586c000 00:00 0
> b586e000-b59eb000 r-xp 00000000 fe:00 153917 /usr/local/lib/root/libGed.so.5
> .14
> b59eb000-b59f5000 rw-p 0017c000 fe:00 153917 /usr/local/lib/root/libGed.so.5
> .14
> b59f5000-b59f6000 rw-p b59f5000 00:00 0
> b59f6000-b5b69000 r-xp 00000000 fe:00 153960 /usr/local/lib/root/libTreePlay
> er.so.5.14
> b5b69000-b5b6f000 rw-p 00173000 fe:00 153960 /usr/local/lib/root/libTreePlay
> er.so.5.14
> b5b6f000-b5b72000 rw-p b5b6f000 00:00 0
> b5b72000-b5b83000 r-xp 00000000 03:03 31236 /lib/libz.so.1.2.3
> b5b83000-b5b84000 rw-p 00010000 03:03 31236 /lib/libz.so.1.2.3
> b5b84000-b5ba7000 r-xp 00000000 fe:00 820476 /usr/lib/libpng12.so.0.14.0
> b5ba7000-b5ba8000 rw-p 00023000 fe:00 820476 /usr/lib/libpng12.so.0.14.0
> b5ba8000-b5bfa000 r-xp 00000000 fe:00 819287 /usr/lib/libtiff.so.3.8.2
> b5bfa000-b5bfc000 rw-p 00052000 fe:00 819287 /usr/lib/libtiff.so.3.8.2
> b5bfc000-b5c1a000 r-xp 00000000 fe:00 820902
> /usr/lib/libjpeg.so.62.0.0
> b5c1a000-b5c1b000 rw-p 0001e000 fe:00 820902 /usr/lib/libjpeg.so.62.0.0
> b5c26000-b5d12000 r-xp 00000000 fe:00 153905 /usr/local/lib/root/libASImage.
> so.5.14
> b5d12000-b5d1b000 rw-p 000ec000 fe:00 153905 /usr/local/lib/root/libASImage.
> so.5.14
> b5d1b000-b5d20000 rw-p b5d1b000 00:00 0
> b5d21000-b5d25000 rw-p b5d21000 00:00 0
> b5d25000-b5d31000 r-xp 00000000 fe:00 170239 /usr/local/lib/root/cint/includ
> e/stdfunc.so.5.14
> b5d31000-b5d32000 rw-p 0000b000 fe:00 170239 /usr/local/lib/root/cint/includ
> e/stdfunc.so.5.14
> b5d32000-b5d3c000 rw-p b5d32000 00:00 0
> b5d3c000-b5d5b000 r-xp 00000000 fe:00 153975 /usr/local/lib/root/libvectorDi
> ct.so.5.14
> b5d5b000-b5d5d000 rw-p 0001e000 fe:00 153975 /usr/local/lib/root/libvectorDi
> ct.so.5.14
> b5d5d000-b5eef000 r-xp 00000000 fe:00 170671 /usr/local/lib/root/cint/stl/ve
> ctor.so.5.14
> b5eef000-b5ef3000 rw-p 00192000 fe:00 170671 /usr/local/lib/root/cint/stl/ve
> ctor.so.5.14
> b5ef3000-b5f06000 r--p 00000000 fe:00 203349 /usr/local/share/root/fonts/ari
> albd.ttf
> b5f06000-b5f1f000 r-xp 00000000 fe:00 153916 /usr/local/lib/
>
Received on Wed Jan 17 2007 - 09:13:34 CET

This archive was generated by hypermail 2.2.0 : Wed Jan 17 2007 - 23:50:00 CET