<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div id="yiv836815797"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div id="yiv836815797yui_3_2_0_24_133736429546148"><span id="yiv836815797yui_3_2_0_24_1337364295461106" style="font-size:14px;"><div id="yiv836815797yui_3_2_0_24_133736429546148">It says: "Atomic operation doesn't implemented for current platform!", does anyone know how to fix this?</div><div id="yiv836815797yui_3_2_0_24_133736429546148"><br></div><div id="yiv836815797yui_3_2_0_24_133736429546148">More debugging info:<br></div><div id="yiv836815797yui_3_2_0_24_133736429546148">(gdb) r<br></div><div id="yiv836815797yui_3_2_0_24_133736429546148">Starting program: /Users/rajeevjain/pll/cgm/itaps/testgeom_occ </div><div id="yiv836815797yui_3_2_0_24_133736429546148">Reading symbols
for shared libraries +++++++++++++++++++++++++++++++++++..................................... done</div><div id="yiv836815797yui_3_2_0_24_133736429546148">Using default input file: ./../test/LeverArm.brep</div><div id="yiv836815797yui_3_2_0_24_133736429546148">Geometry engine set
to: OpenCascade 6.5</div><div id="yiv836815797yui_3_2_0_24_133736429546148"><br></div><div id="yiv836815797yui_3_2_0_24_133736429546148"><br></div><div id="yiv836815797yui_3_2_0_24_133736429546148">ITAPS GEOMETRY INTERFACE TEST PROGRAM:</div><div id="yiv836815797yui_3_2_0_24_133736429546148"><br></div><div id="yiv836815797yui_3_2_0_24_133736429546148"> gLoad: </div><div id="yiv836815797yui_3_2_0_24_133736429546148">Constructed 1 Volume: 1</div><div id="yiv836815797yui_3_2_0_24_133736429546148">Model contents: </div><div id="yiv836815797yui_3_2_0_24_133736429546148">vertices: 99</div><div id="yiv836815797yui_3_2_0_24_133736429546148">edges: 159</div><div id="yiv836815797yui_3_2_0_24_133736429546148">faces: 63</div><div id="yiv836815797yui_3_2_0_24_133736429546148">regions: 1</div><div id="yiv836815797yui_3_2_0_24_133736429546148">Success</div><div id="yiv836815797yui_3_2_0_24_133736429546148"> tags: Tags defined on
model: GLOBAL_ID, NAME</div><div id="yiv836815797yui_3_2_0_24_133736429546148">Success</div><div id="yiv836815797yui_3_2_0_24_133736429546148"> gentity sets:
Success</div><div id="yiv836815797yui_3_2_0_24_133736429546148"> topology adjacencies: Success</div><div id="yiv836815797yui_3_2_0_24_133736429546148"> construct: Created swept volume 4</div><div id="yiv836815797yui_3_2_0_24_133736429546148">Updated volume 3</div><div id="yiv836815797yui_3_2_0_24_133736429546148">Success</div><div id="yiv836815797yui_3_2_0_24_133736429546148"> primitives: Success</div><div id="yiv836815797yui_3_2_0_24_133736429546148"> transforms: Success</div><div id="yiv836815797yui_3_2_0_24_133736429546148"><br></div><div id="yiv836815797yui_3_2_0_24_133736429546148">Program received signal EXC_BAD_ACCESS, Could not access memory.</div><div id="yiv836815797yui_3_2_0_24_133736429546148">Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000008</div><div id="yiv836815797yui_3_2_0_24_133736429546148">0x0000000106bccc0c in Standard_Atomic_Increment (theValue=0x8) at
Standard_Atomic.hxx:74</div><div id="yiv836815797yui_3_2_0_24_133736429546148">74<span class="yiv836815797Apple-tab-span" style="white-space:pre;">        </span>
return ++(*theValue);</div><div id="yiv836815797yui_3_2_0_24_133736429546148">(gdb) bt</div><div id="yiv836815797yui_3_2_0_24_133736429546148">#0 0x0000000106bccc0c in Standard_Atomic_Increment (theValue=0x8) at Standard_Atomic.hxx:74</div><div id="yiv836815797yui_3_2_0_24_133736429546148">#1 0x0000000106bccbed in Handle_Standard_Transient::BeginScope (this=0x7fff5fbfece8) at /Users/rajeevjain/pll/oce/src/Standard/Handle_Standard_Transient.cxx:28</div><div id="yiv836815797yui_3_2_0_24_133736429546148">#2 0x00000001000dc9b6 in Handle_Standard_Transient::Handle_Standard_Transient (this=0x7fff5fbfece8, aTid=@0x7fff5fbff3e8) at Handle_Standard_Transient.hxx:65</div><div id="yiv836815797yui_3_2_0_24_133736429546148">#3 0x00000001000dc988 in Handle_MMgt_TShared::Handle_MMgt_TShared (this=0x7fff5fbfece8, aHandle=@0x7fff5fbff3e8) at Handle_MMgt_TShared.hxx:25</div><div id="yiv836815797yui_3_2_0_24_133736429546148">#4
0x0000000106958db8 in
Handle_TopLoc_SListNodeOfSListOfItemLocation::Handle_TopLoc_SListNodeOfSListOfItemLocation (this=0x7fff5fbfece8, aHandle=@0x7fff5fbff3e8) at Handle_TopLoc_SListNodeOfSListOfItemLocation.hxx:25</div><div id="yiv836815797yui_3_2_0_24_133736429546148">#5 0x0000000106958c1d in Handle_TopLoc_SListNodeOfSListOfItemLocation::Handle_TopLoc_SListNodeOfSListOfItemLocation (this=0x7fff5fbfece8, aHandle=@0x7fff5fbff3e8) at Handle_TopLoc_SListNodeOfSListOfItemLocation.hxx:25</div><div id="yiv836815797yui_3_2_0_24_133736429546148">#6 0x0000000106958f4d in TopLoc_SListOfItemLocation::TopLoc_SListOfItemLocation (this=0x7fff5fbfece8, Other=@0x7fff5fbff3e8) at TCollection_SList.gxx:33</div><div id="yiv836815797yui_3_2_0_24_133736429546148">#7 0x0000000106958f1d in TopLoc_SListOfItemLocation::TopLoc_SListOfItemLocation (this=0x7fff5fbfece8, Other=@0x7fff5fbff3e8) at TCollection_SList.gxx:34</div><div id="yiv836815797yui_3_2_0_24_133736429546148">#8
0x0000000106955910 in TopLoc_Location::HashCode
(this=0x7fff5fbff3e8, upper=1009) at /Users/rajeevjain/pll/oce/src/TopLoc/TopLoc_Location.cxx:200</div><div id="yiv836815797yui_3_2_0_24_133736429546148">#9 0x0000000105ab19c0 in TopoDS_Shape::HashCode (this=0x7fff5fbff3e0, Upper=1009) at /Users/rajeevjain/pll/oce/src/TopoDS/TopoDS_Shape.cxx:17</div><div id="yiv836815797yui_3_2_0_24_133736429546148">#10 0x00000001028b0feb in TopTools_ShapeMapHasher::HashCode (S=@0x7fff5fbff3e0, Upper=1009) at TopTools_ShapeMapHasher.lxx:16</div><div id="yiv836815797yui_3_2_0_24_133736429546148">#11 0x0000000105ad05ed in TopTools_DataMapOfShapeInteger::IsBound (this=0x10842f590, K=@0x7fff5fbff3e0) at TCollection_DataMap.gxx:174</div><div id="yiv836815797yui_3_2_0_24_133736429546148">#12 0x00000001000707cb in OCCModifyEngine::copy_body (this=0x108304bd0, bodyPtr=0x10837bd00) at OCCModifyEngine.cpp:1903</div><div id="yiv836815797yui_3_2_0_24_133736429546148">#13 0x00000001003a17e9 in GeometryModifyTool::copy_body
(this=0x1083032e0, bodyPtr=0x108385340) at
GeometryModifyTool.cpp:2260</div><div id="yiv836815797yui_3_2_0_24_133736429546148">#14 0x000000010003a055 in igeom_subtractents_ (instance=0x100760fb0, blank=0x1083853a0, tool=0x10837f1e0, geom_entity=0x7fff5fbff768, err=0x7fff5fbff784) at iGeom_CGMA.cc:6233</div><div id="yiv836815797yui_3_2_0_24_133736429546148">#15 0x0000000100006d36 in booleans_test (geom=0x100760fb0) at testgeom.cc:1136</div><div id="yiv836815797yui_3_2_0_24_133736429546148">#16 0x0000000100001cce in main (argc=1, argv=0x7fff5fbffa18) at testgeom.cc:239</div><div id="yiv836815797yui_3_2_0_24_133736429546148">(gdb) </div></span></div><div id="yiv836815797yui_3_2_0_24_133736429546154"><font size="2"> </font><span style="font-size:14px;">(gdb) list</span></div><div id="yiv836815797yui_3_2_0_24_133736429546154"><span style="font-size:14px;">69<span class="yiv836815797Apple-tab-span" style="white-space:pre;">        </span> : "memory");</span></div><div
id="yiv836815797yui_3_2_0_24_133736429546154"><span style="font-size:14px;">70<span class="yiv836815797Apple-tab-span" style="white-space:pre;">        </span> #endif</span></div><div id="yiv836815797yui_3_2_0_24_133736429546154"><span style="font-size:14px;">71<span class="yiv836815797Apple-tab-span" style="white-space:pre;">        </span> return anIncResult;</span></div><div id="yiv836815797yui_3_2_0_24_133736429546154"><span style="font-size:14px;">72<span class="yiv836815797Apple-tab-span" style="white-space:pre;">        </span>#else</span></div><div id="yiv836815797yui_3_2_0_24_133736429546154"><span style="font-size:14px;" id="yiv836815797yui_3_2_0_24_1337364295461138">73<span class="yiv836815797Apple-tab-span" style="white-space:pre;">        </span> //#error "Atomic operation doesn't implemented for current platform!"</span></div><div id="yiv836815797yui_3_2_0_24_133736429546154"><span style="font-size:14px;">74<span class="yiv836815797Apple-tab-span"
style="white-space:pre;">        </span> return ++(*theValue);</span></div><div id="yiv836815797yui_3_2_0_24_133736429546154"><span style="font-size:14px;">75<span class="yiv836815797Apple-tab-span" style="white-space:pre;">
        </span>#endif</span></div><div id="yiv836815797yui_3_2_0_24_133736429546154"><span style="font-size:14px;">76<span class="yiv836815797Apple-tab-span" style="white-space:pre;">        </span>}</span></div><div id="yiv836815797yui_3_2_0_24_133736429546154"><span style="font-size:14px;">77<span class="yiv836815797Apple-tab-span" style="white-space:pre;">        </span></span></div><div id="yiv836815797yui_3_2_0_24_133736429546154"><span style="font-size:14px;" id="yiv836815797yui_3_2_0_24_1337364295461158">78<span class="yiv836815797Apple-tab-span" style="white-space:pre;">        </span>//! Decrements atomically integer variable pointed by theValue</span></div><div id="yiv836815797yui_3_2_0_24_133736429546154"><span style="font-size:14px;" id="yiv836815797yui_3_2_0_24_1337364295461161"><br></span></div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; " id="yiv836815797yui_3_2_0_24_1337364295461151"><font style="font-family: arial, helvetica, sans-serif;
