Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Installation and building / Strange OCC63 WOK crash on Mac

Strange OCC63 WOK crash on Mac

Strange OCC63 WOK crash on Mac
Torsten Sadowski 2009/01/22 22:38
Hi,

I have a strange WOK crash on the Mac. If OpenCASCADE is built with -O2 WOK works fine. But if it is a not optimized build (-O0) WOK crashes on

wokcd OS

I have heard of optimized builds crashing when some initialization was not done but the other way round puzzles me. The final crash is in

Handle_Standard_Transient::EndScope()

if ( Standard::IsReentrant() ?
Standard_Atomic_DecrementTest (&entity->count) :
(--entity->count == 0) )
entity->Delete();

entity is 0x0.

It might be a compiler bug but I have no idea where to look.

Cheers, Torsten

Crashlog:

Host Name: tmac
Date/Time: 2009-01-22 20:41:59.045 +0100
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: tclsh
Path: /sw/bin/tclsh
Parent: csh [8058]

Version: ??? (???)

PID: 8060
Thread: 0

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000004

Thread 0 Crashed:
0 libTKernel.0.dylib      0x010f29e8 Handle_Standard_Transient::EndScope() + 136 (Handle_Standard_Transient.cxx:56)
1 libwokcmd.dylib      0x00054224 Handle_Standard_Transient::~Handle_Standard_Transient [not-in-charge]() + 32 (Handle_Standard_Transient.hxx:72)
2 libwokcmd.dylib      0x00054528 Handle_MMgt_TShared::~Handle_MMgt_TShared [not-in-charge]() + 36 (Handle_MMgt_TShared.hxx:42)
3 libTKWOKTcl.0.dylib      0x002c7520 Handle_MS_Common::~Handle_MS_Common [not-in-charge]() + 36 (Handle_MS_Common.hxx:42)
4 libTKWOK.0.dylib      0x023d1bf8 Handle_MS_GlobalEntity::~Handle_MS_GlobalEntity [in-charge]() + 36 (Handle_MS_GlobalEntity.hxx:42)
5 libTKWOK.0.dylib      0x023d1d78 Node::~Node [in-charge]() + 40 (WOKTools_DataMap.gxx:35)
6 libTKWOK.0.dylib      0x020753b8 WOKTools_MapOfHAsciiString::Clear() + 188 (WOKTools_Map.gxx:149)
7 libTKWOK.0.dylib      0x023ee64c WOKTools_MapOfHAsciiString::~WOKTools_MapOfHAsciiString [in-charge]() + 32 (WOKTools_MapOfHAsciiString.hxx:89)
8 libTKWOK.0.dylib      0x0229d8a0 WOKernel_FileTypeBase::GetNeededArguments(WOKUtils_Param const&) + 1284 (WOKernel_FileTypeBase.cxx:254)
9 libTKWOK.0.dylib      0x0229e37c WOKernel_FileTypeBase::Load(WOKUtils_Param const&) + 2600 (WOKernel_FileTypeBase.cxx:128)
10 libTKWOK.0.dylib      0x022a7fa4 WOKernel_GlobalFileTypeBase::GetFileTypeBase(Handle_WOKernel_Entity const&) + 1272 (WOKernel_GlobalFileTypeBase.cxx:56)
11 libTKWOK.0.dylib      0x022adba0 WOKernel_Session::GetFileTypeBase(Handle_WOKernel_Entity const&) const + 124 (WOKernel_Session.cxx:73)
12 libTKWOK.0.dylib      0x02297188 WOKernel_Factory::Open() + 296 (WOKernel_Factory.cxx:59)
13 libTKWOK.0.dylib      0x0211d8e4 WOKAPI_Session::OpenPath(Handle_TCollection_HAsciiString const&, unsigned) const + 696 (WOKAPI_Session.cxx:1031)
14 libTKWOK.0.dylib      0x0211e31c WOKAPI_Session::OpenPath(Handle_TCollection_HAsciiString const&, unsigned) const + 3312 (WOKAPI_Session.cxx:1119)
15 libTKWOK.0.dylib      0x0211f354 WOKAPI_Session::GetEntity(Handle_TCollection_HAsciiString const&, unsigned) const + 308 (WOKAPI_Session.cxx:467)
16 libTKWOK.0.dylib      0x02109a80 WOKAPI_Entity::WOKAPI_Entity[in-charge](WOKAPI_Session const&, Handle_TCollection_HAsciiString const&, unsigned, unsigned) + 104 (WOKAPI_Entity.cxx:66)
17 libTKWOK.0.dylib      0x020f3e68 WOKAPI_Command::MoveTo(WOKAPI_Session const&, int, char** const&, WOKTools_Return&) + 1208 (WOKAPI_Command.cxx:238)
18 libTKWOKTcl.0.dylib      0x002b7334 DefaultCommand(void*, Tcl_Interp*, int, char const**) + 384 (WOKTCL_DefaultCommand.cxx:80)
19 libtcl8.4.dylib      0x00212a28 TclInvokeStringCommand + 160
20 libtcl8.4.dylib      0x0021581c TclEvalObjvInternal + 780
21 libtcl8.4.dylib      0x00215ad0 Tcl_EvalEx + 380
22 libtcl8.4.dylib      0x002166ac Tcl_EvalObjEx + 456
23 libtcl8.4.dylib      0x0021987c Tcl_EvalObjCmd + 112
24 libtcl8.4.dylib      0x0021581c TclEvalObjvInternal + 780
25 libtcl8.4.dylib      0x00238c90 TclExecuteByteCode + 2860
26 libtcl8.4.dylib      0x0023da4c TclCompEvalObj + 372
27 libtcl8.4.dylib      0x002166c8 Tcl_EvalObjEx + 484
28 libtcl8.4.dylib      0x002192c4 Tcl_CatchObjCmd + 116
29 libtcl8.4.dylib      0x0021581c TclEvalObjvInternal + 780
30 libtcl8.4.dylib      0x00238c90 TclExecuteByteCode + 2860
31 libtcl8.4.dylib      0x0023da4c TclCompEvalObj + 372
32 libtcl8.4.dylib      0x002166c8 Tcl_EvalObjEx + 484
33 libtcl8.4.dylib      0x00225400 Tcl_WhileObjCmd + 128
34 libtcl8.4.dylib      0x0021581c TclEvalObjvInternal + 780
35 libtcl8.4.dylib      0x00215ad0 Tcl_EvalEx + 380
36 libtcl8.4.dylib      0x002166ac Tcl_EvalObjEx + 456
37 libtcl8.4.dylib      0x002672b8 Tcl_UplevelObjCmd + 208
38 libtcl8.4.dylib      0x0021581c TclEvalObjvInternal + 780
39 libtcl8.4.dylib      0x00238c90 TclExecuteByteCode + 2860
40 libtcl8.4.dylib      0x0023da4c TclCompEvalObj + 372
41 libtcl8.4.dylib      0x00267b2c TclObjInterpProc + 384
42 libtcl8.4.dylib      0x0021581c TclEvalObjvInternal + 780
43 libtcl8.4.dylib      0x00238c90 TclExecuteByteCode + 2860
44 libtcl8.4.dylib      0x0023da4c TclCompEvalObj + 372
45 libtcl8.4.dylib      0x002166c8 Tcl_EvalObjEx + 484
46 libtcl8.4.dylib      0x0021c188 Tcl_IfObjCmd + 472
47 libtcl8.4.dylib      0x0021581c TclEvalObjvInternal + 780
48 libtcl8.4.dylib      0x00215ad0 Tcl_EvalEx + 380
49 libtcl8.4.dylib      0x00255984 Tcl_FSEvalFile + 368
50 libtcl8.4.dylib      0x00255a74 Tcl_EvalFile + 60
51 libtcl8.4.dylib      0x0027e904 Tcl_SourceRCFile + 140
52 libtcl8.4.dylib      0x002593cc Tcl_Main + 816
53 tclsh      0x00002944 main + 24
54 tclsh      0x000028b0 _start + 760
55 tclsh      0x000025b4 start + 48

Thread 0 crashed with PPC Thread State 64:
srr0: 0x00000000010f29e8 srr1: 0x000000000000d930 vrsave: 0x0000000000000000
cr: 0x48002242 xer: 0x0000000000000004 lr: 0x00000000010f2990 ctr: 0x00000000010f2960
r0: 0x0000000000000000 r1: 0x00000000bfffbf00 r2: 0x0000000000000000 r3: 0x0000000000000000
r4: 0x0000000080005044 r5: 0x00000000bc800000 r6: 0x0000000080808080 r7: 0x0000000000000002
r8: 0x000000006f790000 r9: 0x0000000080005044 r10: 0x00000000010f3670 r11: 0x0000000000055130
r12: 0x00000000010f2960 r13: 0x0000000000000000 r14: 0x0000000001804218 r15: 0x0000000000000000
r16: 0x0000000000326b88 r17: 0x0000000000000000 r18: 0x0000000000326b80 r19: 0x0000000000000000
r20: 0x0000000000000008 r21: 0x0000000000000000 r22: 0x00000000bfffd3d8 r23: 0x0000000001801400
r24: 0x000000000034af00 r25: 0x0000000000000008 r26: 0x00000000bfffd518 r27: 0x0000000000000002
r28: 0x00000000bfffd3d8 r29: 0x00000000800025cc r30: 0x00000000bfffbf00 r31: 0x000000000229d3b4

