public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/4503: __enc_traits destructor crashes if initialisation failed
@ 2001-11-04  3:02 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2001-11-04  3:02 UTC (permalink / raw)
  To: ben.hutchings, bkoz, gcc-bugs, gcc-gnats, gcc-prs

Synopsis: __enc_traits destructor crashes if initialisation failed

State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Thu Nov 15 12:39:15 2001
State-Changed-Why:
    This is fixed in mainline.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4503&database=gcc


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libstdc++/4503: __enc_traits destructor crashes if initialisation failed
@ 2001-11-04  6:56 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2001-11-04  6:56 UTC (permalink / raw)
  To: bkoz; +Cc: gcc-prs

The following reply was made to PR libstdc++/4503; it has been noted by GNATS.

From: bkoz@gcc.gnu.org
To: ben.hutchings@roundpoint.com, bkoz@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
  gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org
Cc:  
Subject: Re: libstdc++/4503: __enc_traits destructor crashes if initialisation failed
Date: 15 Nov 2001 20:39:16 -0000

 Synopsis: __enc_traits destructor crashes if initialisation failed
 
 State-Changed-From-To: feedback->closed
 State-Changed-By: bkoz
 State-Changed-When: Thu Nov 15 12:39:15 2001
 State-Changed-Why:
     This is fixed in mainline.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4503&database=gcc


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libstdc++/4503: __enc_traits destructor crashes if initialisation failed
@ 2001-10-25 23:46 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2001-10-25 23:46 UTC (permalink / raw)
  To: ben.hutchings, bkoz, gcc-bugs, gcc-prs, nobody

Synopsis: __enc_traits destructor crashes if initialisation failed

Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Thu Oct 25 23:46:29 2001
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->feedback
State-Changed-By: bkoz
State-Changed-When: Thu Oct 25 23:46:29 2001
State-Changed-Why:
    2001-10-25  Benjamin Kosnik  <bkoz@redhat.com>
    
    	libstdc++/4503
    	* config/locale/codecvt_specializations_ieee_1003.1-200x.h: Fix.
    
    
    
    I fixed this in mainline CVS, gcc-3.1. I will confess that the error handling strategy for __enc_traits is a bit up in the air. 
    
    I'm not quite sure what to do when the iconv descriptor's can't be opened, or fail. 
    
    In the meantime, thanks!
    
    -benjamin

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4503&database=gcc


^ permalink raw reply	[flat|nested] 4+ messages in thread

* libstdc++/4503: __enc_traits destructor crashes if initialisation failed
@ 2001-10-08  8:56 ben.hutchings
  0 siblings, 0 replies; 4+ messages in thread
From: ben.hutchings @ 2001-10-08  8:56 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4503
>Category:       libstdc++
>Synopsis:       __enc_traits destructor crashes if initialisation failed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 08 08:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     ben.hutchings@roundpoint.com
>Release:        gcc-3.0.1
>Organization:
>Environment:
Solaris 8 on SPARC
>Description:
__enc_traits::~__enc_traits() calls iconv_close() on each of its iconv_t members.  On Solaris, iconv_close crashes if given the error value (iconv_t)(-1), rather than doing nothing (as one might expect). I'm unclear on what public functions utilise__enc_traits. The test programs 22_locale/codecvt_unicode_*.cc use it directly and crash on Solaris (after I apply kluges so that _GLIBCPP_USE_WCHAR_T is defined), so I've written a trivial test case based on that.
>How-To-Repeat:
Compile and run the attached file test.cc
>Fix:
Make each iconv_close call conditional on the descriptor not being equal to (iconv_t)(-1).
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.cc"

I2luY2x1ZGUgPGxvY2FsZT4KaW50IG1haW4oKQp7CiAgICBzdGQ6Ol9fZW5jX3RyYWl0cyB0cmFp
dHMoImZvbyIsImJhciIpOyAvLyBub24tZXhpc3RlbnQgZW5jb2RpbmdzCiAgICB0cmFpdHMuX01f
aW5pdCgpOwp9Cg==


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-11-15 20:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-04  3:02 libstdc++/4503: __enc_traits destructor crashes if initialisation failed bkoz
  -- strict thread matches above, loose matches on Subject: below --
2001-11-04  6:56 bkoz
2001-10-25 23:46 bkoz
2001-10-08  8:56 ben.hutchings

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).