You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2007/06/21 20:51:42 UTC

svn commit: r549586 - /incubator/stdcxx/trunk/src/exception.cpp

Author: faridz
Date: Thu Jun 21 11:51:41 2007
New Revision: 549586

URL: http://svn.apache.org/viewvc?view=rev&rev=549586
Log:
2007-06-21 Farid Zaripov <Fa...@epam.com>

	* exception.cpp (__rw_throw): Don't delete allocated what string because of
	__rw_throw_proc() takes ownership and must delete what string.

Modified:
    incubator/stdcxx/trunk/src/exception.cpp

Modified: incubator/stdcxx/trunk/src/exception.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/src/exception.cpp?view=diff&rev=549586&r1=549585&r2=549586
==============================================================================
--- incubator/stdcxx/trunk/src/exception.cpp (original)
+++ incubator/stdcxx/trunk/src/exception.cpp Thu Jun 21 11:51:41 2007
@@ -827,9 +827,6 @@
 
         // throw_proc takes ownership of allocated string
         __rw_throw_proc (id, what);
-
-        // if throw_proc returns, delete allocated what string
-        __rw_free_what_buf (what);
     }
 }
 



Re: svn commit: r549586 - /incubator/stdcxx/trunk/src/exception.cpp

Posted by Martin Sebor <se...@roguewave.com>.
Farid Zaripov wrote:
>> -----Original Message-----
>> From: Martin Sebor [mailto:sebor@roguewave.com] 
>> Sent: Friday, June 22, 2007 6:07 PM
>> To: stdcxx-dev@incubator.apache.org
>> Subject: Re: svn commit: r549586 - 
>> /incubator/stdcxx/trunk/src/exception.cpp
> 
>>>   Yes, I remember that. This would be separated patch.
>> Gotcha! Let's make sure to do that (or open a new issue).
> 
>   Already done: https://issues.apache.org/jira/browse/STDCXX-454
> 
>> We can change the ChangeLog this way but it won't make the 
>> Jira Subversion plugin pick up the reference to the patch so 
>> the patch won't show up on the Subversion Commits tab. See
>> https://issues.apache.org/jira/browse/INFRA-624
> 
>   Now I understand. Btw why not to extend the JIRA interface to enable
> to add references to the svn manually?

It would cetainly make a lot of sense. I added my vote to the open
Jira issues that request this ability. You might want to do the same:

   http://jira.atlassian.com/browse/SVN-40
   http://jira.atlassian.com/browse/SVN-138

Martin

RE: svn commit: r549586 - /incubator/stdcxx/trunk/src/exception.cpp

Posted by Farid Zaripov <Fa...@epam.com>.
> -----Original Message-----
> From: Martin Sebor [mailto:sebor@roguewave.com] 
> Sent: Friday, June 22, 2007 6:07 PM
> To: stdcxx-dev@incubator.apache.org
> Subject: Re: svn commit: r549586 - 
> /incubator/stdcxx/trunk/src/exception.cpp

> >   Yes, I remember that. This would be separated patch.
> 
> Gotcha! Let's make sure to do that (or open a new issue).

  Already done: https://issues.apache.org/jira/browse/STDCXX-454

> We can change the ChangeLog this way but it won't make the 
> Jira Subversion plugin pick up the reference to the patch so 
> the patch won't show up on the Subversion Commits tab. See
> https://issues.apache.org/jira/browse/INFRA-624

  Now I understand. Btw why not to extend the JIRA interface to enable
to add references to the svn manually?

Farid.

Re: svn commit: r549586 - /incubator/stdcxx/trunk/src/exception.cpp

Posted by Martin Sebor <se...@roguewave.com>.
Farid Zaripov wrote:
>> -----Original Message-----
>> From: Martin Sebor [mailto:sebor@roguewave.com] 
>> Sent: Friday, June 22, 2007 3:02 AM
>> To: stdcxx-dev@incubator.apache.org
>> Subject: Re: svn commit: r549586 - 
>> /incubator/stdcxx/trunk/src/exception.cpp
>>
>> As you astutely observed in a previous discussion of the 
>> issue (at the link below), "__rw_free_what_buf() should be 
>> extern _RWSTD_EXPORT, to be accessible by user in overridden 
>> __rw_throw_proc()" otherwise there will be no way for users 
>> to avoid a leak in their replacement __rw_throw_proc().
>>
>>
> http://www.mail-archive.com/stdcxx-dev@incubator.apache.org/msg02192.htm
> l
> 
>   Yes, I remember that. This would be separated patch.

