<div dir="ltr">Hi Robert,<div><br></div><div>when I browse the code I seeing this in the Atomic.h/cpp</div><div><br></div><div><table id="info" summary="Revision info" style="font-size:13px;margin:0px;border:1px solid rgb(215,215,215);border-collapse:collapse;border-spacing:0px;clear:both;width:1328px;color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;background:rgb(247,247,240)"><tbody><tr><th scope="col" style="font-stretch:normal;font-size:11.0500001907349px;padding:2px 0.5em;vertical-align:top;white-space:nowrap">Revision <a href="http://trac.openscenegraph.org/projects/osg/changeset/13132" style="color:rgb(187,0,0);text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(187,187,187)">13132</a>, <span title="8268 bytes">8.1 kB</span> (checked in by robert, <a class="" href="http://trac.openscenegraph.org/projects/osg/timeline?from=2015-04-30T16%3A04%3A51Z%2B0200&precision=second" title="2015-04-30T16:04:51Z+0200 in Timeline" style="color:rgb(187,0,0);text-decoration:none;border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(187,187,187)">3 days</a> ago)</th></tr><tr><td class="" style="font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;font-stretch:normal;font-size:11.0500001907349px;padding:2px 0.5em;vertical-align:top;width:1315.96875px"><p style="margin:0px;padding:0px">From Christian Kehl, changes for making osgAndroid working with GLES1 enabled </p></td></tr></tbody></table></div><div class="gmail_extra"><br></div><div class="gmail_extra">And I reverted back the changes to match 3.3.7 but it still crashes in Atomic::operator--()</div><div class="gmail_extra"><br></div><div class="gmail_extra">Debug works just fine, so I have no idea what is wrong</div><div class="gmail_extra"><br></div><div class="gmail_extra">Nick</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 3, 2015 at 2:05 PM, Robert Osfield <span dir="ltr"><<a href="mailto:robert.osfield@gmail.com" target="_blank">robert.osfield@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">HI Nick,<br>
<br>
On 3 May 2015 at 12:56, Trajce Nikolov NICK<br>
<span class=""><<a href="mailto:trajce.nikolov.nick@gmail.com">trajce.nikolov.nick@gmail.com</a>> wrote:<br>
> I upgraded to the latest from the trunk. My app crashes now in<br>
> OpenThreads::Atomic and I am seeing in the log there are changes from 3 days<br>
> ago. Investigating now ....<br>
<br>
</span>I haven't checked anything in to OpenThreads recently, the last check<br>
in for OpenThreads::Atmoic was:<br>
<br>
$ svn log include/OpenThreads/Atomic<br>
------------------------------------------------------------------------<br>
r13132 | robert | 2012-09-06 11:52:28 +0100 (Thu, 06 Sep 2012) | 11 lines<br>
<br>
>From Piotr Domagalski, "Currently, code using OpenSceneGraph doesn't<br>
build with clang due to the way __sync_bool_compare_and_swap() is used<br>
in OpenThreads/Atomic header file.<br>
<br>
I tested it with clang 3.1 and it seems that clang is enforcing the<br>
use of the same type for all parameters in this builtin. Looking at<br>
the function declaration [1]<br>
<br>
bool __sync_bool_compare_and_swap (type *ptr, type oldval type newval, ...)<br>
<br>
it seems to be doing the right thing: here the same type is used for<br>
*ptr, oldval and newval.<br>
<br>
[1] <a href="http://gcc.gnu.org/onlinedocs/gcc/_005f_005fsync-Builtins.html#g_t_005f_005fsync-Builtins" target="_blank">http://gcc.gnu.org/onlinedocs/gcc/_005f_005fsync-Builtins.html#g_t_005f_005fsync-Builtins</a><br>
"<br>
<br>
I hope this doesn't mean subversion repository has been hacked.<br>
<br>
Robert.<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">trajce nikolov nick<br></div>
</div></div>