Bug 1229991

Summary: memory corruption when no fonts installed
Product: [Fedora] Fedora Reporter: Akira TAGOH <tagoh>
Component: tkAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: jskarvad
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tk-8.6.4-2.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-14 15:41:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to fix this issue none

Description Akira TAGOH 2015-06-10 05:43:29 UTC
Created attachment 1037098 [details]
patch to fix this issue

Description of problem:
tk application crashes when no fonts installed due to bad handling of fontconfig related code.

Version-Release number of selected component (if applicable):
tk-8.6.4-1.fc22

How reproducible:
always

Steps to Reproduce:
1.remove all of fonts package if installed
2.run gitk say
3.

Actual results:
segfault

Expected results:
no segfault

Additional info:
backtrace says it crashes in fontconfig but it happened due to giving memory-corrupted pointer to it. so the real problem is in tk.

Comment 1 Jaroslav Škarvada 2015-07-02 15:52:04 UTC
(In reply to Akira TAGOH from comment #0)
Thanks applied.

Comment 2 Fedora Update System 2015-07-02 16:18:19 UTC
tk-8.6.4-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/tk-8.6.4-2.fc22

Comment 3 Fedora Update System 2015-07-03 18:49:08 UTC
Package tk-8.6.4-2.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing tk-8.6.4-2.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-11119/tk-8.6.4-2.fc22
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-07-14 15:41:46 UTC
tk-8.6.4-2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.