Skip to content

Zig fails to report error traces under wine #23660

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
IntegratedQuantum opened this issue Apr 26, 2025 · 1 comment
Open

Zig fails to report error traces under wine #23660

IntegratedQuantum opened this issue Apr 26, 2025 · 1 comment
Labels
bug Observed behavior contradicts documented or intended behavior

Comments

@IntegratedQuantum
Copy link
Contributor

Zig Version

0.14.0

Steps to Reproduce and Observed Behavior

pub fn main() !void {
	return error.Test;
}

Put this in a file test.zig and for windows and run it with wine:

$ zig build-exe test.zig -target x86_64-windows-gnu
$ wine test
error: Test
Unable to dump stack trace: Unexpected

It fails with error.Unexpected
This might be related to #19353 (comment)

Expected Behavior

It should print a trace, which works fine on the host:

$ zig run test.zig
error: Test
/home/mint/Desktop/test.zig:2:2: 0x10ddf18 in main (test)
 return error.Test;
 ^
@IntegratedQuantum IntegratedQuantum added the bug Observed behavior contradicts documented or intended behavior label Apr 26, 2025
@alexrp
Copy link
Member

alexrp commented Apr 26, 2025

cc #22492

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

2 participants