Skip to content

Conversation

qianxichen233
Copy link
Contributor

This PR is splited from PR #164

This PR focuses on spliting out the temporary debug solution for glibc fatal. Previously, when glibc crushes, there is no debug information getting printed out, which is pretty inconvenient. The reason behind it is that the libc_assert_fail and malloc_printerr function in glibc is not working correctly. This PR provides an temporary solution to have the error message directly passed to wasmtime to print the error

@rennergade rennergade changed the title fix migration - glibc/wasmtime - libc fatal debug glibc/wasmtime - libc fatal debug workaround Aug 20, 2025
@rennergade
Copy link
Contributor

this needs to pass the linter, we may also want to discuss if this is what we want to do here but also this PR is less essential than the others in blocking progress.

Copy link
Member

@Yaxuan-w Yaxuan-w left a comment

Choose a reason for hiding this comment

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

Should be great to have documentations that explain the mechanism and usage. Thanks

__libc_message ("Fatal glibc error: %s:%s (%s): assertion failed: %s\n",
file, linestr, function, assertion);
#endif
}
Copy link
Member

Choose a reason for hiding this comment

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

Add new line

* c-basic-offset: 2
* End:
*/
*/
Copy link
Member

Choose a reason for hiding this comment

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

Add new line

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.

3 participants