[DGD] Error in kernel auto object

Felix A. Croes felix at dworkin.nl
Sat May 7 02:06:01 CEST 2005


"ind at o2.pl" <ind at o2.pl> wrote:

> Hello
>
> I receive the following error when I invoke 'editor' kfun with kernel:
>
> Value is not an array
>   46 receive_message   /kernel/obj/telnet (#64)
>  199 receive_message   /kernel/lib/connection (/kernel/obj/telnet#64)
>  786 receive_message   /u/System/obj/immo (#67)
>  493 command          /u/System/obj/immo (#67)
>  389 immo_command  /u/System/obj/immo (#67)
>   36 command_ed        /u/System/obj/immo (#67)
>   34 start             /u/System/obj/ed (#69)
> 1550 editor            /kernel/lib/auto (/u/System/obj/ed#69)
>
> this is where
>
> mixed *info;
> ...
> info = ::call_trace()[1][TRACE_FIRSTARG][1];

That doesn't look like the version of the kernel library auto object
which comes with 1.2.105.

But you've found a bug in the kernel library.  This can be fixed by
adding

    ::call_trace()[1][TRACE_FIRSTARG][1] = nil;

or, for the most recent kernel library,

    TLSVAR2 = nil;

before the calls to ::editor() (2 lines before where the error happens).
I'll include an official fix in the next DGD patch (hopefully this weekend,
I have some DGD/MP bugs to fix first).

Regards,
Dworkin



More information about the DGD mailing list