No registered users in community xowiki
in last 10 minutes
in last 10 minutes
[Xotcl] Segfault after undefining "new" proc in a class namespace
From: Arthur Schreiber <schreiber.arthur_at_googlemail.com>
Date: Fri, 25 May 2012 11:07:53 +0200
Hey Gustaf,
The following is propably a very uncommon use case, but it causes a
segfault, so I think it's rather serious:
% package require nx
% nx::Class create A {}
% proc ::A::new {} { return "something" }
% A new
something
% rename ::A::new ""
% A new
[1] 2515 segmentation fault (core dumped) tclsh
Kind regards,
Arthur
Date: Fri, 25 May 2012 11:07:53 +0200
Hey Gustaf,
The following is propably a very uncommon use case, but it causes a
segfault, so I think it's rather serious:
% package require nx
% nx::Class create A {}
% proc ::A::new {} { return "something" }
% A new
something
% rename ::A::new ""
% A new
[1] 2515 segmentation fault (core dumped) tclsh
Kind regards,
Arthur