stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Closed: (STDCXX-140) infinite loop on I/O in locale
Date Sat, 10 Mar 2007 22:57:09 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Sebor closed STDCXX-140.
-------------------------------


Successful builds on Cygwin with no locale utility have been reported so this must be fixed.

> infinite loop on I/O in locale
> ------------------------------
>
>                 Key: STDCXX-140
>                 URL: https://issues.apache.org/jira/browse/STDCXX-140
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 22. Localization
>    Affects Versions: 4.1.3
>         Environment: NetBSD 3.0
> GCC 3.3.3
>            Reporter: Andrew Black
>         Assigned To: Martin Sebor
>             Fix For: 4.1.4
>
>
> When trying to run the accum example on this platform, it hangs after the first line
of text is sent to stdout.
> Runing the example under gdb, then sending an interupt signal after it hangs produces
the following output
> td143.testdrive.hp.com> gdb accum 
> GNU gdb 5.3nb1
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386--netbsdelf"...
> (gdb) run
> Starting program: /tmp/ablackrw/stdcxx-11d/examples/accum 
> For the series: 
> Program received signal SIGINT, Interrupt.
> 0xbdb4691d in __rw::__rw_locale::_C_is_managed(int) const (this=0xbdbe45e0, 
>     cat=256) at /house/ablackrw/stdcxx/src/locale_body.cpp:1092
> 1092                while (next && !(__rw_cats [catinx].facet_bits & (1 <<
i))) {
> (gdb) bt
> #0  0xbdb4691d in __rw::__rw_locale::_C_is_managed(int) const (
>     this=0xbdbe45e0, cat=256)
>     at /house/ablackrw/stdcxx/src/locale_body.cpp:1092
> #1  0xbdb48b91 in std::locale::~locale() (this=0xbfbfeb10)
>     at /house/ablackrw/stdcxx/src/locale_core.cpp:68
> #2  0xbdb57a88 in std::basic_ios<char, std::char_traits<char> >::widen(char)
const (this=0xbdbe07e4, __c=32 ' ')
>     at /house/ablackrw/stdcxx/include/rw/_basic_ios.h:219
> #3  0xbdb57474 in std::basic_ios<char, std::char_traits<char> >::fill() const
(
>     this=0xbdbe07e4) at /house/ablackrw/stdcxx/include/rw/_basic_ios.h:253
> #4  0xbdb57d91 in std::basic_ostream<char, std::char_traits<char> >&
__rw::__rw_insert<char, std::char_traits<char>, long>(std::basic_ostream<char,
std::char_traits<char> >&, long) (__strm=@0xbdbe07e0, __val=1)
>     at /house/ablackrw/stdcxx/include/rw/_ioinsert.cc:43
> #5  0xbdb66e8f in std::ostream::operator<<(int) (this=0xbdbe07e0, __val=1)
>     at /house/ablackrw/stdcxx/include/ostream:282
> #6  0x08048fd1 in main ()
>     at /house/ablackrw/stdcxx/examples/manual/accum.cpp:49
> #7  0x08048cb6 in ___start ()

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message