stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Updated: (STDCXX-180) [gcc 4.1/Solaris 9] SIGSEGV when SIGABRT expected
Date Wed, 14 May 2008 19:08:55 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Sebor updated STDCXX-180:
--------------------------------

              Severity: Runtime Error
         Fix Version/s: 4.2.2
    Remaining Estimate: 1h
     Original Estimate: 1h

Let me look into this.

> [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
>            Assignee: Martin Sebor
>            Priority: Minor
>             Fix For: 4.2.2
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message