From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28865 invoked by alias); 29 Oct 2010 15:43:44 -0000 Received: (qmail 28855 invoked by uid 22791); 29 Oct 2010 15:43:43 -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; Fri, 29 Oct 2010 15:43:40 +0000 From: "throctukes 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: throctukes 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" MIME-Version: 1.0 Date: Fri, 29 Oct 2010 15:43: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/msg00183.txt.bz2 Message-ID: <20101029154300.57Bg6Zwi0h1iPRCd7t7cQbna2fmMxppV-RcckOesIbo@z> http://sourceware.org/bugzilla/show_bug.cgi?id=12123 --- Comment #21 from throctukes at gmail dot com 2010-10-29 15:43:28 UTC --- (In reply to comment #18) > We use gcc 4.3 to build glibc in i686-linux, and we use gcc 4.5.1 to build > x86_64-linux, so that may make a difference, and maybe that's why we only saw > the problem in i686-linux. What compiler are you using? > With gcc 4.5.1, strstr_sse42 starts this way: > 130: 48 89 5c 24 d0 mov %rbx,-0x30(%rsp) > 135: 4c 89 6c 24 e8 mov %r13,-0x18(%rsp) > 13a: 48 89 fb mov %rdi,%rbx > 13d: 48 89 6c 24 d8 mov %rbp,-0x28(%rsp) > 142: 4c 89 64 24 e0 mov %r12,-0x20(%rsp) > 147: 49 89 f5 mov %rsi,%r13 > 14a: 4c 89 74 24 f0 mov %r14,-0x10(%rsp) > 14f: 4c 89 7c 24 f8 mov %r15,-0x8(%rsp) > 154: 48 83 ec 58 sub $0x58,%rsp > > So it expects stacks 4w aligned, the default in gcc. If you have problems in > x86_64 about bad alignment on strstr_sse42, you should revise that your code > maintains the stack aligned 4w. I've been using the libc6 from the Ubuntu repositories, but even recompiling glibc from sources with gcc 4.4 and 4.5 makes no difference. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.