Advertisement
bossjones

strace of python pi daemon

Aug 13th, 2013
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 10.60 KB | None | 0 0
  1. pi@scarlettpi ~ $ strace -p 12416 | tee -a pi.strace.log 2>&1
  2. Process 12416 attached - interrupt to quit
  3. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, -1) = 1 ([{fd=3, revents=POLLIN}])
  4. read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
  5. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, -1) = 1 ([{fd=3, revents=POLLIN}])
  6. read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
  7. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, -1) = 1 ([{fd=3, revents=POLLIN}])
  8. read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
  9. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, -1) = 1 ([{fd=3, revents=POLLIN}])
  10. read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
  11. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, -1) = 1 ([{fd=3, revents=POLLIN}])
  12. read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
  13. ioctl(7, 0x80044121, 0xbebd764c)        = 0
  14. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  15. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  16. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  17. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  18. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  19. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  20. futex(0x1e47f34, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x1e47f30, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1
  21. futex(0x1e45218, FUTEX_WAKE_PRIVATE, 1) = 1
  22. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  23. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  24. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  25. ioctl(7, 0x80044121, 0xbebd764c)        = 0
  26. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  27. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  28. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  29. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  30. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  31. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  32. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  33. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  34. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  35. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  36. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  37. gettimeofday({1376379565, 54761}, NULL) = 0
  38. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  39. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  40. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  41. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  42. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  43. open("/usr/local/lib/python2.7/dist-packages/pi-0.1.0-py2.7.egg/static/sounds/pi-listening.wav", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
  44. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  45. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  46. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  47. open("/usr/local/lib/python2.7/dist-packages/pi-0.1.0-py2.7.egg/static/sounds/pi-listening.wav", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
  48. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  49. lstat64("/tmp/tmpkTS2Fwpi.wav", 0xbebd73a0) = -1 ENOENT (No such file or directory)
  50. socketpair(PF_FILE, SOCK_STREAM, 0, [19, 20]) = 0
  51. fcntl64(19, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
  52. fcntl64(20, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
  53. brk(0x1f20000)                          = 0x1f20000
  54. socketpair(PF_FILE, SOCK_STREAM, 0, [21, 22]) = 0
  55. fcntl64(21, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
  56. fcntl64(22, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
  57. write(1, "Bossjones Note: Technically we'r"..., 97) = 97
  58. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  59. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  60. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  61. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  62. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  63. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  64. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  65. stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=9184, ...}) = 0
  66. open("/dev/snd/controlC1", O_RDONLY|O_CLOEXEC) = 23
  67. fcntl64(23, F_SETFD, FD_CLOEXEC)        = 0
  68. ioctl(23, UI_DEV_CREATE, 0xbebd6dd4)    = 0
  69. close(23)                               = 0
  70. open("/dev/snd/controlC1", O_RDWR|O_CLOEXEC) = 23
  71. fcntl64(23, F_SETFD, FD_CLOEXEC)        = 0
  72. ioctl(23, USBDEVFS_CONTROL or USBDEVFS_CONTROL32, 0xbebd6f74) = 0
  73. ioctl(23, 0x40045532, 0xbebd6fac)       = 0
  74. open("/dev/snd/pcmC1D0c", O_RDWR|O_NONBLOCK|O_CLOEXEC) = -1 EBUSY (Device or resource busy)
  75. close(23)                               = 0
  76. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  77. open("/tmp/tmpkTS2Fwpi.wav", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 23
  78. fstat64(23, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
  79. mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f6f000
  80. _llseek(23, 0, [0], SEEK_SET)           = 0
  81. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  82. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  83. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  84. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  85. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  86. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  87. stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=9184, ...}) = 0
  88. open("/dev/snd/controlC1", O_RDONLY|O_CLOEXEC) = 24
  89. fcntl64(24, F_SETFD, FD_CLOEXEC)        = 0
  90. ioctl(24, UI_DEV_CREATE, 0xbebd6dd4)    = 0
  91. close(24)                               = 0
  92. open("/dev/snd/controlC1", O_RDWR|O_CLOEXEC) = 24
  93. fcntl64(24, F_SETFD, FD_CLOEXEC)        = 0
  94. ioctl(24, USBDEVFS_CONTROL or USBDEVFS_CONTROL32, 0xbebd6f74) = 0
  95. ioctl(24, 0x40045532, 0xbebd6fac)       = 0
  96. open("/dev/snd/pcmC1D0c", O_RDWR|O_NONBLOCK|O_CLOEXEC) = -1 EBUSY (Device or resource busy)
  97. close(24)                               = 0
  98. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  99. write(1, " * Listening closely...\n", 24) = 24
  100. clock_gettime(CLOCK_MONOTONIC, {355220, 267713756}) = 0
  101. clock_gettime(CLOCK_MONOTONIC, {355220, 268557726}) = 0
  102. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 1 ([{fd=3, revents=POLLIN}])
  103. read(3, "-\0\0\0\0\0\0\0", 16)          = 8
  104. clock_gettime(CLOCK_MONOTONIC, {355220, 273415554}) = 0
  105. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 0 (Timeout)
  106. read(3, 0xbebd828c, 16)                 = -1 EAGAIN (Resource temporarily unavailable)
  107. clock_gettime(CLOCK_MONOTONIC, {355220, 277294417}) = 0
  108. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 0 (Timeout)
  109. clock_gettime(CLOCK_MONOTONIC, {355220, 280380308}) = 0
  110. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 0 (Timeout)
  111. clock_gettime(CLOCK_MONOTONIC, {355220, 282305240}) = 0
  112. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 0 (Timeout)
  113. clock_gettime(CLOCK_MONOTONIC, {355220, 284684156}) = 0
  114. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 0 (Timeout)
  115. clock_gettime(CLOCK_MONOTONIC, {355220, 286915077}) = 0
  116. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 0 (Timeout)
  117. clock_gettime(CLOCK_MONOTONIC, {355220, 290111964}) = 0
  118. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 0 (Timeout)
  119. clock_gettime(CLOCK_MONOTONIC, {355220, 291641910}) = 0
  120. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 0 (Timeout)
  121. clock_gettime(CLOCK_MONOTONIC, {355220, 293437847}) = 0
  122. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 0 (Timeout)
  123. clock_gettime(CLOCK_MONOTONIC, {355220, 295553772}) = 0
  124. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 10705) = 0 (Timeout)
  125. clock_gettime(CLOCK_MONOTONIC, {355231, 13213798}) = 0
  126. write(1, " # cancel False False\n", 22) = 22
  127. write(1, " * Not a word in the past 10 sec"..., 49) = 49
  128. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  129. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  130. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  131. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  132. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  133. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  134. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  135. close(23)                               = 0
  136. munmap(0xb6f6f000, 4096)                = 0
  137. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  138. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  139. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  140. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  141. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  142. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  143. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  144. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  145. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  146. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  147. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  148. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  149. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  150. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  151. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  152. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  153. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  154. gettimeofday({1376379576, 186258}, NULL) = 0
  155. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  156. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  157. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  158. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  159. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  160. open("/usr/local/lib/python2.7/dist-packages/pi-0.1.0-py2.7.egg/static/sounds/pi-cancel.wav", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
  161. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  162. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  163. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  164. open("/usr/local/lib/python2.7/dist-packages/pi-0.1.0-py2.7.egg/static/sounds/pi-cancel.wav", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
  165. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  166. ioctl(7, 0x80044121, 0xbebd7ac4)        = -1 EPIPE (Broken pipe)
  167. futex(0xe78524, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0xe78520, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1
  168. futex(0xe78500, FUTEX_WAKE_PRIVATE, 1)  = 1
  169. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  170. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  171. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  172. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  173. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  174. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  175. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  176. futex(0x1b82fec, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x1b82fe8, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1
  177. futex(0x1ac5618, FUTEX_WAKE_PRIVATE, 1) = 1
  178. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  179. write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
  180. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 1 ([{fd=3, revents=POLLIN}])
  181. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 1 ([{fd=3, revents=POLLIN}])
  182. read(3, "*\0\0\0\0\0\0\0", 16)          = 8
  183. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 0 (Timeout)
  184. read(3, 0xbebd828c, 16)                 = -1 EAGAIN (Resource temporarily unavailable)
  185. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 0 (Timeout)
  186. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 0 (Timeout)
  187. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 0 (Timeout)
  188. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 0 (Timeout)
  189. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 0 (Timeout)
  190. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 0 (Timeout)
  191. poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, -1^C <unfinished ...>
  192. Process 12416 detached
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement