Thanks. I will try that out but if I use "-fno-strict-aliasing" flag with -O3 option, application works fine.
Priyank
-----Original Message-----
From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Viatcheslav.Sysoltsev@h-d-gmbh.de
Sent: Thursday, August 23, 2012 2:01 AM
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] [boost::interprocess] assertion failure while buding with -O3
On Wed, 22 Aug 2012 21:04:40 +0200, Priyank Patel
Hello,
I am getting assertion failure in boost inter process library (trying to connect client/server via shared memory). This is happening especially while building an optimized version (-O3). When I build my applications in debug version I do not get this failure.
Hi, You may try to use valgrind to find possible causes for spurious errors. Use it with debug version of your executable, iron out all found errors, and most of the time the spurious error seen previously with optimized version will go away. -- Slava _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users