Ticket #961 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

segfault in Parrot_oo_find_vtable_override

Reported by: coke Owned by:
Priority: major Milestone:
Component: core Version: trunk
Severity: high Keywords:
Cc: Language: tcl
Patch status: Platform:

Description

With parrot r40897 and partcl r658;

running parrot tcl.pbc t_tcl/history.test (need to run "make t_tcl" first to checkout the test files),

get the following segfault:

(gdb) bt
#0  Parrot_oo_find_vtable_override (interp=0x804f040, classobj=0x0,
    name=0x8074084) at src/oo.c:514
#1  0xb7f52e41 in Parrot_Object_get_class (interp=0x804f040, pmc=0x828b6b0)
    at ./src/pmc/object.pmc:430
#2  0xb7f3f284 in Parrot_Object_isa (interp=0x804f040, pmc=0x828b6b0,
    classname=0x8086e30) at ./src/pmc/object.pmc:517
#3  0xb7dccadd in Parrot_isa_i_p_sc (cur_opcode=0xb6fb87ec, interp=0x804f040)
    at src/ops/object.ops:222
#4  0xb7e34dd2 in runops_slow_core (interp=0x804f040, pc=0xb6fb87ec)
    at src/runcore/cores.c:462
#5  0xb7e3406f in runops_int (interp=0x804f040, offset=528)
    at src/runcore/main.c:987
#6  0xb7e1c402 in runops (interp=0x804f040, offs=3) at src/call/ops.c:119
#7  0xb7e1c589 in runops_args (interp=0x804f040, sub=0x80c29b8, obj=0x80b0bd0,
    meth_unused=0x0, sig=0xb7f9901b "vP", ap=0xbfb9cccc "\030-\f\b")
    at src/call/ops.c:269
#8  0xb7e1cd38 in Parrot_runops_fromc_args (interp=0x804f040, sub=0x80c29b8,
    sig=0xb7f9901b "vP") at src/call/ops.c:338
#9  0xb7e06288 in Parrot_runcode (interp=0x804f040, argc=2, argv=0xbfb9ce38)
    at src/embed.c:983
#10 0xb7f85ecf in imcc_run (interp=0x804f040, sourcefile=0xbfb9d3d5 "tcl.pbc",
    argc=2, argv=0xbfb9ce38) at compilers/imcc/main.c:801
#11 0x08048955 in main (argc=2, argv=0xbfb9ce38) at src/main.c:60
(gdb) p classobj
$2 = (PMC *) 0x0

Change History

Changed 5 years ago by coke

  • lang set to tcl

Changed 5 years ago by chromatic

On Tuesday 01 September 2009 11:59:12 Parrot wrote:

> #961: segfault in Parrot_oo_find_vtable_override

Random guess: this started to occur after Patrick merged his isafast branch at 
r40789.  Can you confirm, Coke?

-- c

Changed 5 years ago by coke

On Thu, Sep 3, 2009 at 3:48 AM, chromatic<chromatic@wgz.org> wrote:
> On Tuesday 01 September 2009 11:59:12 Parrot wrote:
>
>> #961: segfault in Parrot_oo_find_vtable_override
>
> Random guess: this started to occur after Patrick merged his isafast branch at
> r40789.  Can you confirm, Coke?
>
> -- c

Nope. git bisect shows:

Author: NotFound <NotFound@d31e2699-5ff4-0310-a27c-f18f2fbe73fe>
Date:   Tue Aug 18 17:24:24 2009 +0000

    merge auto_attrs branch into trunk

    git-svn-id: https://svn.parrot.org/parrot/trunk@40628
d31e2699-5ff4-0310-a27c-f18f2fbe73fe

is the culprit.

-- 
Will "Coke" Coleda

Changed 5 years ago by jkeenan

  • component changed from none to core

Changed 5 years ago by coke

  • status changed from new to closed
  • resolution set to fixed

NotFound++ seems to have fixed this segfault.

Note: See TracTickets for help on using tickets.