[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x

2017-04-26 Thread John Beck
John Beck added the comment: Solaris has this problem also, and Chris' patch fixes it for us. -- nosy: +jbeck ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26524] document what config directory is used for

2016-03-09 Thread John Beck
New submission from John Beck: Solaris ships Python versions 2.7, 3.4 and 3.5 at present. For 2.7, we ship both 32-bit and 64-bit versions; for 3.4 and 3.5 we only ship 64-bit versions. For 2.7, we ship /usr/lib/python2.7/config/ with the usual suspects (Makefile, Setup.config, config.c

[issue26414] os.defpath too permissive

2016-02-22 Thread John Beck
New submission from John Beck: A bug has been filed against Solaris' internal version of Python, which is largely the same (including in this case) as the base version we get from python.org. The bug is that os.defpath starts with ':' and thus any Python script run with a null PATH environment

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-10-01 Thread John Beck
John Beck added the comment: Confirmed that test_os runs cleanly on Solaris 12, for each of: * 2.7.10 (plus your patch from 98454:202c827f86df) * 3.4.3 (plus your patch from 98455:83dc79eeaf7f) * 3.5.0 (plus your patch from 98452:835085cc28cd) * 3.6 (tip

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-09-18 Thread John Beck
John Beck added the comment: I have tested your patch with 3.5, and it works fine, although I did have to make a minor change to get test_os to pass. In test_os.py you had: ... USE_GETENTROPY = ((sysconfig.get_config_var('HAVE_GETENTROPY') == 1

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-09-11 Thread John Beck
John Beck added the comment: I have queried the engineer who owns the kernel bug and will post an update once I hear back from him. But as it is already almost midnight on Friday in his geo, it may well be Monday before I hear back. -- ___ Python

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-09-11 Thread John Beck
John Beck added the comment: Yes, those patches work, with a caveat. While testing this, I found out why I had needed EINVAL earlier (and still do, for now): there is a bug in the Solaris implementation of getrandom(2). If flags are 0 and the buffer size > 1024, then it fails with EIN

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-09-10 Thread John Beck
John Beck added the comment: Sorry, let me try to clarify. ENOSYS is the correct errno value to check for, for the situation (e.g., Solaris < 11.3) of a non-existent system call. But EINVAL should also be checked for to make sure the system call was invoked with proper parameters. My bui

[issue25003] os.urandom() should call getrandom(2) not getentropy(2)

2015-09-09 Thread John Beck
John Beck added the comment: Yes, the syscall was failing with EINVAL. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25003> ___ __

[issue25003] os.urandom() should call getrandom(2) not getentropy(2)

2015-09-09 Thread John Beck
John Beck added the comment: @haypo: Yes, that patch works (applied to 3.5.0rc3; proxy problems are preventing me from updating my clone of the default branch at the moment) i.e., pyconfig.h shows: #define HAVE_GETRANDOM_SYSCALL 1 To answer your other questions: * Calling syscall

[issue25003] os.urandom() should call getrandom(2) not getentropy(2)

2015-09-04 Thread John Beck
New submission from John Beck: A recent Solaris build upgrade resulted in a massive slowdown of a package operation (our package client is written in Python). Some DTrace revealed this was because os.urandom() calls had slowed down by a factor of over 300. This turned out to be caused

[issue25004] test_mmap should catch f.close() failure in LargeMmapTests._make_test_file()

2015-09-04 Thread John Beck
New submission from John Beck: When running test_mmap on a partition with < 4GB free, it back-traced: Traceback (most recent call last): File "/usr/lib/python3.4/test/test_mmap.py", line 728, in _make_test_file f.flush() OSError: [Errno 28] No space left on device Du

[issue23287] ctypes.util.find_library needlessly call crle on Solaris

2015-07-21 Thread John Beck
John Beck added the comment: First, there are two related but somewhat separate issues here. Regarding the patches attached to http://bugs.python.org/issue20664 they seem fine. In theory, they should not be needed, as though it is true that dump(1) moved from /usr/ccs/bin to /usr/bin

[issue24299] 2.7.10 test__locale.py change breaks on Solaris

2015-06-08 Thread John Beck
John Beck added the comment: (Apologies for not responding on May 27 when you posted the patch; I failed to notice the Added file: line in the e-mail notification.) Yes! The patch you posted fixes the issue. Thank you! -- ___ Python tracker rep

[issue24299] 2.7.10 test__locale.py change breaks on Solaris

2015-05-27 Thread John Beck
New submission from John Beck: The upgrade from 2.7.9 to 2.7.10 resulted in test__locale failing. This test had previously succeeded. The difference is that the thousands-separator for the fr_FR locale in known_numerics was changed from '' (i.e., unknown) to ' ' (i.e. space). But on Solaris

[issue1298835] Add a vendor-packages directory for system-supplied modules

2015-04-29 Thread John Beck
Changes by John Beck john.b...@oracle.com: -- nosy: +jbeck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1298835 ___ ___ Python-bugs-list mailing

[issue24077] man page says -I implies -S. code says -s. Should it be both?

2015-04-29 Thread John Beck
New submission from John Beck: The man page for Python (3.4 and 3.5) says: -I Run Python in isolated mode. This also implies -E and -S. In isolated mode sys.path contains neither the scripts directory nor the users site-packages directory. All PYTHON

[issue24077] man page says -I implies -S. code says -s.

2015-04-29 Thread John Beck
John Beck added the comment: Thank you very much for clarifying that. I have updated the bug Title accordingly. -- title: man page says -I implies -S. code says -s. Should it be both? - man page says -I implies -S. code says -s. ___ Python tracker

[issue24077] man page says -I implies -S. code says -s. Should it be both?

2015-04-29 Thread John Beck
John Beck added the comment: Adding Christian Heimes to the nosy list; as the author of the fix for issue 16499, he seems an excellent person to answer the question and offer advice on the approaches discussed herein. -- nosy: +christian.heimes

[issue19561] request to reopen Issue837046 - pyport.h redeclares gethostname() if SOLARIS is defined

2015-04-08 Thread John Beck
John Beck added the comment: We (Solaris engineering) have hit this issue after migrating from 2.6 being our default version of Python to 2.7 being the default. The specific component that broke was vim (version 7.4), trying to compile if_python.c: /usr/include/python2.7/pyport.h, line 645

[issue23584] test_doctest lineendings fails in verbose mode

2015-03-04 Thread John Beck
New submission from John Beck: Issue 8473 fixed a problem with lineendings in test_doctest, but it appears not to work in verbose mode. Adding verbose=False to the doctest.testfile() invocations in test_lineendings() fixes this. Attaching a patch to fix this for both 2.7 and 3.4

[issue23287] ctypes.util.find_library needlessly call crle on Solaris

2015-01-20 Thread John Beck
New submission from John Beck: On Solaris, in Lib/ctypes/util.py, we have code that looks for /usr/bin/crle and calls it to parse its output to try to determine the Default Library Path. This code broke recently (Solaris 12 build 65), as it expects to find a line starting with Default

[issue21412] Solaris/Oracle Studio: Fatal Python error: PyThreadState_Get when built --with-pymalloc

2014-08-18 Thread John Beck
John Beck added the comment: Ned: yes, I can confirm that the patch from http://bugs.python.org/issue21166 does indeed fix the problem. Thank you very much! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21412

[issue22148] frozen.c should #include importlib.h instead of importlib.h

2014-08-11 Thread John Beck
John Beck added the comment: Hm, that is strange. My reading of the semantics of foo.h vs foo.h was that they are almost the same, except that foo.h has the additional semantic of searching the local directory (wherever the .c file is that is #include'ing it) first. So if other platforms

[issue22148] frozen.c should #include importlib.h instead of importlib.h

2014-08-05 Thread John Beck
New submission from John Beck: Background: on Solaris, we build Python and various modules 64-bit. To make this work with our general 64-bit changes, we use foo/64 as the path for our shared objects (.so files) rather than foo, for various values of foo (e.g., /usr/lib, /usr/lib/python3.4, etc

[issue21412] core dump in PyThreadState_Get when built --with-pymalloc

2014-05-12 Thread John Beck
John Beck added the comment: Victor: * This is not a SPARC-specific issue; the exact same failure occurs on x86. * I had built Python 3.3 (some time ago) but only --without-pymalloc. But I tried just now rebuilt Python 3.3 --with-pymalloc, and it failed in the exact same way

[issue21412] core dump in PyThreadState_Get when built --with-pymalloc

2014-05-02 Thread John Beck
John Beck added the comment: Victor: sure; see attached. -- Added file: http://bugs.python.org/file35140/where.out ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21412

[issue21412] core dump in PyThreadState_Get when built --with-pymalloc

2014-05-01 Thread John Beck
New submission from John Beck: I am porting Python 3.4.0 to Solaris 12. The Makefile I inherited from my predecessor had --without-pymalloc as an option to be passed to configure. Curious why, I removed this line, only to find that after python was built, it core dumped: LD_LIBRARY_PATH

[issue21412] core dump in PyThreadState_Get when built --with-pymalloc

2014-05-01 Thread John Beck
John Beck added the comment: Using Oracle Studio 12.3, same as mentioned in http://bugs.python.org/issue15963#msg170661 (as Stefan pointed out). I am using some of those flags but not all of them. I will try the others when I have a chance, then report back

[issue13405] Add DTrace probes

2014-03-19 Thread John Beck
Changes by John Beck john.b...@oracle.com: -- nosy: +jbeck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing