From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19402 invoked by alias); 26 Oct 2010 17:22:32 -0000 Received: (qmail 19394 invoked by uid 22791); 26 Oct 2010 17:22:31 -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; Tue, 26 Oct 2010 17:22:24 +0000 From: "hjl.tools 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: hjl.tools 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: Status 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: Tue, 26 Oct 2010 17:22: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/msg00165.txt.bz2 Message-ID: <20101026172200.nyF8y5lLrTs-cqTigyEdnJ2yjcMGXx43IuFXO-vWImk@z> http://sourceware.org/bugzilla/show_bug.cgi?id=12123 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #11 from H.J. Lu 2010-10-26 17:22:06 UTC --- (In reply to comment #10) > I've found that the _init section of glibc 2.12.1 libpthread.so.0 breaks the > stack alignment. See the objdump, and see how the 16-bit alignment comming at > _init is broken calling the functions there listed (push + call = 8 bytes > instead of 16). > > Disassembly of section .init: > > 00004140 <_init>: > 4140: 55 push %ebp > 4141: 89 e5 mov %esp,%ebp > 4143: e8 f8 05 00 00 call 4740 > <__pthread_initialize_minimal> > 4148: e8 43 05 00 00 call 4690 > 414d: e8 1e d6 00 00 call 11770 <__do_global_ctors_aux> > 4152: 5d pop %ebp > 4153: c3 ret > > > But I still don't know what writes that _init there. It comes from nptl/sysdeps/pthread/pt-initfini.c, which is compiled with -mpreferred-stack-boundary=2. -- 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.