Gotcha! Let's make sure to do that (or open a new issue).

> 
>> Also, while it's too late to fix it for this commit, the 
>> ChangeLog entry is missing a reference to the Jira issue 
>> number it resolves.
>> Please remember to include it future changes, especially 
>> those to the library.
> 
>   The bug-fixing patch was here:
> http://svn.apache.org/viewvc?view=rev&rev=549584

Ah, okay.

> 
>   Anyway that patch is also related to the STDCXX-293, and is
> never late to correct the ChangeLog :)
> http://www.mail-archive.com/stdcxx-commits@incubator.apache.org/msg01322
> .html

We can change the ChangeLog this way but it won't make the Jira
Subversion plugin pick up the reference to the patch so the patch
won't show up on the Subversion Commits tab. See
https://issues.apache.org/jira/browse/INFRA-624

Martin

RE: svn commit: r549586 - /incubator/stdcxx/trunk/src/exception.cpp

Posted by Farid Zaripov <Fa...@epam.com>.
> -----Original Message-----
> From: Martin Sebor [mailto:sebor@roguewave.com] 
> Sent: Friday, June 22, 2007 3:02 AM
> To: stdcxx-dev@incubator.apache.org
> Subject: Re: svn commit: r549586 - 
> /incubator/stdcxx/trunk/src/exception.cpp
> 
> As you astutely observed in a previous discussion of the 
> issue (at the link below), "__rw_free_what_buf() should be 
> extern _RWSTD_EXPORT, to be accessible by user in overridden 
> __rw_throw_proc()" otherwise there will be no way for users 
> to avoid a leak in their replacement __rw_throw_proc().
> 
>
http://www.mail-archive.com/stdcxx-dev@incubator.apache.org/msg02192.htm
l

  Yes, I remember that. This would be separated patch.

> Also, while it's too late to fix it for this commit, the 
> ChangeLog entry is missing a reference to the Jira issue 
> number it resolves.
> Please remember to include it future changes, especially 
> those to the library.

  The bug-fixing patch was here:
http://svn.apache.org/viewvc?view=rev&rev=549584

  Anyway that patch is also related to the STDCXX-293, and is
never late to correct the ChangeLog :)
http://www.mail-archive.com/stdcxx-commits@incubator.apache.org/msg01322
.html

Farid.

Re: svn commit: r549586 - /incubator/stdcxx/trunk/src/exception.cpp

Posted by Martin Sebor <se...@roguewave.com>.
Hi Farid,

As you astutely observed in a previous discussion of the issue
(at the link below), "__rw_free_what_buf() should be extern
_RWSTD_EXPORT, to be accessible by user in overridden
__rw_throw_proc()" otherwise there will be no way for users
to avoid a leak in their replacement __rw_throw_proc().

http://www.mail-archive.com/stdcxx-dev@incubator.apache.org/msg02192.html

Also, while it's too late to fix it for this commit, the ChangeLog
entry is missing a reference to the Jira issue number it resolves.
Please remember to include it future changes, especially those to
the library.

Thanks
Martin

faridz@apache.org wrote:
> Author: faridz
> Date: Thu Jun 21 11:51:41 2007
> New Revision: 549586
> 
> URL: http://svn.apache.org/viewvc?view=rev&rev=549586
> Log:
> 2007-06-21 Farid Zaripov <Fa...@epam.com>
> 
> 	* exception.cpp (__rw_throw): Don't delete allocated what string because of
> 	__rw_throw_proc() takes ownership and must delete what string.
> 
> Modified:
>     incubator/stdcxx/trunk/src/exception.cpp
> 
> Modified: incubator/stdcxx/trunk/src/exception.cpp
> URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/src/exception.cpp?view=diff&rev=549586&r1=549585&r2=549586
> ==============================================================================
> --- incubator/stdcxx/trunk/src/exception.cpp (original)
> +++ incubator/stdcxx/trunk/src/exception.cpp Thu Jun 21 11:51:41 2007
> @@ -827,9 +827,6 @@
>  
>          // throw_proc takes ownership of allocated string
>          __rw_throw_proc (id, what);
> -
> -        // if throw_proc returns, delete allocated what string
> -        __rw_free_what_buf (what);
>      }
>  }
>  
> 
>