Bug 468357
| Summary: | tkimg crashes when creating png images | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Takanori MATSUURA <t.matsuu> |
| Component: | tkimg | Assignee: | Sergio Pascual <sergio.pasra> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 9 | CC: | krahn, sergio.pasra |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2009-02-07 22:21:18 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Takanori MATSUURA
2008-10-24 10:33:11 UTC
I am getting segfaults from the same tkimg version for fc8, which seems likely to be caused buy the same problem. It can be reproduced with the following tclsh input: package require img::png image create photo ::img::spot_red_plus3x3 -data "iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAYAAABWKLW/AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH1gYdDTo2x0v3wwAAAB10RVh0Q29tbWVudABDcmVhdGVkIHdpdGggVGhlIEdJTVDvZCVuAAAAG0lEQVQI12NgYGBg+M/A8J+BgYGBEcaAA5gAAHzEBfwZ/LSpAAAAAElFTkSuQmCC" It doesn't crash every time. When it does, it is crashing during a call to png_read_info() in libpng12.so. I tried switching to older versions of tkimg, and an older version of libpng, but still get the segfault. I can send more info, but hopefully the above example can reproduce the crash. Ok, I can reproduce the crash in f8 and f9, with tkimg-1.3 The past week I submitted a new tkimg-1.4 for devel and f10 and it seems to crash too. :( The rpm package is patched to use the system libraries instead of the libraries in the package. I will try recompile tkimg without the patches and see what happens After my comment above, I tested the SRPM patched sources. It seems that the patches are the problem. However, I think using system libs is the right thing to do. Tkimg really should have a built-in option whether to include it's own libraries. It seems that Tkimg is not maintained much; it still uses K&R syntax. My suggestion is to build new RPMs without the system-lib patch, and try to work on improving the Tkimg sources for a future release. The png driver uses two callbacks that aren't exported anymore by the dynamic png library, png_read_destroy and png_write_destroy. To allow the compilation I have removed them in pngtclDecls.h and pngtclStubInit.c I don't know, but this can be the reason of the crash. I will bug this upstream Several other image formats have problems as well, even though PNG is the only one to segfault. I still think it is worth releasing a version without the system-lib patch until this gets worked out. tkimg-1.4-0.2.20081115svn.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/tkimg-1.4-0.2.20081115svn.fc10 I have reverted the system patches. Please test this new rpm pixmap/tests (no test script exist) sgi/tests/all.tcl ==== sgi-1.1 FAILED ==== sgi-1.2 FAILED ==== sgi-1.3 FAILED ==== sgi-1.4 FAILED Other FAILED test in comment #1 returns no error. I don't know test for sgi format should be passed on Linux platform. tkimg-1.4-0.2.20081115svn.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update tkimg'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-0764 tkimg-1.4-0.2.20081115svn.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report. |