rodney@allegheny:~/proj/util/m3/ordsets/src$ gdb -d ~/proj/m3/cm3-new/cm3/m3-sys/m3cc/gcc/gcc /usr/local/cm3/bin/cm3cg ../AMD64_LINUX/core
GNU gdb 6.8-debian
Copyright (C) 2008 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 "x86_64-linux-gnu"...

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libc.so.6...Reading symbols from /usr/lib/debug/lib/libc-2.7.so...done.
done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.7.so...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `/usr/local/cm3//bin/cm3cg -gstabs+ -m64 -fPIC -mno-align-double -funwind-tables'.
Program terminated with signal 11, Segmentation fault.
[New process 7085]
#0  gt_ggc_mx_lang_tree_node (x_p=0x7f3fa9a700a0) at ./gt-m3cg-parse.h:35
35        if (ggc_test_and_set_mark (x))
(gdb) bt
#0  gt_ggc_mx_lang_tree_node (x_p=0x7f3fa9a700a0) at ./gt-m3cg-parse.h:35
#1  0x000000000040ee93 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-m3cg-parse.h:193
#2  0x000000000040ee93 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-m3cg-parse.h:193
#3  0x000000000040ee93 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-m3cg-parse.h:193

Many repetitions

(gdb) frame 261920
#261920 0x000000000040ee93 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-m3cg-parse.h:193
193                   gt_ggc_m_9tree_node ((*x).generic.field_decl.common.common.common.chain);
(gdb) up
#261921 0x000000000040ee93 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-m3cg-parse.h:193
193                   gt_ggc_m_9tree_node ((*x).generic.field_decl.common.common.common.chain);
(gdb)
#261922 0x000000000040eb4f in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-m3cg-parse.h:296
296                   gt_ggc_m_9tree_node ((*x).generic.type.values);
(gdb)
#261923 0x000000000040ea3a in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-m3cg-parse.h:439
439                   gt_ggc_m_9tree_node ((*x).generic.constructor.common.type);
(gdb)
#261924 0x000000000040e591 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-m3cg-parse.h:183
183                   gt_ggc_m_9tree_node ((*x).generic.var_decl.common.common.common.initial);
(gdb)
#261925 0x000000000040e7b5 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-m3cg-parse.h:273
273                   gt_ggc_m_9tree_node ((*x).generic.function_decl.common.common.common.common.common.common.chain);
(gdb)
#261926 0x00000000004e21b5 in gt_ggc_mx_cgraph_node (x_p=<value optimized out>) at gtype-desc.c:162
162           gt_ggc_m_9tree_node ((*x).decl);
(gdb)
#261927 0x00000000004e22d2 in gt_ggc_m_P11cgraph_node4htab (x_p=<value optimized out>) at gtype-desc.c:1867
1867              gt_ggc_m_11cgraph_node ((*x).entries[i0]);
(gdb)
#261928 0x00000000004d3817 in ggc_mark_roots () at ../../gcc/gcc/ggc-common.c:117
117             (*rti->cb)(*(void **)((char *)rti->base + rti->stride * i));
(gdb)
#261929 0x0000000000410a5a in ggc_collect () at ../../gcc/gcc/ggc-page.c:1906
1906      ggc_mark_roots ();
(gdb)
#261930 0x0000000000514cc8 in execute_todo (flags=19) at ../../gcc/gcc/passes.c:1013
1013          ggc_collect ();
(gdb)
#261931 0x0000000000514e8a in execute_one_pass (pass=0xd3a160) at ../../gcc/gcc/passes.c:1144
1144      execute_todo (todo_after | pass->todo_flags_finish);
(gdb)
#261932 0x0000000000514fbc in execute_pass_list (pass=0xd3a160) at ../../gcc/gcc/passes.c:1175
1175          if (execute_one_pass (pass) && pass->sub)
(gdb)
#261933 0x00000000005b6823 in tree_lowering_passes (fn=<value optimized out>)
    at ../../gcc/gcc/tree-optimize.c:359
359       execute_pass_list (all_lowering_passes);
(gdb)
#261934 0x00000000006b8648 in cgraph_lower_function (node=0x7f3faf5d0e00) at ../../gcc/gcc/cgraphunit.c:596
596       tree_lowering_passes (node->decl);
(gdb)
#261935 0x00000000006b92e2 in cgraph_analyze_function (node=0x7f3faf5d0e00) at ../../gcc/gcc/cgraphunit.c:854
854       cgraph_lower_function (node);
(gdb)
#261936 0x00000000006b9bb8 in cgraph_finalize_function (decl=0x7f3faf5c95b0, nested=0 '\0')
    at ../../gcc/gcc/cgraphunit.c:626
626         cgraph_analyze_function (node);
(gdb)
#261937 0x000000000040b4b6 in m3cg_end_unit () at ../../gcc/gcc/m3cg/parse.c:2426
2426        m3_call_indirect (t_void, NULL_TREE);
(gdb)
#261938 0x000000000040b6a6 in m3_parse_file (xx=<value optimized out>) at ../../gcc/gcc/m3cg/parse.c:5216
5216
(gdb)
#261939 0x000000000058413b in toplev_main (argc=<value optimized out>, argv=<value optimized out>)
    at ../../gcc/gcc/toplev.c:1042
1042      lang_hooks.parse_file (set_yydebug);
(gdb)
#261940 0x00007f3faf0d31c4 in __libc_start_main () from /lib/libc.so.6
(gdb)
#261941 0x0000000000402509 in _start ()
Current language:  auto; currently asm
(gdb)

ecute_pass_list (all_lowering_passes);
(gdb)
#261934 0x00000000006b8648 in cgraph_lower_function (node=0x7f3faf5d0e00) at ../../gcc/gcc/cgraphunit.c:596
596       tree_lowering_passes (node->decl);
(gdb)
#261935 0x00000000006b92e2 in cgraph_analyze_function (node=0x7f3faf5d0e00) at ../../gcc/gcc/cgraphunit.c:854
854       cgraph_lower_function (node);
(gdb)
#261936 0x00000000006b9bb8 in cgraph_finalize_function (decl=0x7f3faf5c95b0, nested=0 '\0')
    at ../../gcc/gcc/cgraphunit.c:626
626         cgraph_analyze_function (node);
(gdb)
#261937 0x000000000040b4b6 in m3cg_end_unit () at ../../gcc/gcc/m3cg/parse.c:2426
2426        m3_call_indirect (t_void, NULL_TREE);
(gdb)
#261938 0x000000000040b6a6 in m3_parse_file (xx=<value optimized out>) at ../../gcc/gcc/m3cg/parse.c:5216
5216
(gdb)
#261939 0x000000000058413b in toplev_main (argc=<value optimized out>, argv=<value optimized out>)
    at ../../gcc/gcc/toplev.c:1042
1042      lang_hooks.parse_file (set_yydebug);
(gdb)
#261940 0x00007f3faf0d31c4 in __libc_start_main () from /lib/libc.so.6
(gdb)
#261941 0x0000000000402509 in _start ()
Current language:  auto; currently asm
(gdb) down
#261940 0x00007f3faf0d31c4 in __libc_start_main () from /lib/libc.so.6
(gdb)
#261939 0x000000000058413b in toplev_main (argc=<value optimized out>, argv=<value optimized out>)
    at ../../gcc/gcc/toplev.c:1042
1042      lang_hooks.parse_file (set_yydebug);
Current language:  auto; currently c
(gdb) p argc
$1 = <value optimized out>
(gdb)        
