Description of problem: A stack-allocated structure is used as a hash key for a color in Tk_GetColorByValue(). Compilation on x86_64 inserts some unused gaps in structures for alignment: this results in having undefined bits participating to the hash code computation, introducing the risk of missing a color that is already in the table. Version-Release number of selected component (if applicable): tk-8.5.7-2.fc12.x86_64 How reproducible: No recipe: very random in nature. I discovered this problem inadvertently while using valgrind on "insight" for another problem. Additional info: The attached patch fixes this problem by clearing the structure before assigning its fields.
Created attachment 377159 [details] Patch fixing the bug
thx for patch. I will apply patch today.
Please note this has not been reported upstream, and does not seem fixed on the project's CVS.
I know I have a plan to talk with upstream and push the patch into cvs.
tk-8.5.7-3.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/tk-8.5.7-3.fc12
tk-8.5.7-3.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.