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 dynamic-link/20019] NULL pointer dereference in libc.so.6 IFUNC due to uninitialized GOT


https://sourceware.org/bugzilla/show_bug.cgi?id=20019

--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> ---
elf/reldep6 also fails with BIND_NOW:

[hjl@gnu-6 build-x86_64-linux]$ ./elf/reldep6
[hjl@gnu-6 build-x86_64-linux]$ LD_BIND_NOW=1 ./elf/reldep6
Segmentation fault
[hjl@gnu-6 build-x86_64-linux]$ gdb ./elf/reldep6
GNU gdb (GDB) Fedora 7.11.1-75.fc24
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 "x86_64-redhat-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 ./elf/reldep6...done.
(gdb) set env LD_BIND_NOW=1
(gdb) r
Starting program: /export/build/gnu/glibc/build-x86_64-linux/elf/reldep6 

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007ffff7232709 in baz () at reldep6mod1.c:13
#2  0x00000000004009b6 in main () at reldep6.c:57
(gdb) f 1
#1  0x00007ffff7232709 in baz () at reldep6mod1.c:13
13        return weak () + 1;
(gdb)

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