From stdcxx-dev-return-1120-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Wed Mar 22 17:09:26 2006 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 66606 invoked from network); 22 Mar 2006 17:09:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Mar 2006 17:09:24 -0000 Received: (qmail 40474 invoked by uid 500); 22 Mar 2006 17:09:24 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 40416 invoked by uid 500); 22 Mar 2006 17:09:23 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 40404 invoked by uid 99); 22 Mar 2006 17:09:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Mar 2006 09:09:23 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Mar 2006 09:09:23 -0800 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 0DCF4D49FF for ; Wed, 22 Mar 2006 17:09:02 +0000 (GMT) Message-ID: <1078108853.1143047342053.JavaMail.jira@ajax> Date: Wed, 22 Mar 2006 17:09:02 +0000 (GMT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Commented: (STDCXX-140) [NetBSD 3.0] accum hangs during execution In-Reply-To: <817890856.1139333098142.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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 #include int main () { std::ostream strm (0); std::use_facet >(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 >::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 >::widen(char) const (this=0xbdbe07e4, __c=32 ' ') > at /house/ablackrw/stdcxx/include/rw/_basic_ios.h:219 > #3 0xbdb57474 in std::basic_ios >::fill() const ( > this=0xbdbe07e4) at /house/ablackrw/stdcxx/include/rw/_basic_ios.h:253 > #4 0xbdb57d91 in std::basic_ostream >& __rw::__rw_insert, long>(std::basic_ostream >&, 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