perhaps this is user error on my side, but given the attachment, run runme.sh
and I get a stacktrace of...
#0 0x00b88dab in __gnu_cxx::__pool<true>::_M_reclaim_block () from
/usr/lib/libstdc++.so.6
#1 0x00517ff2 in __gnu_cxx::__mt_alloc<int,
__gnu_cxx::__common_pool_policy<__gnu_cxx::__pool, true> >::deallocate
(this=0x8e571c8, __p=0x8e551f8, __n=2)
at
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/ext/mt_allocator.h:746
#2 0x00518025 in std::_Vector_base<int, std::allocator<int> >::_M_deallocate
(this=0x8e571c8,
__p=0x8e551f8, __n=2)
at
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/bits/stl_vector.h:123
#3 0x0051806c in ~_Vector_base (this=0x8e571c8)
at
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/bits/stl_vector.h:109
#4 0x0051819f in ~vector (this=0x8e571c8)
at
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/bits/stl_vector.h:273
#5 0x005181c6 in __gnu_cxx::__mt_alloc_base<std::vector<int,
std::allocator<int> > >::destroy (
this=0xbf9f4d2f, __p=0x8e571c8)
at
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/ext/mt_allocator.h:614
#6 0x005181f2 in std::_Destroy<std::vector<int, std::allocator<int> >*,
std::allocator<std::vector<int, std::allocator<int> > > > (__first=0x8e571c8,
__last=0x8e571e0, [EMAIL PROTECTED])
at
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/bits/stl_construct.h:174
#7 0x00518246 in ~vector (this=0xbf9f4d70)
at
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/bits/stl_vector.h:273
#8 0x0051792d in testfoo () at dlgass.cxx:7
#9 0x08048531 in main ()
--
Summary: -fvisibility=hidden and stl -> SEGV in
__gnu_cxx::__pool<true>::_M_reclaim_block
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: caolanm at redhat dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22482