Your message dated Wed, 23 Aug 2017 13:05:06 +0000
with message-id <e1dkvlg-0008qg...@fasolo.debian.org>
and subject line Bug#871487: fixed in pyglet 1.3.0~rc1-1
has caused the Debian Bug report #871487,
regarding python-pyglet: Segmentation fault when using fonts
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
871487: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871487
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python-pyglet
Version: 1.1.4.dfsg-3
Severity: important
Tags: upstream patch


Dear Maintainer,

pyglet in stretch causes a segmentation fault when using the font
routines.  This can be trivially reproduced:

import pyglet
pyglet.font.load("", 30)

Segmentation fault

This problem does not occur in jessie.

I have tracked this down to the way that ctypes is being used to
call the fontconfig library.  Please find attached a patch which
fixes this.

This is probably important enough to consider a stable update once the
fix is in unstable, as any application which calls pyglet.font.load in
stretch will segmentation fault (e.g. psychopy as soon as a TextStim
object is created).

Thanks,

Mark
--- a/pyglet/font/freetype.py
+++ b/pyglet/font/freetype.py
@@ -52,6 +52,7 @@
 
 FcResult = c_int
 
+fontconfig.FcPatternCreate.restype = c_void_p
 fontconfig.FcPatternBuild.restype = c_void_p
 fontconfig.FcFontMatch.restype = c_void_p
 fontconfig.FcFreeTypeCharIndex.restype = c_uint
@@ -320,6 +321,7 @@
             name = name.encode('utf8')
 
         pattern = fontconfig.FcPatternCreate()
+        pattern = c_void_p(pattern)
         fontconfig.FcPatternAddDouble(pattern, FC_SIZE, c_double(size))
         fontconfig.FcPatternAddInteger(pattern, FC_WEIGHT, bold)
         fontconfig.FcPatternAddInteger(pattern, FC_SLANT, italic)
@@ -330,6 +332,7 @@
         # Look for a font that matches pattern
         result = FcResult()
         match = fontconfig.FcFontMatch(0, pattern, byref(result))
+        match = c_void_p(match)
         fontconfig.FcPatternDestroy(pattern)
 
         return match

--- End Message ---
--- Begin Message ---
Source: pyglet
Source-Version: 1.3.0~rc1-1

