« Return to Thread: 4.2.0-rc-6, final candidate

RE: 4.2.0-rc-6, final candidate

by Farid Zaripov-2 :: Rate this Message:

Reply to Author | View in Thread

> -----Original Message-----
> From: Martin Sebor [mailto:sebor@...]
> Sent: Tuesday, October 16, 2007 4:38 PM
> To: stdcxx-dev@...
> Subject: Re: 4.2.0-rc-6, final candidate
>
> > Regarding binary compatibility, after upgrading from 4.1.3 to the
> > latest 4.2.0 I'm getting invalid pointer errors from glibc
> in some of
> > my programs. I reproduced the same error in the except example in
> > 4.1.3. Unfortunately, I don't have time to debug it right now.
>
> Yowza! That's not good. We not fix that ASAP. Farid, could
> any of these changes be causing the incompatibility?
>
>    http://svn.apache.org/viewvc?view=rev&revision=549766
>    http://svn.apache.org/viewvc?view=rev&revision=549586
>    http://svn.apache.org/viewvc?view=rev&revision=549584

  I have checked the except.cpp example on MSVC 7.1 and found
that the problem was caused by this change:
http://svn.apache.org/viewvc?rev=583667&view=rev

----------------
   catch (const std::ios::failure &e) {
       std::cout << "Caught an exception: " << e.what () << std::endl;
   }
----------------

  Here instead std::exception::what() invoked
std::ios::failure::~failure().

Farid.

 « Return to Thread: 4.2.0-rc-6, final candidate