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

Do not disable UBSAN when building with Zig #35

Open
Ivan-Velickovic opened this issue Jan 16, 2024 · 0 comments
Open

Do not disable UBSAN when building with Zig #35

Ivan-Velickovic opened this issue Jan 16, 2024 · 0 comments

Comments

@Ivan-Velickovic
Copy link
Collaborator

From the commit message of 66eb855:

Zig enables UBSAN on C code by default and it seems to be creating
weird behaviour. If UB is detected at run-time, the program should
panic by executing a brk instruction in this case (ARM64 and no OS).

It seems that the Microkit event loop is actually doing different
things depending on whether or not UBSAN is on. Specifically, the
seL4_NBSendRecv system call is being made when UBSAN is on, even
though it should never be called in this example code (and is not
called when we turn UBSAN off).

Not sure what's going on, it's still entirely possible that we have
UB in our code. More investigation required.

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

No branches or pull requests

1 participant