You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Andrew Black (JIRA)" <ji...@apache.org> on 2006/02/07 18:24:58 UTC

[jira] Created: (STDCXX-140) [NetBSD 3.0] accum hangs during execution

[NetBSD 3.0] accum hangs during execution
-----------------------------------------

         Key: STDCXX-140
         URL: http://issues.apache.org/jira/browse/STDCXX-140
     Project: C++ Standard Library
        Type: Bug
  Components: Examples  
    Versions: 4.1.4    
 Environment: NetBSD 3.0
GCC 3.3.3
    Reporter: Andrew Black


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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (STDCXX-140) [NetBSD 3.0] accum hangs during execution

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/STDCXX-140?page=comments#action_12365455 ] 

Martin Sebor commented on STDCXX-140:
-------------------------------------

I have seen a similar issue on Cygwin. Here are my notes

The library builds just fine now (at least 11s does), but I ran into
a runtime issue that I haven't had time to analyze yet. A simple
integer insertion followed by std::endl hangs:

   #include <iostream>
   int main () { std::cout << 0 << std::endl; }

I can't even stop the debugger by pressing Ctrl+C so it's kind of
tricky to figure out what's going on. It seems to hang on return
from ctype::widen() somewhere in cygwin.dll. (This is with gcc
3.3.3 and gdb 6.3.50_2004-12-28-cvs on CYGWIN_NT-5.0 RW1266
1.5.12(0.116/4/2)).

> [NetBSD 3.0] accum hangs during execution
> -----------------------------------------
>
>          Key: STDCXX-140
>          URL: http://issues.apache.org/jira/browse/STDCXX-140
>      Project: C++ Standard Library
>         Type: Bug
>   Components: Examples
>     Versions: 4.1.4
>  Environment: NetBSD 3.0
> GCC 3.3.3
>     Reporter: Andrew Black

>
> 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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (STDCXX-140) infinite loop on I/O in locale

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/STDCXX-140?page=all ]
     
Martin Sebor resolved STDCXX-140:
---------------------------------

    Resolution: Fixed

Resolved with the referenced changes.

> infinite loop on I/O in locale
> ------------------------------
>
>          Key: STDCXX-140
>          URL: http://issues.apache.org/jira/browse/STDCXX-140
>      Project: C++ Standard Library
>         Type: Bug

>   Components: 22. Localization
>     Versions: 4.1.3
>  Environment: NetBSD 3.0
> GCC 3.3.3
>     Reporter: Andrew Black
>     Assignee: 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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (STDCXX-140) [NetBSD 3.0] accum hangs during execution

Posted by "Andrew Black (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/STDCXX-140?page=comments#action_12367714 ] 

Andrew Black commented on STDCXX-140:
-------------------------------------

When running the test suite on the same platform, I encountered hangs in several tests.  When I ran a couple under gdb and ran a backtrace, I found the same behavior as that in the initial report. (at least for frames 0 and 1)

22.locale.money.get hangs after
# INFO (S1) (3 lines):
# TEXT: money_get<char, istreambuf_iterator<char> >::get (..., long double&) const
# CLAUSE: lib.locale.money.get
(first info tag)

22.locale.money.put hangs after
# INFO (S1) (3 lines):
# TEXT: std::money_put<char>::put(ostreambuf_iterator<char>, bool, ios_base, char, long double); correct use of moneypunct<char, false>::grouping() and thousands_sep()
# CLAUSE: lib.locale.money.put
(1st info tag)

22.locale.num.get hangs after
# INFO (S1) (3 lines):
# TEXT: std::num_get<char>::get (..., bool&)
# CLAUSE: lib.locale.num.get
(1st info tag)

22.time.put hangs after
# INFO (S1) (4 lines):
# TEXT: %a: the locale's abbreviated weekday name
# CLAUSE: lib.locale.time.put
# LINE: 577
(4th info tag)

27.objects hangs after
# INFO (S1) (4 lines):
# TEXT: checking for std::ios_base::unitbuf in flags
# CLAUSE: lib.iostream.objects
# LINE: 161
(3rd info tag)

> [NetBSD 3.0] accum hangs during execution
> -----------------------------------------
>
>          Key: STDCXX-140
>          URL: http://issues.apache.org/jira/browse/STDCXX-140
>      Project: C++ Standard Library
>         Type: Bug
>   Components: Examples
>     Versions: 4.1.4
>  Environment: NetBSD 3.0
> GCC 3.3.3
>     Reporter: Andrew Black

>
> 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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (STDCXX-140) [NetBSD 3.0] accum hangs during execution

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/STDCXX-140?page=comments#action_12371433 ] 

Martin Sebor commented on STDCXX-140:
-------------------------------------

See also this thread for some additional detail:
http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-user/200603.mbox/%3cf68850740603172030x955c989vead2099ef048c7da@mail.gmail.com%3e
and, in particular, this post:
http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-user/200603.mbox/%3cf68850740603200919o24724a29vb5c67f1d34a1727a@mail.gmail.com%3e

