You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently whenever you get an int crash the process goes something like
look at x/1i $pc and see which type of overflow it is (sometimes, it doesn't even have this for some reason and is missing the type..)
go to the source file and the function but have no line or info (:0, compiler-generated-code)
do some hmmm guesswork as to what the issue is (usually easy, not always)
???
and if you fail, the easiest way to continue:
open cbuild
delete this lol:
# ensure no runtime is relied upon
sflags.append(
"-fsanitize-trap=signed-integer-overflow,integer-divide-by-zero"
)
add /usr/lib/clang/18/lib/x86_64-chimera-linux-musl/libclang_rt.ubsan_standalone.a to LDFLAGS in tool_flags or whatever
enjoy your real ubsan report
it would be nice if there was a way to say 'yes please i want to just link ubsan into everything without the trap' (options = ["fullubsan"]), but still with the same -fsanitize arg (i.e. not full ubsan, just the same thing we already pass for int) so it's fewer steps to get some info that doesn't involve manually building the project or needing to guess what tool_flags to pass (without deleting those cbuild lines the list of stuff to pass is impossible to remember)
The text was updated successfully, but these errors were encountered:
currently whenever you get an
int
crash the process goes something likex/1i $pc
and see which type of overflow it is (sometimes, it doesn't even have this for some reason and is missing the type..)and if you fail, the easiest way to continue:
/usr/lib/clang/18/lib/x86_64-chimera-linux-musl/libclang_rt.ubsan_standalone.a
toLDFLAGS
intool_flags
or whateverit would be nice if there was a way to say 'yes please i want to just link ubsan into everything without the trap' (
options = ["fullubsan"]
), but still with the same -fsanitize arg (i.e. not full ubsan, just the same thing we already pass for int) so it's fewer steps to get some info that doesn't involve manually building the project or needing to guess what tool_flags to pass (without deleting those cbuild lines the list of stuff to pass is impossible to remember)The text was updated successfully, but these errors were encountered: