Yes this is a multi-threading issue. But I am doing [package re Tk] only in the main thread.
I tried another approach by connecting tkcon via remote sockets, so not to have tk in any thread and it seems I am not able to reproduce any crash above at all. So I wonder if [package re Tk] also does something in the queue of the other threads, even if there is no Tk.
The script I posted that crashes Tk in an multi-threaded environment is fairly simple and seems to have something to do with message queuing. My concern is that I won't be able to fix/find other bugs until this one is closed. Unfort. this bug is unassigned since two weeks - even though it's a SIGSEGV.
Thx for the helgrind tip - I tried and found something interesting I posted here:
https://core.tcl.tk/thread/tktview/44499074cb431338a001c9d381913ffca29961d3
Thomas