This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: minimal example of string_ctor core


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On sparc-solaris-2.7, using egcs-20000501 (gnu binutils 2.9.1),
compiling the 21_strings test program from testsuite
ctor_copy_dtor.cc, I get a core dump.

Loading into gdb shows it to be in line 94 of the test program.

GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "sparc-sun-solaris2.7"...
Core was generated by `/export/home/awilliam/testgcc/a.out'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /work/egcs/lib/libstdc++.so.3...done.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from
/usr/platform/SUNW,Ultra-Enterprise-10000/lib/libc_psr.so.1...done.
#0  0xff170b50 in seg1 () from
/usr/platform/SUNW,Ultra-Enterprise-10000/lib/libc_psr.so.1
(gdb) where
#0  0xff170b50 in seg1 () from
/usr/platform/SUNW,Ultra-Enterprise-10000/lib/libc_psr.so.1
#1  0xff1708a0 in blalign () from
/usr/platform/SUNW,Ultra-Enterprise-10000/lib/libc_psr.so.1
#2  0x14068 in std::char_traits<char>::copy (
    __s1=0x31880
"ÿ6B8ÿ6BPÿ6Bhÿ6B\200ÿ6B\230ÿ6B°ÿ6BÈÿ6Bàÿ6Bøÿ6C\020ÿ6C(ÿ6C@ÿ6CXÿ6Cpÿ6C\
10ÿ6C ÿ6C¸ÿ6CÐÿ6Cèÿ6D",
    __s2=0x3fbef814 "", __n=23) at
/work/egcs/include/g++-v3/bits/char_traits.h:187
#3  0x13b24 in std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_S_copy_chars (
    __p=0x31164 "rodeo beach, marin", __j1=0xffbef830 "rodeo beach,
marin", __j2=0x31164 "rodeo beach, marin")
    at /work/egcs/include/g++-v3/bits/basic_string.h:294
#4  0x135dc in char * std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_S_construct<char const *> (
    __beg=0xffbef830 "rodeo beach, marin", __end=0x3fbef82b "",
__a=@0xffbef818) at /work/egcs/include/g++-v3/bits/string.tcc:133
#5  0x13188 in char * std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_S_construct_aux<char const *> (
    __beg=0x3fbef82b "", __end=0xffbef818 "", __a=@0xffbef818) at
/work/egcs/include/g++-v3/bits/basic_string.h:660
#6  0x12bc0 in char * std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_S_construct<char const *> (
    __beg=0xffbef830 "rodeo beach, marin", __end=0x3fbef82b "",
__a=@0xffbef818)
    at /work/egcs/include/g++-v3/bits/basic_string.h:677
#7  0x129cc in std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::basic_string (this=0xffbef808,
    __s=0xffbef830 "rodeo beach, marin", __n=1073741819,
__a=@0xffbef818) at /work/egcs/include/g++-v3/bits/string.tcc:199
#8  0x11c6c in test01 () at ctor_copy_dtor.cc:94
#9  0x12688 in main () at ctor_copy_dtor.cc:179
(gdb) up 8
#8  0x11c6c in test01 () at ctor_copy_dtor.cc:94
94          std::string str03(str_lit01, csz01 - 1);

Anthony

- ----- Original Message -----
From: Benjamin Kosnik <bkoz@cygnus.com>
To: <libstdc++@sourceware.cygnus.com>
Sent: 11 May 2000 02:02
Subject: minimal example of string_ctor core


>
> Can somebody provide me with this? FWIW, I don't see this behavior
> on Solaris2.6.
>
- -benjamin

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.1 for non-commercial use <http://www.pgp.com>

iQA/AwUBORqR3Zvw+P4cG5rVEQIF+ACg/QjBL/IQtwxSMWHwJnRSQ0hyJswAoKZw
7joc3VAReGEDi9tw/8P7kziF
=MmFR
-----END PGP SIGNATURE-----



__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]