Bug 24978

Summary: [dwz] Segmentation fault for two-files-too-many-dies-2.sh on arm-linux-gnueabihf with binutils trunk and gcc-9 branch
Product: dwz Reporter: Tom de Vries <vries>
Component: defaultAssignee: Nobody <nobody>
Status: RESOLVED WORKSFORME    
Severity: normal CC: doko, dwz, mark
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Attachments: armhf binary
aarch64 binary

Description Tom de Vries 2019-09-07 08:18:07 UTC
https://launchpadlibrarian.net/440622309/buildlog_ubuntu-eoan-armhf.dwz_0.13-1_BUILDING.txt.gz:
....
Segmentation fault (core dumped)
FAIL: /<<PKGBUILDDIR>>/testsuite/dwz.tests/two-files-too-many-dies-2.sh
...
Comment 1 Tom de Vries 2019-09-07 08:19:11 UTC
Doko, is it possible to attach the executable that causes this segmentation fault?
Comment 2 Matthias Klose 2019-09-07 10:53:47 UTC
the segfault was seen on arm-linux-gnueabihf, not aarch64.
Comment 3 Matthias Klose 2019-09-07 10:54:10 UTC
Created attachment 11980 [details]
armhf binary
Comment 4 Matthias Klose 2019-09-07 10:54:31 UTC
Created attachment 11981 [details]
aarch64 binary
Comment 5 Tom de Vries 2019-09-07 12:12:02 UTC
(In reply to Matthias Klose from comment #2)
> the segfault was seen on arm-linux-gnueabihf, not aarch64.

Yeah, sorry, I saw:
...
Kernel version: Linux bos02-arm64-066 4.4.0-161-generic #189-Ubuntu SMP Tue Aug 27 08:12:37 UTC 2019 aarch64
...
and copied that.
Comment 6 Tom de Vries 2019-09-07 16:37:36 UTC
(In reply to Matthias Klose from comment #3)
> Created attachment 11980 [details]
> armhf binary

I've tried this on an AllWinner Ultra Core A80 (Cortex 15/Cortex A7 in big.LITTLE setup), and could not reproduce, either with a locally build dwz or by using the armhf binary itself (it's the dwz-for-test binary, so it's also dwz).

Can you confirm that:
...
$ cp dwz-armhf 1; cp dwz-armhf 2; chmod +x 1; ./1 2
...
reproduces the segfault for you.

If not, can you post the actual dwz binary that segfaults, and the command line?
Comment 7 Tom de Vries 2019-10-13 18:41:46 UTC
(In reply to Matthias Klose from comment #3)
> Created attachment 11980 [details]
> armhf binary

This is the dwz-for-test binary.

Changes are the segfault happens on the hello binary.
Comment 8 Mark Wielaard 2021-02-19 00:01:22 UTC
There doesn't seem to be enough information to replicate this.

Matthias, does this still fail for you?
If so, could you provide a reproducer?
Comment 9 Matthias Klose 2021-02-20 08:37:12 UTC
https://launchpad.net/ubuntu/+source/dwz/0.13+20210219-1/+build/21057283

builds ok, testsuite looks ok, let's close that one.