This issue occurs on Linux (just verified it for Tcl8.5 and friends) regardless of what examples are included in the test script. Furthermore, all the examples appear to finish without issues, and it appears it is the last command in the script (exit) that triggers the segfault.
Experimenting with this script led me to the following:
- It is enough to create a plstdwin window and a plframe widget and then exit. That is:
plstdwin .
set p [plframe .plw]
exit
leads to a crash when using "wish"
- If you use "plserver" instead, all is fine
There must be something in plframe that is causing this, which is masked if you use "plserver".
Strategy to get to the bottom of this:
- Comment out code in "plserver" so that at some point the same crash occurs
- Try loading Pltk as a dynamic package instead of a static package, as that is one of the
major low-level differences between "wish" and "plserver"