From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5547 invoked by alias); 17 Sep 2012 21:15:52 -0000 Received: (qmail 5532 invoked by uid 22791); 17 Sep 2012 21:15:51 -0000 X-SWARE-Spam-Status: No, hits=-3.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED,TW_BJ,TW_CP X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 17 Sep 2012 21:15:39 +0000 From: "jengelh at inai dot de" To: glibc-bugs@sources.redhat.com Subject: [Bug libc/14376] glibc-2.16 strdup Illegal Instruction on sparc64 Date: Mon, 17 Sep 2012 21:15:00 -0000 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: jengelh at inai dot de X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: davem at davemloft dot net X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: 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 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: 2012-09/txt/msg00147.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14376 --- Comment #9 from Jan Engelhardt 2012-09-17 21:15:24 UTC --- binutils is 2.22, so objdump output should be accurate. I upgraded to gdb-7.4.50.20120603 now so that it has also used the 2.22 tools during build. (Previously gdb-7.1 was used.) This changes things only minimally. __strdup has become __GI___strdup in gdb printouts, but it still shows a call to _Qp_xtoq@plt+64 rather than memcpy in the disassembly of (__GI___)strdup. But I do not think gdb is at fault here - since the SIGILL also happens without it. It seems as if the resolver is botched. Calling memcpy() from in main() properly executes the memcpy function, i.e. will call __memcpy_niagara1. The problem really only seems to affect references to IFUNCs from within libc.so itself. Login account could be provided, if you would want to have a peek at this. -- 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.