Tk Source Code

View Ticket
Login
Ticket UUID: 924835c36d4d842e01bed488e316f952a1a46e6
Title: ttk::combobox current 0 crashes in trunk (only)
Type: Bug Version: 8.7.a5
Submitter: fvogel Created on: 2021-12-14 06:43:08
Subsystem: 88. Themed Tk Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2021-12-14 23:54:46
Resolution: Fixed Closed By: jan.nijtmans
    Closed on: 2021-12-14 23:54:46
Description:

Reported in comp.lang.tcl:

package require Tk
ttk::frame .fr
pack .fr
ttk::combobox .fr.cb
pack .fr.cb
.fr.cb current 0

With 8.6.11 it prints the correct error message: "index 0 out of range"

With 8.7.a5 it dumps core on both Windows and Linux.

Tk 8.7a3 behaves like 8.6.11 and 8.6.12, but Tk 8.7a5 crashes, being killed by SIGSEGV. Tested on Linux.

Bisection points at [0ee03f8129ceb824] as the first crashing commit in trunk branch.

User Comments: jan.nijtmans added on 2021-12-14 23:54:46:

Testcase backported to 8.6 now. Thanks for the suggestion!


fvogel added on 2021-12-14 22:48:25:
Thanks!

Isn't there an interest to backport the regression test (combobox-2.7) to core-8-6-branch so that  a. the regression is tested there as well,  and  b. unneeded differences in the test suite between 8.6 and 8.7 are avoided ?

jan.nijtmans added on 2021-12-14 07:53:23:

Fixed [343b637e84c0bb8e|here]

Thanks for the report!