Binary Images Description:
0x1000 - 0x2fff tclsh      /sw/bin/tclsh
0x28000 - 0x4afff libtclx8.4.dylib      /sw/lib/tclx8.4/libtclx8.4.dylib
0x50000 - 0x54fff libwokcmd.dylib      /Users/totty/Projects/WOK63/lib/mac_O0/libwokcmd.dylib
0x5b000 - 0x5dfff libtclreadline.dylib      /sw/lib/libtclreadline.dylib
0x205000 - 0x28bfff libtcl8.4.dylib      /sw/lib/libtcl8.4.dylib
0x2aa000 - 0x2d0fff libTKWOKTcl.0.dylib      /Users/totty/Projects/WOK63/lib/mac_O0/libTKWOKTcl.0.dylib
0x405000 - 0x4cefff libX11.6.dylib      /usr/X11R6/lib/libX11.6.dylib
0x4f7000 - 0x5d9fff libTKAdvTools.0.dylib      /Users/totty/Projects/WOK63/lib/mac_O0/libTKAdvTools.0.dylib
0x6f6000 - 0x7a9fff libtk8.4.dylib      /sw/lib/libtk8.4.dylib
0x1008000 - 0x120dfff libTKernel.0.dylib      /Users/totty/Projects/WOK63/lib/mac_O0/libTKernel.0.dylib
0x1504000 - 0x1537fff libreadline.5.dylib      /sw/lib/libreadline.5.dylib
0x154b000 - 0x1576fff libncurses.5.dylib      /sw/lib/libncurses.5.dylib
0x2008000 - 0x2418fff libTKWOK.0.dylib      /Users/totty/Projects/WOK63/lib/mac_O0/libTKWOK.0.dylib
0x8fe00000 - 0x8fe52fff dyld 46.16     /usr/lib/dyld
0x90000000 - 0x901bcfff libSystem.B.dylib      /usr/lib/libSystem.B.dylib
0x90214000 - 0x90219fff libmathCommon.A.dylib      /usr/lib/system/libmathCommon.A.dylib
0x91433000 - 0x9143efff libgcc_s.1.dylib      /usr/lib/libgcc_s.1.dylib
0x94c4d000 - 0x94cbefff libstdc++.6.dylib      /usr/lib/libstdc++.6.dylib


 
 
Latest news
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map