Hello everyone,

I've recently found an interesting bug that only occurs when compiling in 
release mode.

Use of the ZF_LOG library (for normal log output) leads to syscalls being made 
when the capdl-loader runs.
These are invoked via musllibc's __stdio_write, which relies on __sysinfo being 
set correctly for syscalls to
work. When compiling with RELEASE=OFF this works fine, however when compiling 
with RELEASE=ON, __sysinfo is
not set (yet?), and subsequently leads to an illegal prefetch exception when 
__stdio_write tries to invoke
a syscall.

Setting __sysinfo to sel4_vsyscall using gdb during runtime fixes this. I don't 
really know the correct
place to fix this in the code, but I hope that you can provide some hints on 
where to fix this bug.

Thanks a lot for your help!

Cheers,
Ben
_______________________________________________
Devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to