OS: Mac OS X Sierra
Xcode: 8.3.3, and 9.0
Tcl/TK: 8.6.6
itcl/itk: 4.1.0
iwidgets: 4.1.0
I am having random crashes of "wish" using iwidgets (in this case, "radiobox" class), specificlly on Mac OS X.
Any suggestion will greatly appreciated.
Pan Chai
using this following iwidgets code:
package require Iwidgets
::iwidgets::radiobox .pref -labeltext "Window Management"
.pref add NONE -text "Leave existing windows open when opening new one"
.pref add HIDE -text "Hide existing windows when opening new one"
.pref add CLOSE -text "Close existing windows when opening new one"
pack .pref
Save the above lines in a file, says, test_script, and run the test this way:
wish test_script
These are the three most common crashes I got:
wish test_script
Segmentation fault: 11wish test_script
wish(52643,0x7fffc97083c0) malloc: *** error for object 0x6e202020200a3020: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6wish test_script
wish(52646,0x7fffc97083c0) malloc: *** error for object 0x7ffe3e9e4698: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
Thank you for a good report. The demo script
seems to work fine on a linux system. I will try
on an OS X system later when I am on one. Perhaps
next week.
My underinformed guess at this point is you've
run into some platform-specific trouble in Itk 4.1.0.
or possibly Tk 8.6.6. If you have time to blindly try
things, you might look into using Tcl/Tk 8.6.7 and/or
Itcl/Itk 4.0.6.
Will be able to give better answers after I reproduce
the trouble. Should I expect a crash each time?
Don,
As I indicated in the bug report, this issue only happens in Mac OS X (not in Linux nor Cgywin.) And the script does not crash every time, only randomly but quite often (mostly 7 out of 10.)
From my own testing, I would suggest the possibility of issue between itk 4.1.0 and TK 8.6.6 (I had reported one earlier, #115.) I can try to upgrade TK to 8.6.7 or downgrade itk to 4.0.6 as you suggested to see if it helps. However, in a broader sense, since using Tcl/Tk is not limited to one specific project here, I will hold off on the upgrading Tcl/Tk unless it is deemed to be absolutely necessary.
Thank you again for your help, and look forward to hear from you on your tests.
Pan
This is still happening.
I have more information about this one,
Xcode: 9.4+
Mac OSX: Sierra and High Sierra.
The test scripts is failing now all the time, once I upgraded Xcode to 9.4.2.
Again, I enclosed this script for you..
Pan Chai
Pan.S.Chai@nasa.gov Pan.S.Chai@nasa.gov
301.286.8099/1215 (voice/fax)
Code 662.0, NASA/GSFC
Greenbelt, MD 20771
Related
Iwidgets Bugs: #117
I am sorry to report that my builds of all those packages on an OSX Sierra system do not demonstrate a crash on the submitted script.
If you can supply more information, I can try again, but if I cannot
reproduce the trouble I cannot really begin to chase down what might be the problem.
Once I set up a testbed with all those outdated releases on an OSX High Sierra system, my testing shows no failure running the test script.
Sorry, but there continues to be nothing I can do when I cannot reproduce the failure.