Skip to content

Instantly share code, notes, and snippets.

@thedarkone
Created November 2, 2012 21:06
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 thedarkone/bc68e3cf3e45f9498db9 to your computer and use it in GitHub Desktop.
Save thedarkone/bc68e3cf3e45f9498db9 to your computer and use it in GitHub Desktop.
Finished in 0.6637280000000001 seconds.
1) Failure:
test_add_remove(TestCacheTorture)
[./test/test_cache_loops.rb:183:in `do_thread_loop'
./test/test_cache_loops.rb:140:in `add_remove'
./test/test_cache_loops.rb:101:in `test_add_remove'
kernel/bootstrap/array.rb:68:in `each'
kernel/bootstrap/array.rb:68:in `each']:
Exception raised:
Class: <RuntimeError>
Message: <"THIS_MIGHT_DEADLOCK">
---Backtrace---
./lib/thread_safe/atomic_reference_cache_backend.rb:391:in `compute_if_absent'
./lib/thread_safe/atomic_reference_cache_backend.rb:203:in `try_to_cas_in_computed'
./lib/thread_safe/atomic_reference_cache_backend.rb:391:in `compute_if_absent'
./lib/thread_safe/cache.rb:54:in `put_if_absent'
./test/test_cache_loops.rb:277:in `_add_remove_loop_inner_multiple_keys'
./test/test_cache_loops.rb:314:in `_add_remove_loop_outer_multiple_keys'
kernel/common/integer.rb:83:in `times'
./test/test_cache_loops.rb:308:in `_add_remove_loop_outer_multiple_keys'
./test/test_cache_loops.rb:262:in `setup_sync_and_start_loop'
./test/test_cache_loops.rb:244:in `run_thread_loop'
kernel/bootstrap/thread18.rb:56:in `__run__'
---------------
2) Failure:
test_add_remove_to_zero(TestCacheTorture)
[./test/test_cache_loops.rb:183:in `do_thread_loop'
./test/test_cache_loops.rb:175:in `add_remove_to_zero'
./test/test_cache_loops.rb:95:in `test_add_remove_to_zero'
kernel/bootstrap/array.rb:68:in `each'
kernel/bootstrap/array.rb:68:in `each']:
Exception raised:
Class: <RuntimeError>
Message: <"THIS_MIGHT_DEADLOCK">
---Backtrace---
./lib/thread_safe/atomic_reference_cache_backend.rb:391:in `compute_if_absent'
./lib/thread_safe/atomic_reference_cache_backend.rb:203:in `try_to_cas_in_computed'
./lib/thread_safe/atomic_reference_cache_backend.rb:391:in `compute_if_absent'
./lib/thread_safe/cache.rb:54:in `put_if_absent'
./test/test_cache_loops.rb:276:in `_add_remove_to_zero_loop_inner_multiple_keys'
./test/test_cache_loops.rb:305:in `_add_remove_to_zero_loop_outer_multiple_keys'
kernel/common/integer.rb:83:in `times'
./test/test_cache_loops.rb:302:in `_add_remove_to_zero_loop_outer_multiple_keys'
./test/test_cache_loops.rb:262:in `setup_sync_and_start_loop'
./test/test_cache_loops.rb:244:in `run_thread_loop'
kernel/bootstrap/thread18.rb:56:in `__run__'
---------------
3) Error:
test_compute_if_absent(TestCacheTorture):
RuntimeError: THIS_MIGHT_DEADLOCK
./lib/thread_safe/atomic_reference_cache_backend.rb:391:in `compute_if_absent'
./lib/thread_safe/atomic_reference_cache_backend.rb:203:in `try_to_cas_in_computed'
./lib/thread_safe/atomic_reference_cache_backend.rb:391:in `compute_if_absent'
./lib/thread_safe/cache.rb:54:in `put_if_absent'
./test/test_cache_loops.rb:276:in `_add_remove_to_zero_loop_inner_multiple_keys'
./test/test_cache_loops.rb:305:in `_add_remove_to_zero_loop_outer_multiple_keys'
kernel/common/integer.rb:83:in `times'
./test/test_cache_loops.rb:302:in `_add_remove_to_zero_loop_outer_multiple_keys'
./test/test_cache_loops.rb:262:in `setup_sync_and_start_loop'
./test/test_cache_loops.rb:244:in `run_thread_loop'
kernel/bootstrap/thread18.rb:56:in `__run__'
4) Error:
test_concurrency(TestCacheTorture):
NoMethodError: undefined method `get' on ThreadSafe::Util::XorShiftRandom (Module)
kernel/delta/kernel.rb:81:in `get (method_missing)'
./lib/thread_safe/atomic_reference_cache_backend.rb:264:in `try_await_lock'
./lib/thread_safe/atomic_reference_cache_backend.rb:703:in `try_await_lock'
./lib/thread_safe/atomic_reference_cache_backend.rb:462:in `get_and_set'
./lib/thread_safe/atomic_reference_cache_backend.rb:382:in `[]='
./test/test_cache_loops.rb:277:in `_concurrency_loop_inner_multiple_keys'
./test/test_cache_loops.rb:309:in `_concurrency_loop_outer_multiple_keys'
kernel/common/integer.rb:83:in `times'
./test/test_cache_loops.rb:306:in `_concurrency_loop_outer_multiple_keys'
./test/test_cache_loops.rb:262:in `setup_sync_and_start_loop'
./test/test_cache_loops.rb:244:in `run_thread_loop'
kernel/bootstrap/thread18.rb:56:in `__run__'
4 tests, 3 assertions, 2 failures, 2 errors
---------------------------------------------
CRASH: A fatal error has occurred.
Backtrace:
0 rbx 0x0000000100041b3c _ZN8rubiniusL12segv_handlerEi + 316
1 libSystem.B.dylib 0x00000001013b4eaa _sigtramp + 26
2 ??? 0x000000000fc093b8 0x0 + 264278968
3 rbx 0x00000001001fd99b _ZN8rubinius16GarbageCollector15walk_call_frameEPNS_9CallFrameEPNS_19AddressDisplacementE + 203
4 rbx 0x000000010015ecc7 _ZN8rubinius2VM7gc_scanEPNS_16GarbageCollectorE + 39
5 rbx 0x00000001001fd71e _ZN8rubinius16GarbageCollector4scanEPNS_13ManagedThreadEb + 222
6 rbx 0x00000001001fbdd6 _ZN8rubinius7BakerGC7collectERNS_6GCDataEPNS_17YoungCollectStatsE + 406
7 rbx 0x00000001001179ca _ZN8rubinius12ObjectMemory13collect_youngERNS_6GCDataEPNS_17YoungCollectStatsE + 74
8 rbx 0x000000010011b4a5 _ZN8rubinius12ObjectMemory13collect_maybeEPNS_5StateERNS_11GCTokenImplEPNS_9CallFrameE + 597
9 rbx 0x000000010015ed37 _ZN8rubinius2VM13collect_maybeERNS_11GCTokenImplEPNS_9CallFrameE + 55
10 rbx 0x000000010016ab83 _ZN8rubinius12_GLOBAL__N_115allocate_packedEPNS_5StateERNS_11GCTokenImplEPNS_5ClassEPNS_9CallFrameE + 499
11 rbx 0x000000010016b251 _ZN8rubinius5Class8allocateEPNS_5StateERNS_11GCTokenImplEPNS_9CallFrameE + 353
12 rbx 0x00000001000ecaab _ZN8rubinius10Primitives14class_allocateEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 267
13 rbx 0x0000000100073c51 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15985
14 rbx 0x00000001000be0bf _ZN8rubinius11MachineCode19execute_specializedINS_14FixedArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 575
15 rbx 0x0000000100073c51 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15985
16 rbx 0x00000001000bf4f6 _ZN8rubinius11MachineCode19execute_specializedINS_12TwoArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 534
17 rbx 0x0000000100073c51 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15985
18 rbx 0x00000001000bf4f6 _ZN8rubinius11MachineCode19execute_specializedINS_12TwoArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 534
19 rbx 0x0000000100073c51 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15985
20 rbx 0x00000001000be0bf _ZN8rubinius11MachineCode19execute_specializedINS_14FixedArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 575
21 rbx 0x0000000100073c51 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15985
22 rbx 0x0000000100167036 _ZN8rubinius16BlockEnvironment19execute_interpreterEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 662
23 rbx 0x0000000100167781 _ZN8rubinius16BlockEnvironment6invokeEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 145
24 rbx 0x00000001001678a4 _ZN8rubinius16BlockEnvironment4callEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsEi + 68
25 rbx 0x000000010025ab7b rbx_yield_stack + 251
26 ??? 0x000000010373528f 0x0 + 4352856719
27 rbx 0x00000001000739d5 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15349
28 rbx 0x00000001000bf07f _ZN8rubinius11MachineCode19execute_specializedINS_14ThreeArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 543
29 rbx 0x0000000100198590 _ZN8rubinius6Object9send_primEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsEPNS_6SymbolE + 192
30 rbx 0x000000010019866c _ZN8rubinius6Object17private_send_primEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 28
31 rbx 0x00000001000cf5ae _ZN8rubinius10Primitives11object_sendEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 126
32 rbx 0x0000000100073c51 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15985
33 rbx 0x00000001000be0bf _ZN8rubinius11MachineCode19execute_specializedINS_14FixedArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 575
34 rbx 0x0000000100073c51 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15985
35 rbx 0x0000000100167036 _ZN8rubinius16BlockEnvironment19execute_interpreterEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 662
36 rbx 0x0000000100167781 _ZN8rubinius16BlockEnvironment6invokeEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 145
37 rbx 0x00000001001678a4 _ZN8rubinius16BlockEnvironment4callEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsEi + 68
38 rbx 0x00000001001b9de5 _ZN8rubinius4Proc4callEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 709
39 rbx 0x00000001000ffa32 _ZN8rubinius10Primitives9proc_callEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 210
40 rbx 0x0000000100073b45 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15717
41 rbx 0x00000001000be506 _ZN8rubinius11MachineCode19execute_specializedINS_11NoArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 502
42 rbx 0x0000000100197bcc _ZN8rubinius6Object4sendEPNS_5StateEPNS_9CallFrameEPNS_6SymbolEb + 140
43 rbx 0x00000001001ca661 _ZN8rubinius6Thread13in_new_threadEPv + 801
44 libSystem.B.dylib 0x000000010138df8e _pthread_start + 331
45 libSystem.B.dylib 0x000000010138de41 thread_start + 13
---------------------------------------------
CRASH: A fatal error has occurred.
Backtrace:
0 rbx 0x0000000100041b3c _ZN8rubiniusL12segv_handlerEi + 316
1 libSystem.B.dylib 0x00000001013b4eaa _sigtramp + 26
2 ??? 0x0000000102be43a8 0x0 + 4340990888
3 rbx 0x00000001001fd99b _ZN8rubinius16GarbageCollector15walk_call_frameEPNS_9CallFrameEPNS_19AddressDisplacementE + 203
4 rbx 0x000000010015ecc7 _ZN8rubinius2VM7gc_scanEPNS_16GarbageCollectorE + 39
5 rbx 0x00000001001fd71e _ZN8rubinius16GarbageCollector4scanEPNS_13ManagedThreadEb + 222
6 rbx 0x00000001001fbdd6 _ZN8rubinius7BakerGC7collectERNS_6GCDataEPNS_17YoungCollectStatsE + 406
7 rbx 0x00000001001179ca _ZN8rubinius12ObjectMemory13collect_youngERNS_6GCDataEPNS_17YoungCollectStatsE + 74
8 rbx 0x000000010011b4a5 _ZN8rubinius12ObjectMemory13collect_maybeEPNS_5StateERNS_11GCTokenImplEPNS_9CallFrameE + 597
9 rbx 0x000000010015ed37 _ZN8rubinius2VM13collect_maybeERNS_11GCTokenImplEPNS_9CallFrameE + 55
10 rbx 0x00000001000bf702 _ZN8rubinius11MachineCode19execute_specializedINS_12TwoArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1058
11 rbx 0x00000001000739d5 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15349
12 rbx 0x00000001000bf4f6 _ZN8rubinius11MachineCode19execute_specializedINS_12TwoArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 534
13 rbx 0x0000000100073c51 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15985
14 rbx 0x00000001000be0bf _ZN8rubinius11MachineCode19execute_specializedINS_14FixedArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 575
15 rbx 0x0000000100073c51 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15985
16 rbx 0x0000000100167036 _ZN8rubinius16BlockEnvironment19execute_interpreterEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 662
17 rbx 0x0000000100167781 _ZN8rubinius16BlockEnvironment6invokeEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 145
18 rbx 0x00000001001678a4 _ZN8rubinius16BlockEnvironment4callEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsEi + 68
19 rbx 0x000000010025ab7b rbx_yield_stack + 251
20 ??? 0x000000010373528f 0x0 + 4352856719
21 rbx 0x00000001000739d5 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15349
22 rbx 0x00000001000bf07f _ZN8rubinius11MachineCode19execute_specializedINS_14ThreeArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 543
23 rbx 0x0000000100198590 _ZN8rubinius6Object9send_primEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsEPNS_6SymbolE + 192
24 rbx 0x000000010019866c _ZN8rubinius6Object17private_send_primEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 28
25 rbx 0x00000001000cf5ae _ZN8rubinius10Primitives11object_sendEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 126
26 rbx 0x0000000100073c51 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15985
27 rbx 0x00000001000be0bf _ZN8rubinius11MachineCode19execute_specializedINS_14FixedArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 575
28 rbx 0x0000000100073c51 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15985
29 rbx 0x0000000100167036 _ZN8rubinius16BlockEnvironment19execute_interpreterEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 662
30 rbx 0x0000000100167781 _ZN8rubinius16BlockEnvironment6invokeEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 145
31 rbx 0x00000001001678a4 _ZN8rubinius16BlockEnvironment4callEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsEi + 68
32 rbx 0x00000001001b9de5 _ZN8rubinius4Proc4callEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 709
33 rbx 0x00000001000ffa32 _ZN8rubinius10Primitives9proc_callEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 210
34 rbx 0x0000000100073b45 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15717
35 rbx 0x00000001000be506 _ZN8rubinius11MachineCode19execute_specializedINS_11NoArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 502
36 rbx 0x0000000100197bcc _ZN8rubinius6Object4sendEPNS_5StateEPNS_9CallFrameEPNS_6SymbolEb + 140
37 rbx 0x00000001001ca661 _ZN8rubinius6Thread13in_new_threadEPv + 801
38 libSystem.B.dylib 0x000000010138df8e _pthread_start + 331
39 libSystem.B.dylib 0x000000010138de41 thread_start + 13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment