Setting a group item's -parent value to the same id as the item will cause a crash.
To reproduce:
% tkp::canvas .c
% pack .c
% .c create group
1
% .c itemconfigure 1 -parent 1
Segmentation fault (core dumped)
The supplied patch just ignores the setting if the item id and the value supplied to "-parent" are the same.
Patch for group item "-parent" crash