> [NetBSD 3.0] accum hangs during execution
> -----------------------------------------
>
>          Key: STDCXX-140
>          URL: http://issues.apache.org/jira/browse/STDCXX-140
>      Project: C++ Standard Library
>         Type: Bug
>   Components: Examples
>     Versions: 4.1.4
>  Environment: NetBSD 3.0
> GCC 3.3.3
>     Reporter: Andrew Black
>     Assignee: Martin Sebor

>
> 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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (STDCXX-140) infinite loop on I/O in locale

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/STDCXX-140?page=all ]

Martin Sebor updated STDCXX-140:
--------------------------------

      Component: 22. Localization
                     (was: Examples)
        Summary: infinite loop on I/O in locale  (was: [NetBSD 3.0] accum hangs during execution)
    Fix Version: 4.1.4
        Version: 4.1.3
                     (was: 4.1.4)

This is a general configuration and code correctness issue that affects all platforms.

> infinite loop on I/O in locale
> ------------------------------
>
>          Key: STDCXX-140
>          URL: http://issues.apache.org/jira/browse/STDCXX-140
>      Project: C++ Standard Library
>         Type: Bug
>   Components: 22. Localization
>     Versions: 4.1.3
>  Environment: NetBSD 3.0
> GCC 3.3.3
>     Reporter: Andrew Black
>     Assignee: 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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (STDCXX-140) [NetBSD 3.0] accum hangs during execution

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/STDCXX-140?page=comments#action_12371435 ] 

Martin Sebor commented on STDCXX-140:
-------------------------------------

Here's a simple test case that reproduces it with a library built with _RWSTD_CAT_SEP #defined to the empty string (""). __rw_locale::_C_is_managed() ends up in an infinite loop:

$ cat t.cpp && make t && gdb t -quiet
#include <locale>
#include <ostream>

int main ()
{
    std::ostream strm (0);

    std::use_facet<std::collate<char> >(strm.getloc ());
    strm.widen ('@');
}

gcc -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG   -pthreads -D_RWSTD_USE_CONFIG -I/build/sebor/gcc-4.1.0-15s/include -I/build/sebor/dev/stdlib/include -I/build/sebor/dev/stdlib/../rwtest -I/build/sebor/dev/stdlib/../rwtest/include -I/build/sebor/dev/stdlib/tests/include  -pedantic -nostdinc++ -g  -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long  t.cpp
gcc t.o -o t -L/build/sebor/gcc-4.1.0-15s/rwtest -lrwtest15s -pthreads -L/build/sebor/gcc-4.1.0-15s/lib -lstd15s  -lsupc++ -lm
(gdb) r
Starting program: /build/sebor/gcc-4.1.0-15s/tests/t 
^C
Program received signal SIGINT, Interrupt.
0x00022df4 in __rw::__rw_locale::_C_is_managed (this=0xc65e4, cat=256)
    at /build/sebor/dev/stdlib/src/locale_body.cpp:1121
1121                    if (*_RWSTD_CAT_SEP == *locname)
(gdb) where
#0  0x00022df4 in __rw::__rw_locale::_C_is_managed (this=0xc65e4, cat=256)
    at /build/sebor/dev/stdlib/src/locale_body.cpp:1121
#1  0x00026dc0 in ~locale (this=0xffbff9d4)
    at /build/sebor/dev/stdlib/src/locale_core.cpp:68
#2  0x00028f58 in std::basic_ios<char, std::char_traits<char> >::widen (
    this=0xffbffa58, __c=64 '@') at _basic_ios.h:219
#3  0x00012230 in main () at t.cpp:9

> [NetBSD 3.0] accum hangs during execution
> -----------------------------------------
>
>          Key: STDCXX-140
>          URL: http://issues.apache.org/jira/browse/STDCXX-140
>      Project: C++ Standard Library
>         Type: Bug
>   Components: Examples
>     Versions: 4.1.4
>  Environment: NetBSD 3.0
> GCC 3.3.3
>     Reporter: Andrew Black
>     Assignee: Martin Sebor

>
> 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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (STDCXX-140) infinite loop on I/O in locale

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Assigned: (STDCXX-140) [NetBSD 3.0] accum hangs during execution

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/STDCXX-140?page=all ]

Martin Sebor reassigned STDCXX-140:
-----------------------------------

    Assign To: Martin Sebor

> [NetBSD 3.0] accum hangs during execution
> -----------------------------------------
>
>          Key: STDCXX-140
>          URL: http://issues.apache.org/jira/browse/STDCXX-140
>      Project: C++ Standard Library
>         Type: Bug
>   Components: Examples
>     Versions: 4.1.4
>  Environment: NetBSD 3.0
> GCC 3.3.3
>     Reporter: Andrew Black
>     Assignee: Martin Sebor

>
> 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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira