Debian Bug report logs -
#439071
libsdl-pango1: Segmentation fault on 64 bit processors rendering an empty string
Reported by: Jens Seidel <jensseidel@users.sf.net>
Date: Wed, 22 Aug 2007 00:33:04 UTC
Severity: important
Found in version sdlpango/0.1.2-1
Fixed in version sdlpango/0.1.2-2
Done: Josselin Mouette <joss@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Josselin Mouette <joss@debian.org>:
Bug#439071; Package libsdl-pango1.
(full text, mbox, link).
Acknowledgement sent to Jens Seidel <jensseidel@users.sf.net>:
New Bug report received and forwarded. Copy sent to Josselin Mouette <joss@debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: libsdl-pango1
Version: 0.1.2-1
Severity: important
Hi,
I noticed that SDL Pango is not able to handle empty strings "" on 64 bit
platforms. I verified it on a Intel(R) Core(TM)2 Quad CPU @ 2.40GHz CPU
(OpenSuse) but it probably fails on amd64 as well, see #438800.
It doesn't fail on my 32 bit Intel (Debian) platform.
I was able to reproduce it with a simplified testbench.c program from
SDL Pango source.
SDL_Pango-0.1.2/test> LANG=C valgrind ./testbench
==27594== Memcheck, a memory error detector.
==27594== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==27594== Using LibVEX rev 1732, a library for dynamic binary translation.
==27594== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==27594== Using valgrind-3.2.3, a dynamic binary instrumentation framework.
==27594== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==27594== For more details, rerun with: -v
==27594==
==27594== Invalid write of size 4
==27594== at 0x4E5664E: SDL_FillRect (in /usr/lib64/libSDL-1.2.so.0.11.0)
==27594== by 0x50BF6F7: SDLPango_Draw (in /usr/lib64/libSDL_Pango.so.1.1.0)
==27594== by 0x50BFE14: SDLPango_CreateSurfaceDraw (in /usr/lib64/libSDL_Pango.so.1.1.0)
==27594== by 0x400BE8: main (in /tmp/hex-a-hop/pango/SDL_Pango-0.1.2/test/testbench)
==27594== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==27594==
==27594== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 5 from 2)
==27594== malloc/free: in use at exit: 316,428 bytes in 4,343 blocks.
==27594== malloc/free: 42,131 allocs, 37,788 frees, 12,007,300 bytes allocated.
==27594== For counts of detected errors, rerun with: -v
==27594== searching for pointers to 4,343 not-freed blocks.
==27594== checked 849,960 bytes.
==27594==
==27594== LEAK SUMMARY:
==27594== definitely lost: 51,157 bytes in 1,016 blocks.
==27594== possibly lost: 13,760 bytes in 28 blocks.
==27594== still reachable: 251,511 bytes in 3,299 blocks.
==27594== suppressed: 0 bytes in 0 blocks.
==27594== Rerun with --leak-check=full to see details of leaked memory.
Segmentation fault
Jens
[testbench.c (text/x-csrc, attachment)]
Reply sent to Josselin Mouette <joss@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Jens Seidel <jensseidel@users.sf.net>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #10 received at 439071-close@bugs.debian.org (full text, mbox, reply):
Source: sdlpango
Source-Version: 0.1.2-2
We believe that the bug you reported is fixed in the latest version of
sdlpango, which is due to be installed in the Debian FTP archive:
libsdl-pango-dev_0.1.2-2_amd64.deb
to pool/main/s/sdlpango/libsdl-pango-dev_0.1.2-2_amd64.deb
libsdl-pango1_0.1.2-2_amd64.deb
to pool/main/s/sdlpango/libsdl-pango1_0.1.2-2_amd64.deb
sdlpango_0.1.2-2.diff.gz
to pool/main/s/sdlpango/sdlpango_0.1.2-2.diff.gz
sdlpango_0.1.2-2.dsc
to pool/main/s/sdlpango/sdlpango_0.1.2-2.dsc
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 439071@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Josselin Mouette <joss@debian.org> (supplier of updated sdlpango 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 ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Tue, 18 Sep 2007 16:36:11 +0200
Source: sdlpango
Binary: libsdl-pango-dev libsdl-pango1
Architecture: source amd64
Version: 0.1.2-2
Distribution: unstable
Urgency: low
Maintainer: Josselin Mouette <joss@debian.org>
Changed-By: Josselin Mouette <joss@debian.org>
Description:
libsdl-pango-dev - text rendering with Pango in SDL applications (development)
libsdl-pango1 - text rendering with Pango in SDL applications (shared library)
Closes: 437517 437518 437865 439071 439933
Changes:
sdlpango (0.1.2-2) unstable; urgency=low
.
[ Aurelien Jarno ]
* debian/control:
+ Make the package binNMU safe.
.
[ Josselin Mouette ]
* Install the API documentation in the development package.
* Thanks to Jens Seidel for the numerous useful bug reports.
* matrix_declarations.patch: move the matrix declarations to the .c
file instead of the header. Closes: #437517.
* Switch to quilt for patch management.
+ Refresh patches.
+ Incidentally fix line encoding mess. Closes: #437518.
* api_additions.patch: define SDL_PANGO_HAS_GC_EXTENSIONS to provide a
macro that can be easily tested against. Closes: #437865.
* sans-serif.patch: use sans-serif instead of the deprecated Sans
alias. Closes: #439933.
* fillrect_crash.patch: fix crash when SDLPango_Draw is called with an
empty string. Closes: #439071.
* autotools.patch: update config.sub and config.guess.
Files:
8d048473664263bec14e6ade583a5e7e 653 libs optional sdlpango_0.1.2-2.dsc
116a396d1ed55595535e609c7cebef00 20054 libs optional sdlpango_0.1.2-2.diff.gz
a857c36c989cb49e753e2923589de038 10920 libs optional libsdl-pango1_0.1.2-2_amd64.deb
6f3b602edfca1b9f9078807976b162af 30962 libdevel optional libsdl-pango-dev_0.1.2-2_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFG7/Y9rSla4ddfhTMRAlGcAJ9CpZcTt3lVm43aJ/B/u62CMIpNegCfV8SI
jKzWriAWoT+8mR7WGqLe3Ag=
=qiuB
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 28 Oct 2007 07:33:17 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 13:21:31 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.