We believe that the bug you reported is fixed in the latest version of
pyglet, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 871...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Yaroslav Halchenko <deb...@onerussian.com> (supplier of updated pyglet package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 23 Aug 2017 01:30:59 -0400
Source: pyglet
Binary: python-pyglet
Architecture: source all
Version: 1.3.0~rc1-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team 
<python-modules-team@lists.alioth.debian.org>
Changed-By: Yaroslav Halchenko <deb...@onerussian.com>
Description:
 python-pyglet - cross-platform windowing and multimedia library
Closes: 786897 864936 871487
Changes:
 pyglet (1.3.0~rc1-1) unstable; urgency=medium
 .
   [ Ondřej Nový ]
   * Fixed VCS URL (https)
 .
   [ Yaroslav Halchenko ]
   * Fresh upstream rc (Closes: #786897, #871487)
     - resolves some of the segfaulting issues (Closes: #864936)
   * d/watch - point to pypi
   * d/patch - only 1 left not upstreamed (minor - string exception, PR sent)
   * d/rules + changelog -- no .dfsg suffix any longer.  It seems that all the
     materials previously removed carry statement of copyright/license of the
     main project
   * d/control - boosted policy to 3.9.8, removed obsolete min Python version
     specification
   * d/control,rules - run at least some of the upstream unittests
Checksums-Sha1:
 2d61ff53e9781384972ba3c2e3f5bec116933ac7 2223 pyglet_1.3.0~rc1-1.dsc
 913ca67b41c7f22a64a2d4df73e9ce503f93a08d 3193761 pyglet_1.3.0~rc1.orig.tar.gz
 de88afbea5bdd5a01f880307c2acb776dc201a89 6176 pyglet_1.3.0~rc1-1.debian.tar.xz
 683d87042f6bdd4bdb8856568a5994b154d45a6e 7960 
pyglet_1.3.0~rc1-1_amd64.buildinfo
 a3406526fee500b6c090c6ca9bd4c81943ccd191 1121040 
python-pyglet_1.3.0~rc1-1_all.deb
Checksums-Sha256:
 38d0e5c33a9dcc0f2e8a3a077e4ee51216f6ef46593d1bd8fef8162f221f0b19 2223 
pyglet_1.3.0~rc1-1.dsc
 e37ef903fb420e771a348086d5ba9fcd645a5dc11e088bcfdf07a360797817e3 3193761 
pyglet_1.3.0~rc1.orig.tar.gz
 7ebe117dc4562580ae51a76a289999808bc070186bdfa00c27f9cd6f2ac04d4f 6176 
pyglet_1.3.0~rc1-1.debian.tar.xz
 b99228a87a93e41b4361e86b514a5552bdb80f5cd5a7bc00946733c6bcb1febc 7960 
pyglet_1.3.0~rc1-1_amd64.buildinfo
 b711976ab5e3f5411339cdc99f979fe0187b57fc01df6475048936d152358771 1121040 
python-pyglet_1.3.0~rc1-1_all.deb
Files:
 9cc3882fd8bef0f6d77aa1a0f523c461 2223 python optional pyglet_1.3.0~rc1-1.dsc
 24a8c40ef392e5302cc8a83e4042cf28 3193761 python optional 
pyglet_1.3.0~rc1.orig.tar.gz
 e4383bd751594c1c1c59407bfacdf56d 6176 python optional 
pyglet_1.3.0~rc1-1.debian.tar.xz
 51e220f0b41d937996e0607d28750fce 7960 python optional 
pyglet_1.3.0~rc1-1_amd64.buildinfo
 bf9d4a91632191f867f04b4f7ccb406a 1121040 python optional 
python-pyglet_1.3.0~rc1-1_all.deb

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEExbkF8OjZ/ZZo/zZvot4jUGLaM/oFAlmdec0ACgkQot4jUGLa
M/pbHA/8DH3wOV3iVqTyq8Z6NvsacsD64x7hp7ky2sB1IGPRt5EsPmu+zwLumyAg
tGMPyn5qRsubSBqugOMzwg2tqewDQo+mRfkQH4E55/y1TkOnpZMZpnMXsdBPfiaI
DWhQJ2JJDBJUsogIXMxaamUA0bXFahvNiZssb2B48+FMkl+LyBJ46y4gYU7POcmk
CpymM9qDfza5eb3sjOFcL63JlN57h3oNo+mnaluNPUl9ZC8H5jWqfkCYSD67n04F
yj1LEyqQ6VWXxJx7m3NYp3qFZ40MGBDeC1vXOv92T/kdDChoceql2E3rZiRiAeZ5
PaCIA+9ELas7DxSGxk1RRm6lvXMplBps48Ib/AcLDzmwRmypSBw2XoNPLVoJCMD1
rpCKHrAAZuiJXxo8y7fG1HW9CBjWgvnEhNJoP9Xz9dpzis9gwDhs2AVYk56Uz2Jc
4/VbBPWsxa5ZTjUP4Fpaq0mU9smypqbF3zku1g8ApAVvRERYBdtBRGOLlxZEsrOf
5rfL6niBx7M5IR4GZgrEjPmXK2CTDn+YBd5u1dki2fjYeWWfNx+/7L8GknBUhKh2
klaKom4qe7OXY/pnu0GaitTUsBCA8aRSdNXCWpb3QB5S+E//A20qkVU82kMom+/s
nekCFOZHDiBlLR75VEAHl+lOujLjL1jjbU5ay0+t1mjzHsGKNT8=
=soSX
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to