From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22554 invoked by alias); 28 Oct 2010 20:10:41 -0000 Received: (qmail 22509 invoked by uid 22791); 28 Oct 2010 20:10:39 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 28 Oct 2010 20:10:37 +0000 From: "viriketo at gmail dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug libc/12123] SIGBUS on strstr_sse42 due to bad alignment X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: viriketo at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Thu, 28 Oct 2010 20:10:00 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2010-10/txt/msg00181.txt.bz2 Message-ID: <20101028201000.lSd_vqSZHzRz5DCN4anLojpr0mh6wndsem0QTgP4TJs@z> http://sourceware.org/bugzilla/show_bug.cgi?id=3D12123 --- Comment #20 from Llu=C3=ADs Batlle 2010-10-= 28 20:10:04 UTC --- (In reply to comment #19) > (In reply to comment #18) > > (In reply to comment #15) > > > strstr.os was compiled with -mpreferred-stack-boundary=3D2 which impl= ies > > > -mincoming-stack-boundary=3D2, so it is a compiler bug if it assumes = bigger > > > alignment. > >=20 > > I see '-mincoming-stack-boundary' appears only in gcc 4.4. Is gcc 4.4 a > > requirement for building glibc? > >=20 > > (In reply to comment #17) > > We use gcc 4.3 to build glibc in i686-linux, and we use gcc 4.5.1 to bu= ild >=20 > You need gcc 4.4 or above to properly align the stack in 32bit. Ok, thank you. I see. I tried building glibc with gcc 4.5.1, and strstr_sse42 starts properly: 1121d0: 55 push %ebp 1121d1: 89 e5 mov %esp,%ebp 1121d3: 83 e4 f0 and $0xfffffff0,%esp Couldn't the configure script check the gcc version? Otherwise gcc 4.3 sile= ntly builds a broken glibc. --=20 Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are on the CC list for the bug.