" size="2" id="yiv836815797yui_3_2_0_24_133736429546157" class="yiv836815797yui_3_2_0_24_133736429546155">Rajeev</font><br id="yiv836815797yui_3_2_0_24_133736429546160">P.S: I've applied occ6.5.2 patch, this error appear w/ or w/o the patch.<br id="yiv836815797yui_3_2_0_24_133736429546163"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;margin-top:5px;padding-left:5px;" id="yiv836815797yui_3_2_0_24_133736429546168"> <div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; " class="yiv836815797yui_3_2_0_24_133736429546173"> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; " class="yiv836815797yui_3_2_0_24_133736429546175"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Rajeev Jain <jain@mcs.anl.gov><br> <b><span style="font-weight:bold;">To:</span></b> CGMA Development <cgma-dev@mcs.anl.gov> <br>
<b><span style="font-weight:bold;">Sent:</span></b> Friday, May 18, 2012 3:34 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> [cgma-dev] testgeom_occ<br> </font> </div> <br>
<div id="yiv836815797"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: arial, helvetica, sans-serif; " class="yiv836815797yui_3_2_0_24_133736429546183"><div><span><span style="font-size:14px;">testgeom_occ on Mac OSX fails, when in copy_body routine, the call to IsBound fails:</span></span></div><div><span><span style="font-size:14px;"> if(!new_body && OCCQueryEngine::instance()->OCCMap->IsBound(*theCS))</span></span></div></div></div><br><br> </div> </div> </div></blockquote></div> </div></div></div></div></body></html>