[osg-users] OpenThreads trunk latest mods crashes on mingw32 g++ Windows in Release

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Sun May 3 05:27:05 PDT 2015


Hi Robert,

when I browse the code I seeing this in the Atomic.h/cpp

Revision 13132 <http://trac.openscenegraph.org/projects/osg/changeset/13132>
, 8.1 kB (checked in by robert, 3 days
<http://trac.openscenegraph.org/projects/osg/timeline?from=2015-04-30T16%3A04%3A51Z%2B0200&precision=second>
 ago)

>From Christian Kehl, changes for making osgAndroid working with GLES1
enabled

And I reverted back the changes to match 3.3.7 but it still crashes in
Atomic::operator--()

Debug works just fine, so I have no idea what is wrong

Nick

On Sun, May 3, 2015 at 2:05 PM, Robert Osfield <robert.osfield at gmail.com>
wrote:

> HI Nick,
>
> On 3 May 2015 at 12:56, Trajce Nikolov NICK
> <trajce.nikolov.nick at gmail.com> wrote:
> > I upgraded to the latest from the trunk. My app crashes now in
> > OpenThreads::Atomic and I am seeing in the log there are changes from 3
> days
> > ago. Investigating now ....
>
> I haven't checked anything in to OpenThreads recently, the last check
> in for OpenThreads::Atmoic was:
>
> $ svn log include/OpenThreads/Atomic
> ------------------------------------------------------------------------
> r13132 | robert | 2012-09-06 11:52:28 +0100 (Thu, 06 Sep 2012) | 11 lines
>
> From Piotr Domagalski, "Currently, code using OpenSceneGraph doesn't
> build with clang due to the way __sync_bool_compare_and_swap() is used
> in OpenThreads/Atomic header file.
>
> I tested it with clang 3.1 and it seems that clang is enforcing the
> use of the same type for all parameters in this builtin. Looking at
> the function declaration [1]
>
> bool __sync_bool_compare_and_swap (type *ptr, type oldval type newval, ...)
>
> it seems to be doing the right thing: here the same type is used for
> *ptr, oldval and newval.
>
> [1]
> http://gcc.gnu.org/onlinedocs/gcc/_005f_005fsync-Builtins.html#g_t_005f_005fsync-Builtins
> "
>
> I hope this doesn't mean subversion repository has been hacked.
>
> Robert.
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150503/1780d3bf/attachment-0003.htm>


More information about the osg-users mailing list