[ python-Bugs-837242 ] id() for large ptr should return a long

SourceForge.net noreply at sourceforge.net
Mon Apr 10 22:28:37 CEST 2006


Bugs item #837242, was opened at 2003-11-06 16:11
Message generated for change (Settings changed) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=837242&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: Python 2.4
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Anthony Baxter (anthonybaxter)
Assigned to: Nobody/Anonymous (nobody)
Summary: id() for large ptr should return a long

Initial Comment:
Under something like Redhat 10 the address space is
messed about with to "prevent stack smash attacks" or
some such. This means that you sometimes get addresses
in the high half of a 32 bit int. Since Python ints are
signed, this means we return a negative number from
id(). For 2.4, we should probably return a long. 

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2006-04-10 22:28

Message:
Logged In: YES 
user_id=21627

Committed as r45239.

----------------------------------------------------------------------

Comment By: Georg Brandl (gbrandl)
Date: 2006-04-10 14:52

Message:
Logged In: YES 
user_id=849994

Looks fine from my POV.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2006-04-10 14:27

Message:
Logged In: YES 
user_id=21627

Right: about about this patch?

----------------------------------------------------------------------

Comment By: Georg Brandl (gbrandl)
Date: 2006-02-20 22:52

Message:
Logged In: YES 
user_id=849994

Ping!

----------------------------------------------------------------------

Comment By: Georg Brandl (birkenfeld)
Date: 2006-01-13 18:24

Message:
Logged In: YES 
user_id=1188172

You're making changes to PyLong_FromVoidPtr, doesn't
PyLong_AsVoidPtr have to be changed too?

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2006-01-11 23:39

Message:
Logged In: YES 
user_id=21627

How about the attached patch?

----------------------------------------------------------------------

Comment By: Georg Brandl (birkenfeld)
Date: 2006-01-10 23:21

Message:
Logged In: YES 
user_id=1188172

Perhaps, for 2.5?

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2003-11-06 21:54

Message:
Logged In: YES 
user_id=21627

Would there anything be wrong with making that change right
away?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=837242&group_id=5470


More information about the Python-bugs-list mailing list