Bug 380712 - FIXED IN SVN; NEEDS TESTING: Tk causes hangs and SEGVs
Summary: FIXED IN SVN; NEEDS TESTING: Tk causes hangs and SEGVs
Status: RESOLVED FIXED
Alias: None
Product: rkward
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR normal
Target Milestone: ---
Assignee: RKWard Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-17 23:14 UTC by RKWard Team
Modified: 2009-10-26 16:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 <- tktoplevel\(\)
	tkpack\(txt.w <- tktext\(tt\)\)
	tkinsert\(txt.w, "0.0", "plot\(1:10\)"\)
	eval.txt <- function\(\) eval\(parse\(text=tclvalue\(tkget\(txt.w, "0.0", "end"\)\)\)\)
	tkpack\(but.w <- tkbutton\(tt,text="Submit", command=eval.txt\)\)
Click the button.
Result:  RKWward hangs.

Example from slider help:
try:
	require\(relax\)
	plot.sample.norm<-function\(\)\{
	refresh.code<-function\(...\)\{
	mu<-slider\(no=1\); sd<-slider\(no=2\); n<-slider\(no=3\)
	x<-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