From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30230 invoked by alias); 1 Aug 2013 04:52:56 -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 Received: (qmail 30163 invoked by uid 48); 1 Aug 2013 04:52:52 -0000 From: "bar at mariadb dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/58039] New: -ftree-vectorizer make a loop crash on non-aligned memory Date: Thu, 01 Aug 2013 04:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: bar at mariadb dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-08/txt/msg00002.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D58039 Bug ID: 58039 Summary: -ftree-vectorizer make a loop crash on non-aligned memory Product: gcc Version: unknown Status: UNCONFIRMED Severity: major Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: bar at mariadb dot org Created attachment 30578 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D30578&action=3Dedit The program that repeats the report crash If I compile the attached program using: gcc -Wall -O2 -fno-inline -ftree-vectorize -ftree-vectorizer-verbose=3D2 a.c it crashes with "segmentation fault". $ gcc --version gcc (GCC) 4.7.2 20120921 (Red Hat 4.7.2-2) Processor: Intel=C2=AE Core=E2=84=A2 i7-3520M CPU @ 2.90GHz =C3=97 4 The program is a minimal extract from the MariaDB-10.0 sources that reproduces the crash. The GCC flags that are actually used in the debug build of MariaDB are: gcc -Wall -O3 -fno-inline a.c but after tracking it down we noticed that the actually reason is -ftree-vectorize. >>From gcc-bugs-return-427079-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 01 05:18:35 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28569 invoked by alias); 1 Aug 2013 05:18:35 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 28481 invoked by uid 48); 1 Aug 2013 05:18:31 -0000 From: "bar at mariadb dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/58039] -ftree-vectorizer make a loop crash on non-aligned memory Date: Thu, 01 Aug 2013 05:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.7.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: bar at mariadb dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-08/txt/msg00003.txt.bz2 Content-length: 225 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58039 --- Comment #1 from Alexander Barkov --- The bug is known to repeat on the following operating systems: - Fedora 17 - Ubuntu 13.04 - OpenSUSE 11.1