That’s more or less what we suspect happens.
And we did try a diff.
The lexical cast hpp file in 1.51 was over two thousand lines.
The same file in 1.58 was a hundred. Lol….
So apparently a major refactoring effort took place, and I didn’t have the time, and truth be told, didn’t want to spend the time, to track down the new files and attempt a comparison.
Not really sure if, in two thousand plus lines of boost code, I would have been able to identify a bug before it was time for me to retire anyway.
I would have enjoyed trying, but chances are I would have just wasted a huge chunk of taxpayer money slogging through boost code.
But thanks for the suggestion.
From: Boost-users [mailto:boost-users-bounces@lists.boost.org] On Behalf Of james
Sent: Thursday, July 16, 2015 4:53 PM
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] EXTERNAL: Re: Is this a known bug in lexical_cast<double> ?
You could try diffing the code from the various versions.
It sounds like a classic race condition though, the inputs obviously aren't the same.
Maybe the act of throwing the exception causes some writes to happen that should
have already been there, and so the second time round it succeeds.
On Thu, Jul 16, 2015 at 9:52 PM, TILLMAN, MICHAEL D9
You say yourself that a simple test program succeeds. The bug materializes only in your production code. This scenario begs for the steps for reproduce the bug. If you cannot reproduce it then you shouldn't suggest that it's a bug in boost. If the same code succeeds in a simple test program then it cannot be a bug in boost IMHO.
Unfortunately, we had this exact case 2 days ago with a spirit::qi bug, induced by an uninitalised variable and a weird edge case. But i would agree that confirmation of this can only be given by a proper valgrind run( or a similar tool) to record any weird memory issues. If the testprogram succeeds without valgrind finding anything, do the same with your full program. compile in debug and run valgrind. Best, Oswin _______________________________________________ Boost-users mailing list Boost-users@lists.boost.orgmailto:Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.orgmailto:Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users