pygame is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

pygame / pygame http://pygame.org/

Clone this repository (size: 15.4 MB): HTTPS / SSH
hg clone https://bitbucket.org/pygame/pygame
hg clone ssh://hg@bitbucket.org/pygame/pygame

Issues

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

Reported by illume

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: fonty-output.txt

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

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

Attachments: fonty-strace.txt

Status: open Responsible: illume Type: bug Priority: trivial
Milestone: none Component: none Version: none

Attachments

No attachments added for this issue yet.

Comments and changes

  1. #1 illume

    written

    • Changed milestone from nothing to 1.9.2.
    • Changed status from new to open.

    Hi,

    this needs testing by a gentoo user.

    python -m pygame.examples.fonty

  2. #2 Anonymous

    written

    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).

  3. #3 Lenard Lindstrom

    written

    This looks like the issue I had with SDL_ttf 2.0.9 on Debian squeeze. It was fixed in SDL_ttf 2.0.10.

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?