Skip to content

asan does not work in wine. #96270

@trcrsired

Description

@trcrsired
$ wine clang++ -o construct_fstream_from_syscall construct_fstream_from_syscall.cc -Ofast -std=c++26 -s -flto -march=native -I../../include --sysroot=$WINLLVMSYSROOT -fuse-ld=lld --rtlib=compiler-rt --stdlib=libc++ -lc++abi -lunwind -lntdll -fsanitize=address,undefined
cqwrteur@otsiningo:~/Libraries/fast_io/examples/0007.legacy$ wine ./construct_fstream_from_syscall.exe 
==1344==interception_win: unhandled instruction at 0x6fffffa6c714: 48 8d a4 24 00 00 00 00
==1344==interception_win: unhandled instruction at 0x6fffffa6c714: 48 8d a4 24 00 00 00 00
==1344==interception_win: unhandled instruction at 0x6fffffa6fedc: 48 8d a4 24 00 00 00 00
==1344==interception_win: unhandled instruction at 0x6fffffa6fedc: 48 8d a4 24 00 00 00 00
==1344==interception_win: unhandled instruction at 0x6fffffa6f024: 48 8d a4 24 00 00 00 00
==1344==interception_win: unhandled instruction at 0x6fffffa6f024: 48 8d a4 24 00 00 00 00
==1344==interception_win: unhandled instruction at 0x6ffffeb02070: 48 89 c8 0f b6 d2 48 b9
==1344==interception_win: unhandled instruction at 0x6ffffeb02070: 48 89 c8 0f b6 d2 48 b9
==1344==interception_win: unhandled instruction at 0x6fffffc89280: 48 89 c8 0f b6 d2 48 b9
==1344==interception_win: unhandled instruction at 0x6fffffc89280: 48 89 c8 0f b6 d2 48 b9
==1344==interception_win: unhandled instruction at 0x6ffffeb00370: 80 39 00 74 1b 48 89 c8
==1344==interception_win: unhandled instruction at 0x6ffffeb00370: 80 39 00 74 1b 48 89 c8
==1344==interception_win: unhandled instruction at 0x6fffffc89740: 80 39 00 74 1b 48 89 c8
==1344==interception_win: unhandled instruction at 0x6fffffc89740: 80 39 00 74 1b 48 89 c8
==1344==interception_win: unhandled instruction at 0x6ffffeb003a0: 48 89 d0 48 85 d2 74 1b
==1344==interception_win: unhandled instruction at 0x6ffffeb003a0: 48 89 d0 48 85 d2 74 1b
==1344==interception_win: unhandled instruction at 0x6fffffc899f0: 4c 8d 04 11 48 89 c8 48
==1344==interception_win: unhandled instruction at 0x6fffffc899f0: 4c 8d 04 11 48 89 c8 48
==1344==interception_win: unhandled instruction at 0x6ffffeb021f0: 0f b6 01 84 c0 75 1c eb
==1344==interception_win: unhandled instruction at 0x6ffffeb021f0: 0f b6 01 84 c0 75 1c eb
==1344==interception_win: unhandled instruction at 0x6fffffc895e0: 0f b6 01 84 c0 75 2c eb
==1344==interception_win: unhandled instruction at 0x6fffffc895e0: 0f b6 01 84 c0 75 2c eb
==1344==interception_win: unhandled instruction at 0x6ffffeb02250: 45 31 c9 4d 85 c0 74 41
==1344==interception_win: unhandled instruction at 0x6ffffeb02250: 45 31 c9 4d 85 c0 74 41
==1344==interception_win: unhandled instruction at 0x6fffffc89880: 31 c0 4d 85 c0 74 3d 49
==1344==interception_win: unhandled instruction at 0x6fffffc89880: 31 c0 4d 85 c0 74 3d 49
==1344==interception_win: unhandled instruction at 0x6fffffc89b10: 80 39 00 74 54 66 66 2e
==1344==interception_win: unhandled instruction at 0x6fffffc89b10: 80 39 00 74 54 66 66 2e
==1344==interception_win: unhandled instruction at 0x6ffffeb02160: 48 89 c8 eb 13 66 66 2e
==1344==interception_win: unhandled instruction at 0x6ffffeb02160: 48 89 c8 eb 13 66 66 2e
==1344==interception_win: unhandled instruction at 0x6fffffc895b0: 48 89 c8 eb 13 66 66 2e
==1344==interception_win: unhandled instruction at 0x6fffffc895b0: 48 89 c8 eb 13 66 66 2e
==1344==interception_win: unhandled instruction at 0x6ffffeb02190: 45 31 c0 66 66 2e 0f 1f
==1344==interception_win: unhandled instruction at 0x6ffffeb02190: 45 31 c0 66 66 2e 0f 1f
==1344==interception_win: unhandled instruction at 0x6fffffc89a80: 45 31 c0 66 66 2e 0f 1f
==1344==interception_win: unhandled instruction at 0x6fffffc89a80: 45 31 c0 66 66 2e 0f 1f
==1344==interception_win: unhandled instruction at 0x6ffffeb026d0: 44 0f b6 11 45 84 d2 74
==1344==interception_win: unhandled instruction at 0x6ffffeb026d0: 44 0f b6 11 45 84 d2 74
==1344==interception_win: unhandled instruction at 0x6fffffc89ac0: 44 0f b6 11 45 84 d2 74
==1344==interception_win: unhandled instruction at 0x6fffffc89ac0: 44 0f b6 11 45 84 d2 74
==1344==interception_win: unhandled instruction at 0x6fffffc896e0: 44 0f b6 11 45 84 d2 74
==1344==interception_win: unhandled instruction at 0x6fffffc896e0: 44 0f b6 11 45 84 d2 74
==1344==interception_win: unhandled instruction at 0x6ffffeb02730: 44 0f b6 09 45 84 c9 74
==1344==interception_win: unhandled instruction at 0x6ffffeb02730: 44 0f b6 09 45 84 c9 74
==1344==interception_win: unhandled instruction at 0x6fffffc89a20: 44 0f b6 09 45 84 c9 74
==1344==interception_win: unhandled instruction at 0x6fffffc89a20: 44 0f b6 09 45 84 c9 74
==1344==interception_win: unhandled instruction at 0x6ffffeb021c0: 48 89 c8 4d 85 c0 74 18
==1344==interception_win: unhandled instruction at 0x6ffffeb021c0: 48 89 c8 4d 85 c0 74 18
==1344==interception_win: unhandled instruction at 0x6fffffc89120: 48 89 c8 4d 85 c0 74 18
==1344==interception_win: unhandled instruction at 0x6fffffc89120: 48 89 c8 4d 85 c0 74 18
==1344==interception_win: unhandled instruction at 0x6ffffeb1b9a0: 66 83 39 00 74 22 48 89
==1344==interception_win: unhandled instruction at 0x6ffffeb1b9a0: 66 83 39 00 74 22 48 89
==1344==interception_win: unhandled instruction at 0x6fffffc99840: 66 83 39 00 74 22 48 89
==1344==interception_win: unhandled instruction at 0x6fffffc99840: 66 83 39 00 74 22 48 89
==1344==interception_win: unhandled instruction at 0x6ffffeb1b760: 48 89 d0 48 85 d2 74 2c
==1344==interception_win: unhandled instruction at 0x6ffffeb1b760: 48 89 d0 48 85 d2 74 2c
==1344==interception_win: unhandled instruction at 0x6fffffc99ce0: 48 89 c8 48 85 d2 75 12
==1344==interception_win: unhandled instruction at 0x6fffffc99ce0: 48 89 c8 48 85 d2 75 12
==1344==interception_win: unhandled instruction at 0x6ffffeaffcd0: 80 39 00 48 89 c8 49 89
==1344==interception_win: unhandled instruction at 0x6ffffeaffcd0: 80 39 00 48 89 c8 49 89
==1344==interception_win: unhandled instruction at 0x6fffffc894e0: 80 39 00 48 89 c8 49 89
==1344==interception_win: unhandled instruction at 0x6fffffc894e0: 80 39 00 48 89 c8 49 89
==1344==interception_win: unhandled instruction at 0x6ffffeaffab0: 45 31 c0 48 89 c8 66 2e
==1344==interception_win: unhandled instruction at 0x6ffffeaffab0: 45 31 c0 48 89 c8 66 2e
==1344==interception_win: unhandled instruction at 0x6fffffc89650: 45 31 c0 48 89 c8 66 2e
==1344==interception_win: unhandled instruction at 0x6fffffc89650: 45 31 c0 48 89 c8 66 2e
==1344==interception_win: unhandled instruction at 0x6ffffeaffe60: 80 39 00 48 89 c8 49 89
==1344==interception_win: unhandled instruction at 0x6ffffeaffe60: 80 39 00 48 89 c8 49 89
==1344==interception_win: unhandled instruction at 0x6fffffc89770: 80 39 00 48 89 c8 49 89
==1344==interception_win: unhandled instruction at 0x6fffffc89770: 80 39 00 48 89 c8 49 89
==1344==interception_win: unhandled instruction at 0x6ffffeaff8d0: 45 31 c9 48 89 c8 4d 85
==1344==interception_win: unhandled instruction at 0x6ffffeaff8d0: 45 31 c9 48 89 c8 4d 85
==1344==interception_win: unhandled instruction at 0x6fffffc898e5: 48 89 cb 4d 85 c0 75 23
==1344==interception_win: unhandled instruction at 0x6ffffeafd8c5: 48 89 cb 48 85 c9 74 4b
==1344==interception_win: unhandled instruction at 0x6ffffeb00734: 45 31 c9 31 d2 41 b8 0a
==1344==interception_win: unhandled instruction at 0x6ffffeb00814: 45 31 c9 31 d2 41 b8 0a
==1344==interception_win: unhandled instruction at 0x6ffffeb00880: 45 31 c9 41 b8 0a 00 00
==1344==interception_win: unhandled instruction at 0x6ffffeb00880: 45 31 c9 41 b8 0a 00 00
==1344==interception_win: unhandled instruction at 0x6ffffeb008e4: 45 31 c9 e8 e4 fa ff ff
==1344==interception_win: unhandled instruction at 0x6fffffc8a1f3: 49 89 c9 49 89 d3 41 83
==1344==interception_win: unhandled instruction at 0x6ffffeb006c0: 45 31 c9 e9 08 fd ff ff
==1344==interception_win: unhandled instruction at 0x6ffffeb006c0: 45 31 c9 e9 08 fd ff ff
==1344==interception_win: unhandled instruction at 0x6ffffead5250: 48 8d a4 24 00 00 00 00
==1344==interception_win: unhandled instruction at 0x6ffffead5270: 31 d2 49 89 c8 48 8b 0d
==1344==interception_win: unhandled instruction at 0x6ffffead51c0: 48 8d a4 24 00 00 00 00
==1344==interception_win: unhandled instruction at 0x6ffffead5330: 48 8d a4 24 00 00 00 00
==1344==interception_win: unhandled instruction at 0x6ffffead4de0: 49 89 d0 48 89 ca b9 10
=================================================================
AddressSanitizer: CHECK failed: asan_win.cpp:256 "((tsd_key_inited)) != (0)" (0x0, 0x0) (tid=1348)
    <empty stack>

https://github.com/trcrsired/toolchainbuildscripts/blob/main/llvm/x86_64-windows-gnu.sh

build script is here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions