[strace/strace] printrusage is time64-incompatible (#122)

Rich Felker notifications at github.com
Thu Jan 30 16:14:43 UTC 2020


The `printrusage` code uses the `<sys/resource.h>` `struct rusage` type to print the structure, but this need not match the kernel ABI type used by the syscall, and will not match on 32-bit archs with 64-bit `time_t`.

In this case using `<linux/resource.h>` would not help; it's also using `struct timeval` rather than something that will match the syscall. I'm not sure what the right fix is aside from hard-coding a struct in strace source.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/strace/strace/issues/122
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20200130/9db7f168/attachment.html>


More information about the Strace-devel mailing list