Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

tsan ./parrot t/pmc/task

By: a guest on Aug 9th, 2012  |  syntax: None  |  size: 2.41 KB  |  views: 62  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. wget http://build.chromium.org/p/client.tsan/binaries/tsan-r4356-amd64-linux-self-contained.sh
  2. chmod +x tsan-r4356-amd64-linux-self-contained.sh
  3.  
  4. in threads branch:
  5. $ tsan-r4356-amd64-linux-self-contained.sh ./parrot t/pmc/task.t
  6. ==2162== ThreadSanitizer, a data race detector
  7. ==2162== Copyright (C) 2008-2010, and GNU GPL'd, by Google Inc.
  8. ==2162== Using Valgrind-3.8.0.SVN and LibVEX; rerun with -h for copyright info
  9. ==2162== Command: ./parrot t/pmc/task.t
  10. ==2162==
  11. ==2162== ThreadSanitizerValgrind r4356: hybrid=no
  12. ==2162== INFO: Allocating 256Mb (32 * 8M) for Segments.
  13. ==2162== INFO: Will allocate up to 640Mb for 'previous' stack traces.
  14. Valgrind: ignoring NaCl's mmap(84G)
  15. Valgrind: ignoring NaCl's mmap(84G)
  16. Valgrind: ignoring NaCl's mmap(84G)
  17. 1..6
  18. ok 1 - initialized
  19. ok 2 task1 ran
  20. ok 3 task2 ran
  21. ok 4 sub1 ran
  22. ==2162== INFO: T4 has been created by T0. Use --announce-threads to see the creation stack.
  23. ==2162== INFO: T5 has been created by T0. Use --announce-threads to see the creation stack.
  24. ==2162== WARNING: Possible data race during write of size 4 at 0x6373A60: {{{
  25. ==2162==    T5 (L{}):
  26. ==2162==     #0  reset_runloop_id_counter /usr/src/parrot/threads/src/call/ops.c:155
  27. ==2162==     #1  Parrot_thread_outer_runloop /usr/src/parrot/threads/src/thread.c:317
  28. ==2162==     #2  __asan::AsanThread::ThreadStart /home/rurban/Perl/parrot/threads/parrot
  29. ==2162==   Concurrent write(s) happened at (OR AFTER) these points:
  30. ==2162==    T4 (L{}):
  31. ==2162==     #0  new_runloop_jump_point /usr/src/parrot/threads/src/call/ops.c:191
  32. ==2162==     #1  runops /usr/src/parrot/threads/src/call/ops.c:88
  33. ==2162==     #2  Parrot_pcc_invoke_from_sig_object /usr/src/parrot/threads/src/call/pcc.c:338
  34. ==2162==     #3  Parrot_ext_call /usr/src/parrot/threads/src/extend.c:158
  35. ==2162==     #4  Parrot_Task_invoke /usr/src/parrot/threads/src/pmc/task.c:168
  36. ==2162==     #5  Parrot_pcc_invoke_from_sig_object /usr/src/parrot/threads/src/call/pcc.c:330
  37. ==2162==     #6  Parrot_ext_call /usr/src/parrot/threads/src/extend.c:158
  38. ==2162==     #7  Parrot_cx_next_task /usr/src/parrot/threads/src/scheduler.c:222
  39. ==2162==     #8  Parrot_thread_outer_runloop /usr/src/parrot/threads/src/thread.c:319
  40. ==2162==     #9  __asan::AsanThread::ThreadStart /home/rurban/Perl/parrot/threads/parrot
  41. ==2162==   Address 0x6373A60 is 0 bytes inside data symbol "runloop_id_counter"
  42. ==2162==    Race verifier data: 0x539B6AC,0x539A8AE
  43. ==2162== }}}