View Issue Details

IDProjectCategoryView StatusLast Update
0023637CommunityOCCT:Codingpublic2017-05-28 19:46
Reporterllbatlle Assigned Tobugmaster  
PrioritynormalSeverityfeature 
Status closedResolutionunable to reproduce 
PlatformWindows 7OSWindows 
Product Version6.5.4 
Summary0023637: Crash exiting the program, Handle with 'entity' null at Graphic3d_StructureManager_Type_
DescriptionLinking opencascade+tkopengl statically, I get a segfault when exiting my program.

It looks like the objects destruction isn't working well, as if some object destructor is called twice or so.

With opencascade 6.3.0 I didn't have this problem.

Here are the backtraces:
     program.exe!Standard_Atomic_Decrement(volatile int * theValue) Line 95 C++
> program.exe!Handle_Standard_Transient::EndScope() Line 56 C++
     program.exe!Handle_Standard_Transient::~Handle_Standard_Transient() Line 93 C++
     program.exe!`eh vector destructor iterator'(void * ptr, unsigned int size, int count, void (void *) * pDtor) C++
     program.exe!`Graphic3d_StructureManager_Type_'::`2'::`dynamic atexit destructor for '_Ancestors''() C++
     msvcr110d.dll!doexit(int code, int quick, int retcaller) Line 584 C
     msvcr110d.dll!exit(int code) Line 394 C
     program.exe!__tmainCRTStartup() Line 549 C
     program.exe!WinMainCRTStartup() Line 377 C
     kernel32.dll!@BaseThreadInitThunk@12() Unknown
     ntdll.dll!___RtlUserThreadStart@8() Unknown
     ntdll.dll!__RtlUserThreadStart@8() Unknown
Steps To ReproduceThe (closed source) program simply displays a 3d viewer. Maybe we have forgotten some initialisation/deinitialisation?

The backtraces don't point to any code from our side, so I find it hard to diagnose.
TagsNo tags attached.
Test case number

Activities

llbatlle

2012-12-20 15:07

reporter   ~0022787

I'm trying to debug this, but somehow vc11 misses storing the debug information, and then it doesn't relate well the code positions with files/lines. And all is built with /Zi. Annoying.

abv

2017-05-28 19:46

manager   ~0066692

Closed as having no reproducer.

Issue History

Date Modified Username Field Change
2012-12-12 20:53 llbatlle New Issue
2012-12-12 20:53 llbatlle Assigned To => bugmaster
2012-12-20 15:07 llbatlle Note Added: 0022787
2014-01-11 11:58 abv Category OCCT Release:BUILD => OCCT:Coding
2017-05-28 19:46 abv Note Added: 0066692
2017-05-28 19:46 abv Status new => closed
2017-05-28 19:46 abv Resolution open => unable to reproduce