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]
Other format: [Raw text]

[Bug target/38981] [4.4 regression] internal compiler error



------- Comment #14 from ebotcazou at gcc dot gnu dot org  2009-02-08 10:26 -------
This is a bug in the qsort implementation on Solaris 8:

Breakpoint 1, sort_coalesce_list (cl=0x1ce4b80)
    at /nile.build/botcazou/gcc-head/src/gcc/tree-ssa-coalesce.c:434
434           qsort (cl->sorted, num, sizeof (coalesce_pair_p), compare_pairs);
(gdb) p cl->sorted
$22 = (coalesce_pair_p *) 0x1cc4e88
(gdb) p num
$23 = 8
(gdb) continue
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x00f1bb00 in compare_pairs (p1=0x1cc4e84, p2=0x1cc4e8c)
    at /nile.build/botcazou/gcc-head/src/gcc/tree-ssa-coalesce.c:318
318       result = (* pp2)->cost - (* pp1)->cost;

i.e. the comparator is invoked on &cl->sorted[-1], which is invalid.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38981


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