From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8796 invoked by alias); 20 Dec 2010 18:00:32 -0000 Received: (qmail 8705 invoked by uid 22791); 20 Dec 2010 18:00:30 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 20 Dec 2010 18:00:21 +0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/44776] FAIL: gcc.dg/matrix/transpose-3.c execution, -fprofile-use -fipa-matrix-reorg -fdump-ipa-matrix-reorg -O3 -fwhole-program X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 20 Dec 2010 18:00:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-12/txt/msg02386.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44776 --- Comment #12 from Zdenek Sojka 2010-12-20 18:00:15 UTC --- Created attachment 22831 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22831 simpler testcase Crashes on x86_64-linux, r168061 $ gcc -O -fipa-matrix-reorg -fwhole-program pr44776-2.c $ ./a.out Segmentation fault With valgrind: $ valgrind -q ./a.out ==16712== Invalid write of size 4 ==16712== at 0x4005BC: main (pr44776-2.c:10) ==16712== Address 0x5186050 is 0 bytes after a block of size 16 alloc'd ==16712== at 0x4C2648E: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==16712== by 0x4005A7: main (pr44776-2.c:13) ==16712== ==16712== Invalid read of size 4 ==16712== at 0x4005F9: main (pr44776-2.c:25) ==16712== Address 0x5186050 is 0 bytes after a block of size 16 alloc'd ==16712== at 0x4C2648E: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==16712== by 0x4005A7: main (pr44776-2.c:13) ==16712== ==16712== Invalid write of size 4 ==16712== at 0x400602: main (pr44776-2.c:27) ==16712== Address 0x5186050 is 0 bytes after a block of size 16 alloc'd ==16712== at 0x4C2648E: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==16712== by 0x4005A7: main (pr44776-2.c:13) ==16712== ==16712== Invalid read of size 4 ==16712== at 0x400629: main (pr44776-2.c:25) ==16712== Address 0x5286040 is not stack'd, malloc'd or (recently) free'd ==16712== ==16712== Invalid write of size 4 ==16712== at 0x40063F: main (pr44776-2.c:27) ==16712== Address 0x5286040 is not stack'd, malloc'd or (recently) free'd ==16712==