Bug#579352: renpy: Fatal Python error: (pygame parachute) Segmentation Fault

Ying-Chun Liu (PaulLiu) grandpaul at gmail.com
Tue Apr 27 09:10:27 UTC 2010


Package: renpy
Version: 6.9.3.dfsg1-1
Severity: normal

*** Please type your report below this line ***

When I run renpy, it crash. renpy-demo also crash the same way.

paulliu at freya:/tmp$ renpy
Fatal Python error: (pygame parachute) Segmentation Fault
Aborted

So I recompile renpy with DEB_BUILD_OPTIONS="noopt nostrip" and run gdb.
The gdb backtrace is as attachment.
It shows the crash is at module/core.c (line 1257)
     // Load in the 4 bytes.
     movd_m2r(*(unsigned int *) sp, mm1);      // crash here, sp out of bound
     movd_m2r(*(unsigned int *) (sp + 4), mm2);
     punpcklbw_r2r(mm7, mm1);
     punpcklbw_r2r(mm7, mm2);

I tried to disable MMX in core.c by not #define GCC_MMX at beginning.
Then renpy won't crash. However this is not good.

Thus I do more investigation.
I tried to add a printf("%d,%d,%d\n",px,py,srcpitch);
before unsigned char *sp = srcpixels + py * srcpitch + px * 4; (core.c: 1241)
And that printf() makes renpy won't crash.
WTF.
After removing that printf(), I get crashes again.
I add printf before movd_m2r() it also works (no crash).
But remove that printf will cause the crash.
It really confuses me. How to deal with this kind of bugs?

I'm using AMD64 CPU (AMD Athlon(tm) II X2 240 Processor)
But running i386 system.

Please help me on solving this issue.

Many Thanks,
Paul

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-3-686 (SMP w/2 CPU cores)
Locale: LANG=zh_TW.UTF-8, LC_CTYPE=zh_TW.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages renpy depends on:
ii  python                    2.5.4-9        An interactive high-level object-o
ii  python-pygame             1.8.1release-2 SDL bindings for games development
ii  python-renpy              6.9.3.dfsg1-1  framework for developing visual-no
ii  python-support            1.0.7          automated rebuilding support for P
ii  ttf-dejavu-core           2.30-2         Vera font family derivate with add

Versions of packages renpy recommends:
ii  python [python-ctypes]        2.5.4-9    An interactive high-level object-o

renpy suggests no packages.

-- no debconf information

-- 
                                                PaulLiu(劉穎駿)
E-mail address: paulliu at debian.org
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: renpy_traceback.txt
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20100427/e702ffa8/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20100427/e702ffa8/attachment-0001.pgp>


More information about the Pkg-games-devel mailing list