PageRenderTime 51ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/main/helgrind/tests/tc20_verifywrap.stderr.exp

https://bitbucket.org/cyanogenmod/android_external_valgrind
Expect | 238 lines | 176 code | 62 blank | 0 comment | 1 complexity | 9be087b5ed843a51e49618be2c3d86a2 MD5 | raw file
Possible License(s): CC-BY-SA-3.0, GPL-2.0
  1. ------ This is output for >= glibc 2.4 ------
  2. ---------------- pthread_create/join ----------------
  3. ---Thread-Announcement------------------------------------------
  4. Thread #x is the program's root thread
  5. ---Thread-Announcement------------------------------------------
  6. Thread #x was created
  7. ...
  8. by 0x........: pthread_create_WRK (hg_intercepts.c:...)
  9. by 0x........: pthread_create@* (hg_intercepts.c:...)
  10. by 0x........: main (tc20_verifywrap.c:76)
  11. ----------------------------------------------------------------
  12. Possible data race during write of size 2 at 0x........ by thread #x
  13. Locks held: none
  14. at 0x........: main (tc20_verifywrap.c:78)
  15. This conflicts with a previous write of size 2 by thread #x
  16. Locks held: none
  17. at 0x........: racy_child (tc20_verifywrap.c:34)
  18. by 0x........: mythread_wrapper (hg_intercepts.c:...)
  19. ...
  20. Location 0x........ is 0 bytes inside global var "unprotected"
  21. declared at tc20_verifywrap.c:27
  22. ----------------------------------------------------------------
  23. Thread #x's call to pthread_join failed
  24. with error code 35 (EDEADLK: Resource deadlock would occur)
  25. at 0x........: pthread_join_WRK (hg_intercepts.c:...)
  26. by 0x........: pthread_join (hg_intercepts.c:...)
  27. by 0x........: main (tc20_verifywrap.c:83)
  28. ---------------- pthread_mutex_lock et al ----------------
  29. ----------------------------------------------------------------
  30. Thread #x's call to pthread_mutex_init failed
  31. with error code 95 (EOPNOTSUPP: Operation not supported on transport endpoint)
  32. at 0x........: pthread_mutex_init (hg_intercepts.c:...)
  33. by 0x........: main (tc20_verifywrap.c:92)
  34. ----------------------------------------------------------------
  35. Thread #x: pthread_mutex_destroy of a locked mutex
  36. at 0x........: pthread_mutex_destroy (hg_intercepts.c:...)
  37. by 0x........: main (tc20_verifywrap.c:102)
  38. ----------------------------------------------------------------
  39. Thread #x's call to pthread_mutex_destroy failed
  40. with error code 16 (EBUSY: Device or resource busy)
  41. at 0x........: pthread_mutex_destroy (hg_intercepts.c:...)
  42. by 0x........: main (tc20_verifywrap.c:102)
  43. ----------------------------------------------------------------
  44. Thread #x's call to pthread_mutex_lock failed
  45. with error code 22 (EINVAL: Invalid argument)
  46. at 0x........: pthread_mutex_lock (hg_intercepts.c:...)
  47. by 0x........: main (tc20_verifywrap.c:108)
  48. ----------------------------------------------------------------
  49. Thread #x's call to pthread_mutex_trylock failed
  50. with error code 22 (EINVAL: Invalid argument)
  51. at 0x........: pthread_mutex_trylock (hg_intercepts.c:...)
  52. by 0x........: main (tc20_verifywrap.c:116)
  53. ----------------------------------------------------------------
  54. Thread #x's call to pthread_mutex_timedlock failed
  55. with error code 22 (EINVAL: Invalid argument)
  56. at 0x........: pthread_mutex_timedlock (hg_intercepts.c:...)
  57. by 0x........: main (tc20_verifywrap.c:121)
  58. ----------------------------------------------------------------
  59. Thread #x unlocked an invalid lock at 0x........
  60. at 0x........: pthread_mutex_unlock (hg_intercepts.c:...)
  61. by 0x........: main (tc20_verifywrap.c:125)
  62. ----------------------------------------------------------------
  63. Thread #x's call to pthread_mutex_unlock failed
  64. with error code 22 (EINVAL: Invalid argument)
  65. at 0x........: pthread_mutex_unlock (hg_intercepts.c:...)
  66. by 0x........: main (tc20_verifywrap.c:125)
  67. ---------------- pthread_cond_wait et al ----------------
  68. ----------------------------------------------------------------
  69. Thread #x: pthread_cond_{timed}wait called with un-held mutex
  70. at 0x........: pthread_cond_wait_WRK (hg_intercepts.c:...)
  71. by 0x........: pthread_cond_wait@* (hg_intercepts.c:...)
  72. by 0x........: main (tc20_verifywrap.c:147)
  73. ----------------------------------------------------------------
  74. Thread #x's call to pthread_cond_wait failed
  75. with error code 1 (EPERM: Operation not permitted)
  76. at 0x........: pthread_cond_wait_WRK (hg_intercepts.c:...)
  77. by 0x........: pthread_cond_wait@* (hg_intercepts.c:...)
  78. by 0x........: main (tc20_verifywrap.c:147)
  79. ----------------------------------------------------------------
  80. Thread #x: pthread_cond_{signal,broadcast}: dubious: associated lock is not held by any thread
  81. at 0x........: pthread_cond_signal_WRK (hg_intercepts.c:...)
  82. by 0x........: pthread_cond_signal@* (hg_intercepts.c:...)
  83. by 0x........: main (tc20_verifywrap.c:152)
  84. FIXME: can't figure out how to verify wrap of pthread_cond_signal
  85. ----------------------------------------------------------------
  86. Thread #x: pthread_cond_{signal,broadcast}: dubious: associated lock is not held by any thread
  87. at 0x........: pthread_cond_broadcast_WRK (hg_intercepts.c:...)
  88. by 0x........: pthread_cond_broadcast@* (hg_intercepts.c:...)
  89. by 0x........: main (tc20_verifywrap.c:158)
  90. FIXME: can't figure out how to verify wrap of pthread_broadcast_signal
  91. ----------------------------------------------------------------
  92. Thread #x: pthread_cond_{timed}wait called with un-held mutex
  93. at 0x........: pthread_cond_timedwait_WRK (hg_intercepts.c:...)
  94. by 0x........: pthread_cond_timedwait@* (hg_intercepts.c:...)
  95. by 0x........: main (tc20_verifywrap.c:165)
  96. ----------------------------------------------------------------
  97. Thread #x's call to pthread_cond_timedwait failed
  98. with error code 22 (EINVAL: Invalid argument)
  99. at 0x........: pthread_cond_timedwait_WRK (hg_intercepts.c:...)
  100. by 0x........: pthread_cond_timedwait@* (hg_intercepts.c:...)
  101. by 0x........: main (tc20_verifywrap.c:165)
  102. ---------------- pthread_rwlock_* ----------------
  103. ----------------------------------------------------------------
  104. Thread #x unlocked a not-locked lock at 0x........
  105. at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...)
  106. by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...)
  107. by 0x........: main (tc20_verifywrap.c:179)
  108. Lock at 0x........ was first observed
  109. at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...)
  110. by 0x........: pthread_rwlock_init (hg_intercepts.c:...)
  111. by 0x........: main (tc20_verifywrap.c:178)
  112. (1) no error on next line
  113. (2) no error on next line
  114. (3) ERROR on next line
  115. ----------------------------------------------------------------
  116. Thread #x unlocked a not-locked lock at 0x........
  117. at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...)
  118. by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...)
  119. by 0x........: main (tc20_verifywrap.c:196)
  120. Lock at 0x........ was first observed
  121. at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...)
  122. by 0x........: pthread_rwlock_init (hg_intercepts.c:...)
  123. by 0x........: main (tc20_verifywrap.c:186)
  124. (4) no error on next line
  125. (5) no error on next line
  126. (6) no error on next line
  127. (7) no error on next line
  128. (8) ERROR on next line
  129. ----------------------------------------------------------------
  130. Thread #x unlocked a not-locked lock at 0x........
  131. at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...)
  132. by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...)
  133. by 0x........: main (tc20_verifywrap.c:212)
  134. Lock at 0x........ was first observed
  135. at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...)
  136. by 0x........: pthread_rwlock_init (hg_intercepts.c:...)
  137. by 0x........: main (tc20_verifywrap.c:186)
  138. ---------------- sem_* ----------------
  139. ----------------------------------------------------------------
  140. Thread #x's call to sem_init failed
  141. with error code 22 (EINVAL: Invalid argument)
  142. at 0x........: sem_init_WRK (hg_intercepts.c:...)
  143. by 0x........: sem_init@* (hg_intercepts.c:...)
  144. by 0x........: main (tc20_verifywrap.c:228)
  145. FIXME: can't figure out how to verify wrap of sem_destroy
  146. ----------------------------------------------------------------
  147. Thread #x: Bug in libpthread: sem_wait succeeded on semaphore without prior sem_post
  148. at 0x........: sem_wait_WRK (hg_intercepts.c:...)
  149. by 0x........: sem_wait (hg_intercepts.c:...)
  150. by 0x........: main (tc20_verifywrap.c:242)
  151. ----------------------------------------------------------------
  152. Thread #x's call to sem_post failed
  153. with error code 22 (EINVAL: Invalid argument)
  154. at 0x........: sem_post_WRK (hg_intercepts.c:...)
  155. by 0x........: sem_post (hg_intercepts.c:...)
  156. by 0x........: main (tc20_verifywrap.c:245)
  157. FIXME: can't figure out how to verify wrap of sem_post
  158. ------------ dealloc of mem holding locks ------------
  159. ----------------------------------------------------------------
  160. Thread #x: Exiting thread still holds 1 lock
  161. ...
  162. ERROR SUMMARY: 23 errors from 23 contexts (suppressed: 0 from 0)