Python 2.5 specific bug

2008-05-13 Thread Sam Morris
Python-knowledgeable people: I seem to have uncovered a bug specific to
python 2.5. Could you please take a look at #481071 and advise how to go
about tracking it down?

The bug can be reproduced with python 2.5 but only on Debian systems--on
an Ubuntu 8.04 system the code does not throw an error. Please try the
test case attached to the bug and let me know if you see it too.

-- 
Sam Morris <[EMAIL PROTECTED]>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Python 2.5 specific bug

2008-05-13 Thread Josselin Mouette
Le mardi 13 mai 2008 à 16:35 +0100, Sam Morris a écrit :
> Python-knowledgeable people: I seem to have uncovered a bug specific to
> python 2.5. Could you please take a look at #481071 and advise how to go
> about tracking it down?
> 
> The bug can be reproduced with python 2.5 but only on Debian systems--on
> an Ubuntu 8.04 system the code does not throw an error. Please try the
> test case attached to the bug and let me know if you see it too.

The pygame code looks buggy to me. len should be a size_t, not an int.
Which is why it is failing on your amd64 system.

-- 
 .''`.
: :' :  We are debian.org. Lower your prices, surrender your code.
`. `'   We will add your hardware and software distinctiveness to
  `-our own. Resistance is futile.


signature.asc
Description: Ceci est une partie de message	numériquement signée


Re: Python 2.5 specific bug

2008-05-13 Thread Josselin Mouette
Le mercredi 14 mai 2008 à 00:32 +0200, Josselin Mouette a écrit :
> Le mardi 13 mai 2008 à 16:35 +0100, Sam Morris a écrit :
> > The bug can be reproduced with python 2.5 but only on Debian systems--on
> > an Ubuntu 8.04 system the code does not throw an error. Please try the
> > test case attached to the bug and let me know if you see it too.
> 
> The pygame code looks buggy to me. len should be a size_t, not an int.
> Which is why it is failing on your amd64 system.

It will be no surprise to anyone that the patch in Ubuntu [0] that
prevents this from happening was not forwarded to Debian.

[0] http://patches.ubuntu.com/p/pygame/extracted/01_stack_overwrite.dpatch

-- 
 .''`.
: :' :  We are debian.org. Lower your prices, surrender your code.
`. `'   We will add your hardware and software distinctiveness to
  `-our own. Resistance is futile.


signature.asc
Description: Ceci est une partie de message	numériquement signée


Re: Python 2.5 specific bug

2008-05-13 Thread Sandro Tosi
On Wed, May 14, 2008 at 12:35 AM, Josselin Mouette <[EMAIL PROTECTED]> wrote:
> Le mercredi 14 mai 2008 à 00:32 +0200, Josselin Mouette a écrit :
>
> > Le mardi 13 mai 2008 à 16:35 +0100, Sam Morris a écrit :
>
> > > The bug can be reproduced with python 2.5 but only on Debian systems--on
>  > > an Ubuntu 8.04 system the code does not throw an error. Please try the
>  > > test case attached to the bug and let me know if you see it too.
>  >
>  > The pygame code looks buggy to me. len should be a size_t, not an int.
>  > Which is why it is failing on your amd64 system.
>
>  It will be no surprise to anyone that the patch in Ubuntu [0] that
>  prevents this from happening was not forwarded to Debian.
>
>  [0] http://patches.ubuntu.com/p/pygame/extracted/01_stack_overwrite.dpatch

well, the package is hardly maintained now days; I've talked on IRC
with Sam and it seems interested in pygame. I've suggested to contact
both actual maintainer and co-maint to please orphan it if they are no
more interested / have no more time, if 7/10 days will pass with no
reply, go ask the QA team for what to do. If we can get an O: for it,
we can inject in the DPMT repository, and start maintaining it in the
team (I volunteer to comaint, and do the previous steps if Sam prefers
me to do).

Cheers,
Sandro

-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Python 2.5 specific bug

2008-05-13 Thread Sam Morris
block 481071 by 473672
thanks

On Wed, 2008-05-14 at 00:35 +0200, Josselin Mouette wrote:
> Le mercredi 14 mai 2008 à 00:32 +0200, Josselin Mouette a écrit :
> > Le mardi 13 mai 2008 à 16:35 +0100, Sam Morris a écrit :
> > > The bug can be reproduced with python 2.5 but only on Debian systems--on
> > > an Ubuntu 8.04 system the code does not throw an error. Please try the
> > > test case attached to the bug and let me know if you see it too.
> > 
> > The pygame code looks buggy to me. len should be a size_t, not an int.
> > Which is why it is failing on your amd64 system.
> 
> It will be no surprise to anyone that the patch in Ubuntu [0] that
> prevents this from happening was not forwarded to Debian.
> 
> [0] http://patches.ubuntu.com/p/pygame/extracted/01_stack_overwrite.dpatch

To be fair, this is already fixed upstream in pygame 1.8.

-- 
Sam Morris
http://robots.org.uk/

PGP key id 1024D/5EA01078
3412 EA18 1277 354B 991B  C869 B219 7FDB 5EA0 1078


signature.asc
Description: This is a digitally signed message part