|
From: Jan I. <idz...@at...> - 2002-04-30 13:51:09
|
hallo,
i have a problem with the ldap-module on AIX.
I use Python-2.1.3 installed thread-safe with the IBM C-Compiler cc_r and the option -qmaxmem=4000.
With the normaly C-Compiler cc i could not start Zope and some other python application.
(but with the the normaly C-Compiler cc python install the ldap-module is working)
I have try to install the ldap-module with python setup.py build and get the warnings thet i have to compile it with the option MAXMEM > 2048. I have do this and the compile was fine. But i can't get the ldap-module working.
I import ldap and than i try l = ldap.initialize("ldap://my.ldapserver:389") and get a Segmentation fault (core dumped).
i think the problem is the thread-safe installation of python, and the ibm c-compiler, but i have to use this compiler and can't use a other, like gcc.
have anybody a idee?
thanks jan
idz...@at...
|
|
From: <mi...@st...> - 2002-04-30 18:55:04
|
Jan Idzikowski wrote:
>
> i have a problem with the ldap-module on AIX.
Disclaimer: I have no personal experience on AIX and
IBM's C compiler.
> I use Python-2.1.3 installed thread-safe with the IBM
> C-Compiler cc_r and the option -qmaxmem=4000.
I also have no clue what "Python-2.1.3 installed thread-safe" means.
But please check the options you chose when compiling Python by
issuing the following command in Python's source tree.
$ ./configure --help
Some candidates for further examination might be:
--without-gcc never use gcc
--with-signal-module disable/enable signal module
--with(out)-threads[=DIRECTORY] disable/enable thread support
--with(out)-thread[=DIRECTORY] deprecated; use
--with(out)-threads
--with-pth use GNU pth threading libraries
--with(out)-cycle-gc disable/enable garbage collection
--with(out)-pymalloc disable/enable specialized mallocs
--with-wctype-functions use wctype.h functions
--with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking
--with-fpectl enable SIGFPE catching
At least on Linux I had to stay away of using cycle-gc and
pymalloc. (Check list archive!)
Ciao, Michael.
|
|
From: Jens V. <je...@zo...> - 2002-04-30 19:08:08
|
the cycle-gc option should be safe again in python-2.1.3. it was rooted=20= out after enough people complained about their Zope servers segfaulting,=20= cycle-gc had a bug in it that was consequently fixed for 2.1.3 jens On Tuesday, April 30, 2002, at 02:12 , Michael Str=F6der wrote: > Jan Idzikowski wrote: > > > > i have a problem with the ldap-module on AIX. > > Disclaimer: I have no personal experience on AIX and > IBM's C compiler. > > > I use Python-2.1.3 installed thread-safe with the IBM > > C-Compiler cc_r and the option -qmaxmem=3D4000. > > I also have no clue what "Python-2.1.3 installed thread-safe" means. > > But please check the options you chose when compiling Python by = issuing=20 > the following command in Python's source tree. > > $ ./configure --help > > Some candidates for further examination might be: > > --without-gcc never use gcc > --with-signal-module disable/enable signal module > --with(out)-threads[=3DDIRECTORY] disable/enable thread support > --with(out)-thread[=3DDIRECTORY] deprecated; use > --with(out)-threads > --with-pth use GNU pth threading libraries > --with(out)-cycle-gc disable/enable garbage collection > --with(out)-pymalloc disable/enable specialized mallocs > --with-wctype-functions use wctype.h functions > --with-dl-dld=3DDL_DIR,DLD_DIR GNU dynamic linking > --with-fpectl enable SIGFPE catching > > At least on Linux I had to stay away of using cycle-gc and pymalloc.=20= > (Check list archive!) > > Ciao, Michael. > > > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev |
|
From: Jan I. <idz...@at...> - 2002-05-02 09:26:13
|
On Tue, 30 Apr 2002 20:12:37 +0200 Michael Ströder <mi...@st...> wrote: > Jan Idzikowski wrote: > > > > i have a problem with the ldap-module on AIX. > > Disclaimer: I have no personal experience on AIX and > IBM's C compiler. > > > I use Python-2.1.3 installed thread-safe with the IBM > > C-Compiler cc_r and the option -qmaxmem=4000. > > I also have no clue what "Python-2.1.3 installed thread-safe" means. > > But please check the options you chose when compiling Python by > issuing the following command in Python's source tree. > > $ ./configure --help > > Some candidates for further examination might be: > > --without-gcc never use gcc > --with-signal-module disable/enable signal module > --with(out)-threads[=DIRECTORY] disable/enable thread support > --with(out)-thread[=DIRECTORY] deprecated; use > --with(out)-threads > --with-pth use GNU pth threading libraries > --with(out)-cycle-gc disable/enable garbage collection > --with(out)-pymalloc disable/enable specialized mallocs > --with-wctype-functions use wctype.h functions > --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking > --with-fpectl enable SIGFPE catching > i have python install with --without-gcc --with-pymalloc --with-cycle-gc and make CC="cc_r" OPT="-O -qmaxmem=4000" and all looks fine, but the python-ldap-modul get a Segmentation fault, i have use the dbx (aix debugger) and get the output: Segmentation fault in ldap_search_ext at 0xd10860a8 ($t1) 0xd10860a8 (ldap_search_ext+0x218) 800c0000 lwz r0,0x0(r12) greetings jan |
|
From: <mi...@st...> - 2002-05-02 11:30:19
|
Jan Idzikowski wrote: > i have python install with --without-gcc --with-pymalloc --with-cycle-gc > and make CC="cc_r" OPT="-O -qmaxmem=4000" Try --without-pymalloc. Ciao, Michael. |
|
From: Jan I. <idz...@at...> - 2002-05-02 14:23:40
|
On Thu, 02 May 2002 12:37:01 +0200
Michael Ströder <mi...@st...> wrote:
> Jan Idzikowski wrote:
> > i have python install with --without-gcc --with-pymalloc
> --with-cycle-gc
> > and make CC="cc_r" OPT="-O -qmaxmem=4000"
>
> Try --without-pymalloc.
i have install python with:
./configure --prefix=/home/ji/python --without-gcc --with-thread --without-pymalloc --with-cycle-gc
with the same problem:
import ldap
l = ldap.initialize("ldap://myldapserver:389")
Segmentation fault (core dumped)
and in the core dump:
reading symbolic information ...
[using memory image in core]
Segmentation fault in ldap_search_ext at 0xd228a0a8 ($t1)
0xd228a0a8 (ldap_search_ext+0x218) 800c0000 lwz r0,0x0(r12)
do you have any idee?
greeting jan
|
|
From: <mi...@st...> - 2002-05-02 15:22:27
|
Jan Idzikowski wrote: > i have install python with: > ./configure --prefix=/home/ji/python --without-gcc --with-thread --without-pymalloc --with-cycle-gc 1. Check output of ./configure --help. Option --with-thread is deprecated. Use --with-threads. 2. Continue trying --without-cycle-gc as stated in my first reply. Make sure to re-compile *all* additional extension modules each time you change build options. Ciao, Michael. |