[cgma-dev] testgeom_occ
Rajeev Jain
jain at mcs.anl.gov
Fri May 18 15:42:25 CDT 2012
It says: "Atomic operation doesn't implemented for current platform!", does anyone know how to fix this?
More debugging info:
(gdb) r
Starting program: /Users/rajeevjain/pll/cgm/itaps/testgeom_occ
Reading symbols for shared libraries +++++++++++++++++++++++++++++++++++..................................... done
Using default input file: ./../test/LeverArm.brep
Geometry engine set to: OpenCascade 6.5
ITAPS GEOMETRY INTERFACE TEST PROGRAM:
gLoad:
Constructed 1 Volume: 1
Model contents:
vertices: 99
edges: 159
faces: 63
regions: 1
Success
tags: Tags defined on model: GLOBAL_ID, NAME
Success
gentity sets: Success
topology adjacencies: Success
construct: Created swept volume 4
Updated volume 3
Success
primitives: Success
transforms: Success
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000008
0x0000000106bccc0c in Standard_Atomic_Increment (theValue=0x8) at Standard_Atomic.hxx:74
74 return ++(*theValue);
(gdb) bt
#0 0x0000000106bccc0c in Standard_Atomic_Increment (theValue=0x8) at Standard_Atomic.hxx:74
#1 0x0000000106bccbed in Handle_Standard_Transient::BeginScope (this=0x7fff5fbfece8) at /Users/rajeevjain/pll/oce/src/Standard/Handle_Standard_Transient.cxx:28
#2 0x00000001000dc9b6 in Handle_Standard_Transient::Handle_Standard_Transient (this=0x7fff5fbfece8, aTid=@0x7fff5fbff3e8) at Handle_Standard_Transient.hxx:65
#3 0x00000001000dc988 in Handle_MMgt_TShared::Handle_MMgt_TShared (this=0x7fff5fbfece8, aHandle=@0x7fff5fbff3e8) at Handle_MMgt_TShared.hxx:25
#4 0x0000000106958db8 in Handle_TopLoc_SListNodeOfSListOfItemLocation::Handle_TopLoc_SListNodeOfSListOfItemLocation (this=0x7fff5fbfece8, aHandle=@0x7fff5fbff3e8) at Handle_TopLoc_SListNodeOfSListOfItemLocation.hxx:25
#5 0x0000000106958c1d in Handle_TopLoc_SListNodeOfSListOfItemLocation::Handle_TopLoc_SListNodeOfSListOfItemLocation (this=0x7fff5fbfece8, aHandle=@0x7fff5fbff3e8) at Handle_TopLoc_SListNodeOfSListOfItemLocation.hxx:25
#6 0x0000000106958f4d in TopLoc_SListOfItemLocation::TopLoc_SListOfItemLocation (this=0x7fff5fbfece8, Other=@0x7fff5fbff3e8) at TCollection_SList.gxx:33
#7 0x0000000106958f1d in TopLoc_SListOfItemLocation::TopLoc_SListOfItemLocation (this=0x7fff5fbfece8, Other=@0x7fff5fbff3e8) at TCollection_SList.gxx:34
#8 0x0000000106955910 in TopLoc_Location::HashCode (this=0x7fff5fbff3e8, upper=1009) at /Users/rajeevjain/pll/oce/src/TopLoc/TopLoc_Location.cxx:200
#9 0x0000000105ab19c0 in TopoDS_Shape::HashCode (this=0x7fff5fbff3e0, Upper=1009) at /Users/rajeevjain/pll/oce/src/TopoDS/TopoDS_Shape.cxx:17
#10 0x00000001028b0feb in TopTools_ShapeMapHasher::HashCode (S=@0x7fff5fbff3e0, Upper=1009) at TopTools_ShapeMapHasher.lxx:16
#11 0x0000000105ad05ed in TopTools_DataMapOfShapeInteger::IsBound (this=0x10842f590, K=@0x7fff5fbff3e0) at TCollection_DataMap.gxx:174
#12 0x00000001000707cb in OCCModifyEngine::copy_body (this=0x108304bd0, bodyPtr=0x10837bd00) at OCCModifyEngine.cpp:1903
#13 0x00000001003a17e9 in GeometryModifyTool::copy_body (this=0x1083032e0, bodyPtr=0x108385340) at GeometryModifyTool.cpp:2260
#14 0x000000010003a055 in igeom_subtractents_ (instance=0x100760fb0, blank=0x1083853a0, tool=0x10837f1e0, geom_entity=0x7fff5fbff768, err=0x7fff5fbff784) at iGeom_CGMA.cc:6233
#15 0x0000000100006d36 in booleans_test (geom=0x100760fb0) at testgeom.cc:1136
#16 0x0000000100001cce in main (argc=1, argv=0x7fff5fbffa18) at testgeom.cc:239
(gdb)
(gdb) list
69 : "memory");
70 #endif
71 return anIncResult;
72#else
73 //#error "Atomic operation doesn't implemented for current platform!"
74 return ++(*theValue);
75#endif
76}
77
78//! Decrements atomically integer variable pointed by theValue
Rajeev
P.S: I've applied occ6.5.2 patch, this error appear w/ or w/o the patch.
>________________________________
> From: Rajeev Jain <jain at mcs.anl.gov>
>To: CGMA Development <cgma-dev at mcs.anl.gov>
>Sent: Friday, May 18, 2012 3:34 PM
>Subject: [cgma-dev] testgeom_occ
>
>
>testgeom_occ on Mac OSX fails, when in copy_body routine, the call to IsBound fails:
> if(!new_body && OCCQueryEngine::instance()->OCCMap->IsBound(*theCS))
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20120518/b9894e4a/attachment.htm>
More information about the cgma-dev
mailing list