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

noreply@sourceforge.net noreply@sourceforge.net
Mon, 30 Dec 2002 16:08:05 -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: Fixed
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-12-30 19:08

Message:
Logged In: YES 
user_id=33168

Checked in as Python/dynload_aix.c  2.13.

2.3a1 should be out in about a day.  Florent, it would be
great if you can test it on both 32- and 64- bit AIX.
Leaving open to remind to backport to 2.2.3

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

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