riboseinc / retrace

retrace is a versatile security vulnerability / bug discovery tool through monitoring and modifying the behavior of compiled binaries on Linux, OpenBSD/FreeBSD/NetBSD (shared object) and macOS (dynamic library).
Other
60 stars 19 forks source link

putenv() crashes macOS #388

Closed pablo-mendoza closed 5 years ago

pablo-mendoza commented 5 years ago

If the traced program calls putenv(char *) under retrace it crashes with this stack:

pablo-mendoza commented 5 years ago

openlog() is hanging:

pablo-mendoza commented 5 years ago

Fixed by #389. I had to remove a bit of funcionality (report time as a timestamp rathern than a local time string) as the convertion to localtime in macOS creates all sort of problems. Now all tests seem to be passing in v2 for macOS.