This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Doggone it, GC again


And again, it only shows up with specific flags.  This time, -fnew-abi
fixes it.  I think that's just random, though.

Notice that GC happens right before the core dump, and the offending
pointer is overwritten with A5A5A5A5.... That's the GC fingerprint, right?

...
std::_Format_cache<_CharT> *std::_Format_cache<_CharT>::_S_get (std::ios_base &) [with _CharT = __wchar_t]
void std::_Format_cache<_CharT>::_M_populate (std::ios_base &) [with _CharT = __wchar_t]
std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_Tp1> > std::_Numpunct<_CharT>::truename () const [with _CharT = __wchar_t]
std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_Tp1> > std::_Numpunct<_CharT>::truename () const [with _CharT = __wchar_t]
std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_Tp1> > std::_Numpunct<_CharT>::falsename () const [with _CharT = __wchar_t]
std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_Tp1> > std::_Numpunct<_CharT>::falsename () const [with _CharT = __wchar_t] {GC 19151k -> 16430k}
Program received signal SIGSEGV, Segmentation fault.
0x8313e44 in walk_tree (tp=0x4139c220, func=0x831ec10 <expand_call_inline>, 
    data=0xbf7fed14) at ../../SRC/gcc/cp/tree.c:1299
1299                  WALK_SUBTREE (DECL_SIZE (DECL_STMT_DECL (*tp)));
(gdb) print tp
$1 = (tree *) 0x4139c220
(gdb) print *tp
$2 = 0xa5a5a5a5
(gdb) where
#0  0x8313e44 in walk_tree (tp=0x4139c220, 
    func=0x831ec10 <expand_call_inline>, data=0xbf7fed14)
    at ../../SRC/gcc/cp/tree.c:1299
#1  0x8313fca in walk_tree (tp=0xbf7fea5c, 
    func=0x831ec10 <expand_call_inline>, data=0xbf7fed14)
    at ../../SRC/gcc/cp/tree.c:1303
#2  0x831f7f8 in expand_calls_inline (tp=0xbf7fea5c, id=0xbf7fed14)
    at ../../SRC/gcc/cp/optimize.c:795
#3  0x831edf3 in expand_call_inline (tp=0x4137bf90, walk_subtrees=0xbf7fea8c, 
    data=0xbf7fed14) at ../../SRC/gcc/cp/optimize.c:691
#4  0x8313aa1 in walk_tree (tp=0x4137bf90, 
    func=0x831ec10 <expand_call_inline>, data=0xbf7fed14)
    at ../../SRC/gcc/cp/tree.c:1248
#5  0x8313c7a in walk_tree (tp=0x4137b040, 
    func=0x831ec10 <expand_call_inline>, data=0xbf7fed14)
    at ../../SRC/gcc/cp/tree.c:1283
#6  0x8313fca in walk_tree (tp=0x4137a100, 
    func=0x831ec10 <expand_call_inline>, data=0xbf7fed14)
    at ../../SRC/gcc/cp/tree.c:1303
#7  0x8313fca in walk_tree (tp=0x4137a040, 
    func=0x831ec10 <expand_call_inline>, data=0xbf7fed14)
    at ../../SRC/gcc/cp/tree.c:1303
#8  0x8313fca in walk_tree (tp=0x41379360, 
    func=0x831ec10 <expand_call_inline>, data=0xbf7fed14)
    at ../../SRC/gcc/cp/tree.c:1303
#9  0x8313fca in walk_tree (tp=0x41379180, 
    func=0x831ec10 <expand_call_inline>, data=0xbf7fed14)
    at ../../SRC/gcc/cp/tree.c:1303
#10 0x8313fca in walk_tree (tp=0x41378ee0, 
    func=0x831ec10 <expand_call_inline>, data=0xbf7fed14)
    at ../../SRC/gcc/cp/tree.c:1303
#11 0x8313fca in walk_tree (tp=0x41378b00, 
    func=0x831ec10 <expand_call_inline>, data=0xbf7fed14)
    at ../../SRC/gcc/cp/tree.c:1303
#12 0x8313fca in walk_tree (tp=0x41378ac0, 
    func=0x831ec10 <expand_call_inline>, data=0xbf7fed14)
    at ../../SRC/gcc/cp/tree.c:1303
#13 0x8313fca in walk_tree (tp=0x413788c0, 
    func=0x831ec10 <expand_call_inline>, data=0xbf7fed14)
    at ../../SRC/gcc/cp/tree.c:1303
#14 0x8313fca in walk_tree (tp=0x41378860, 
    func=0x831ec10 <expand_call_inline>, data=0xbf7fed14)
    at ../../SRC/gcc/cp/tree.c:1303
#15 0x8313fca in walk_tree (tp=0x41378850, 
    func=0x831ec10 <expand_call_inline>, data=0xbf7fed14)
    at ../../SRC/gcc/cp/tree.c:1303
#16 0x8313c7a in walk_tree (tp=0x413468d4, 
    func=0x831ec10 <expand_call_inline>, data=0xbf7fed14)
    at ../../SRC/gcc/cp/tree.c:1283
#17 0x831f7f8 in expand_calls_inline (tp=0x413468d4, id=0xbf7fed14)
    at ../../SRC/gcc/cp/optimize.c:795
#18 0x831f97f in optimize_function (fn=0x408df200)
    at ../../SRC/gcc/cp/optimize.c:836
#19 0x83107bf in expand_body (fn=0x408df200)
    at ../../SRC/gcc/cp/semantics.c:3090
#20 0x8292976 in instantiate_decl (d=0x408df200, defer_ok=0)
    at ../../SRC/gcc/cp/pt.c:9726
#21 0x8292c28 in instantiate_pending_templates () at ../../SRC/gcc/cp/pt.c:9797
#22 0x82b15ac in finish_file () at ../../SRC/gcc/cp/decl2.c:3657
#23 0x82cd769 in yyparse () at ../../SRC/gcc/cp/parse.y:437
#24 0x804c31c in compile_file (name=0x4010ba70 "operator+")
    at ../SRC/gcc/toplev.c:2289
#25 0x80503fd in main (argc=23, argv=0xbf7ffa44) at ../SRC/gcc/toplev.c:4732
(gdb) 

Preprocessed source attached.
-- 
Chip Salzenberg              - a.k.a. -              <chip@valinux.com>
"I wanted to play hopscotch with the impenetrable mystery of existence,
    but he stepped in a wormhole and had to go in early."  // MST3K

locale-inst.i.gz


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