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

Robert Osfield robert.osfield at gmail.com
Sun May 3 05:05:35 PDT 2015


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.



More information about the osg-users mailing list