segmentation fault occuring while destroying null handle

Hi, I get a segmentation fault for OCC 6.3, simply by creating a null handle and destroying it. Is this supposed to happen? Do handles always have to be initialized before they can be destroyed?

int main( int argc, const char* argv[] )
{
Handle(BRep_TVertex) blub;
if(blub.IsNull())
std::cout }

trace:
Program terminated with signal 11, Segmentation fault.
#0 0x00002b5d68544eb4 in Handle_Standard_Transient::EndScope ()
from /usr/lib/libTKernel.so.0
(gdb) where
#0 0x00002b5d68544eb4 in Handle_Standard_Transient::EndScope ()
from /usr/lib/libTKernel.so.0
#1 0x0000000000400c6d in ~Handle_Standard_Transient (this=0x7fff405a62a0)
at /usr/inc/Handle_Standard_Transient.hxx:71
#2 0x0000000000400c85 in ~Handle_MMgt_TShared (this=0x7fff405a62a0)
at /usr/inc/Handle_MMgt_TShared.hxx:42
#3 0x0000000000400c9d in ~Handle_TopoDS_TShape (this=0x7fff405a62a0)
at /usr/inc/Handle_TopoDS_TShape.hxx:42
#4 0x0000000000400cb5 in ~Handle_TopoDS_TVertex (this=0x7fff405a62a0)
at /usr/inc/Handle_TopoDS_TVertex.hxx:42
#5 0x0000000000400ccd in ~Handle_BRep_TVertex (this=0x7fff405a62a0)
at /usr/inc/Handle_BRep_TVertex.hxx:42
#6 0x0000000000400b44 in main (argc=1, argv=0x7fff405a63a8) at ../main.cpp:284

Fabian Hachenberg's picture

sorry, found the relevant topic here
http://www.opencascade.org/org/forum/thread_15837/