#1499: Null pointer dereference in imageio.pmc
----------------------+-----------------------------------------------------
 Reporter:  arnsholt  |        Type:  bug   
   Status:  new       |    Priority:  normal
Milestone:            |   Component:  none  
  Version:            |    Severity:  medium
 Keywords:            |        Lang:  perl6 
    Patch:            |    Platform:  darwin
----------------------+-----------------------------------------------------
 Running Parrot r44371, Rakudo bf29be, OS X 10.6.2.

 When running perl6 t/spec/S32-trig/sinh.t I get intermittent segfaults.
 I've recompiled both Parrot and Rakudo with debugging symbols, giving the
 following gdb backtrace:

 {{{
 (gdb) back
 #0  0x0000000000000000 in ?? ()
 #1  0x0000000100ce13ec in visit_todo_list_freeze (interp=0x101208890,
 pmc=0x10cadd220, info=0x10cadd1f8) at imageio.pmc:204
 #2  0x0000000100ce1c7b in Parrot_ImageIO_set_pmc (interp=0x101208890,
 pmc=0x10cadd1f8, p=0x10cadd220) at imageio.pmc:492
 #3  0x0000000100b94e15 in Parrot_freeze (interp=0x101208890,
 pmc=0x10cadd220) at src/pmc_freeze.c:58
 #4  0x0000000100c6d09d in Parrot_default_clone (interp=0x101208890,
 pmc=0x10cadd220) at default.pmc:1068
 #5  0x0000000100b897fb in Parrot_oo_clone_object (interp=0x101208890,
 pmc=0x1061b7d18, class_=0x102217ea8, dest=0x0) at src/oo.c:291
 #6  0x0000000100cf9dba in Parrot_Object_clone (interp=0x101208890,
 pmc=0x1061b7d18) at object.pmc:723
 #7  0x00000001011be039 in Parrot_P6opaque_clone ()
 #8  0x0000000100a9cc06 in Parrot_clone_p_p (cur_opcode=0x101303b08,
 interp=0x101208890) at set.ops:474
 #9  0x0000000100b98864 in runops_fast_core (interp=0x101208890,
 runcore=0x10121c2b0, pc=0x101303b08) at src/runcore/cores.c:670
 #10 0x0000000100b9736c in runops_int (interp=0x101208890, offset=202378)
 at src/runcore/main.c:549
 #11 0x0000000100b5ad92 in runops (interp=0x101208890, offs=202378) at
 src/call/ops.c:112
 #12 0x0000000100b5049e in Parrot_pcc_invoke_from_sig_object
 (interp=0x101208890, sub_obj=0x10256f868, call_object=0x1016f9f98) at
 src/call/pcc.c:314
 #13 0x0000000100b50652 in Parrot_pcc_invoke_sub_from_c_args
 (interp=0x101208890, sub_obj=0x10256f868, sig=0x100d5cb7a "P->") at
 src/call/pcc.c:75
 #14 0x0000000100b33c36 in Parrot_runcode (interp=0x101208890, argc=2,
 argv=0x7fff5fbff810) at src/embed.c:826
 #15 0x0000000100000d69 in main ()
 }}}

 The line in imageio.pmc calls the VTABLE_push_pmc macro, which expands to
 a function pointer call to the push_pmc member in the vtable of
 info->todo, which is NULL in this case.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1499>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to