Segfault in tutorial

I'm trying to make the Bottle tutorial to work. I have SuSE 10.3 with an x86_64 architecture, gcc 4.2.1 and Qt 3.3.8. I compiled openCASCADE 6.2 after applying Jason Kraftcheck's occ6.2.patch. The tutorial compiles but I get a segmentation fault when starting. Here is the backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2ae2a7f3c820 (LWP 5855)]
0x00002ae2a10826d9 in Handle_Standard_Transient::EndScope (this=0x2ae2a13e7a30) at ../../../src/Standard/Handle_Standard_Transient.cxx:41
41 entity->count--;
(gdb) where
#0 0x00002ae2a10826d9 in Handle_Standard_Transient::EndScope (this=0x2ae2a13e7a30) at ../../../src/Standard/Handle_Standard_Transient.cxx:41
#1 0x00002ae2a1082744 in Handle_Standard_Transient::Assign (this=0x2ae2a13e7a30, anItem=0x60000010)
at ../../../src/Standard/Handle_Standard_Transient.cxx:30
#2 0x00002ae2a10c8f0b in Handle_Units_QuantitiesSequence::operator= (this=0x2ae2a13e7a30, anItem=0x60000010)
at ../../../inc/Handle_Units_QuantitiesSequence.hxx:61
#3 0x00002ae2a10cb3ee in Units_UnitsSystem (this=0x2ae2a13e7a20) at ../../../src/Units/Units_UnitsSystem.cxx:33
#4 0x00002ae2a10cc9d2 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535)
at ../../../src/UnitsAPI/UnitsAPI.cxx:12
#5 0x00002ae2a10ccb57 in global constructors keyed to _ZN8UnitsAPI12CheckLoadingE20UnitsAPI_SystemUnits ()
at ../../../src/UnitsAPI/UnitsAPI.cxx:676
#6 0x00002ae2a10ce672 in __do_global_ctors_aux () from /home/dario/usr/OCC/lib/
#7 0x00002ae2a0f9a9c3 in _init () from /home/dario/usr/OCC/lib/
#8 0x00002ae2a06434b0 in ?? ()
#9 0x00002ae29cfe4c56 in ?? () from /lib64/
#10 0x00002ae29cfe4d7e in ?? () from /lib64/
#11 0x00002ae29cfd8aaa in ?? () from /lib64/
#12 0x0000000000000001 in ?? ()
#13 0x00007fff0dad0e58 in ?? ()
#14 0x0000000000000000 in ?? ()

Any hints on where to look at?

Kent Zhou's picture

Hi, i think im having similar problem here. Did you managed to solve this problem?
Could you please tell me how did you do it if it is solved?

sujan dasmahapatra's picture

I have also got the same problem. Can you tell me whats going wrong. I debugged it i am seeing when i am initiating an object of

defaultdevice = new Graphic3d_GraphicDevice( aDisplay );

when i debugged i saw when it comes to Graphic3d_GraphicDevice it crashing.