Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moarvm segfaults. #3439

Closed
p6rt opened this issue Jul 15, 2014 · 3 comments
Closed

moarvm segfaults. #3439

p6rt opened this issue Jul 15, 2014 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Jul 15, 2014

Migrated from rt.perl.org#122297 (status was 'resolved')

Searchable as RT122297$

@p6rt
Copy link
Author

p6rt commented Jul 15, 2014

From @coke

Getting test failures in integration/99problems-51-to-60.t

Testing on OSX, I get a segfault; needs a lot of that test file to
segfault reliably, so here's a backtrace​:

Current executable set to
'/Users/willcoleda/sandbox/rakudo/install/bin/moar' (x86_64).
(lldb) run
Process 54497 launched​:
'/Users/willcoleda/sandbox/rakudo/install/bin/moar' (x86_64)
Process 54497 stopped and restarted​: thread 1 received signal​: SIGCHLD
ok 1 - mirror can recurse
ok 2 - mirror spots differences recurring
ok 3 - symmetric works with n-level trees
ok 4 - tree 1 is really balanced
ok 5 - tree 2 is really balanced
ok 6 - tree 3 is really balanced
ok 7 - tree 4 is really balanced
ok 8 - tree 5 is really balanced
ok 9 - tree 6 is really balanced
Process 54497 stopped
* thread #​1​: tid = 0x152c05, 0x000000010002dfa6
libmoar.dylib`scan_registers + 150, queue = 'com.apple.main-thread,
stop reason = EXC_BAD_ACCESS (code=1, address=0x8003)
  frame #​0​: 0x000000010002dfa6 libmoar.dylib`scan_registers + 150
libmoar.dylib`scan_registers + 150​:
-> 0x10002dfa6​: testb $8, 4(%rax)
  0x10002dfaa​: jne 0x10002dfe0 ; scan_registers + 208
  0x10002dfac​: addq %rbx, %rdx
  0x10002dfaf​: movl 16(%r14), %eax
(lldb) bt
* thread #​1​: tid = 0x152c05, 0x000000010002dfa6
libmoar.dylib`scan_registers + 150, queue = 'com.apple.main-thread,
stop reason = EXC_BAD_ACCESS (code=1, address=0x8003)
  frame #​0​: 0x000000010002dfa6 libmoar.dylib`scan_registers + 150
  frame #​1​: 0x000000010002debf
libmoar.dylib`MVM_gc_root_add_frame_roots_to_worklist + 671
  frame #​2​: 0x000000010002cf8b
libmoar.dylib`MVM_gc_worklist_mark_frame_roots + 27
  frame #​3​: 0x000000010003571b libmoar.dylib`process_worklist + 427
  frame #​4​: 0x0000000100035489 libmoar.dylib`MVM_gc_collect + 505
  frame #​5​: 0x000000010002c67a libmoar.dylib`run_gc + 170
  frame #​6​: 0x000000010002c368 libmoar.dylib`MVM_gc_enter_from_allocator + 552
  frame #​7​: 0x000000010002cbf8 libmoar.dylib`MVM_gc_allocate_nursery + 72
  frame #​8​: 0x000000010002cc4d libmoar.dylib`MVM_gc_allocate_zeroed + 29
  frame #​9​: 0x000000010002cd99 libmoar.dylib`MVM_gc_allocate_object + 41
  frame #​10​: 0x000000010000dc5b libmoar.dylib`MVM_interp_run + 22923
  frame #​11​: 0x00000001000737cd libmoar.dylib`MVM_vm_run_file + 157
  frame #​12​: 0x0000000100000a25 moar`main + 421
  frame #​13​: 0x00007fff836df5fd libdyld.dylib`start + 1
(lldb)

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jul 24, 2014

From @coke

On Mon Jul 14 18​:10​:31 2014, coke wrote​:

Getting test failures in integration/99problems-51-to-60.t

Testing on OSX, I get a segfault; needs a lot of that test file to
segfault reliably, so here's a backtrace​:

Current executable set to
'/Users/willcoleda/sandbox/rakudo/install/bin/moar' (x86_64).
(lldb) run
Process 54497 launched​:
'/Users/willcoleda/sandbox/rakudo/install/bin/moar' (x86_64)
Process 54497 stopped and restarted​: thread 1 received signal​: SIGCHLD
ok 1 - mirror can recurse
ok 2 - mirror spots differences recurring
ok 3 - symmetric works with n-level trees
ok 4 - tree 1 is really balanced
ok 5 - tree 2 is really balanced
ok 6 - tree 3 is really balanced
ok 7 - tree 4 is really balanced
ok 8 - tree 5 is really balanced
ok 9 - tree 6 is really balanced
Process 54497 stopped
* thread #​1​: tid = 0x152c05, 0x000000010002dfa6
libmoar.dylib`scan_registers + 150, queue = 'com.apple.main-thread,
stop reason = EXC_BAD_ACCESS (code=1, address=0x8003)
frame #​0​: 0x000000010002dfa6 libmoar.dylib`scan_registers + 150
libmoar.dylib`scan_registers + 150​:
-> 0x10002dfa6​: testb $8, 4(%rax)
0x10002dfaa​: jne 0x10002dfe0 ; scan_registers +
208
0x10002dfac​: addq %rbx, %rdx
0x10002dfaf​: movl 16(%r14), %eax
(lldb) bt
* thread #​1​: tid = 0x152c05, 0x000000010002dfa6
libmoar.dylib`scan_registers + 150, queue = 'com.apple.main-thread,
stop reason = EXC_BAD_ACCESS (code=1, address=0x8003)
frame #​0​: 0x000000010002dfa6 libmoar.dylib`scan_registers + 150
frame #​1​: 0x000000010002debf
libmoar.dylib`MVM_gc_root_add_frame_roots_to_worklist + 671
frame #​2​: 0x000000010002cf8b
libmoar.dylib`MVM_gc_worklist_mark_frame_roots + 27
frame #​3​: 0x000000010003571b libmoar.dylib`process_worklist + 427
frame #​4​: 0x0000000100035489 libmoar.dylib`MVM_gc_collect + 505
frame #​5​: 0x000000010002c67a libmoar.dylib`run_gc + 170
frame #​6​: 0x000000010002c368
libmoar.dylib`MVM_gc_enter_from_allocator + 552
frame #​7​: 0x000000010002cbf8 libmoar.dylib`MVM_gc_allocate_nursery
+ 72
frame #​8​: 0x000000010002cc4d libmoar.dylib`MVM_gc_allocate_zeroed
+ 29
frame #​9​: 0x000000010002cd99 libmoar.dylib`MVM_gc_allocate_object
+ 41
frame #​10​: 0x000000010000dc5b libmoar.dylib`MVM_interp_run + 22923
frame #​11​: 0x00000001000737cd libmoar.dylib`MVM_vm_run_file + 157
frame #​12​: 0x0000000100000a25 moar`main + 421
frame #​13​: 0x00007fff836df5fd libdyld.dylib`start + 1
(lldb)

jnthn++ ; test is passing again, unfudged.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Aug 19, 2014

@coke - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Aug 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant