Skip to content

Instantly share code, notes, and snippets.

@rkmathi
Created June 28, 2015 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rkmathi/493b118124f21818aea3 to your computer and use it in GitHub Desktop.
Save rkmathi/493b118124f21818aea3 to your computer and use it in GitHub Desktop.
$ sudo dtruss -p70682
$ sudo dtruss -p70682
SYSCALL(args) = return
sigprocmask(0x1, 0x0, 0x7FFF5E37AA60) = 0x0 0
sigaltstack(0x0, 0x7FFF5E37AA50, 0x7FFF5E37AA60) = 0 0
open("./TEXT.txt\0", 0x1000000, 0x1B6) = 7 0
ioctl(0x7, 0x4004667A, 0x7FFF5E37AB5C) = -1 Err#25
ioctl(0x7, 0x40487413, 0x7FFF5E37AB60) = -1 Err#25
sigprocmask(0x1, 0x0, 0x7FFF5E37AB20) = 0x0 0
sigaltstack(0x0, 0x7FFF5E37AB10, 0x7FFF5E37AB20) = 0 0
read(0x7, "this is text file.\n\0", 0x14) = 19 0
sigprocmask(0x1, 0x0, 0x7FFF5E37AB20) = 0x0 0
sigaltstack(0x0, 0x7FFF5E37AB10, 0x7FFF5E37AB20) = 0 0
read(0x7, "\0", 0x1) = 0 0
sigprocmask(0x1, 0x0, 0x7FFF5E37A7A0) = 0x0 0
sigaltstack(0x0, 0x7FFF5E37A790, 0x7FFF5E37A7A0) = 0 0
write(0x1, "this is text file.\n\0", 0x13) = 19 0
sigaction(0x2, 0x7FFF5E37B358, 0x7FFF5E37B380) = 0 0
sigaction(0x2, 0x7FFF5E37B358, 0x7FFF5E37B380) = 0 0
close(0x7) = 0 0
write(0x4, "!\0", 0x1) = 1 0
read(0x3, "!\0", 0x400) = 1 0
read(0x3, "\0", 0x400) = -1 Err#35
read(0x5, "\0", 0x400) = -1 Err#35
__disable_threadsignal(0x1, 0x101AC43D0, 0x400) = 0 0
__semwait_signal(0xE03, 0x0, 0x0) = 0 0
madvise(0x101BAD000, 0x100000, 0x9) = 0 0
thread_selfid(0x0, 0x100000, 0x9) = 1726482 0
thread_selfid(0x101CAD000, 0x5000, 0xA03) = 1726491 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment