From issues-return-2354-apmail-stdcxx-issues-archive=stdcxx.apache.org@stdcxx.apache.org Mon Jul 21 16:47:52 2008 Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 47031 invoked from network); 21 Jul 2008 16:47:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Jul 2008 16:47:52 -0000 Received: (qmail 2090 invoked by uid 500); 21 Jul 2008 16:47:52 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 2069 invoked by uid 500); 21 Jul 2008 16:47:52 -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 2058 invoked by uid 99); 21 Jul 2008 16:47:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jul 2008 09:47:52 -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; Mon, 21 Jul 2008 16:47:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B1CA0234C174 for ; Mon, 21 Jul 2008 09:47:31 -0700 (PDT) Message-ID: <1634073807.1216658851726.JavaMail.jira@brutus> Date: Mon, 21 Jul 2008 09:47:31 -0700 (PDT) From: "Eric Lemings (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Commented: (STDCXX-808) [Sun C++ -m64] SIGBUS in strstreambuf::seekoff() on empty stream In-Reply-To: <757325475.1206909144308.JavaMail.jira@brutus> 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-808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615303#action_12615303 ] Eric Lemings commented on STDCXX-808: ------------------------------------- Test case added in source file tests/regress/27.streambuf.buffer.stdcxx-808.cpp. > [Sun C++ -m64] SIGBUS in strstreambuf::seekoff() on empty stream > ---------------------------------------------------------------- > > Key: STDCXX-808 > URL: https://issues.apache.org/jira/browse/STDCXX-808 > Project: C++ Standard Library > Issue Type: Bug > Components: 27. Input/Output > Affects Versions: 4.2.0 > Reporter: Martin Sebor > Assignee: Eric Lemings > Fix For: 4.3.0 > > Original Estimate: 4h > Remaining Estimate: 4h > > When compiled with Sun C++ in wide mode (with the [-m64|http://docs.sun.com/app/docs/doc/819-5267/gewhd?a=view] option) the following program (taken from the Rogue Wave regression test test_bug11205.cpp) abends with SIGBUS. This happens in both 4.2.0 and on the head of trunk. Suspect a compiler bug. > {noformat} > $ cat t.cpp && gmake t && dbx -q -c"run;where" t > #include > #include > #include > int main () > { > std::strstreambuf sb; > std::streampos pos = sb.pubseekoff (10, std::ios::beg, std::ios::in); > assert (-1 == pos); > } > CC -library=%none -g -m64 +w -errtags -erroff=hidef -D_RWSTDDEBUG -mt -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-suncc-5.9_j1-15D/include -I/amd/devco/sebor/stdcxx/examples/include -library=%none -mt -m64 -L/build/sebor/stdcxx-suncc-5.9_j1-15D/lib -R/build/sebor/stdcxx-suncc-5.9_j1-15D/lib t.cpp -lstd15D -lm -o t > Running: t > (process id 20476) > t@1 (l@1) signal BUS (invalid address alignment) in std::basic_streambuf >::eback at line 166 in file "streambuf" > 166 return _C_eback; > current thread: t@1 > =>[1] std::basic_streambuf >::eback(this = 0xa), line 166 in "streambuf" > [2] std::basic_streambuf >::_C_is_valid(this = 0xa), line 520 in "streambuf" > [3] std::strstreambuf::seekoff(this = 0xa, off = 0, way = 4, which = 0), line 166 in "strstream.cpp" > [4] std::basic_streambuf >::pubseekoff(this = 0xffffffff7ffff850, __off = 10, __way = __rw_beg, __which = __rw_in), line 99 in "streambuf" > [5] main(), line 9 in "t.cpp" > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.