You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GNU-C lambda expression check failed with -fsanitize=address。
code below is fine with older libasan like in gcc-toolset-12;but new version report a failure
AddressSanitizer:DEADLYSIGNAL
=================================================================
==3577182==ERROR: AddressSanitizer: SEGV on unknown address 0x7fd35ef00034 (pc 0x7fd35ef00034 bp 0x7ffdca514b00 sp 0x7ffdca514ae8 T0)
==3577182==The signal is caused by a READ memory access.
==3577182==Hint: PC is at a non-executable region. Maybe a wild jump?
#0 0x7fd35ef00034 (<unknown module>)
#1 0x5141e0 in main /root/code/test-test/main.c:38
#2 0x7fd360c2958f in __libc_start_call_main (/lib64/libc.so.6+0x2958f) (BuildId: 8c3b90b6dfac32e7e7da24c75b450ef3be7d48da)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (<unknown module>)
==3577182==ABORTING
compile command:
gcc main.c -fsanitize=address -static-libasan -g3
gcc version :
gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
GNU-C lambda expression check failed with -fsanitize=address。
code below is fine with older libasan like in gcc-toolset-12;but new version report a failure
compile command:
gcc version :
source:
The text was updated successfully, but these errors were encountered: