Bug 380712

Summary: FIXED IN SVN; NEEDS TESTING: Tk causes hangs and SEGVs
Product: [Applications] rkward Reporter: RKWard Team <rkward-devel>
Component: generalAssignee: RKWard Team <rkward-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed In:

Description RKWard Team 2009-09-17 23:14:37 UTC
-- Originally posted by (AT sourceforge.net): keepiru --

-- This ticket was imported from http://sourceforge.net/p/rkward/bugs/56 on 2017-05-30 15:26:43 +0100 --
Example from TkWidgetcmds help:
try:
	require\(tcltk\)
	tt &lt;- tktoplevel\(\)
	tkpack\(txt.w &lt;- tktext\(tt\)\)
	tkinsert\(txt.w, "0.0", "plot\(1:10\)"\)
	eval.txt &lt;- function\(\) eval\(parse\(text=tclvalue\(tkget\(txt.w, "0.0", "end"\)\)\)\)
	tkpack\(but.w &lt;- tkbutton\(tt,text="Submit", command=eval.txt\)\)
Click the button.
Result:  RKWward hangs.

Example from slider help:
try:
	require\(relax\)
	plot.sample.norm&lt;-function\(\)\{
	refresh.code&lt;-function\(...\)\{
	mu&lt;-slider\(no=1\); sd&lt;-slider\(no=2\); n&lt;-slider\(no=3\)
	x&lt;-rnorm\(n,mu,sd\)
	plot\(x\)
	\}
	slider\(refresh.code,sl.names=c\("value of mu","value of sd","n number of observations"\),
		sl.mins=c\(-10,.01,5\),sl.maxs=c\(+10,50,100\),sl.deltas=c\(.01,.01,1\),sl.defaults=c\(0,1,20\)\)
	\}
	plot.sample.norm\(\)
Slide a slider.
result:  SIGSEGV
Comment 1 Thomas Friedrichsmeier 2009-09-18 10:00:18 UTC
Hi\!

Thanks for reporting. I'm surprised, nobody stumbled over this before, this bug must have been present since a long time...

This should be fixed in SVN \(r2649\). Since I got slightly different results, initially \(a hang, but no segv in both examples\), it would be nice if you could test and post back.

NOTES:
This also needs some more testing on potential side-effects, and should probably be backported to the KDE3 branch, if we do any further release\(s\) for KDE 3.
Comment 2 Thomas Friedrichsmeier 2009-09-18 10:00:19 UTC
- **assigned_to**: nobody --> tfry
- **summary**: Tk causes hangs and SEGVs --> FIXED IN SVN; NEEDS TESTING: Tk causes hangs and SEGVs
- **status**: open --> open-fixed
Comment 3 RKWard Team 2009-09-18 20:08:34 UTC
-- Originally posted by (AT sourceforge.net): keepiru --
Fix confirmed for both test cases in r2650.  Thank you\!
Comment 4 Thomas Friedrichsmeier 2009-10-26 16:22:06 UTC
Closing as 0.5.2 has been released, today. Thanks again for reporting / testing\!
Comment 5 Thomas Friedrichsmeier 2009-10-26 16:22:06 UTC
- **status**: open-fixed --> closed-fixed