[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Segmentation fault in pygame.mixer
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Segmentation fault in pygame.mixer
- From: Rene Dudfield <renesd@xxxxxxxxx>
- Date: Sat, 6 Aug 2005 10:11:19 +1000
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Fri, 05 Aug 2005 20:11:32 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CokhubWRF306LQ0os+XDBiSJYYd5KufdFYBmbd6WnsuPxtpxXwlidNWmxi58w7sKNKKFW+CQ9sfyumNaH63HJWDvxgWcM+lsljvmD8cJPSAJ9rt49XMKlLePKMmz+eDedlA6uA7WgZqLyrZSWw16keiztA2k37m2TqJolA2yNVE=
- In-reply-to: <1123260415.24760.14.camel@localhost.localdomain>
- References: <1122557672.13319.13.camel@localhost.localdomain> <1123260415.24760.14.camel@localhost.localdomain>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
ah excellent :)
Yeah any optimization above -O2 is not really safe to use.
On 8/6/05, Rudá Moura <ruda.moura@xxxxxxxxxxx> wrote:
> On Thu, 2005-07-28 at 10:34 -0300, Rudá Moura wrote:
> > Hello everybody,
> >
> > I don't know if it is a know issue (or I'm doing something wrong!), but
> > I'm getting segmentation fault
> > in pygame.mixer whenever I do a init(), quit() and exit from Python
> > interpreter, like:
>
> Hi!
>
> I have two good news:
>
> - First, I found the bug!
> - Second, it was not PyGame guilt. (as expected) :)
>
> My Python 2.4 development package sets -O3 to compile python modules and
> I have just discovered (debugging) strange behavior in autoinit() and
> autoquit() when stepping in statements, so I decide to disable
> optimizations. I compiled PyGame with -O0 and the segmentation was gone!
> Great, but without optimizations is no good for game developers, so I
> decide to recompile with -O2. It works! No segmentation faults.
>
> Don't know if it was the GCC compiler (3.3.5) for ARM or the scratchbox
> (build tool) environment but I will use -O2 for now and then.
>
> Thanks and keep working on PyGame!
>
>
>
>