Skip to content
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

win32: add fprintf to grt_save_backtrace #1516

Merged
merged 1 commit into from Nov 21, 2020
Merged

win32: add fprintf to grt_save_backtrace #1516

merged 1 commit into from Nov 21, 2020

Conversation

eine
Copy link
Collaborator

@eine eine commented Nov 19, 2020

Honestly, I don't know how to explain this. Since MSYS2 recipes were modifidied for using clang when building with LLVM backend (#1497), one test has been failing in CI: issue635. It is difficult to debug, because I cannot reproduce locally.

The issue is that the exit code is 3, when it should be 0. I run the test on GDB in CI, and I could confirm that: https://github.com/eine/ghdl/runs/1422980823?check_suite_focus=true#step:8:64. Then, Tristan told me that the issue might be in src/grt/config/win32.c. Hence, I added some printf statements, to see which functions are used. Surprisingly, that fixed the issue. I removed the print statements one by one, until I came to this minimal "fix".

So, adding an empty printf statement to grt_save_backtrace fixes the issue, but I cannot explain why.

@tgingold
Copy link
Member

You should really add a comment to explain why there is a dummy printf.

@eine eine merged commit 7ed5f24 into ghdl:master Nov 21, 2020
@eine eine deleted the fix/win32 branch November 21, 2020 08:56
@eine eine added this to the v1.0 milestone Nov 21, 2020
@eine eine added CI: GitHub Actions Continuous Integration issues related to GitHub Actions (Windows, Linux and MacOS) OS: Windows (MinGW) labels Nov 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: GitHub Actions Continuous Integration issues related to GitHub Actions (Windows, Linux and MacOS) OS: Windows (MinGW)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants