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

Return compiler crash in HTTP response #15

Merged
merged 2 commits into from
Nov 18, 2024
Merged

Return compiler crash in HTTP response #15

merged 2 commits into from
Nov 18, 2024

Conversation

smiasojed
Copy link
Collaborator

Closes paritytech/contract-issues#8
Return compiler crash in HTTP response

case 'SIGABRT':
case null:
// The revive compiler crash
return done(null, this.generateCompilerError(stderr));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about stdout?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though I assume stderr should be sufficient

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

panic!, assert! goes to stderr, what case do you mean?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mainly LLVM assertions, but I just checked they are written to stderr too so we should be good.

@smiasojed smiasojed merged commit f8ef8d4 into main Nov 18, 2024
4 checks passed
@smiasojed smiasojed deleted the logs branch November 18, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remix: propagate compiler backend panics to the frontend
2 participants