stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <>
Subject [jira] Created: (STDCXX-180) [gcc 4.1/Solaris9] SIGSEGV when SIGABRT expected
Date Tue, 16 May 2006 17:56:05 GMT
[gcc 4.1/Solaris9] SIGSEGV when SIGABRT expected

         Key: STDCXX-180
     Project: C++ Standard Library
        Type: Bug

  Components: Configuration  
    Versions: 4.1.3    
 Environment: gcc 4.1/Solaris 9
    Reporter: 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 <vector>

int main ()
    std::vector<int> v1;
    std::vector<int> 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<std::vector<_TypeT,
_Allocator>, typename _Allocator::pointer, typename _Allocator::pointer>, __rw::__rw_debug_iter<std::vector<_TypeT,
_Allocator>, typename _Allocator::pointer, typename _Allocator::pointer>) [with _TypeT
= int, _Allocator = std::allocator<int>]: Assertion '_RW::__rw_valid_range (begin (),
__first)' failed.
Segmentation Fault (core dumped)

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message