On 1/24/08, Ivan Shmakov <[EMAIL PROTECTED]> wrote:
>
>         The test program below catches a SIGSEGV when trying to
>         Tcl_DecrRefCount () on a Tcl `dict' object:
>
>         I see no mention of such a behaviour as an appropriate one in
>         the documentation as well.

(After some chatting with Miguel Sofer in Tcler's chatroom)

It's likely a documentation bug. It isn't clear from the docs that the
first thing you have to do is calling TclInitSubsystems(). It is
possible only indirectly via calling Tcl_FindExecutable() or
Tcl_CreateInterp(). So, adding any of these two function calls at the
very beginning of main() makes crash gone.

 See http://aspn.activestate.com/ASPN/Mail/Message/perl-unix-users/2245821
for more detailed explanation.

-- 
Sergei Golovan



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to