ppc64 runtime relocation issue in glibc

Sanders, Miguel miguel.sanders.external at arcelormittal.com
Wed Mar 2 13:56:40 UTC 2016


Hi guys

I've just compiled Samba 4.3.5 on our Linux ppc64 infrastructure (currently running version 4.2.3) and I'm observing a runtime relocation issue with glibc for all binaries (see stack trace below).
In order to drill down the problem, I've also compiled the following versions and came to the following conclusion
- 4.2.5: no issue
- 4.2.6: issue

I also opened BUG 11605 to address this problem.
Could this be related to BUG 11346 (RELRO protection) ?

# uname -a
Linux genappsmb52 3.0.101-68-ppc64 #1 SMP Tue Dec 1 16:21:37 UTC 2015 (ed01a9f) ppc64 ppc64 ppc64 GNU/Linux

glibc-2.11.3-17.95.2

# /usr/samba/bin/wbinfo
Memory fault

# gdb /usr/samba/bin/wbinfo
(gdb) run
Starting program: /usr/samba/bin/wbinfo

Program received signal SIGSEGV, Segmentation fault.
0x00000fffb7b77220 in ?? ()
(gdb) bt
#0  0x00000fffb7b77220 in ?? ()
#1  0x00000fffb7fd2aac in resolve_ifunc (sym_map=<optimized out>, map=<optimized out>, value=<optimized out>)
    at ../sysdeps/powerpc/powerpc64/dl-machine.h:551
#2  elf_machine_rela (reloc_addr_arg=<optimized out>, version=<optimized out>, sym=0xfffb7aad948, reloc=<optimized out>, map=<optimized out>)
    at ../sysdeps/powerpc/powerpc64/dl-machine.h:587
#3  elf_dynamic_do_rela (lazy=<optimized out>, relsize=<optimized out>, reladdr=<optimized out>, map=<optimized out>) at do-rel.h:120
#4  _dl_relocate_object (scope=0xfffb7e43c58, reloc_mode=0, consider_profiling=-1214247576) at dl-reloc.c:268
#5  0x00000fffb7fc9c4c in dl_main (phdr=<optimized out>, phnum=<optimized out>, user_entry=<optimized out>, auxv=<optimized out>) at rtld.c:2303
#6  0x00000fffb7fdee74 in _dl_sysdep_start (start_argptr=<optimized out>, dl_main=@0xfffb7ffa1e8: 0xfffb7fc8590 <dl_main>) at ../elf/dl-sysdep.c:243
#7  0x00000fffb7fc6d90 in _dl_start_final (arg=0xffffffff340, info=<optimized out>) at rtld.c:336
#8  0x00000fffb7fc7298 in _dl_start (arg=0xffffffff340) at rtld.c:564
#9  0x00000fffb7fc64f0 in ._start () from /lib64/ld64.so.1
(gdb)

--
Met vriendelijke groeten
Best regards

Miguel Sanders
ArcelorMittal Europe – Flat Products – Business Division North

External collaborator | Midrange UNIX
John Kennedylaan 51 B-9042 Gent
T +32 9 347 52 78
E gen-sid-ism-cbi-sig at arcelormittal.com<mailto:gen-sid-ism-cbi-sig at arcelormittal.com>
E miguel.sanders.external at arcelormittal.com<mailto:miguel.sanders.external at arcelormittal.com>


More information about the samba-technical mailing list