[issue14150] AIX, crash loading shared module into another process than python like operator.so results in 0509-130

2021-09-09 Thread Irit Katriel


Irit Katriel  added the comment:

Python 2.7 is no longer maintained and the current configure files no longer 
have the lines that the patch modifies.

Please create a new issue if you are seeing this problem on a current version 
(>= 3.9).

--
nosy: +iritkatriel
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14150] AIX, crash loading shared module into another process than python like operator.so results in 0509-130

2014-06-02 Thread Michael Haubenwallner

Michael Haubenwallner added the comment:

Doing it this way strictly requires runtime-linking to be enabled, to have the 
main executable and the module use the same runtime instance of the 
libpython${VERSION}.so symbols.

Instead, the main executable better should re-export the python symbols 
itself. This requires httpd to be linked with -bE:/path/to/python.exp linker 
flag.

--
nosy: +haubi

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14150
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14150] AIX, crash loading shared module into another process than python like operator.so results in 0509-130

2012-03-01 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo, loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14150
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14150] AIX, crash loading shared module into another process than python like operator.so results in 0509-130

2012-02-29 Thread Jan Stürtz

Jan Stürtz stue...@googlemail.com added the comment:

Created a patch to fix the configure script, to get the right python.exp File.

--
keywords: +patch
Added file: http://bugs.python.org/file24678/Python-2.7.2-configure.aix.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14150
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14150] AIX, crash loading shared module into another process than python like operator.so results in 0509-130

2012-02-28 Thread Jan Stürtz

New submission from Jan Stürtz stue...@googlemail.com:

AIX 5.2.0.0 with gcc 4.3.0:
Compiling a shared python:
with:
./configure --enable-shared --with-gcc --disable-ipv6 --with-system-ffi
make; make install

results in a working build.
But when I build mod_wsgi into apache with this python and run it I get the 
follwoing exception when importing e.g. cgi.

Traceback (most recent call last):
  File /devel/js/src/trunk/cdb/wsgi/static.py, line 256, in application
status, response_headers, output = resources(environ, path_info[1:])
  File /devel/js/src/trunk/cdb/wsgi/static.py, line 238, in resources
/.join(path_info[1:]), (os.environ[CADDOK_BASE], 
os.environ[CADDOK_HOME]))
  File /devel/js/src/trunk/cdb/wsgi/static.py, line 105, in _find_file
import cgi
  File /devel/js/src/trunk/aix5/debug/img/lib/python2.7/cgi.py, line 37, in 
from operator import attrgetter
ImportError:0509-130 Die Symbolauflösung für 
/devel/js/src/trunk/aix5/debug/img/lib/python2.7/lib-dynload/operator.so ist 
fehlgeschlagen. Ursache:
0509-136   Symbol _PyArg_NoKeywords (Nummer 1) wurde nicht von
   abhängigem Modul httpd exportiert.
0509-136   Symbol PyArg_ParseTuple (Nummer 2) wurde nicht von
   abhängigem Modul httpd exportiert.
0509-136   Symbol PyArg_UnpackTuple (Nummer 3) wurde nicht von
   abhängigem Modul httpd exportiert.
0509-136   Symbol PyBool_FromLong (Nummer 4) wurde nicht von
   abhängigem Modul httpd exportiert.
0509-136   Symbol PyCallable_Check (Nummer 5) wurde nicht von
   abhängigem Modul httpd exportiert.
0509-136   Symbol PyErr_SetString (Nummer 6) wurde nicht von
   abhängigem Modul httpd exportiert.
0509-021 Es sind noch weitere Fehler aufgetreten, die aber nicht 
gemeldet wurden.
0509-192 Überprüfen Sie die Symbole des Abschnitts .loader mit dem
 Befehl 'dump -Tv'.

I stripped that problem down to a somewhat incorrect python.exp file for the 
linker.
Tis python.exp file is used as import file to the aix linker when linking the 
modules in lib-dynload.

So operator.so expects its Symbols like _PyArg_NoKeywords to appear in the 
main executable.

Looking with dump -HTv on operator.so results in:
dump -HTv lib/python2.7/lib-dynload/operator.so 

lib/python2.7/lib-dynload/operator.so:

***Abschnitt für Ladeprogramm***
  Header-Daten zum Ladeprogramm
VERSION# #SYMtableENT #RELOCentLENidSTR
0x0001   0x0060   0x02c4   0x0208   

#IMPfilIDOFFidSTR LENstrTBLOFFstrTBL
0x0004   0x2a50   0x0700   0x2c58   


***Dateizeichenfolgen importieren***
INDEX  PFAD  BASIS   MEMBER  
0  
/devel/js/trunk_E017100_python27/aix5/debug/img/lib:/usr/local/lib:/usr/local/contact/sdk/1.1/lib/gcc/powerpc-ibm-aix5.2.0.0/4.3.0/pthread:/usr/local/contact/sdk/1.1/lib/gcc/powerpc-ibm-aix5.2.0.0/4.3.0/../../../pthread:/usr/local/contact/sdk/1.1/lib/gcc/powerpc-ibm-aix5.2.0.0/4.3.0:/usr/local/contact/sdk/1.1/lib/gcc/powerpc-ibm-aix5.2.0.0/4.3.0/../../../../powerpc-ibm-aix5.2.0.0/lib:/usr/local/contact/sdk/1.1/lib/gcc/powerpc-ibm-aix5.2.0.0/4.3.0/../../..:/usr/lib:/lib
 
1libpthreads.a   shr_xpg5.o  
2libc.a  shr.o   
3.   

***Informationen zur Symboltabelle des Ladeprogramms***
[Index]  Wert   Scn IMEX Sclass   TypIMPid Name

[0] 0x20002338.data  RW SECdef[noIMid] __rtinit
[1] 0xundef  IMP DS EXTref   . 
_PyArg_NoKeywords
[2] 0xundef  IMP DS EXTref   . 
PyArg_ParseTuple
[3] 0xundef  IMP DS EXTref   . 
PyArg_UnpackTuple
[4] 0xundef  IMP DS EXTref   . 
PyBool_FromLong
[5] 0xundef  IMP DS EXTref   . 
PyCallable_Check
[6] 0xundef  IMP DS EXTref   . 
PyErr_SetString
[7] 0xundef  IMP DS EXTref   . PyErr_WarnEx
[8] 0xundef  IMP PR EXTref   . 
PyExc_DeprecationWarning
[9] 0xundef  IMP PR EXTref   . 
PyExc_TypeError
[10]0xundef  IMP DS EXTref   . 
Py_InitModule4
[11]0xundef  IMP DS EXTref   . 
PyInt_FromSsize_t
[12]0xundef  IMP DS EXTref   . 
PyMapping_Check
[13]0xundef  IMP DS EXTref   . 

[issue14150] AIX, crash loading shared module into another process than python like operator.so results in 0509-130

2012-02-28 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +sable

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14150
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com