libfreetype6: jnethack: mkfontscale: segfaults on 64 bit arches.

Bug #28427 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
freetype (Debian)
Fix Released
Unknown
freetype (Ubuntu)
Invalid
High
Tollef Fog Heen

Bug Description

Automatically imported from Debian bug report #347776 http://bugs.debian.org/347776

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (3.4 KiB)

Message-ID: <email address hidden>
Date: Thu, 12 Jan 2006 17:01:49 +0100
From: Kurt Roeckx <email address hidden>
To: <email address hidden>
Subject: libfreetype6: jnethack: mkfontscale: segfaults on 64 bit arches.

Package: libfreetype6
Version: 2.1.10-1
Severity: serious

Hi,

While building the jnethack 1.1.5-19 package on 64 bit arches we get the
following error:
( cd dat ; cp x11tiles pet_mark.xbm rip.xpm license t32-1024.xpm credit.xpm floor.xpm jhelp jhh jcmdhelp jhistory jopthelp jwizhelp jjj dungeon asmodeus.lev baalz.lev bigrm-?.lev castle.lev fakewiz?.lev juiblex.lev knox.lev medusa-?.lev minend-?.lev minefill.lev minetn-?.lev oracle.lev orcus.lev sanctum.lev tower?.lev
valley.lev wizard?.lev astral.lev air.lev earth.lev fire.lev water.lev ?-goal.lev ?-fill?.lev ?-locate.lev ?-start.lev data joracles options quest.dat jrumors
/usr/src/jnethack-1.1.5/debian/tmp/usr/lib/games/jnethack )
( cd win/X11 ; cp JNetHack.ad /usr/src/jnethack-1.1.5/debian/tmp/usr/lib/games/jnethack/JNetHack )
( cd win/gtk ; cp GTKRC /usr/src/jnethack-1.1.5/debian/tmp/usr/lib/games/jnethack/gtkrc )
( bdftopcf win/X11/nh10.bdf > /usr/src/jnethack-1.1.5/debian/tmp/usr/lib/games/jnethack/nh10.pcf ; mkfontdir /usr/src/jnethack-1.1.5/debian/tmp/usr/lib/games/jnethack)
/bin/sh: line 1: 24584 Segmentation fault mkfontdir /usr/src/jnethack-1.1.5/debian/tmp/usr/lib/games/jnethack
make[3]: *** [dofiles-nodlb] Error 139

The command that got executed was:
/usr/X11R6/bin/mkfontscale -b -s -l /usr/src/jnethack-1.1.5/debian/tmp/usr/lib/games/jnethack

I've rebuild freetype with debug info and no optimazation
and then get this are result from the core:
(gdb) bt
#0 0x00002aaaaac44d3f in FNT_Face_Init (stream=0x517270, face=0x5172d0,
    face_index=0, num_params=0, params=0x0)
    at /usr/src/freetype-2.1.10/freetype-2.1.10/src/winfonts/winfnt.c:514
#1 0x00002aaaaabd4584 in open_face (driver=0x511180, stream=0x517270,
    face_index=0, num_params=0, params=0x0, aface=0x7ffffff79300)
    at ftobjs.c:927
#2 0x00002aaaaabd55cb in FT_Open_Face (library=0x50c730, args=0x7ffffff793a0,
    face_index=0, aface=0x7ffffff79cf8) at ftobjs.c:1634
#3 0x00002aaaaabd464f in FT_New_Face (library=0x50c730,
    pathname=0x517220 "/usr/src/jnethack-1.1.5/debian/tmp/usr/lib/games/jnethack/dungeon", face_index=0, aface=0x7ffffff79cf8) at ftobjs.c:987
#4 0x0000000000402c20 in ?? ()
#5 0x00000000004038e8 in ?? ()
#6 0x00002aaaaae9c4ca in __libc_start_main () from /lib/libc.so.6
#7 0x000000000040165a in ?? ()
#8 0x00007ffffff7a258 in ?? ()
#9 0x00002aaaaabc29c0 in ?? () from /lib64/ld-linux-x86-64.so.2
#10 0x0000000000000005 in ?? ()
#11 0x00007ffffff7ae55 in ?? ()
#12 0x00007ffffff7ae70 in ?? ()
#13 0x00007ffffff7ae73 in ?? ()
#14 0x00007ffffff7ae76 in ?? ()
#15 0x00007ffffff7ae79 in ?? ()
#16 0x0000000000000000 in ?? ()
(gdb) frame 0
#0 0x00002aaaaac44d3f in FNT_Face_Init (stream=0x517270, face=0x5172d0,
    face_index=0, num_params=0, params=0x0)
    at /usr/src/freetype-2.1.10/freetype-2.1.10/src/winfonts/winfnt.c:514
514 FT_MEM_COPY( font->family_name,
(gdb) p font->family_name
$1 = (FT_String *) 0x0
(gdb) p font->fnt_frame + font->header.face_name_offset
$2 = (FT_...

Read more...

Matt Zimmerman (mdz)
Changed in freetype:
assignee: nobody → tfheen
Revision history for this message
Tollef Fog Heen (tfheen) wrote :

jnethack builds fine for me in Ubuntu; rejecting.

Changed in freetype:
status: Unconfirmed → Rejected
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.