From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26877 invoked by alias); 17 Sep 2012 08:15:50 -0000 Received: (qmail 26855 invoked by uid 22791); 17 Sep 2012 08:15:47 -0000 X-SWARE-Spam-Status: No, hits=-3.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED,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 08:15:35 +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 08: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: Status 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/msg00136.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14376 Jan Engelhardt changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |ASSIGNED --- Comment #4 from Jan Engelhardt 2012-09-17 08:15:17 UTC --- __strdup (s=0x1008e0 "") at strdup.c:40 40 { (gdb) 41 size_t len = strlen (s) + 1; (gdb) n 42 void *new = malloc (len); (gdb) p len $3 = 1 (gdb) n 44 if (new == NULL) (gdb) 47 return (char *) memcpy (new, s, len); (gdb) si 0xfffff80100099f08 47 return (char *) memcpy (new, s, len); (gdb) 0xfffff8010026f4a0 in _Qp_xtoq@plt () from ./libc.so.6 (gdb) disas Dump of assembler code for function _Qp_xtoq@plt: 0xfffff8010026f460 <+0>: b,a 0xfffff8010013a840 <_Qp_xtoq> 0xfffff8010026f464 <+4>: b,a %xcc, 0xfffff8010026f320 0xfffff8010026f468 <+8>: nop 0xfffff8010026f46c <+12>: nop 0xfffff8010026f470 <+16>: nop 0xfffff8010026f474 <+20>: nop 0xfffff8010026f478 <+24>: nop 0xfffff8010026f47c <+28>: nop 0xfffff8010026f480 <+32>: illtrap 0 0xfffff8010026f484 <+36>: illtrap 0x45804 0xfffff8010026f488 <+40>: nop 0xfffff8010026f48c <+44>: nop 0xfffff8010026f490 <+48>: nop 0xfffff8010026f494 <+52>: nop 0xfffff8010026f498 <+56>: nop 0xfffff8010026f49c <+60>: nop => 0xfffff8010026f4a0 <+64>: illtrap 0 0xfffff8010026f4a4 <+68>: illtrap 0xa0b20 0xfffff8010026f4a8 <+72>: nop 0xfffff8010026f4ac <+76>: nop 0xfffff8010026f4b0 <+80>: nop 0xfffff8010026f4b4 <+84>: nop 0xfffff8010026f4b8 <+88>: nop ---Type to continue, or q to quit---q Quit (gdb) si Program received signal SIGILL, Illegal instruction. 0xfffff8010026f4a0 in _Qp_xtoq@plt () from ./libc.so.6 (gdb) -- 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.