This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51845] New: [4.6 regression] 23_containers/unordered_multimap/erase/24061-multimap.cc segfault
- From: "krebbel at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 13 Jan 2012 09:26:54 +0000
- Subject: [Bug libstdc++/51845] New: [4.6 regression] 23_containers/unordered_multimap/erase/24061-multimap.cc segfault
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51845
Bug #: 51845
Summary: [4.6 regression]
23_containers/unordered_multimap/erase/24061-multimap.
cc segfault
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: krebbel@gcc.gnu.org
The failure has been introduced between revisions r181648 r181683.
gdb --args ./24061-multimap.exe
GNU gdb (GDB) Fedora (7.2.50.20110206-18.fc13)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "s390-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/build/gcc-head-build/s390-ibm-linux-gnu/libstdc++-v3/testsuite/24061-multimap.exe...done.
(gdb) r
Starting program:
/build/gcc-head-build/s390-ibm-linux-gnu/libstdc++-v3/testsuite/24061-multimap.exe
Program received signal SIGSEGV, Segmentation fault.
malloc_consolidate (av=0x77e123c8) at malloc.c:5161
5161 malloc.c: No such file or directory.
in malloc.c
(gdb) bt
#0 malloc_consolidate (av=0x77e123c8) at malloc.c:5161
#1 0x77d0ba7e in _int_free (av=0x77e123c8, p=0x4044d0, have_lock=1) at
malloc.c:5034
#2 0x77d0e4da in _int_realloc (av=0x77e123c8, oldp=0x404420,
oldsize=<optimized out>, nb=<optimized out>)
at malloc.c:5367
#3 0x77d0e7f4 in __libc_realloc (oldmem=0x404428, bytes=172) at malloc.c:3821
#4 0x77d027d0 in _IO_vasprintf (result_ptr=0x7fffea3c, format=<optimized out>,
args=0x7fffe9b8) at vasprintf.c:86
#5 0x77ce49a4 in ___asprintf (string_ptr=<optimized out>, format=<optimized
out>) at asprintf.c:37
#6 0x77cbbbe8 in __assert_fail (assertion=0x4025d2 "mm1.size() == 0",
file=0x4024fc
"/build/gcc-head/libstdc++-v3/testsuite/23_containers/unordered_multimap/erase/24061-multimap.cc",
line=99, function=<optimized out>) at assert.c:63
#7 0x00401ff2 in test01 ()
at
/build/gcc-head/libstdc++-v3/testsuite/23_containers/unordered_multimap/erase/24061-multimap.cc:99
#8 0x004009fe in main ()
at
/build/gcc-head/libstdc++-v3/testsuite/23_containers/unordered_multimap/erase/24061-multimap.cc:106