Menu

#117 Mac OS X: random crashes of wish (tcl/tk 8.6.6) using Iwidgets (4.1.0) radiobox class

4.0.0
open
nobody
None
1
2018-08-08
2017-09-28
Pan Chai
No

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: 11

wish 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: 6

wish 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

Related

Iwidgets Bugs: #117

Discussion

  • Don Porter

    Don Porter - 2017-09-28

    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?

     
  • Pan Chai

    Pan Chai - 2017-09-28

    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

     
    • Pan Chai

      Pan Chai - 2018-08-06

      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..

      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

         - Pan
      

      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

      On Sep 28, 2017, at 9:02 AM, Pan Chai pchai2011@users.sf.net wrote:

      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

      [iwidgets-bugs:#117] Mac OS X: random crashes of wish (tcl/tk 8.6.6) using Iwidgets (4.1.0) radiobox class

      Status: open
      Group: 4.0.0
      Created: Thu Sep 28, 2017 01:11 AM UTC by Pan Chai
      Last Updated: Thu Sep 28, 2017 11:36 AM UTC
      Owner: nobody

      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: 11

      wish 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: 6

      wish 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

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/incrtcl/iwidgets-bugs/117/ https://sourceforge.net/p/incrtcl/iwidgets-bugs/117/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

       

      Related

      Iwidgets Bugs: #117

  • Don Porter

    Don Porter - 2017-10-02

    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.

     
  • Don Porter

    Don Porter - 2018-08-08

    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.

     

Log in to post a comment.