[Python-bugs-list] [ python-Bugs-639945 ] 64-bit bug on AIX

noreply@sourceforge.net noreply@sourceforge.net
Fri, 22 Nov 2002 06:48:38 -0800


Bugs item #639945, was opened at 2002-11-18 03:17
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=639945&group_id=5470

>Category: Python Interpreter Core
Group: Python 2.2.1
Status: Open
>Resolution: Remind
Priority: 5
Submitted By: Florent Cayré (florent_cayre)
>Assigned to: Neal Norwitz (nnorwitz)
Summary: 64-bit bug on AIX

Initial Comment:
A bug in dynload_aix.c causes unpredictable
segmentation faults on 64-bit AIX when importing a
module.
This bug is due to an (unsigned int) improper cast in
the aix_getoldmodules function, returning a bad address
as the beginning of the next ld_info structure pointed
to by ldiptr.
Following is a minimalist patch proposal obtained by
changing these (unsigned int) casts into (char*) casts
in the Python 2.2.1 version.

Regards,

Florent Cayré.


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

>Comment By: Neal Norwitz (nnorwitz)
Date: 2002-11-22 09:48

Message:
Logged In: YES 
user_id=33168

Florent, thank you.  Your patch seems correct, but
unfortunately I can't test it at this time.  Once I can test
it, I will check in the changes.  If someone else can verify
this patch works for them on both 32 & 64 bit compiles, I
will check it in.

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

Comment By: Florent Cayré (florent_cayre)
Date: 2002-11-20 01:59

Message:
Logged In: YES 
user_id=648804

Not sure I understand your question...
However I filled in the Group drop down list and join my
entire dynload_aix.c file with the proposed correction in
it.

Regards,

Florent Cayré.

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

Comment By: Neal Norwitz (nnorwitz)
Date: 2002-11-19 14:04

Message:
Logged In: YES 
user_id=33168

Florent, could you please point out the exact code and
change necessary?

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

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