| Ticket UUID: | 657c389120496ed7d9d1f3ff333fa172625c7c98 | |||
| Title: | Segfault when destroying menu with checkbutton entry | |||
| Type: | Bug | Version: | 8.6.7 | |
| Submitter: | sbron | Created on: | 2017-12-07 21:48:09 | |
| Subsystem: | 10. Generic Menus | Assigned To: | fvogel | |
| Priority: | 6 | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2018-01-19 20:41:27 | |
| Resolution: | Fixed | Closed By: | fvogel | |
| Closed on: | 2018-01-19 20:41:27 | |||
| Description: |
I created a toplevel widget using the megawidget framework included with Tk. The widget includes a menu with a checkbutton entry. I consistently get a segmentation fault when the widget object destroys itself. The destructor deletes all widgets, which triggers a binding that calls the destructor again. I now avoid the problem by removing the binding in the destructor. But since a segmentation fault should not happen from plain Tcl code, I report the problem anyway. I have reduced the code to a short script that demonstrates the issue. The issue was observed on linux x86_64. | |||
| User Comments: |
fvogel added on 2018-01-19 20:41:27:
Merged to core-8-6-branch and trunk. fvogel added on 2018-01-13 13:53:49: Fixed in a bugfix branch, see [95cf2308]. fvogel added on 2018-01-10 20:24:38: OK, I can reproduce now with the demo, when the menu item is clicked before the button is hit. The fix does not look too hard to sketch, I'll have a look. stu added on 2018-01-10 07:42:58: Grr. Mime-types. Here [b4214b4712]. stu added on 2018-01-10 07:36:34: The top of my stack trace is like the one here [b4214b4712]. Seems like the same bug. stu added on 2018-01-10 06:53:52: The test script gives me a segfault with 8.6.8 on OpenBSD. fvogel added on 2017-12-08 22:27:34: Cannot reproduce on Windows with current core-8-6-branch or trunk. | |||
Attachments:
- mwdemo.tcl [download] added by sbron on 2017-12-07 21:49:22. [details]
