Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 917788

Summary: app-arch/gzip-1.12-r4 will cause a segmentation fault if compiled with -Wl,--icf=all
Product: Gentoo Linux Reporter: ppw0
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal CC: esigra
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 915000    
Attachments: example file
emerge --info
gdb backtrace
valgrind output

Description ppw0 2023-11-23 05:12:50 UTC
Created attachment 875404 [details]
example file

Steps to reproduce the bug:

 1. be in an x86 (i686) environment (chroot)
 2. use clang+lld as the default compiler
 3. emerge app-arch/gzip with "-Wl,--icf=all" in LDFLAGS
 4. attempt to compress a certain file with gzip

In the described environment, app-arch/gzip-1.12-r4 will cause a segmentation fault in the attempt to compress certain files. Removing "-Wl,--icf=all" will allow the compression to go through. I'm attaching an example file that gzip will fail on.

This happens also with app-arch/gzip-1.13.

And also with -Wl,--icf=safe.
Comment 1 ppw0 2023-11-23 05:13:20 UTC
Created attachment 875405 [details]
emerge --info
Comment 2 ppw0 2023-11-23 06:40:46 UTC
Created attachment 875407 [details]
gdb backtrace
Comment 3 ppw0 2023-11-23 06:41:03 UTC
Created attachment 875408 [details]
valgrind output