This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/14376] New: glibc-2.16 strdup Illegal Instruction on sparc64


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]