<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61350>61350</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Failing parallel.ll test with LLVM gold plugin
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
RaitoBezarius
</td>
</tr>
</table>
<pre>
I am packaging LLVM 16.0.0rc4 for [NixOS](https://nixos.org) and I am running into one unique failed test on x86_64 at the moment which is tools/gold/X86/parallel.ll.
More generally, it seems like `LD_PRELOAD=LLVMGold.so` for any non trivial program will make this program crash, more logs are here:
```
Starting program: /nix/store/k2b87dvmz4mbs3d29z9fy18ja874q4nf-bash-interactive-5.1-p16/bin/bash /nix/store/bfbp3ypd9nm3fapz634gvvs738blrl0y-gcc-wrapper-12.2.0/bin/ld.gold
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/nix/store/76l4v99sk83ylfwkz8wmwrm4s8h73rhd-glibc-2.35-224/lib/libthread_db.so.1".
malloc: unknown:0: assertion botched
free: called with unallocated block argument
Aborting...
Program received signal SIGABRT, Aborted.
0x00007ffff7d44bc7 in __pthread_kill_implementation () from /nix/store/9xfad3b5z4y00mzmk2wnn4900q0qmxns-glibc-2.35-224/lib/libc.so.6
(gdb) bt
#0 0x00007ffff7d44bc7 in __pthread_kill_implementation () from /nix/store/9xfad3b5z4y00mzmk2wnn4900q0qmxns-glibc-2.35-224/lib/libc.so.6
#1 0x00007ffff7cf7b46 in raise () from /nix/store/9xfad3b5z4y00mzmk2wnn4900q0qmxns-glibc-2.35-224/lib/libc.so.6
#2 0x00007ffff7ce24b5 in abort () from /nix/store/9xfad3b5z4y00mzmk2wnn4900q0qmxns-glibc-2.35-224/lib/libc.so.6
#3 0x000000000044781d in programming_error ()
#4 0x00000000004b5589 in internal_free.constprop ()
#5 0x00007ffff05e371f in llvm::PassRegistry::registerPass(llvm::PassInfo const&, bool) ()
from /run/user/2024/tmp.7GeZ4sH4uv/llvm-src-16.0.0-rc4/llvm/build/lib/libLLVM-16.so
#6 0x00007ffff4344f1b in initializeScopInlinerPassOnce(llvm::PassRegistry&) ()
from /run/user/2024/tmp.7GeZ4sH4uv/llvm-src-16.0.0-rc4/llvm/build/lib/libLLVM-16.so
#7 0x00007ffff7d48077 in __pthread_once_slow () from /nix/store/9xfad3b5z4y00mzmk2wnn4900q0qmxns-glibc-2.35-224/lib/libc.so.6
#8 0x00007ffff434505d in llvm::initializeScopInlinerPass(llvm::PassRegistry&) ()
from /run/user/2024/tmp.7GeZ4sH4uv/llvm-src-16.0.0-rc4/llvm/build/lib/libLLVM-16.so
#9 0x00007ffff42ec2a9 in polly::initializePollyPasses(llvm::PassRegistry&) ()
from /run/user/2024/tmp.7GeZ4sH4uv/llvm-src-16.0.0-rc4/llvm/build/lib/libLLVM-16.so
#10 0x00007ffff7fcbe1e in call_init () from /nix/store/9xfad3b5z4y00mzmk2wnn4900q0qmxns-glibc-2.35-224/lib/ld-linux-x86-64.so.2
#11 0x00007ffff7fcbf0c in _dl_init () from /nix/store/9xfad3b5z4y00mzmk2wnn4900q0qmxns-glibc-2.35-224/lib/ld-linux-x86-64.so.2
#12 0x00007ffff7fe33da in _dl_start_user () from /nix/store/9xfad3b5z4y00mzmk2wnn4900q0qmxns-glibc-2.35-224/lib/ld-linux-x86-64.so.2
#13 0x0000000000000002 in ?? ()
#14 0x00007fffffffb412 in ?? ()
#15 0x00007fffffffb460 in ?? ()
#16 0x0000000000000000 in ?? ()
```
I wanted to understand if this is something that maintainers have already encountered or whether I should investigate more with debug builds and all.
Thank you in advance!
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMV12P27oR_TX0y8ACRVEffvDDbre-XSC3CZK0KPpikNJI4jVFKiRlr_fXF6R9N_Eubt6axDAEiOJwzjkcDmeE92owiFtS3pPyYSWWMFq3_ShUsPf4LJxa_Era7rx9BDHBLNq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