This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/32893] zlib segfault in inflate_table() compiled w/ -O -msse2 ftree-vectorize
- From: "dorit at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Sep 2007 14:28:53 -0000
- Subject: [Bug target/32893] zlib segfault in inflate_table() compiled w/ -O -msse2 ftree-vectorize
- References: <bug-32893-10406@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from dorit at gcc dot gnu dot org 2007-09-19 14:28 -------
(In reply to comment #6)
> It looks like
> zlib compiled w/ -O -msse -ftree-vectorize (built with fedora's rpm package
> gcc-4.1.2-17)
> has same problem.
> In my environment, rpm-4.4.2.1-7.fc8 and seamonkey-1.1.3-6.fc8 segfault like
> below:
> Program received signal SIGSEGV, Segmentation fault.
> 0x003a869d in inflate_table (type=CODES, lens=0x913b5c8, codes=19,
> table=0x913b5c4, bits=0x913b5ac, work=0x913b848) at inftrees.c:108
> 108 count[len] = 0;
could you please provide a complete (reduced...) testcase that could be used to
reproduce this?
In the meantime, other things that may help:
- could you please try to add "__attribute__ ((__aligned__(16)))" to the
definition of count, as suggested in comment 5?
- could you please show the relevant generated assembly up to the offending
insn? (with and without the attribute aligned)? could you also check (with
gdb) what is the address accessed and what is the address of the stack pointer?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32893