1. pygame
  2. pygame
  3. pygame

Issues

Issue #36 resolved

Example fonty.py crashes with "double free or corruption" on line "font.set_underline(0)"

René Dudfield
created an issue

== A.C.Heron, 2009-08-13 15:28:22 -0700

{{{ Example programs fonty.py which come with pygame (pygame-1.9.1release/examples/fonty.py in file pygame-*release.tar.gz) crash with error message: glibc detected python: double free or corruption right after the line “screen.blit(ren, (10, 40 + size[1]))” while executing “font.set_underline(0)”.

Observed on pygame versions 1.8.1 and 1.9.1. Python version 2.6.2-r1, Freetype version 2.3.9-r1, SDL version 1.2.13-r1, SDL-TTF version 2.0.9, Gentoo Linux x86-64. }}}


== A.C.Heron, 2009-08-13 15:33:06 -0700

{{{ Created attachment 26 Program output after a crash }}}


Attachments: [[http://www.pygame.org/old_bug_attachments/26/fonty-output.txt| fonty-output.txt]]

== A.C.Heron, 2009-08-13 15:34:31 -0700

{{{ Created attachment 27 Output of "strace python fonty.py" }}}


Attachments: [[http://www.pygame.org/old_bug_attachments/27/fonty-strace.txt| fonty-strace.txt]]

Comments (4)

  1. Anonymous

    Well, there seems to be some catch here. My pygame is a bit out of date, as it's still 1.9.1, even though that version went out of the tree awhile ago.

    However, if I take fonty.py straight out of the old tarball, I'm unable to reproduce the crash. Though my system differs significantly from one in the original report: x86, python-2.7.2-r2, freetype-2.4.6, llibsdl-1.2.14-r6, sdl-ttf-2.0.10.

    Though I've seen the post on the mailing list from a user that could reproduce it. However, pygame-1.9.2_pre3082, that's now in the tree, is a quite recent addition, so I should be able to reproduce, if it were still possible.

    Given certain bug, glibc version might matter here - my tests are on 2.13-r4 (the revision will be significant here, if it's that bug).

  2. Log in to comment