Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 51789 invoked from network); 27 Mar 2007 23:43:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Mar 2007 23:43:53 -0000 Received: (qmail 37349 invoked by uid 500); 27 Mar 2007 23:44:00 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 37334 invoked by uid 500); 27 Mar 2007 23:44:00 -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 37299 invoked by uid 99); 27 Mar 2007 23:44:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2007 16:44:00 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2007 16:43:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2A312714062 for ; Tue, 27 Mar 2007 16:43:32 -0700 (PDT) Message-ID: <3267577.1175039012153.JavaMail.jira@brutus> Date: Tue, 27 Mar 2007 16:43:32 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Commented: (STDCXX-180) [gcc 4.1/Solaris 9] SIGSEGV when SIGABRT expected In-Reply-To: <15434049.1147802165895.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-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484649 ] Martin Sebor commented on STDCXX-180: ------------------------------------- I suspect this is a gcc configuration or installation issue. The same program behaves as expect on Solaris 10: $ gmake t CPPOPTS=-D_RWSTDDEBUG gcc -pedantic -nostdinc++ -O2 -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -I/amd/devco/sebor/stdcxx/include/ansi -pthreads -I/amd/devco/sebor/stdcxx/include -I/build/sebor/gcc-4.1.1-12d/include -I/amd/devco/sebor/stdcxx/examples/include -D_RWSTDDEBUG -pthreads -L/build/sebor/gcc-4.1.1-12d/lib -Wl,-R/build/sebor/gcc-4.1.1-12d/lib t.cpp -lstd12d -lsupc++ -lm -o t examples$ ./t /amd/devco/sebor/stdcxx/include/vector:627: typename std::vector<_TypeT, _Allocator>::iterator std::vector<_TypeT, _Allocator>::erase(__rw::__rw_debug_iter, typename _Allocator::pointer, typename _Allocator::pointer>, __rw::__rw_debug_iter, typename _Allocator::pointer, typename _Allocator::pointer>) [with _TypeT = int, _Allocator = std::allocator]: Assertion '_RW::__rw_valid_range (begin (), __first)' failed. /build/sebor/gcc-4.1.1-12d/lib/libstd12d.so.4.2.0:_ZN4__rw16__rw_assert_failEPKcS1_iS1_+0x48 /build/sebor/gcc-4.1.1-12d/examples/t:main+0x34 /build/sebor/gcc-4.1.1-12d/examples/t:_start+0x5c Abort (core dumped) > [gcc 4.1/Solaris 9] SIGSEGV when SIGABRT expected > ------------------------------------------------- > > Key: STDCXX-180 > URL: https://issues.apache.org/jira/browse/STDCXX-180 > Project: C++ Standard Library > Issue Type: Bug > Components: Configuration > Affects Versions: 4.1.3 > Environment: gcc 4.1/Solaris 9 > Reporter: Martin Sebor > Assigned To: Martin Sebor > Priority: Minor > > The program below is expected to print the stack trace and exit with SIGABRT when compiled in debug mode. Instead it fails to print the stack trace and exits with SIGSEGV. > $ cat v.cpp && nice make v && ./v > #include > int main () > { > std::vector v1; > std::vector v2; > v1.erase (v2.begin (), v2.end ()); > } > 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 v.cpp > gcc v.o -o v -L/build/sebor/gcc-4.1.0-15s/rwtest -lrwtest15s -pthreads -L/build/sebor/gcc-4.1.0-15s/lib -lstd15s -lsupc++ -lm > /build/sebor/dev/stdlib/include/vector:618: typename std::vector<_TypeT, _Allocator>::iterator std::vector<_TypeT, _Allocator>::erase(__rw::__rw_debug_iter, typename _Allocator::pointer, typename _Allocator::pointer>, __rw::__rw_debug_iter, typename _Allocator::pointer, typename _Allocator::pointer>) [with _TypeT = int, _Allocator = std::allocator]: Assertion '_RW::__rw_valid_range (begin (), __first)' failed. > Segmentation Fault (core dumped) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.