Skip to content

asan does not work in wine. #96270

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

Open
trcrsired opened this issue Jun 21, 2024 · 3 comments
Open

asan does not work in wine. #96270

trcrsired opened this issue Jun 21, 2024 · 3 comments
Labels
compiler-rt:asan Address sanitizer

Comments

@trcrsired
Copy link

trcrsired commented Jun 21, 2024

$ 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

@EugeneZelenko EugeneZelenko added compiler-rt:asan Address sanitizer and removed new issue labels Jun 21, 2024
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Oct 20, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw,
with the tip of the main branch from llvm-project (x86 and x86_64).
Also another missing instruction visible in the issue 96270.

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Also changes "44 0f b6 1a" to return 4 instead of 5 (MR 111638).

Fixes: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Oct 20, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw,
with the tip of the main branch from llvm-project (x86 and x86_64).
Also another missing instruction visible in the issue 96270.

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Also changes "44 0f b6 1a" to return 4 instead of 5 (MR 111638).

Fixes: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Oct 20, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw,
with the tip of the main branch from llvm-project (x86 and x86_64).
Also another missing instruction visible in the issue 96270.

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Also changes "44 0f b6 1a" to return 4 instead of 5 (MR 111638).

Fixes: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Oct 25, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw,
with the tip of the main branch from llvm-project (x86 and x86_64).
Also another missing instruction visible in the issue 96270.

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Also changes "44 0f b6 1a" to return 4 instead of 5 (MR 111638).

Fixes: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Nov 5, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).
Adds another missing instruction visible in the issue 96270.

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Fixes: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Nov 6, 2024
…ries.

This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).
Adds another missing instruction visible in the issue 96270.

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Fixes: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Nov 7, 2024
…ries.

This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).
Adds another missing instruction visible in the issue 96270.

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Fixes: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Nov 30, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Nov 30, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Nov 30, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Nov 30, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Nov 30, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Nov 30, 2024
…ions.

This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Nov 30, 2024
…ructions.

This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Fixes: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Dec 1, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Dec 1, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Dec 1, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Dec 1, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Dec 1, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Dec 1, 2024
…ions.

This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Dec 1, 2024
…ructions.

This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Fixes: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Dec 1, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Dec 1, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Dec 1, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Dec 1, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Dec 1, 2024
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Jan 21, 2025
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Jan 21, 2025
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
zmodem pushed a commit that referenced this issue Jan 22, 2025
…#123844)

This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.
```
Related: #96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
```
zmodem pushed a commit that referenced this issue Jan 22, 2025
…#123709)

This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

```
Related: #96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
```
github-actions bot pushed a commit to arm/arm-toolchain that referenced this issue Jan 22, 2025
…structions. (#123844)

This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.
```
Related: llvm/llvm-project#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
```
github-actions bot pushed a commit to arm/arm-toolchain that referenced this issue Jan 22, 2025
…structions. (#123709)

This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

```
Related: llvm/llvm-project#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
```
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Jan 22, 2025
This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Jan 22, 2025
…ions.

This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Related: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
zmodem pushed a commit that referenced this issue Jan 27, 2025
…#124006)

This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

```
Related: #96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
```
zmodem pushed a commit that referenced this issue Jan 27, 2025
…ions. (#124011)

This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

```
Related: #96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
```
github-actions bot pushed a commit to arm/arm-toolchain that referenced this issue Jan 27, 2025
…structions. (#124006)

This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

```
Related: llvm/llvm-project#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
```
github-actions bot pushed a commit to arm/arm-toolchain that referenced this issue Jan 27, 2025
…te instructions. (#124011)

This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

```
Related: llvm/llvm-project#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
```
bernhardu added a commit to bernhardu/llvm-project that referenced this issue Jan 27, 2025
…ructions.

This patch adds several instructions seen when trying to run a
executable built with ASan with llvm-mingw.
(x86 and x86_64, using the git tip in llvm-project).

Also includes instructions collected by
Roman Pišl and Eric Pouech in the Wine bug reports below.

Fixes: llvm#96270

Co-authored-by: Roman Pišl <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=50993
                https://bugs.winehq.org/attachment.cgi?id=70233
Co-authored-by: Eric Pouech <[email protected]>
                https://bugs.winehq.org/show_bug.cgi?id=52386
                https://bugs.winehq.org/attachment.cgi?id=71626
@bernhardu
Copy link
Contributor

All "unhandled instruction" shown in the first report should now be supported by GetInstructionSize in
main and release/20.x branches. Chances should be better now to run instrumented binaries in Wine.

@trcrsired
Copy link
Author

what about windows on arm support for asan ubsan and fuzzer?

@bernhardu
Copy link
Contributor

what about windows on arm support for asan ubsan and fuzzer?

This issue seemed to be about x86_64 and "unhandled instruction", so I guess arm support may deserve its own issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler-rt:asan Address sanitizer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants