Dejavu Sans crashes applications for specific characters

Bug #31910 reported by Simos Xenitellis 
26
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pango
Unknown
High
gedit
Unknown
High
ttf-dejavu (Ubuntu)
Fix Released
Critical
Matthias Klose

Bug Description

There are specific characters in Dejavu Sans that make applications to crash.

Specifically, the characters ΐ and ΰ (Greek characters), when written or displayed in GTK+ applications, causes them to crash. It is important that the Dejavu Sans font is used for the crash to take place.

To replicate:
1. Open gedit (preferably from gnome-terminal)
2. Pick the test file from http://www.gnome.gr/docs/testtext.txt
When pasting from Firefox, change first the encoding to Unicode (UTF-8), as the Firefox autodetection changes this to Cyrillic.
Alternative, do
wget http://www.gnome.gr/docs/testtext.txt
3. Configure the preferences in Gedit to use Dejavu Sans (or Sans), which is the default in Dapper.
4. Load testtext.txt into gedit (use File/Open, or even "gedit testtext.txt").
5. In most cases, gedit crashes straight away.
You may get the message
*** glibc detected *** double free or corruption (!prev): 0x0821dc90 ***
in gnome-terminal. In other cases, you get no output.
6. The last line of testtext.txt has the ΐ ΰ characters; the bug appears even as soon as you type this characters in a new document.

Items that remain to be checked
A. What other applications can exhibit this bug?
B. Is it only "gedit" or is it only "GTK+ based editors", is it also applications that display a string with these characters?

Tags: mago
Revision history for this message
Simos Xenitellis  (simosx) wrote : Demonstration text

Used to verify the bug report.

(I just managed to figure out how to add attachments..)

Revision history for this message
Kostas Papadimas (pkst) wrote : Gedit crash with freesans and greek text

Confirmed. Here is the backtrace of the crash

Revision history for this message
Simos Xenitellis  (simosx) wrote :

The version of DejaVu in Ubuntu Dapper is 2.1.
I have verified that the crashing of applications appears in with DejaVu 2.2 as well.

Ubuntu Dapper uses DejaVu 2.1:
https://lists.ubuntu.com/archives/dapper-changes/2005-December/003197.html

Revision history for this message
Simos Xenitellis  (simosx) wrote :

Reported this bug upstream, at the dejavu mailing list, see
http://sourceforge.net/mailarchive/forum.php?thread_id=9761361&forum_id=40874
Any replies will appear at the end of the above URL.

Revision history for this message
Simos Xenitellis  (simosx) wrote :

I could not reproduce this bug in another GTK+ editor (I tried "tea"), therefore, I believe this is a gedit bug.

Revision history for this message
Simos Xenitellis  (simosx) wrote : Stacktrace of gedit 2.12.1 crashing when loading file

gedit 2.12.1 crashes when loading file or when user writes specific valid Unicode characters.

The bug appears when the user selects the Dejavu Sans font as the font to display text in the program.
It has been verified that gedit crashes on Dejavu Sans 2.1, 2.2 and possibly 2.3.

There is some chance that the bug exists in the cairo library (see stacktrace). Please comment on this.

Revision history for this message
Simos Xenitellis  (simosx) wrote :

It appears this is a bug in both (or either) Pango and DejavuSans (thanks to Behdad for this).

I filed a bug report for Pango for further investigation,
http://bugzilla.gnome.org/show_bug.cgi?id=331833

Revision history for this message
Kostas Papadimas (pkst) wrote :

An upgrade to Dejavu Sans 2.3 solves the problem. Only with Dejavu sans 2.1 gedit crashes..

Revision history for this message
Simos Xenitellis  (simosx) wrote :

I am raising the severity to Major, priority to High, as this affects greatly the support for the Greek language (and possibly other languages).

Specifically, see
http://bugzilla.gnome.org/show_bug.cgi?id=331833

DejaVu Sans 2.1 (currently included in Dapper) can cause GNOME 2.14 applications to crash/hang when displaying specific characters. DejaVu Sans is the default desktop font for Greek and several other languages, therefore, it is likely to occur often.

It appears that the source of the bug has been in both DejaVu Sans 2.1 and GNOME libraries (probably in cairo/pango/fontconfig).

To solve the problem, we have verified that DejaVu 2.3 fixes this problem.

In addition, DejaVu Mono 2.1 does not have full coverage of Modern Greek, resulting in erroneous display (see bug 31890).

Therefore, could you please update the DejaVu package to include DejaVu 2.3?

Changed in fontconfig:
status: Unconfirmed → Confirmed
Revision history for this message
Simos Xenitellis  (simosx) wrote :

Setting this bug to the correct package, ttf-dejavu.

Revision history for this message
Simos Xenitellis  (simosx) wrote :

Setting milestone to "ubuntu-6.04".

Revision history for this message
Kostas Papadimas (pkst) wrote :

Also seems that there are some mistakes in the ttf-dejavu_2.1-0ubuntu1_all.deb package:

1)The ttf-dejavu.hints provides wrong names for
a)DejaVuSansMono.ttf (lists the font as DejaVuSansMono-Roman.ttf)
b) DejaVuSansMono-BoldObligue.ttf (lists them as DejaVuSansMono-BoldOb.ttf)
c) DejaVuSerif.ttf (lists them as DejaVuSerif-Roman)

This has as a result in erroneous listing and broken symlinks of Dejavu fonts in defoma related directories

2)ttf-dejavu.hints does not provide ISO8859-7 for the dejavu fonts

Revision history for this message
Ming Hua (minghua) wrote : Re: [Bug 31910] Dejavu Sans crashes applications for specific characters

On Wed, Feb 22, 2006 at 11:19:48AM -0000, Kostas Papadimas wrote:
> Comment:
> Also seems that there are some mistakes in the ttf-
> dejavu_2.1-0ubuntu1_all.deb package:
>
> 1)The ttf-dejavu.hints provides wrong names for
> a)DejaVuSansMono.ttf (lists the font as DejaVuSansMono-Roman.ttf)
> b) DejaVuSansMono-BoldObligue.ttf (lists them as DejaVuSansMono-BoldOb.ttf)
> c) DejaVuSerif.ttf (lists them as DejaVuSerif-Roman)
>
> This has as a result in erroneous listing and broken symlinks of Dejavu
> fonts in defoma related directories
>
> 2)ttf-dejavu.hints does not provide ISO8859-7 for the dejavu fonts

I think these should be filed as separate bugs. I'll definitely look at
problem (1) and try to get out a patch. It seems to affect Debian as
well.

Ming
2006.02.22

Revision history for this message
Ming Hua (minghua) wrote :

On Mon, Feb 20, 2006 at 03:24:44PM -0000, Simos Xenitellis wrote:
>
> Comment:
> Setting milestone to "ubuntu-6.04".

I don't think this is how things work - unless you can upload to main
and plan to fix this yourself.

The proper procedure, I believe, is to ask for UVF/FF exception (check
ubuntu-devel-announce mailing list for details), meanwhile try to build
a package for version 2.3 and test it. After getting the exception
approval, find some developer that can upload to main and sponsor this.

Ming
2006.02.22

Revision history for this message
Simos Xenitellis  (simosx) wrote :

Rejecting, as this is not a gedit bug per se.

Changed in gedit:
status: Unconfirmed → Rejected
Revision history for this message
Simos Xenitellis  (simosx) wrote :

Rejecting as this is not a pango issue per se.

Changed in pango:
status: Unconfirmed → Rejected
Matthias Klose (doko)
Changed in ttf-dejavu:
assignee: nobody → doko
Revision history for this message
Matthias Klose (doko) wrote :

please check the package at http://people.ubuntu.com/~doko/

Revision history for this message
Matthias Klose (doko) wrote :

2.3 uploaded in dapper

Changed in ttf-dejavu:
status: Confirmed → Fix Released
Changed in gedit:
importance: Unknown → High
status: Invalid → Unknown
Changed in pango:
importance: Unknown → High
status: Invalid → Unknown
tags: added: mago
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.