#1746: A way to get Rakudo to segfault
-------------------+--------------------------------------------------------
 Reporter:  masak  |        Type:  bug   
   Status:  new    |    Priority:  major 
Milestone:         |   Component:  core  
  Version:  2.6.0  |    Severity:  medium
 Keywords:         |        Lang:  perl6 
    Patch:         |    Platform:  all   
-------------------+--------------------------------------------------------

Comment(by nwellnhof):

 I'm getting a completely different segfault. It's in the exception
 handler. Part of the error message is printed. Then there's a segfault in
 the code trying to find the current source file and line number.

 (gdb) run ticket1746.pir
 Starting program: /usr/local/bin/parrot ticket1746.pir
 [Thread debugging using libthread_db enabled]
 Unable to find module 'A' in the @*INC directories.
 (@*INC contains:
   /home/nik/.perl6/lib
   /usr/local/lib/parrot/2.7.0-devel/languages/perl6/lib
   .)

 Program received signal SIGSEGV, Segmentation fault.
 0xb7ed056d in Parrot_Context_get_info (interp=0x8051040, ctx=0x80b3af0,
     info=0xbffff334) at src/sub.c:197
 197                 n  += op_info->op_count + var_args;
 (gdb) bt
 #0  0xb7ed056d in Parrot_Context_get_info (interp=0x8051040,
 ctx=0x80b3af0,
     info=0xbffff334) at src/sub.c:197
 #1  0xb7ed0751 in Parrot_Context_infostr (interp=0x8051040, ctx=0x80b3af0)
     at src/sub.c:313
 #2  0xb7e8a694 in PDB_backtrace (interp=0x8051040) at src/debug.c:3247
 #3  0xb7e605bc in die_from_exception (interp=0x8051040,
 exception=0x9aebf20)
     at src/exceptions.c:142
 #4  0xb7e91a2d in Parrot_ex_throw_from_op (interp=0x8051040,
     exception=0x9aebf20, dest=0xb5d4cee8) at src/exceptions.c:236
 #5  0xb7e87c40 in Parrot_die_p (cur_opcode=0xb5d4cee0, interp=0x8051040)
     at src/ops/core_ops.c:15813
 #6  0xb7ecb095 in runops_slow_core (interp=0x8051040,
     runcore_unused=0x80f1ea0, pc=0x80f7958) at src/runcore/cores.c:647
 #7  0xb7eca9ae in runops_int (interp=0x8051040, offset=154)
     at src/runcore/main.c:237
 #8  0xb7ea035d in runops (interp=0x8051040, offs=154) at
 src/call/ops.c:127
 #9  0xb7e9c4c7 in Parrot_pcc_invoke_from_sig_object (interp=0x8051040,
     sub_obj=0x80b3710, call_object=0x80b3af0) at src/call/pcc.c:325
 #10 0xb7e91f46 in Parrot_ext_call (interp=0x8051040, sub_pmc=0x80b3710,
     signature=0xb7f9cb3d "->P") at src/extend.c:322
 #11 0xb7ec7200 in run_sub (interp=0x8051040, self=0x80f7958,
 action=PBC_MAIN,
     eval_pmc=0x0) at src/packfile.c:741
 #12 do_1_sub_pragma (interp=0x8051040, self=0x80f7958, action=PBC_MAIN,
     eval_pmc=0x0) at src/packfile.c:833
 #13 do_sub_pragmas (interp=0x8051040, self=0x80f7958, action=PBC_MAIN,
     eval_pmc=0x0) at src/packfile.c:997
 #14 0xb7ec74f1 in PackFile_fixup_subs (interp=0x8051040, what=PBC_MAIN,
     eval=0x0) at src/packfile.c:5051
 #15 0xb7f7bea8 in imcc_run_pbc (interp=0x8051040, output_file=0x0, argc=1,
     argv=0xbffff818) at compilers/imcc/main.c:413
 #16 0x0804961c in main (argc=2, argv=0xbffff814) at src/main.c:149

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1746#comment:4>
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