Jeff Rogers <[EMAIL PROTECTED]> wrote:

>After some experimentation I figured out part of the problem, only to find
>a different one.
[...]
>Once I changed my library path back to the default and picked up
>namespace.tcl (which only deals with procedures, not commands, so there may
>be yet another issue in there) I got a new error:
>
>view index is out of range
>    while executing
>    "set n [namespace current]"
>(in namespace eval "::mk" script line 2)
>
>To make things more interesting, this error is not specific to aolserver;
>its reproducable with plain old tclsh:
>Starting program: /usr/bin/tclsh
>% load bin/Mk4tcl.so
>% namespace eval ::mk {set n [namespace current]}
>view index is out of range
>% set ::mk::n
>can't read "::mk::n": no such variable
>% set ::mk::n 0
>0
>%
>Program received signal SIGSEGV, Segmentation fault.
>0x4027bbe6 in c4_Sequence::DecRef () from bin/Mk4tcl.so
>(gdb) where
>#0  0x4027bbe6 in c4_Sequence::DecRef () from bin/Mk4tcl.so
[...]

The segfault is bad of course, but there may be multiple issues here.

Note that MK defines a mk::set command.  So please change from:
    namespace eval ::mk {set n [namespace current]}
to:
    namespace eval ::mk {::set n [namespace current]}
As I assume that is what you intended?

>I still have a bunch more experimentation to do (not least of which is
>recompiling everything to make sure everything's in sync, as I'm using the
>prebuilt Mk4tcl.so), but this is some food for thought.

FWIW, MetaKit 2.4.4 was released yesterday.

Thanks for the traceback - I'll look into what is going wrong there.

-jcw

Reply via email to