Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #39892] [BUG] Bus error in t/pmc/eval.t#19

4 views
Skip to first unread message

Will Coleda

unread,
Jul 20, 2006, 12:18:28 PM7/20/06
to bugs-bi...@rt.perl.org
# New Ticket Created by Will Coleda
# Please include the string: [perl #39892]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=39892 >


Running this test bus errors.

Per leo, this is because a failed compilation is returning a NULL
PMC, but isn't signaled as an exception.

Test may need to be fixed up once this does throw an exception. And
add a new test to insure we don't bus error on invoking something we
shouldn't.

Here's the gdb bt:

(gdb) run t/pmc/eval_19.pir
Starting program: /Users/wcoleda/research/parrot/parrot t/pmc/
eval_19.pir

Reading symbols for shared libraries ..++. done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000018
0x001734b8 in Parrot_init_arg_op (interpreter=0x2600420,
ctx=0x260b2f0, pc=0x26126f0, st=0xbffff4ac) at src/inter_call.c:119
119 sig_pmc = ctx->constants[*pc]->u.key;
(gdb)
(gdb) bt
#0 0x001734b8 in Parrot_init_arg_op (interpreter=0x2600420,
ctx=0x260b2f0, pc=0x26126f0, st=0xbffff4ac) at src/inter_call.c:119
#1 0x00173404 in Parrot_init_ret_nci (interpreter=0x2600420,
st=0xbffff484, sig=0x2ab5c8 "P") at src/inter_call.c:78
#2 0x0028ab1c in set_nci_P (interpreter=0x2600420, st=0xbffff484,
val=0x0) at src/nci.c:123
#3 0x00292ab8 in pcf_P_Jt (interpreter=0x2600420, self=0xea20a8) at
src/nci.c:2626
#4 0x002526e0 in Parrot_NCI_invoke (interpreter=0x2600420,
pmc=0xea20a8, next=0x2612700) at src/pmc/nci.pmc:146
#5 0x00234110 in Parrot_Compiler_invoke (interpreter=0x2600420,
pmc=0xea20a8, code_ptr=0x2612700) at src/pmc/compiler.pmc:38
#6 0x0006503c in Parrot_invokecc_p (cur_opcode=0x26126f8,
interpreter=0x2600420) at src/ops/core.ops:414
#7 0x0021e92c in runops_slow_core (interpreter=0x2600420,
pc=0x26126f8) at src/runops_cores.c:180
#8 0x0005ccc8 in runops_int (interpreter=0x2600420, offset=0) at src/
interpreter.c:775
#9 0x00054e54 in runops (interpreter=0x2600420, offs=0) at src/
inter_run.c:81
#10 0x0005513c in runops_args (interpreter=0x2600420, sub=0xea2078,
obj=0x2819140, meth=0x0, sig=0x2ac370 "vP", ap=0xbffff844 "") at src/
inter_run.c:182
#11 0x000552d0 in Parrot_runops_fromc_args (interpreter=0x2600420,
sub=0xea2078, sig=0x2ac370 "vP") at src/inter_run.c:276
#12 0x0001b8a0 in Parrot_runcode (interpreter=0x2600420, argc=1,
argv=0xbffff9cc) at src/embed.c:806
#13 0x00005778 in main (argc=1, argv=0xbffff9cc) at compilers/imcc/
main.c:719

--
Will "Coke" Coleda
wi...@coleda.com


0 new messages