Bug 506840 - Problem in freetype causes navit to crash unless freetype is built with -fno-strict-aliasing
Problem in freetype causes navit to crash unless freetype is built with -fno-...
Status: CLOSED DUPLICATE of bug 513582
Product: Fedora
Classification: Fedora
Component: freetype (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Behdad Esfahbod
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2009-06-18 16:55 EDT by Adam Williamson
Modified: 2009-07-29 12:54 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-07-29 12:54:55 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Adam Williamson 2009-06-18 16:55:45 EDT
I encountered a problem running SVN navit (a GPS navigation app) on F11 and then Rawhide; it would crash as soon as it tried to render any text.

I reported this upstream, and the upstream developer Martin Schaller very kindly investigated this extensively. He was able to isolate it to a problem in freetype. I quote:

"I think I got something
<cp15> Can you find out what compiler flags are used to compile freetype on redhat?
<cp15> Because it seems freetype exibits a bug when compiled without -fno-strict-aliasing
<adamw> OK...so this is really a bug in freetype we should report and get fixed, building with -fno-strict-aliasing is just a workaround, right?
<cp15> Well... Hmm... without -fno-strict-aliasing gcc makes some optimizations which are probably not expected by freetype. Hard to say where the bug is
<adamw> yes! that does the trick indeed
 ok, so...file a bug on freetype. can you give me some more details to include? do you know exactly where it goes wrong?
<cp15> I can only tell that it crashes in ftccmap.c line 382 at FT_ASSERT( (FT_UInt)( char_code - node->first ) < FTC_CMAP_INDICES_MAX ); because node seems to be corrupted or NULL or at line cmap = face->charmaps[cmap_index]; because face->charmaps seems to be corrupted
 Should have been line 406 in the second part"

So, that's what we know about the problem. Please ask if you need any more details. A .src.rpm for navit which you can rebuild to reproduce the problem can be found at http://adamwill.fedorapeople.org/navit/navit-0.1.1-0.1.2347.aw_fc12.src.rpm . Run it with a stock Fedora freetype, and it fails. Run it with stock Rawhide freetype unchanged except by adding -fno-strict-aliasing to CFLAGS, and it works.
Comment 1 Adam Williamson 2009-06-18 16:56:21 EDT
Adding Martin to CC, he can provide any further details that might help.

Fedora Bugzappers volunteer triage team
Comment 2 udo 2009-06-18 23:20:18 EDT
Problem also seen here.
Comment 3 Kevin Kofler 2009-07-29 12:54:55 EDT
Closing as a duplicate of the more recent report which has a patch attached.

The fix got pushed to F11 now.

*** This bug has been marked as a duplicate of bug 513582 ***

Note You need to log in before you can comment on or make changes to this bug.