Sébastien Sablé added the comment:
The problem does not happen with Python 2.6.
The difference is that:
* in Python 2.6, the subprocess module would try to write at most 512 bytes
cf L1221 in subprocess.py
chunk = input[input_offset : input_offset + 512]
* in Python 2.7 and py3k, the
Sébastien Sablé added the comment:
PIPE_BUF in unistd.h is defined to 32768.
The test works with PIPE_BUF changed up to 6144 but won't work with 7168.
We could probably use 4096 as a safe value for faster result if needed.
I just do not define the value and leave the default of 512 be
Changes by Sébastien Sablé :
--
title: test_subprocess hangs on AIX -> PIPE_BUF is invalid on AIX
___
Python tracker
<http://bugs.python.org/issue9862>
___
_
Sébastien Sablé added the comment:
OK for me.
Here is a new patch that defines PIPE_BUF to 512 instead of removing
select.PIPE_BUF.
--
Added file: http://bugs.python.org/file18944/patch_broken_pipe_buf_updated.diff
___
Python tracker
<h
Sébastien Sablé added the comment:
For info:
this test fails on AIX 6.1 with py3k with the following error:
test test_resource failed -- Traceback (most recent call last):
File
"/san_cis/home/cis/buildbot/buildbot-aix6/py3k-aix6-xlc/build/Lib/test/test_resource.py",
l
Sébastien Sablé added the comment:
I suppose the difference comes from the fact that I have:
on AIX 5.3:
$ ulimit -f
unlimited
on AIX 6.1:
$ ulimit -f
1048575
I think the test should be updated to not require "ulimit -f" is
Sébastien Sablé added the comment:
I would like to reopen this issue as it is still occurring in py3k on AIX 5.3
and 6.1:
Re-running test test_mmap in verbose mode
test_access_parameter (test.test_mmap.MmapTests) ... ERROR
test_anonymous (test.test_mmap.MmapTests) ... ok
test_bad_file_desc
Sébastien Sablé added the comment:
I am currently in the process of correcting the building of Python on AIX and
stabilizing the tests in order to add my buildbot as a slave of the official
buildbot master, cf post on python-dev
http://mail.python.org/pipermail/python-dev/2010-September
Sébastien Sablé added the comment:
Would that patch be OK? It solves the test_mmap on AIX.
--
keywords: +patch
Added file: http://bugs.python.org/file18951/patch_flush_mmap.diff
___
Python tracker
<http://bugs.python.org/issue678
Sébastien Sablé added the comment:
After Antoine commit concerning issue2643, here is a new patch (just removing
the changes in close).
Could you commit it?
--
Added file: http://bugs.python.org/file18963/patch_mmap_flush_updated.diff
___
Python
Sébastien Sablé added the comment:
The ideal would be to check that RLIMIT_FSIZE corresponds to the ulimit as it
has been suggested by Neal Norwitz in msg14345, but since the value reported by
ulimit has a different unit for each platform, that would be quite a lot of
trouble.
All I can
Sébastien Sablé added the comment:
I can confirm this is still a problem in py3k for AIX 5.3 and AIX 6.1.
The file "/usr/lpp/xlC/include/load.h" does not exist anymore; it is now
"/usr/include/load.h".
The proposed patch would only create a problem for very old versions of
Sébastien Sablé added the comment:
It should also be changed in Python/dynload_aix.c:
Index: Python/dynload_aix.c
===
--- Python/dynload_aix.c(révision 84964)
+++ Python/dynload_aix.c(copie de travail)
@@ -12,7
New submission from Sébastien Sablé :
test_cmath will fail with the following error on AIX:
==
FAIL: test_specific_values (test.test_cmath.CMathTests
Sébastien Sablé added the comment:
Thanks for the quick reply Mark.
I tried with pydebug and got the same error.
Here is the trace for your last question:
Python 3.2a2+ (py3k:84969M, Sep 23 2010, 10:55:24) [C] on aix6
Type "help", "copyright", "credits" or
Sébastien Sablé added the comment:
No problem; I tried with a different compiler this time (gcc instead of xlc)
and with -O0 just to be sure it is not a compiler issue. I had the same error.
I tried your test and you are right, the problem happens with log1p dropping
the sign:
>>&g
Sébastien Sablé added the comment:
I think this issue can be closed as a duplicate of issue 941346.
--
___
Python tracker
<http://bugs.python.org/issue1542
Sébastien Sablé added the comment:
Thanks R. David.
I checked in 3.1 and PIPE_BUF is not defined in the select module, so the
default value of 512 is used in subprocess.
So no correction is needed for that version.
--
___
Python tracker
<h
Sébastien Sablé added the comment:
I also believe this patch should be backported.
If the issue2643 is not backported, then the patch to apply should be
"patch_flush_mmap.diff" instead of "patch_mmap_flush_updated.diff"
--
__
Sébastien Sablé added the comment:
I had seen that post you mentioned and already tested the -lbsd without success.
wait4 is not even present in libbsd.
phenix:~$ nm /usr/lib/libbsd.a | grep wait
phenix:~$
Maybe it was present on older versions of the system. But I couldn't fin
Sébastien Sablé added the comment:
Yes, for the test, as I put in msg128727, it works fine by removing WNOHANG.
However I should put a note in the AIX-NOTES file to explain that wait4 is
broken with WNOHANG on AIX and suggest the 2 workarounds
Sébastien Sablé added the comment:
Hi Charles-François,
it is possible to impact the memory allocation system on AIX using some
environment variables (MALLOCOPTIONS and others), but it is not very elegant
(it will impact all applications running with this environment and it is
difficult to
Sébastien Sablé added the comment:
> I'm just proposing an alternative that I find cleaner, simpler and easier to
> maintain.
I understand how LD_PRELOAD works but I find it neither clean nor simple to
maintain.
Also by using a wrapper to call Python you still impact all the a
Sébastien Sablé added the comment:
Yes, I was probably not clear:
When --with-dlmalloc is activated, PyMem_MALLOC/PyMem_Malloc will call
dlmalloc, PyMem_REALLOC/PyMem_Realloc will call dlrealloc and
PyMem_FREE/PyMem_Free will call dlfree.
While calls to malloc/free/realloc will use the
Sébastien Sablé added the comment:
I share the opinion of Floris on this: just because you link your application
with python does not mean you want it to handle all memory management.
If you want the memory to be handled by Python, you should call PyMem_Malloc.
Otherwise people may want to
Sébastien Sablé added the comment:
Another reason why you should not force dlmalloc for all applications linked
with libpython is because dlmalloc is (by default) not thread safe, while the
system malloc is (generally) thread-safe. It is possible to define a constant
in dlmalloc to make it
Sébastien Sablé added the comment:
There are some unit tests concerning distutils which are currently failing on
AIX and may be an illustration of the same problem:
==
ERROR: test_build_ext
Sébastien Sablé added the comment:
Yes I will do that.
I am currently reinstalling some buildbot environments for Python on AIX 5.3
and AIX 6.1 and once that is done, I will rewrite the note.
--
___
Python tracker
<http://bugs.python.
Sébastien Sablé added the comment:
Hi Micheal,
I don't remember why "-L\$(srcdir)" was added since it has been quite a long
time.
I tried to recompile everything after removing it and everything compiled just
fine, so I guess it can be re
Sébastien Sablé added the comment:
Here is a patch that combines the corrections in configure.in and dynload_aix.c.
All recent versions of AIX would benefit from this correction I think (recent
meaning a version of AIX released in the last 10 years or something).
Could someone apply it
Sébastien Sablé added the comment:
Mark,
sorry for the late reply; I stopped focusing on AIX for some time.
I ran test_cmath on trunk this morning and got a different error this time:
==
FAIL: test_specific_values
Sébastien Sablé added the comment:
I tried with trunk (python 3.2) on AIX:
./build/configure --with-pydebug --without-computed-gotos
make
and that worked correctly.
Not sure with python 2.7.
--
___
Python tracker
<http://bugs.python.org/issue10
New submission from Sébastien Sablé :
I get 2 errors when running test_io.py with trunk on AIX.
==
ERROR: test_large_file_ops (__main__.CIOTest)
--
Traceback
New submission from Sébastien Sablé :
I get an error when running test_wait4 with trunk on AIX:
test_wait (__main__.Wait4Test) ... FAIL
==
FAIL: test_wait (__main__.Wait4Test
Sébastien Sablé added the comment:
OK, so the following patch should help:
Index: configure.in
===
--- configure.in(revision 88393)
+++ configure.in(working copy)
@@ -1375,6 +1375,8 @@
if test "$use_lfs&qu
Sébastien Sablé added the comment:
the error is different now that _LARGEFILES is defined:
==
ERROR: test_large_file_ops (__main__.CIOTest)
--
Traceback (most
Sébastien Sablé added the comment:
Sorry I made a mistake in my previous patch (_LARGEFILES instead of
_LARGE_FILES).
Here is a better one:
Index: configure.in
===
--- configure.in(révision 88395)
+++ configure.in
Sébastien Sablé added the comment:
test_largefile complains about the filesystem having no largefile support.
It is probably the case, I will ask a sysadmin, and see if he can get me a file
system with large file support so that I can test this feature.
> ./python -Wd -E -bb ./Lib/t
Changes by Sébastien Sablé :
--
title: test_io error on AIX -> Broken large file support on AIX
___
Python tracker
<http://bugs.python.org/issue11184>
___
_
Sébastien Sablé added the comment:
Also:
is it OK if I open a new issue for each broken unit test on AIX even if I have
not investigated them at the moment?
I have a dozen broken unit tests on AIX that need to be investigated, but I
don't want to spam the bug tracker followers too muc
New submission from Sébastien Sablé :
I have the following errors on test_time on AIX:
==
ERROR: test_mktime (test.test_time.TestAsctime4dyear)
--
Traceback
New submission from Sébastien Sablé :
I have the following error on test_resource on AIX:
test_resource
test test_resource failed -- Traceback (most recent call last):
File
"/san_cis/home/cis/.buildbot/python-aix6/3.x.phenix.xlc/build/Lib/test/test_resource.py",
line 28, in test_f
New submission from Sébastien Sablé :
I have the following errors on test_locale on AIX:
==
FAIL: test_strcoll_with_diacritic (test.test_locale.TestEnUSCollation
New submission from Sébastien Sablé :
I have the following error in distutils on AIX.
==
ERROR: test_search_cpp (distutils.tests.test_config_cmd.ConfigTestCase
Changes by Sébastien Sablé :
--
title: test_search_cpp error on AIX (aith xlc) -> test_search_cpp error on AIX
(with xlc)
___
Python tracker
<http://bugs.python.org/issu
New submission from Sébastien Sablé :
I have the following error in test_socket on AIX:
==
FAIL: testGetaddrinfo (__main__.GeneralModuleTests)
--
Traceback
Sébastien Sablé added the comment:
This is a duplicate of issue 678264.
--
resolution: -> duplicate
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
New submission from Sébastien Sablé :
The following tests fail in test_subprocess on AIX:
==
FAIL: test_undecodable_env (test.test_subprocess.POSIXProcessTestCase
Sébastien Sablé added the comment:
I am not sure this is what you want:
> LC_ALL=C ./python
Python 3.2rc3 (py3k:88417M, Feb 14 2011, 10:37:42)
[GCC 4.2.0] on aix6
Type "help", "copyright", "credits" or "license" for more information.
>>> i
New submission from Sébastien Sablé :
On AIX, executables are compiled by default so that they cannot allocate more
than 256MB of memory.
This is not enough in some cases; for example this is not enough to get the
Python test suite to run completely.
As explained in IBM documentation:
By
Sébastien Sablé added the comment:
Here is a patch that would provide an --enable-aix-maxdata option to configure,
in order to support 512MB of mermory.
I have not tested it yet.
--
keywords: +patch
Added file: http://bugs.python.org/file20761/patch_maxdata.diff
Sébastien Sablé added the comment:
$ LANG=C ./python -Wd -E -bb -c "import sys; print(ascii(sys.argv))" $(echo -ne
"abc\xff")['-c', 'abc\xff']
['-c', 'abc\xff']
$ LANG=C ./python -Wd -E -bb -c "import locale;
print(locale.nl_lan
Sébastien Sablé added the comment:
I tried the following patch (_AIX is defined on AIX platforms):
Index: Modules/timemodule.c
===
--- Modules/timemodule.c(révision 88420)
+++ Modules/timemodule.c(copie de travail
Sébastien Sablé added the comment:
Here is the result after applying that patch:
==
FAIL: test_specific_values (__main__.CMathTests)
--
Traceback (most recent
New submission from Sébastien Sablé :
When running test_asyncore on AIX, I get the following error:
[122/337] test_asyncore
test test_asyncore failed -- Traceback (most recent call last):
File
"/san_cis/home/cis/.buildbot/python-aix6/3.x.phenix.xlc/build/Lib/test/test_asyncore.py",
New submission from Sébastien Sablé :
I have the following error when running test_fileio on AIX:
==
FAIL: testAbles (test.test_fileio.OtherFileTests
Sébastien Sablé added the comment:
Yes, welcome into the strange world of AIX...
You can allow up to 8 segments, which represent 2GB:
http://publib.boulder.ibm.com/infocenter/tivihelp/v2r1/index.jsp?topic=/com.ibm.itame3.doc_5.1/am51_perftune113.htm
We could change the option to become
Sébastien Sablé added the comment:
If have the same issue with Oracle Studio 12.2 on Solaris 10 with Python 2.7.1:
cc -G -L/livraison/test/sparc-sun-solaris2.10/support/support-2.6.x-py27/lib
-L/livraison/test/sparc-sun-solaris2.10/support/support-internal-2.6.x-py27/lib
-L/livraison
Sébastien Sablé added the comment:
Hum, I was incorrect in previous note:
You can remove -L\$(srcdir) on this line, but then you need to specify the full
path to Modules/python.exp. See patch below:
Index: configure.in
Sébastien Sablé added the comment:
OK, Python with shared libraries is broken in trunk since the library was
renamed to libpython3.2m.
Here is a patch to correct that:
Index: Modules/ld_so_aix.in
===
--- Modules/ld_so_aix.in
Sébastien Sablé added the comment:
Here is the full patch.
I also modified Makefile.pre.in to clean Modules/python.exp when doing
distclean.
--
Added file: http://bugs.python.org/file20764/patch_aix_shared_32.diff
___
Python tracker
<h
Sébastien Sablé added the comment:
This link flag should only be applied to the python executable.
There is already LINKFORSHARED which is great for that.
LDFLAGS will apply it to all the shared libraries which is not really what we
want.
I can compile Python with support for 512MB without
Changes by Sébastien Sablé :
--
versions: +Python 2.6, Python 2.7, Python 3.1
___
Python tracker
<http://bugs.python.org/issue11212>
___
___
Python-bugs-list m
Sébastien Sablé added the comment:
I don't know distutils well enough, but I am afraid the LDFLAGS flag used to
compile python is reused in some way when linking some python extensions or
some application that embed python.
(I use an application that embed python on AIX, I should check
Sébastien Sablé added the comment:
Here is what I could find in the "man mktime":
"""
Upon successful completion, the mktime subroutine sets the values of the
tm_wday and tm_yday fields appropriately. Other fields are set to
represent the specified t
Sébastien Sablé added the comment:
This bug is still present in Python 2.7.1. I have also just been beaten by it
on solaris.
I have libintl.so.1 in /usr/lib and libintl.so.8 in /usr/local/lib.
I have never specified that I wanted to use /usr/local/lib anywhere, but the
compilation scripts
Sébastien Sablé added the comment:
I can only bypass this by explicitly specifying -L/usr/lib so that it will take
precedence over -L/usr/local/lib.
But this behavior is still broken...
"Explicit is better than implicit."
I can see no reason why /usr/local should be implicitly add
Sébastien Sablé added the comment:
Python 3.2rc3+ (py3k:88422M, Feb 15 2011, 16:57:29) [C] on aix6
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> for t in (-2, -1, 0, 1):
... print(time.
Sébastien Sablé added the comment:
Antoine,
can you take a look at issue 730467? That's a trivial patch to correct a
compilation issue on AIX with a C++ compiler; and that means one less entry in
the AIX-NOTES file to write before the 3.2 re
Sébastien Sablé added the comment:
gmtime(-1) worked fine :/
>>> import time
>>> time.gmtime(-1)
time.struct_time(tm_year=1969, tm_mon=12, tm_mday=31, tm_hour=23, tm_min=59,
tm_sec=59, tm_wday=2, tm_yday=365, tm_isdst=0)
--
Sébastien Sablé added the comment:
Are you using --enable-shared when compiling python?
That is when you should see the error (it could not find python.exp at some
stage).
--
___
Python tracker
<http://bugs.python.org/issue941
Sébastien Sablé added the comment:
By the way... thanks Georg!
--
___
Python tracker
<http://bugs.python.org/issue941346>
___
___
Python-bugs-list mailin
Sébastien Sablé added the comment:
Also Michael, I am working on the 3.2 branch, it may be different with Python
2.7.1 but I haven't tested yet.
--
___
Python tracker
<http://bugs.python.org/iss
Sébastien Sablé added the comment:
Here is the patch.
It only impacts AIX systems and is minimalist, so I think it should be safe for
Python 3.2.
--
keywords: +patch
Added file: http://bugs.python.org/file20767/patch_aix_largefile.diff
___
Python
Sébastien Sablé added the comment:
This has been corrected for python 3.2 in issue 941346.
Need to be tested on python 2.7.
--
___
Python tracker
<http://bugs.python.org/issue11
Sébastien Sablé added the comment:
Here is a first version of this doc for Python 3.2.
It would be great if someone could proof read it since I am not a native
english speaker (though it is not high level literature...).
--
Added file: http://bugs.python.org/file20770/AIX-NOTES
New submission from Sébastien Sablé :
The test test_lock_acquire_interruption in test_threadsignals.py will lock
forever on AIX 5.3.
It works fine on 6.1.
truss shows it is stuck in thread_tsleep:
$ truss -p 1404986
thread_tsleep(0, 0x, 0x, 0x) (sleeping
Sébastien Sablé added the comment:
$ grep SEM pyconfig.h
#define HAVE_BROKEN_POSIX_SEMAPHORES 1
/* #undef HAVE_BROKEN_SEM_GETVALUE */
#define HAVE_SEM_GETVALUE 1
#define HAVE_SEM_OPEN 1
#define HAVE_SEM_TIMEDWAIT 1
#define HAVE_SEM_UNLINK 1
/* #undef POSIX_SEMAPHORES_NOT_ENABLED */
#ifndef
Sébastien Sablé added the comment:
I am not sure this is directly related, but test_socket.py will hang forever on
AIX 6.1 when this script is run as part of "make buildbottest".
It won't hang when running the script alone.
--
___
Sébastien Sablé added the comment:
Thanks Antoine, the patch solved the problem.
I have other tests locking semi-randomly on AIX 5.3 and/or AIX 6.1, like
test_socket and test_io. That may be related.
--
___
Python tracker
<http://bugs.python.
Sébastien Sablé added the comment:
Well I don't know precisely:
* when running make buildbottest, test_socket will systematically hang on AIX
5.3 and 6.1.
* but when running ./python -Wd -E -bb Lib/test/test_socket.py, the tests
complete rather quickly (with one failure cf 11192).
Ra
Sébastien Sablé added the comment:
test_socket didnot lock this time (I will retry next).
But test_subprocess.ProcessTestCasePOSIXPurePython.test_leaking_fds_on_error
did.
Looping forever on the following syscall:
pipe(0x2FF1FD88)= 0
kfcntl(15, F_GETFD
Sébastien Sablé added the comment:
Here is what faulthandler reports when I trigger it as Python is locked in
test_socket:
"""
[108/349] test_socket
Traceback (most recent call first):
File
"/san_cis/home/cis/.buildbot/python-aix6/3.x.phenix.xlc/build/Lib/test/fork_wai
Sébastien Sablé added the comment:
faulthandler is great by the way! I will use that in my application.
--
___
Python tracker
<http://bugs.python.org/issue11
Sébastien Sablé added the comment:
At the time of the lock, there is only one python process running. So I guess
the other processes have already left but this is not correctly detected.
I will try again with all_threads=True.
--
___
Python
Sébastien Sablé added the comment:
I kinda feel this is related to issue 11185 which I reported earlier.
--
___
Python tracker
<http://bugs.python.org/issue11
Sébastien Sablé added the comment:
Could this doc be added before the 3.2 release?
I think it is convenient for the (few) AIX users and harmless.
--
___
Python tracker
<http://bugs.python.org/issue10
Sébastien Sablé added the comment:
This issue already existed on Python 2.5.2 with AIX 5.2:
http://www.mail-archive.com/python-list@python.org/msg192219.html
The documentation for WNOHANG says:
http://docs.python.org/library/os.html#os.WNOHANG
"""
The option for wait
Sébastien Sablé added the comment:
The AIX documentation says:
http://publib.boulder.ibm.com/infocenter/tivihelp/v2r1/index.jsp?topic=/com.ibm.itame3.doc_5.1/am51_perftune113.htm
"""It is a good idea to unset the LDR_CNTRL environment variable, so that it
does not unintentional
Sébastien Sablé added the comment:
The doc would become:
"""
To allocate more segment registers to Python, you must use the linker option
-bmaxdata or ldedit to specify the number of bytes you need in the data
segment.
For example, if you want to allow 512MB of memory for
Sébastien Sablé added the comment:
Yes it is correct. And thank you for proof reading it too.
--
___
Python tracker
<http://bugs.python.org/issue10709>
___
___
Sébastien Sablé added the comment:
Here is a new version of the file:
It integrates the corrections by R. David, and I also modified the "memory
limitations" section in order to use ldedit rather than some flags for the
linker.
--
Added file: http://bugs.python.org/fil
Sébastien Sablé added the comment:
I updated the documentation in issue 10709 so that it mentions ldedit rather
than the linker flags (more convenient to activate support for more memory).
Once Python 3.2 is released, we may add LDR_CNTRL or ldedit in the Makefile
when running buildbottest
Sébastien Sablé added the comment:
Great!
I intend to check that branch 2.7 works fine on AIX once I will have finished
with 3.x (which should be soon).
I will then update this file for Python 2.7 (there shouldn't be much changes
hope
Sébastien Sablé <[EMAIL PROTECTED]> added the comment:
Hi,
I have modified a bit this patch to make it work with Python 2.5.2 (see
attached patched).
It is a great enhancement for Python users on AIX to be able to use a
shared library instead of a static one, so I would appreciate i
New submission from Sébastien Sablé <[EMAIL PROTECTED]>:
Hi,
We run a big application mostly written in Python (with Pyrex/C
extensions) on different systems including Linux, SunOS and AIX.
The memory footprint of our application on Linux is fine; however we
found that on AIX and SunO
Changes by Sébastien Sablé <[EMAIL PROTECTED]>:
Added file: http://bugs.python.org/file11083/customized_malloc_AIX.pdf
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Changes by Sébastien Sablé <[EMAIL PROTECTED]>:
--
keywords: +patch
Added file: http://bugs.python.org/file11084/patch_dlmalloc.diff
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Sébastien Sablé <[EMAIL PROTECTED]> added the comment:
Hum, I tried to recompile Python without the --enable-shared option on
AIX and it crashed; so this patch may not be compatible with a static
version of Python (though I have other patches in my version - cf issue
3526 - which
Sébastien Sablé <[EMAIL PROTECTED]> added the comment:
[sorry for the late reply, I have been on holidays]
Martin:
you are right that this memory is moved to swap and does not consume any
"real" memory; however we decided to work on this patch because we
observed on our
101 - 200 of 205 matches
Mail list logo