I just tried to compile the Suse Linux package qemacs-0.3.1-381.2 with the G++ compiler version 4.5 snapshot 20090625. The compiler said
css.c:819:24: warning: cast from pointer to integer of different size gcc: Internal error: Segmentation fault (program cc1) Please submit a full bug report. See <http://gcc.gnu.org/bugs.html> for instructions. Preprocessed source attached. Flag -O3 required. Here is valgrind helping out with a stack backtrace. ==19864== Invalid read of size 4 ==19864== at 0x8897FE: get_constraint_for_ptr_offset (tree-ssa-structalias.c:2877) ==19864== by 0x10000006F: ??? ==19864== by 0x7FFFFFFFFFFFFFFF: ??? ==19864== by 0x87: ??? ==19864== by 0x645537F: ??? ==19864== by 0x7FEFFF92F: ??? ==19864== by 0x5F2C57F: ??? ==19864== Address 0x623b23c is 12 bytes inside a block of size 72 free'd ==19864== at 0x4C257E1: realloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so) ==19864== by 0xC231CC: xrealloc (xmalloc.c:179) ==19864== by 0x9076D6: vec_heap_o_reserve_1 (vec.c:320) ==19864== by 0x889823: get_constraint_for_ptr_offset (tree-ssa-structalias.c:379) ==19864== by 0x10000006F: ??? ==19864== by 0x7FFFFFFFFFFFFFFF: ??? ==19864== by 0x87: ??? ==19864== by 0x645537F: ??? ==19864== by 0x7FEFFF92F: ??? ==19864== by 0x5F2C57F: ??? -- Summary: ice in get_constraint_for_ptr_offset with -O3 Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dcb314 at hotmail dot com GCC host triplet: x86_64-suse-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40570