Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mold segfaults on aarch64 with -noinhibit-exec #383

Closed
sicherha opened this issue Mar 8, 2022 · 0 comments
Closed

mold segfaults on aarch64 with -noinhibit-exec #383

sicherha opened this issue Mar 8, 2022 · 0 comments

Comments

@sicherha
Copy link
Contributor

sicherha commented Mar 8, 2022

When building mold 1.1.1 for Fedora on aarch64, the noinhibit-exec test case fails because mold itself crashes with a segmentation fault.

Output of the instrumented test case (the last few lines are the relevant ones):

+ CC=gcc
+ CXX=g++
++ basename ./elf/noinhibit-exec.sh .sh
+ testname=noinhibit-exec
Testing noinhibit-exec ... + echo -n 'Testing noinhibit-exec ... '
++ dirname ./elf/noinhibit-exec.sh
+ cd ./elf/../..
++ pwd
+ mold=/builddir/build/BUILD/mold-1.1.1/mold
+ t=out/test/elf/noinhibit-exec
+ mkdir -p out/test/elf/noinhibit-exec
+ cat
+ gcc -o out/test/elf/noinhibit-exec/a.o -c -xc -
+ gcc -B. -o out/test/elf/noinhibit-exec/exe out/test/elf/noinhibit-exec/a.o
+ grep -q 'error: undefined symbol' out/test/elf/noinhibit-exec/log1
+ gcc -B. -o out/test/elf/noinhibit-exec/exe out/test/elf/noinhibit-exec/a.o -Wl,-noinhibit-exec
+ :
+ cat out/test/elf/noinhibit-exec/log1
mold: error: undefined symbol: out/test/elf/noinhibit-exec/a.o: foo
collect2: error: ld returned 1 exit status
+ cat out/test/elf/noinhibit-exec/log2
mold: warning: undefined symbol: out/test/elf/noinhibit-exec/a.o: foo
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
compilation terminated.
@rui314 rui314 closed this as completed in 37f6ef2 Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant