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 packages | Assignee: | 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 |
Created attachment 875405 [details]
emerge --info
Created attachment 875407 [details]
gdb backtrace
Created attachment 875408 [details]
valgrind output
|
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.