public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/14376] New: glibc-2.16 strdup Illegal Instruction on sparc64
@ 2012-07-20 10:25 jengelh at medozas dot de
  2012-07-20 10:26 ` [Bug libc/14376] " jengelh at medozas dot de
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: jengelh at medozas dot de @ 2012-07-20 10:25 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14376

             Bug #: 14376
           Summary: glibc-2.16 strdup Illegal Instruction on sparc64
           Product: glibc
           Version: 2.16
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jengelh@medozas.de
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


With glibc-2.16-75f0d3040a2c.tar.xz (openSUSE provided copy in
openSUSE:Factory:Staging:Glibc/glibc), strdup has a problem. (This did not
exist in glibc-2.16-75f0d3040a2c.tar.xz.

Mini-case:

ares:~/rpmbuild/BUILD/glibc-2.16/cc-base> cat strdup.c 
#include <string.h>

int main(void)
{
        strdup("foo");
        return 0;
}
ares:~/rpmbuild/BUILD/glibc-2.16/cc-base> gcc-4.7 strdup.c -o strdup -Wall
ares:~/rpmbuild/BUILD/glibc-2.16/cc-base> ./strdup
ares:~/rpmbuild/BUILD/glibc-2.16/cc-base> LC_ALL=C LANGUAGE=C
/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/elf/ld.so --library-path
/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/math:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/elf:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/dlfcn:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/nss:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/nis:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/rt:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/resolv:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/crypt:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/nptl
./strdup
Illegal instruction (core dumped)

I currently have no means to run gdb either when ld-2.16.so is use as interp
because of some weirdo error.


ares:~/rpmbuild/BUILD/glibc-2.16/cc-base> gdb elf/ld.so
seCould not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "<string>", line 27, in <module>
ImportError: No module named os.path
GNU gdb (GDB) SUSE (7.1-4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "sparc64-suse-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/elf/ld.so...done.
(gdb) set environment LD_LIBRARY_PATH
/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/math:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/elf:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/dlfcn:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/nss:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/nis:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/rt:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/resolv:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/crypt:/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/nptl
(gdb) r
Starting program: /home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/elf/ld.so
/bin/bash: error while loading shared libraries:
/home/abuild/rpmbuild/BUILD/glibc-2.16/cc-base/libc.so.6: unexpected reloc type
0xf8
During startup program exited with code 127.

-- 
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.


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2014-06-17 18:57 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-20 10:25 [Bug libc/14376] New: glibc-2.16 strdup Illegal Instruction on sparc64 jengelh at medozas dot de
2012-07-20 10:26 ` [Bug libc/14376] " jengelh at medozas dot de
2012-07-20 10:35 ` aj at suse dot de
2012-07-20 10:43 ` aj at suse dot de
2012-07-24  1:38 ` davem at davemloft dot net
2012-07-24  1:43 ` carlos_odonell at mentor dot com
2012-09-17  8:15 ` jengelh at inai dot de
2012-09-17  8:24 ` jengelh at inai dot de
2012-09-17  9:58 ` jengelh at inai dot de
2012-09-17 16:18 ` davem at davemloft dot net
2012-09-17 16:29 ` davem at davemloft dot net
2012-09-17 21:15 ` jengelh at inai dot de
2012-09-28  4:25 ` davem at davemloft dot net
2012-09-28  7:01 ` jengelh at inai dot de
2012-09-28  7:20 ` davem at davemloft dot net
2014-06-17 18:57 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).