From issues-return-790-apmail-stdcxx-issues-archive=stdcxx.apache.org@stdcxx.apache.org Thu Mar 20 22:37:19 2008 Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 96072 invoked from network); 20 Mar 2008 22:37:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Mar 2008 22:37:19 -0000 Received: (qmail 31897 invoked by uid 500); 20 Mar 2008 22:37:17 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 31877 invoked by uid 500); 20 Mar 2008 22:37:17 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 31868 invoked by uid 99); 20 Mar 2008 22:37:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Mar 2008 15:37:17 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Mar 2008 22:36:47 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 06C7B234C0A6 for ; Thu, 20 Mar 2008 15:35:26 -0700 (PDT) Message-ID: <1937066304.1206052526013.JavaMail.jira@brutus> Date: Thu, 20 Mar 2008 15:35:26 -0700 (PDT) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Commented: (STDCXX-87) [Sun C++ 5.9] RUI in std::set::insert() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580951#action_12580951 ] Martin Sebor commented on STDCXX-87: ------------------------------------ Here's a reduced test case to narrow it down: {noformat} #include #include int main () { typedef __rw::__ident Ident; typedef std::less Less; typedef std::allocator Allocator; typedef __rw::__rb_tree Tree; Tree x; std::pair ret; x._C_insert (0, ret, false); assert (1 == x.size ()); } {noformat} Reduced dbx output for this test case (with uninteresting detail removed): {noformat} Read from uninitialized (rui) on thread 1: Attempting to read 7 bytes at address 0xfffffd7fffdff719 which is 153 bytes above the current stack pointer t@1 (l@1) stopped in pair<__rw_tree_iter<...>,bool>::operator= at 0x0000000000404910 0x0000000000404910: operator=+0x0020: hlt (dbx) where current thread: t@1 =>[1] pair<__rw_tree_iter<...>,bool>::operator=(0xfffffd7fffdff7e8, 0xfffffd7fffdff710, 0xfffffd7fffdff707, 0x419e48, 0x419e70, 0xfffffd7fffdff710), at 0x404910 [2] __rb_tree::_C_insert(this = 0xfffffd7fffdff7e8, __v = 4300400, __ret = STRUCT, __dup = false), line 318 in "_tree.cc" [3] __rb_tree::_C_insert(this = 0xfffffd7fffdff800, __v = 0, __ret = STRUCT, __dup = false), line 318 in "_tree.cc" [4] main(), line 14 in "t.cpp" {noformat} > [Sun C++ 5.9] RUI in std::set::insert() > --------------------------------------- > > Key: STDCXX-87 > URL: https://issues.apache.org/jira/browse/STDCXX-87 > Project: C++ Standard Library > Issue Type: Bug > Components: 23. Containers > Affects Versions: 4.1.2, 4.1.3, 4.1.4 > Environment: SunPro 5.7, 5.9/Solaris 10 > Reporter: Martin Sebor > Assignee: Martin Sebor > Fix For: 4.2.1 > > Original Estimate: 4h > Remaining Estimate: 4h > > This test case was distilled from the one posted in this thread: > http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200512.mbox/%3c4FA4B7B3231C5D459E7BAD020213A94201F5F481@bco-exchange.bco.roguewave.com%3e > $ cat t.cpp && nice gmake t && dbx -q t > #include > int main() > { > std::set().insert (0); > } > generating dependencies for t.cpp > CC -c -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/sunpro-5.7.j4-11s/include -I/build/sebor/dev/stdlib/include -I/build/sebor/dev/stdlib/examples/include -library=%none -g +w t.cpp > CC t.o -o t -library=%none -L/build/sebor/sunpro-5.7.j4-11s/lib -L/build/sebor/sunpro-5.7.j4-11s/lib -lstd11s -lm > ^C^Chave seen 2 interrupts > dbx: warning: wait for process 24188 failed -- Interrupted system call > dbx: dbx interrupted! > (dbx) check -all > access checking - ON > memuse checking - ON > (dbx) run > Running: t > (process id 24234) > RTC: Enabling Error Checking... > RTC: Running program... > Read from uninitialized (rui): > Attempting to read 3 bytes at address 0xffbff821 > which is 265 bytes above the current stack pointer > stopped in std::pair<__rw::__rw_debug_iter<__rw::__rb_tree,std::less,std::allocator >,__rw::__rw_tree_iter,int,int,__rw::__ident > >,__rw::__rw_tree_iter,int,int,__rw::__ident > > >,bool>::operator= at 0x0001cd3c > 0x0001cd3c: operator=+0x0024: ba,a 0x00049b3c ! 0x49b3c -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.