Bug: Empty C file leads to a tr
binary
#1362
Labels
medium severity
Used to report medium severity bugs (e.g. Malfunctioning Features but still useable)
tr
binary
#1362
Contact Details
No response
What happened?
Compiling an empty C file with
cosmocc
results in a binary that doestr
stuff. I would expect it to error, probably. At the very least not be a random utility binary if it's supposed to include the basic tracing stuff anyway. Seems harmless but bizarre and might be related to problems that are more severe, but I lack the knowledge of cosmo to get a grasp on why this might be happening.Running on M2 laptop, macOS 14.7.3
GCC or CLANG, doesn't matter. Running an ftrace tells me that it immediately jumps into the
_tr
function.Asciinema attached because it sounds ridiculous/impossible: https://asciinema.org/a/6DfXd4I990IDKgtB2utq6qxVf
I would debug a little closer but lldb does not work with cosmo binaries it seems (maybe I'm doing something wrong?
Version
cosmocc (GCC) 14.1.0
What operating system are you seeing the problem on?
Mac
Relevant log output
The text was updated successfully, but these errors were encountered: