[CentOS-devel] Segfault on /usr/bin/strip

Mon May 14 13:01:20 UTC 2018
Trevor Hemsley <trevor.hemsley at ntlworld.com>

On 14/05/18 13:43, dacav wrote:
> Hello Centos developers,
>
> After upgrading a Centos7 builder, I started to get a segmentation fault
> when using `install -s`.
>
> As it turned out, this is related tu /usr/bin/strip, which indeed goes
> segfault.
>
> I wasn't able to find this in the redhat bugzilla. Is it a known problem or
> should I report it?
>
> Follows stack trace:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff7afcc55 in section_match (a=0x0, b=b at entry=0x639f18) at elf.c:1236
> 1236	    && a->sh_entsize   == b->sh_entsize
> (gdb) bt
> #0  0x00007ffff7afcc55 in section_match (a=0x0, b=b at entry=0x639f18) at elf.c:1236
> #1  0x00007ffff7afd1ae in find_link (iheader=0x639f18, hint=36, obfd=0x63c030) at elf.c:1252
> #2  0x00007ffff7afd2ca in copy_special_section_fields (ibfd=ibfd at entry=0x639c90, obfd=obfd at entry=0x63c030, iheader=0x63c1f0,
>     oheader=oheader at entry=0x642c70, secnum=secnum at entry=1) at elf.c:1321
> #3  0x00007ffff7afefa6 in _bfd_elf_copy_private_bfd_data (ibfd=0x639c90, obfd=0x63c030) at elf.c:1441
> #4  0x0000000000409d55 in copy_object (ibfd=<optimized out>, obfd=<optimized out>, input_arch=<optimized out>) at objcopy.c:2495
> #5  0x000000000040af6a in copy_file (
>     input_filename=0x7fffffffe51a "esb3008-http-request-router/lib/python2.7/site-packages/_cffi_backend.so",
>     output_filename=output_filename at entry=0x639c40 "esb3008-http-request-router/lib/python2.7/site-packages/stnLASGM",
>     input_target=input_target at entry=0x0, output_target=<optimized out>, output_target at entry=0x0, input_arch=input_arch at entry=0x0)
>     at objcopy.c:2857
> #6  0x0000000000406730 in strip_main (argv=<optimized out>, argc=<optimized out>) at objcopy.c:3719
> #7  main (argc=2, argv=0x7fffffffe288) at objcopy.c:4816
> (gdb)

It's not a problem that I have seen reported before. If you have a
Redhat Developer Subscription then you can use the included RHEL license
to download a RHEL iso and test there to see if it an upstream bug or a
CentOS one.

For more information on the free Red Hat Developer subscription please
see
http://developers.redhat.com/blog/2016/03/31/no-cost-rhel-developer-subscription-now-available/

Trevor