Advertisement
Guest User

Ping strace

a guest
Dec 13th, 2011
182
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. execve("/bin/ping", ["ping", "google.com"], [/* 20 vars */]) = 0
  2. brk(0)                                  = 0x1728000
  3. access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
  4. mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6c170e2000
  5. access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
  6. open("/etc/ld.so.cache", O_RDONLY)      = 3
  7. fstat(3, {st_mode=S_IFREG|0644, st_size=8842, ...}) = 0
  8. mmap(NULL, 8842, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6c170df000
  9. close(3)                                = 0
  10. access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
  11. open("/lib/libc.so.6", O_RDONLY)        = 3
  12. read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\355\1\0\0\0\0\0"..., 832) = 832
  13. fstat(3, {st_mode=S_IFREG|0755, st_size=1432968, ...}) = 0
  14. mmap(NULL, 3541032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6c16b66000
  15. mprotect(0x7f6c16cbe000, 2093056, PROT_NONE) = 0
  16. mmap(0x7f6c16ebd000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x157000) = 0x7f6c16ebd000
  17. mmap(0x7f6c16ec2000, 18472, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f6c16ec2000
  18. close(3)                                = 0
  19. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6c170de000
  20. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6c170dd000
  21. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6c170dc000
  22. arch_prctl(ARCH_SET_FS, 0x7f6c170dd700) = 0
  23. mprotect(0x7f6c16ebd000, 16384, PROT_READ) = 0
  24. mprotect(0x7f6c170e4000, 4096, PROT_READ) = 0
  25. munmap(0x7f6c170df000, 8842)            = 0
  26. socket(PF_INET, SOCK_RAW, IPPROTO_ICMP) = 3
  27. getuid()                                = 0
  28. setuid(0)                               = 0
  29. brk(0)                                  = 0x1728000
  30. brk(0x1749000)                          = 0x1749000
  31. getpid()                                = 1502
  32. open("/etc/resolv.conf", O_RDONLY)      = 4
  33. fstat(4, {st_mode=S_IFREG|0644, st_size=57, ...}) = 0
  34. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6c170e1000
  35. read(4, "domain sit.iitkgp\nsearch sit.iit"..., 4096) = 57
  36. read(4, "", 4096)                       = 0
  37. close(4)                                = 0
  38. munmap(0x7f6c170e1000, 4096)            = 0
  39. stat("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=57, ...}) = 0
  40. open("/etc/resolv.conf", O_RDONLY)      = 4
  41. fstat(4, {st_mode=S_IFREG|0644, st_size=57, ...}) = 0
  42. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6c170e1000
  43. read(4, "domain sit.iitkgp\nsearch sit.iit"..., 4096) = 57
  44. read(4, "", 4096)                       = 0
  45. close(4)                                = 0
  46. munmap(0x7f6c170e1000, 4096)            = 0
  47. socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4
  48. connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
  49. close(4)                                = 0
  50. socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4
  51. connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
  52. close(4)                                = 0
  53. open("/etc/nsswitch.conf", O_RDONLY)    = 4
  54. fstat(4, {st_mode=S_IFREG|0644, st_size=475, ...}) = 0
  55. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6c170e1000
  56. read(4, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 475
  57. read(4, "", 4096)                       = 0
  58. close(4)                                = 0
  59. munmap(0x7f6c170e1000, 4096)            = 0
  60. open("/etc/ld.so.cache", O_RDONLY)      = 4
  61. fstat(4, {st_mode=S_IFREG|0644, st_size=8842, ...}) = 0
  62. mmap(NULL, 8842, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f6c170df000
  63. close(4)                                = 0
  64. access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
  65. open("/lib/libnss_files.so.2", O_RDONLY) = 4
  66. read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p!\0\0\0\0\0\0"..., 832) = 832
  67. fstat(4, {st_mode=S_IFREG|0644, st_size=47616, ...}) = 0
  68. mmap(NULL, 2143624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7f6c1695a000
  69. mprotect(0x7f6c16965000, 2093056, PROT_NONE) = 0
  70. mmap(0x7f6c16b64000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0xa000) = 0x7f6c16b64000
  71. close(4)                                = 0
  72. mprotect(0x7f6c16b64000, 4096, PROT_READ) = 0
  73. munmap(0x7f6c170df000, 8842)            = 0
  74. open("/etc/host.conf", O_RDONLY)        = 4
  75. fstat(4, {st_mode=S_IFREG|0644, st_size=9, ...}) = 0
  76. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6c170e1000
  77. read(4, "multi on\n", 4096)             = 9
  78. read(4, "", 4096)                       = 0
  79. close(4)                                = 0
  80. munmap(0x7f6c170e1000, 4096)            = 0
  81. open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 4
  82. fcntl(4, F_GETFD)                       = 0x1 (flags FD_CLOEXEC)
  83. fstat(4, {st_mode=S_IFREG|0644, st_size=239, ...}) = 0
  84. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6c170e1000
  85. read(4, "127.0.0.1\tlocalhost\n127.0.1.1\tvl"..., 4096) = 239
  86. read(4, "", 4096)                       = 0
  87. close(4)                                = 0
  88. munmap(0x7f6c170e1000, 4096)            = 0
  89. open("/etc/ld.so.cache", O_RDONLY)      = 4
  90. fstat(4, {st_mode=S_IFREG|0644, st_size=8842, ...}) = 0
  91. mmap(NULL, 8842, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f6c170df000
  92. close(4)                                = 0
  93. access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
  94. open("/lib/libnss_dns.so.2", O_RDONLY)  = 4
  95. read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\20\0\0\0\0\0\0"..., 832) = 832
  96. fstat(4, {st_mode=S_IFREG|0644, st_size=22928, ...}) = 0
  97. mmap(NULL, 2117888, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7f6c16754000
  98. mprotect(0x7f6c16759000, 2093056, PROT_NONE) = 0
  99. mmap(0x7f6c16958000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x4000) = 0x7f6c16958000
  100. close(4)                                = 0
  101. access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
  102. open("/lib/libresolv.so.2", O_RDONLY)   = 4
  103. read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3008\0\0\0\0\0\0"..., 832) = 832
  104. fstat(4, {st_mode=S_IFREG|0644, st_size=80712, ...}) = 0
  105. mmap(NULL, 2185864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7f6c1653e000
  106. mprotect(0x7f6c16551000, 2093056, PROT_NONE) = 0
  107. mmap(0x7f6c16750000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x12000) = 0x7f6c16750000
  108. mmap(0x7f6c16752000, 6792, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f6c16752000
  109. close(4)                                = 0
  110. mprotect(0x7f6c16750000, 4096, PROT_READ) = 0
  111. mprotect(0x7f6c16958000, 4096, PROT_READ) = 0
  112. munmap(0x7f6c170df000, 8842)            = 0
  113. stat("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=57, ...}) = 0
  114. socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
  115. connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.14.0.2")}, 16) = 0
  116. poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
  117. sendto(4, "\36\321\1\0\0\1\0\0\0\0\0\0\6google\3com\0\0\1\0\1", 28, MSG_NOSIGNAL, NULL, 0) = 28
  118. poll([{fd=4, events=POLLIN}], 1, 5000)  = 1 ([{fd=4, revents=POLLIN}])
  119. ioctl(4, FIONREAD, [244])               = 0
  120. recvfrom(4, "\36\321\201\200\0\1\0\5\0\4\0\4\6google\3com\0\0\1\0\1\300\f\0\1"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.14.0.2")}, [16]) = 244
  121. close(4)                                = 0
  122. socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
  123. connect(4, {sa_family=AF_INET, sin_port=htons(1025), sin_addr=inet_addr("74.125.236.80")}, 16) = 0
  124. getsockname(4, {sa_family=AF_INET, sin_port=htons(59776), sin_addr=inet_addr("10.14.85.244")}, [16]) = 0
  125. close(4)                                = 0
  126. setsockopt(3, SOL_RAW, ICMP_FILTER, ~(ICMP_ECHOREPLY|ICMP_DEST_UNREACH|ICMP_SOURCE_QUENCH|ICMP_REDIRECT|ICMP_TIME_EXCEEDED|ICMP_PARAMETERPROB), 4) = 0
  127. setsockopt(3, SOL_IP, IP_RECVERR, [1], 4) = 0
  128. setsockopt(3, SOL_SOCKET, SO_SNDBUF, [324], 4) = 0
  129. setsockopt(3, SOL_SOCKET, SO_RCVBUF, [65536], 4) = 0
  130. getsockopt(3, SOL_SOCKET, SO_RCVBUF, [131072], [4]) = 0
  131. fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
  132. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6c170e1000
  133. write(1, "PING google.com (74.125.236.80) "..., 54) = 54
  134. setsockopt(3, SOL_SOCKET, SO_TIMESTAMP, [1], 4) = 0
  135. setsockopt(3, SOL_SOCKET, SO_SNDTIMEO, "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16) = 0
  136. setsockopt(3, SOL_SOCKET, SO_RCVTIMEO, "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16) = 0
  137. rt_sigaction(SIGINT, {0x403b40, [], SA_RESTORER|SA_INTERRUPT, 0x7f6c16b981e0}, NULL, 8) = 0
  138. rt_sigaction(SIGALRM, {0x403b40, [], SA_RESTORER|SA_INTERRUPT, 0x7f6c16b981e0}, NULL, 8) = 0
  139. rt_sigaction(SIGQUIT, {0x403b50, [], SA_RESTORER|SA_INTERRUPT, 0x7f6c16b981e0}, NULL, 8) = 0
  140. ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
  141. ioctl(1, TIOCGWINSZ, {ws_row=36, ws_col=134, ws_xpixel=0, ws_ypixel=0}) = 0
  142. sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("74.125.236.80")}, msg_iov(1)=[{"\10\0\213\323\5\336\0\1\22\237\347N\0\0\0\0\247\214\6\0\0\0\0\0\20\21\22\23\24\25\26\27"..., 64}], msg_controllen=0, msg_flags=0}, 0) = 64
  143. recvmsg(3, 0x7fffb45b6500, 0)           = -1 EAGAIN (Resource temporarily unavailable)
  144. poll([{fd=3, events=POLLIN|POLLERR}], 1, 10) = 0 (Timeout)
  145. sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("74.125.236.80")}, msg_iov(1)=[{"\10\0r\256\5\336\0\2\23\237\347N\0\0\0\0\277\260\6\0\0\0\0\0\20\21\22\23\24\25\26\27"..., 64}], msg_controllen=0, msg_flags=0}, 0) = 64
  146. recvmsg(3, 0x7fffb45b6500, 0)           = -1 EAGAIN (Resource temporarily unavailable)
  147. poll([{fd=3, events=POLLIN|POLLERR}], 1, 10) = 0 (Timeout)
  148. sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("74.125.236.80")}, msg_iov(1)=[{"\10\0007\216\5\336\0\3\24\237\347N\0\0\0\0\371\317\6\0\0\0\0\0\20\21\22\23\24\25\26\27"..., 64}], msg_controllen=0, msg_flags=0}, 0) = 64
  149. recvmsg(3, 0x7fffb45b6500, 0)           = -1 EAGAIN (Resource temporarily unavailable)
  150. poll([{fd=3, events=POLLIN|POLLERR}], 1, 10) = 0 (Timeout)
  151. sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("74.125.236.80")}, msg_iov(1)=[{"\10\0\366m\5\336\0\4\25\237\347N\0\0\0\0009\357\6\0\0\0\0\0\20\21\22\23\24\25\26\27"..., 64}], msg_controllen=0, msg_flags=0}, 0) = 64
  152. recvmsg(3, 0x7fffb45b6500, 0)           = -1 EAGAIN (Resource temporarily unavailable)
  153. poll([{fd=3, events=POLLIN|POLLERR}], 1, 10) = 0 (Timeout)
  154. sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("74.125.236.80")}, msg_iov(1)=[{"\10\0\234M\5\336\0\5\26\237\347N\0\0\0\0\222\16\7\0\0\0\0\0\20\21\22\23\24\25\26\27"..., 64}], msg_controllen=0, msg_flags=0}, 0) = 64
  155. recvmsg(3, 0x7fffb45b6500, 0)           = -1 EAGAIN (Resource temporarily unavailable)
  156. poll([{fd=3, events=POLLIN|POLLERR}], 1, 10) = 0 (Timeout)
  157. sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("74.125.236.80")}, msg_iov(1)=[{"\10\0j-\5\336\0\6\27\237\347N\0\0\0\0\303-\7\0\0\0\0\0\20\21\22\23\24\25\26\27"..., 64}], msg_controllen=0, msg_flags=0}, 0) = 64
  158. recvmsg(3, 0x7fffb45b6500, 0)           = -1 EAGAIN (Resource temporarily unavailable)
  159. poll([{fd=3, events=POLLIN|POLLERR}], 1, 10) = 0 (Timeout)
  160. sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("74.125.236.80")}, msg_iov(1)=[{"\10\0)\r\5\336\0\7\30\237\347N\0\0\0\0\3M\7\0\0\0\0\0\20\21\22\23\24\25\26\27"..., 64}], msg_controllen=0, msg_flags=0}, 0) = 64
  161. recvmsg(3, 0x7fffb45b6500, 0)           = -1 EAGAIN (Resource temporarily unavailable)
  162. poll([{fd=3, events=POLLIN|POLLERR}], 1, 10) = 0 (Timeout)
  163. sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("74.125.236.80")}, msg_iov(1)=[{"\10\0\344\354\5\336\0\10\31\237\347N\0\0\0\0Fl\7\0\0\0\0\0\20\21\22\23\24\25\26\27"..., 64}], msg_controllen=0, msg_flags=0}, 0) = 64
  164. recvmsg(3, 0x7fffb45b6500, 0)           = -1 EAGAIN (Resource temporarily unavailable)
  165. poll([{fd=3, events=POLLIN|POLLERR}], 1, 10) = 0 (Timeout)
  166. sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("74.125.236.80")}, msg_iov(1)=[{"\10\0\217\314\5\336\0\t\32\237\347N\0\0\0\0\232\213\7\0\0\0\0\0\20\21\22\23\24\25\26\27"..., 64}], msg_controllen=0, msg_flags=0}, 0) = 64
  167. recvmsg(3, 0x7fffb45b6500, 0)           = -1 EAGAIN (Resource temporarily unavailable)
  168. poll([{fd=3, events=POLLIN|POLLERR}], 1, 10) = 0 (Timeout)
  169. sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("74.125.236.80")}, msg_iov(1)=[{"\10\0_\254\5\336\0\n\33\237\347N\0\0\0\0\311\252\7\0\0\0\0\0\20\21\22\23\24\25\26\27"..., 64}], msg_controllen=0, msg_flags=0}, 0) = 64
  170. recvmsg(3, 0x7fffb45b6500, 0)           = -1 EINTR (Interrupted system call)
  171. --- SIGINT (Interrupt) @ 0 (0) ---
  172. rt_sigreturn(0x2)                       = -1 EINTR (Interrupted system call)
  173. write(1, "\n", 1)                       = 1
  174. write(1, "--- google.com ping statistics -"..., 35) = 35
  175. write(1, "10 packets transmitted, 0 receiv"..., 66) = 66
  176. write(1, "\n", 1)                       = 1
  177. exit_group(1)                           = ?
  178.  
  179.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement