[Pkg-tcltk-devel] Bug#462409: Bug#462409: Tcl_DecrRefCount () SIGSEGVs on a result of Tcl_NewDictObj ()
Sergei Golovan
sgolovan at nes.ru
Thu Jan 24 20:25:13 UTC 2008
On 1/24/08, Ivan Shmakov <ivan at theory.asu.ru> 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
More information about the Pkg-tcltk-devel
mailing list