Strace
591 posts


imagine debugging something where every test takes nearly 2 days
that’s voyager 1
a command takes ~22 hours to reach it
and another ~22 hours to get a response back
when its memory started failing,
engineers reorganized the code to avoid the damaged parts then sent the patch and waited nearly 2 days to see if it worked.

English

@iamnotnyssa oh that’s neat lol, though it’s not a single value anymore it’s changing each time due to the function call.
you’re using a function call to change the value. mine was about memory mapped hardware doing it.
English

lol version was sloppy wording (sorry). the point isn’t that the same program behaves differently it’s that this expression patternn:
x == 1 && x == 2 && x == 3
is impossible for a stored value, but can be true when each read comes from hardware (via *x).
that distinction is the whole point.
English

spent half a day debugging why gettimeofday() was slower than the work between calls turns out linux maps this thing called the vDSO into every process
some calls like clock_gettime() can run from there instead of doing a syscall
same function, sometimes no kernel switch that’s why they’re way faster

English

@straceX O heard you can hack nasa just by doing cat into a /proc/tcp file
English










