Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917788 - app-arch/gzip-1.12-r4 will cause a segmentation fault if compiled with -Wl,--icf=all
Summary: app-arch/gzip-1.12-r4 will cause a segmentation fault if compiled with -Wl,--...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 915000
  Show dependency tree
 
Reported: 2023-11-23 05:12 UTC by ppw0
Modified: 2023-11-23 21:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
example file (ANSI_X3.110-1983,21.74 KB, text/plain)
2023-11-23 05:12 UTC, ppw0
Details
emerge --info (emerge_info.log,6.12 KB, text/x-log)
2023-11-23 05:13 UTC, ppw0
Details
gdb backtrace (gdb.log,1.34 KB, text/x-log)
2023-11-23 06:40 UTC, ppw0
Details
valgrind output (valgrind.log,1.61 KB, text/x-log)
2023-11-23 06:41 UTC, ppw0
Details

Note You need to log in before you can comment on or make changes to this bug.
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