FS#74783 - [gcc] asan library issue: "does not come first in initial library list"

Attached to Project: Arch Linux
Opened by Neven Sajko (Neven) - Wednesday, 18 May 2022, 05:16 GMT
Last edited by freswa (frederik) - Wednesday, 18 May 2022, 09:58 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To freswa (frederik)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

gcc 12.1.0-2

Steps to reproduce:

$ printf 'auto main() -> int {}' > c.cc
$ g++ -fsanitize=address c.cc
$ ./a.out
==563==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
$
This task depends upon

Closed by  freswa (frederik)
Wednesday, 18 May 2022, 09:58 GMT
Reason for closing:  Works for me
Additional comments about closing:  If you find a different way to repro, feel free to fill a re-open request.
Comment by Neven Sajko (Neven) - Wednesday, 18 May 2022, 05:16 GMT
Clang works fine with asan.
Comment by AK (Andreaskem) - Wednesday, 18 May 2022, 06:01 GMT
I cannot reproduce your issue. Do you have something weird in your LD_LIBRARY_PATH or something?
Comment by freswa (frederik) - Wednesday, 18 May 2022, 09:58 GMT
Same here, can't repro with the cmds above.

Loading...