Bug 38553 - [4.3 Regression] Segfault in ggc_set_mark with -maltivec
Summary: [4.3 Regression] Segfault in ggc_set_mark with -maltivec
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.3.2
: P2 normal
Target Milestone: 4.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 37044 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-17 13:51 UTC by Martin Michlmayr
Modified: 2011-06-27 11:39 UTC (History)
3 users (show)

See Also:
Host:
Target: powerpc-linux-gnu
Build:
Known to work: 4.4.0
Known to fail:
Last reconfirmed:


Attachments
Preprocessed source (21.44 KB, application/octet-stream)
2008-12-17 13:53 UTC, Martin Michlmayr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Michlmayr 2008-12-17 13:51:19 UTC
[ forwarded from http://bugs.debian.org/508576 ]

Michael Buesch reported the following segfault with gcc 4.3 on powerpc
with -maltivec.  I confirmed that the bug is still present in 4.3 from SVN
and that it's not present on the trunk.

./xgcc -B. -maltivec --param ggc-min-expand=0 --param ggc-min-heapsize=0 -O3   -c ~/ad_imaadpcm.i
libmpcodecs/ad_imaadpcm.c: In function 'ms_ima_adpcm_decode_block':
libmpcodecs/ad_imaadpcm.c:273: internal compiler error: Segmentation fault
Please submit a full bug report,
Comment 1 Martin Michlmayr 2008-12-17 13:51:37 UTC
Program received signal SIGSEGV, Segmentation fault.
0x1006cda0 in ggc_set_mark (p=0x4) at gcc/ggc-page.c:605
605       return base[L1][L2];
(gdb) where
#0  0x1006cda0 in ggc_set_mark (p=0x4) at gcc/ggc-page.c:605
#1  0x1000b9c8 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:75
#2  0x1000c9a4 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:322
#3  0x1000c2c8 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:356
#4  0x1000c5ec in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:376
#5  0x1000c254 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:338
#6  0x1000bc20 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:497
#7  0x1000c274 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:340
#8  0x1000bc20 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:497
#9  0x1000c264 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:339
#10 0x1000c294 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:342
#11 0x1000c244 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:337
#12 0x1000c944 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:316
#13 0x1018cdd0 in gt_ggc_mx_cgraph_node (x_p=<value optimized out>) at gtype-desc.c:149
#14 0x1018d15c in gt_ggc_m_P11cgraph_node4htab (x_p=<value optimized out>) at gtype-desc.c:1852
#15 0x10179670 in ggc_mark_roots () at gcc/ggc-common.c:117
#16 0x1006d818 in ggc_collect () at gcc/ggc-page.c:1906
#17 0x101cc074 in execute_todo (flags=2) at gcc/passes.c:1013
#18 0x101cc240 in execute_one_pass (pass=0x1072fde8) at gcc/passes.c:1145
#19 0x101cc4c8 in execute_pass_list (pass=0x1072fde8) at gcc/passes.c:1176
#20 0x102988a0 in tree_rest_of_compilation (fndecl=0xef490c80) at gcc/tree-optimize.c:404
#21 0x103c8a38 in cgraph_expand_function (node=0xee992100) at gcc/cgraphunit.c:1166
#22 0x103cac44 in cgraph_optimize () at gcc/cgraphunit.c:1229
#23 0x10014e08 in c_write_global_declarations () at gcc/c-decl.c:8086
#24 0x10258f74 in toplev_main (argc=<value optimized out>, argv=<value optimized out>)
    at gcc/toplev.c:1055
#25 0x1006c920 in main (argc=<value optimized out>, argv=<value optimized out>) at gcc/main.c:35
(gdb)
Comment 2 Martin Michlmayr 2008-12-17 13:51:52 UTC
When I add -fno-tree-vrp, I get:

libmpcodecs/ad_imaadpcm.c:155: internal compiler error: in c_expand_expr, at c-common.c:4543
Comment 3 Martin Michlmayr 2008-12-17 13:53:08 UTC
Created attachment 16916 [details]
Preprocessed source
Comment 4 Andrew Pinski 2008-12-27 14:51:32 UTC
*** Bug 37044 has been marked as a duplicate of this bug. ***
Comment 5 Richard Biener 2009-08-04 12:29:39 UTC
GCC 4.3.4 is being released, adjusting target milestone.
Comment 6 Richard Biener 2010-05-22 18:12:56 UTC
GCC 4.3.5 is being released, adjusting target milestone.
Comment 7 Richard Biener 2011-06-27 11:39:22 UTC
Fixed for 4.4.0.