[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#882874: glibc 2.25 FTBFS on ia64



Source: glibc
Version: 2.25
Severity: normal

Dear Maintainer,
When trying to build glibc 2.25 under ia64, ld.so does not build properly,
and produces a segmentation fault immediately upon execution.

The following backtrace is common to every combination of toolchain part and compilation flag I've tried:

GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 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 "ia64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./ld.so...done.
(gdb) run
Starting program: /root/sid/glibc-2.25/build-tree/ia64-libc/elf/ld.so
Failed to read a valid object file image from memory.

Program received signal SIGSEGV, Segmentation fault.
make_fdesc (gp=2305843043573611080, ip=<optimized out>) at dl-fptr.c:127
127           old = root->first_unused;
(gdb) bt
#0  make_fdesc (gp=2305843043573611080, ip=<optimized out>) at dl-fptr.c:127
#1  _dl_make_fptr (map=0x20000008000553a8 <_rtld_local+2448>, sym=0x2000000800000540, ip=2305843043573579456) at dl-fptr.c:243
#2  0x2000000800004440 in elf_machine_rela (skip_ifunc=0, reloc_addr_arg=0x2000000800050640 <_rtld_local_ro+208>,
    version=<optimized out>, sym=0x2000000800000540, reloc=0x2000000800000f68, map=0x20000008000553a8 <_rtld_local+2448>)
    at ../sysdeps/ia64/dl-machine.h:432
#3  elf_dynamic_do_Rela (skip_ifunc=0, lazy=0, nrelative=<optimized out>, relsize=<optimized out>, reladdr=<optimized out>,
    map=0x20000008000553a8 <_rtld_local+2448>) at do-rel.h:137
#4  _dl_start (arg=0x60000fffffffb670) at rtld.c:502
#5  0x2000000800001990 in _start ()
(gdb)

It appears that local->root is set to NULL at execution time, even before any instructions are set.

I have tried binutils (2.25, 2.28, 2.29.1) and gcc 6.4.0 and 7.2.0.


-- System Information:
Debian Release: buster/sid
Architecture: ia64

Kernel: Linux 3.2.0-4-mckinley (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


Reply to: