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

[BUG] src/hash.c:256: promote_hash_key: Assertion `key' failed.

2 views
Skip to first unread message

Simon Glover

unread,
Mar 11, 2004, 3:37:27 PM3/11/04
to Jens Rieks, perl6-i...@perl.org

On Thu, 11 Mar 2004, Jens Rieks wrote:

> $ tar xzf err2.tgz
> $ cd err2
> $ ../parrot t/pmc/dumper_1.imc
> parrot: src/hash.c:256: promote_hash_key: Assertion `key' failed.
> aborted
>
> It is caused by 'callmethod "dumper"' (err2/library/dumper.imc:82)

Ah, I stumbled over this yesterday. The problem is that the
callmethod <STRING> op hasn't been implemented yet, as noted in PDD15
(but not, I now see, in the inline documentation). Quite why you get
such an uninformative error message I'm not sure.

NB. The same holds true for callmethodcc <STRING> and both forms of
the tailcallmethod ops.

Simon


Leopold Toetsch

unread,
Mar 12, 2004, 3:10:17 AM3/12/04
to Simon Glover, perl6-i...@perl.org
Simon Glover <sc...@amnh.org> wrote:

> On Thu, 11 Mar 2004, Jens Rieks wrote:

>> $ tar xzf err2.tgz
>> $ cd err2
>> $ ../parrot t/pmc/dumper_1.imc
>> parrot: src/hash.c:256: promote_hash_key: Assertion `key' failed.
>> aborted
>>
>> It is caused by 'callmethod "dumper"' (err2/library/dumper.imc:82)

> Ah, I stumbled over this yesterday. The problem is that the
> callmethod <STRING> op hasn't been implemented yet,

Yep. And Parrot was missing an error check for too many arguments. Now
it gives:

error:imcc:arg count mismatch: op# 723 'callmethod_sc' needs 0 given 1
in file 'library/dumper.imc' line 83
included from 'dumper_1.imc' sub '_dumper' line 20

> Simon

leo

0 new messages