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

[BUG]: opt-remarks/stack-usage panes can hide compilation error messages #6468

Closed
OfekShilon opened this issue May 11, 2024 · 0 comments · Fixed by #6471
Closed

[BUG]: opt-remarks/stack-usage panes can hide compilation error messages #6468

OfekShilon opened this issue May 11, 2024 · 0 comments · Fixed by #6471
Labels

Comments

@OfekShilon
Copy link
Member

OfekShilon commented May 11, 2024

Describe the bug

Here's a failed compilation with BPF-clang: https://godbolt.org/z/9er5dzxTj
The error message is -

<source>:3:12: error: unsupported dynamic stack allocation
3 |     return alloca(num);
  |            ^
1 error generated.
Compiler returned: 1

As it should be. If, however, you open opt-remarks or stack-usage - the error message reduces to just "Compiler returned: -1" and the asm output begins with:

<Compilation failed: Cannot read properties of undefined (reading 'filter')>

or

<Compilation failed: Unwrap failed, at https://static.ce-cdn.net/main.v47.08ed3e3bbe1ba59de1d1.js:1>

for opt-remarks / stack-usage accordingly.

Steps to reproduce

Expected behavior

Reproduction link

https://godbolt.org/z/EGWfv5oaG

Screenshots

Not applicable

Operating System

No response

Browser version

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant