[issue27820] Possible bug in smtplib when initial_response_ok=False

2018-09-12 Thread iMath


iMath  added the comment:

I encountered the same issue ,  Dario D'Amico's changing works ! please fix the 
problem !

--
nosy: +redstone-cold

___
Python tracker 

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



[issue34656] memory exhaustion in Modules/_pickle.c:1393

2018-09-12 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +alexandre.vassalotti, serhiy.storchaka

___
Python tracker 

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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 35c94c765bf46e93a0d84e39dbc6eaaba40b1f36 by Miss Islington (bot) 
in branch '3.7':
bpo-34652: Remove lchmod from the big func checking block. (GH-9247)
https://github.com/python/cpython/commit/35c94c765bf46e93a0d84e39dbc6eaaba40b1f36


--

___
Python tracker 

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



[issue34643] How to build Release Version of Python in Windows?

2018-09-12 Thread Valentin Zhao


Valentin Zhao  added the comment:

Or say what the difference of the python executable generated from msi 
installer and built from source?

--

___
Python tracker 

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



[issue34656] memory exhaustion in Modules/_pickle.c:1393

2018-09-12 Thread shuoz


shuoz  added the comment:

[--registers---]
RAX: 0x7ff9d401e010 --> 0x0 
RBX: 0x77f48d00 --> 0x1 
RCX: 0x7ff8ab58c800 --> 0x77ea5d80 --> 0x2 
RDX: 0x73ac47d8 --> 0x1 
RSI: 0x25152303 
RDI: 0xfff3a803c00 --> 0x0 
RBP: 0x7473078c 
RSP: 0x7fffcf20 --> 0x73ac47d8 --> 0x1 
RIP: 0x728a8a64 (<_Unpickler_MemoPut+1668>: addr11,0x20)
R8 : 0xfff3a803bff --> 0x0 
R9 : 0xfff3a803c01 --> 0x0 
R10: 0xefe91a3 --> 0x0 
R11: 0x128a917f8 --> 0x0 
R12: 0xfff156b1922 --> 0x0 
R13: 0xe8e60f18 --> 0x0 
R14: 0x77f48d18 --> 0x7ff8ab58c800 --> 0x77ea5d80 --> 0x2 
R15: 0xfff3a803c02 --> 0x0
EFLAGS: 0x216 (carry PARITY ADJUST zero sign trap INTERRUPT direction overflow)
[-code-]
   0x728a8a52 <_Unpickler_MemoPut+1650>:cmpBYTE PTR 
[r15+0x7fff8000],0x0
   0x728a8a5a <_Unpickler_MemoPut+1658>:jne0x728a8ae1 
<_Unpickler_MemoPut+1793>
   0x728a8a60 <_Unpickler_MemoPut+1664>:addrsi,0x4
=> 0x728a8a64 <_Unpickler_MemoPut+1668>:addr11,0x20
   0x728a8a68 <_Unpickler_MemoPut+1672>:cmpBYTE PTR 
[r10+0x7fff8000],0x0
   0x728a8a70 <_Unpickler_MemoPut+1680>:movQWORD PTR [rax],0x0
   0x728a8a77 <_Unpickler_MemoPut+1687>:je 0x728a896d 
<_Unpickler_MemoPut+1421>
   0x728a8a7d <_Unpickler_MemoPut+1693>:nopDWORD PTR [rax]
[stack-]
| 0x7fffcf20 --> 0x73ac47d8 --> 0x1 
0008| 0x7fffcf28 --> 0xefe91a3 --> 0x0 
0016| 0x7fffcf30 --> 0x77f48da8 --> 0x20 (' ')
0024| 0x7fffcf38 --> 0x77f48d00 --> 0x1 
0032| 0x7fffcf40 --> 0xa00 --> 0x0 
0040| 0x7fffcf48 --> 0x0 
0048| 0x7fffcf50 --> 0x77f48da0 --> 0x28 ('(')
0056| 0x7fffcf58 --> 0x77f48da8 --> 0x20 (' ')
[--]
Legend: code, data, rodata, value
0x728a8a64  1392for (i = self->memo_size; i < new_size; i++)
gdb-peda$ p new_size
$5 = 0xe8e60f18
gdb-peda$ p self->memo_size
$6 = 0x20
gdb-peda$ p i


.
for (i = self->memo_size; i < new_size; i++)
self->memo[i] = NULL;
.

--

___
Python tracker 

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



[issue34656] memory exhaustion in Modules/_pickle.c:1393

2018-09-12 Thread shuoz


Change by shuoz :


Added file: https://bugs.python.org/file47802/pk.py

___
Python tracker 

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



[issue34656] memory exhaustion in Modules/_pickle.c:1393

2018-09-12 Thread shuoz


New submission from shuoz :

python version:
   Python 3.8.0a0 (heads/master:4ae8ece, Sep 13 2018, 09:48:16) 
   [GCC 5.4.0 20160609] on linux


I found a bug in python pickle.load func. Can cause memory exhaustion DDOS.

./python pk.py poc


cat ./pk.py
import pickle
import sys
filename = sys.argv[1]
with open(filename, 'rb') as f:
aa = pickle.load(f)
print(aa)

--
components: FreeBSD
files: poc
messages: 325230
nosy: koobs, shuoz
priority: normal
severity: normal
status: open
title: memory exhaustion in Modules/_pickle.c:1393
type: security
versions: Python 3.8
Added file: https://bugs.python.org/file47801/poc

___
Python tracker 

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



[issue21109] tarfile: Traversal attack vulnerability

2018-09-12 Thread shashank


shashank  added the comment:

1. I have done some changes to Lar's patch to address class of bugs which Jakub 
found.
Attached patch safetarfile-2.diff 
Patch is for code only and is work in progress.

2. However, there maybe several edge cases which have not been covered. Going 
by types of bugs we want to catch:

  * Don't allow creating files whose absolute path is not under the
destination.
  * Don't allow creating links (hard or soft) which link to a path
outside of the destination.
  * Don't create device nodes.


I suspect there may be more so which haven't been mentioned yet, one of which I 
have listed below.


3. Now, on to patch, Safetar now tries to keep a list of symlinks it has seen 
so far and tries to figure effective path of current name which may use 
symlinks. This approach does address bugs found in Jakub's comment, details 
below, but when symlink's link has a symlink in it, there are cases which this 
impl. let slip.

For example:
# tar -tvf dirsym_rouge.tar
drwxr-xr-x root/root 0 2018-09-12 19:03 dirsym/
lrwxrwxrwx root/root 0 2018-09-12 18:39 dirsym/sym -> .
lrwxrwxrwx root/root 0 2018-09-12 19:02 dirsym/symsym3 -> 
../dirsym/sym/../..

This escapes the check since, given name "../dirsym/sym/../.." 
translates to "..", ideally this should have given relative link warning.
Above symlink is valid.

But for:
# tar -tvf dirsym.tar
drwxr-xr-x root/root 0 2018-09-12 18:44 dirsym/
lrwxrwxrwx root/root 0 2018-09-12 18:44 dirsym/sym -> .
lrwxrwxrwx root/root 0 2018-09-12 18:44 dirsym/symsym -> 
dirsym/sym/../..

This fails with warning of relative link name, as expected.
given name "dirsym/sym/../.." translates to "../.."
However, the symlink points to invalid path which may or maynot be 
useful.


4. Regarding bugs reported by Jakub, following enumerates the effective name 
that gets computed by Safetar:

absolute1.tar
"/tmp/moo" translates to "/tmp/moo"

absolute2.tar
"//tmp/moo" translates to "//tmp/moo"

dirsymlink.tar
"tmp" translates to "tmp"
"/tmp" translates to "tmp"

dirsymlink2a.tar
"cur" translates to "cur"
"." translates to "."
"par" translates to "par"
"cur/.." translates to  ".."
"par/moo" translates to "../moo"


dirsymlink2b.tar
"cur" translates to "cur"
"." translates to "."
"cur/par" translates to "par"
".." translates to ".."
"par/moo" translates to "../moo"


relative0.tar
"../moo" translates to "../moo"

relative2.tar
"tmp/../../moo" translates to "../moo"

symlink.tar
"moo" translates to "moo"
"/tmp/moo" translates to "/tmp/moo"

--
Added file: https://bugs.python.org/file47800/safetarfile-2.diff

___
Python tracker 

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



[issue34643] How to build Release Version of Python in Windows?

2018-09-12 Thread Valentin Zhao


Valentin Zhao  added the comment:

Sorry for not illustrating this clearly. What I need to build is a copyable, 
relocatable bunch of files which contains a directory like \bin then has an 
executable in it, so I can run Python directly. Notwithstanding I do not need a 
installer because I am not supposed to alter user's configuration. Thanks for 
your patience in advance!

--

___
Python tracker 

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



[issue34410] itertools.tee not thread-safe; can segfault interpreter when wrapped iterator releases GIL

2018-09-12 Thread hongweipeng


Change by hongweipeng :


--
pull_requests: +8685

___
Python tracker 

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



[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

I still feel like there is an underlying issue within the import system that 
use of test.support.modules_cleanup somehow triggers that I never managed to 
really understand.

but the particular issue in this bug that people were seeing frequently is 
fixed.

--
resolution:  -> fixed
stage: patch review -> commit review
status: open -> closed

___
Python tracker 

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



[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 3e3d4a4b55cbef481486aaa68ee255f4928b9c3f by Miss Islington (bot) 
in branch '3.6':
bpo-34200: Fix non-determinism of test_pkg (GH-9248)
https://github.com/python/cpython/commit/3e3d4a4b55cbef481486aaa68ee255f4928b9c3f


--

___
Python tracker 

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



[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 90f7d455b7f4bd53d3af11cb951347c9c8230399 by Miss Islington (bot) 
in branch '3.7':
bpo-34200: Fix non-determinism of test_pkg (GH-9248)
https://github.com/python/cpython/commit/90f7d455b7f4bd53d3af11cb951347c9c8230399


--

___
Python tracker 

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



[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 4ae8ece5cd4c5853b625381db13429f25512108d by Miss Islington (bot) 
(Gregory P. Smith) in branch 'master':
bpo-34200: Fix non-determinism of test_pkg (GH-9248)
https://github.com/python/cpython/commit/4ae8ece5cd4c5853b625381db13429f25512108d


--
nosy: +miss-islington

___
Python tracker 

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



[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8684

___
Python tracker 

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



[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8683

___
Python tracker 

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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 2184fe5ba48a58cb51be144230622b84b372644c by Benjamin Peterson in 
branch '3.6':
[3.6] bpo-34652: Remove lchmod from the big func checking block. (GH-9250)
https://github.com/python/cpython/commit/2184fe5ba48a58cb51be144230622b84b372644c


--

___
Python tracker 

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



[issue34595] PyUnicode_FromFormat(): add %T format for an object type name

2018-09-12 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +8682

___
Python tracker 

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



[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

this is also present in 3.5, but it'll be up to the 3.5 release manager to 
cherry pick the test_pkg.py reliability fix into the 3.5 branch if it impacts 
them during the release process.

--
versions: +Python 3.5

___
Python tracker 

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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
pull_requests: +8681

___
Python tracker 

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



[issue34643] How to build Release Version of Python in Windows?

2018-09-12 Thread Steve Dower


Steve Dower  added the comment:

Have a look in the Tools/msi directory. The "build.bat" and "buildrelease.bat" 
files will generate the installers and other packages (note that you may need 
.NET 3.5 enabled on your machine).

You may also be able to use the make_zip.py script to help create a "full" 
distribution in a specific directory. Though it may still exclude Tcl and Tk 
(deliberately). It's not meant for replacing the full installer.

--

___
Python tracker 

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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset ed709d5699716bf7237856dc20aba321e2dfff6d by Benjamin Peterson in 
branch 'master':
bpo-34652: Remove lchmod from the big func checking block. (GH-9247)
https://github.com/python/cpython/commit/ed709d5699716bf7237856dc20aba321e2dfff6d


--

___
Python tracker 

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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8680

___
Python tracker 

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



[issue34641] Curiosity: f((a)=1) is not a syntax error -- why?

2018-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset c9a71dd223c4ad200a97aa320aef6bd3d45f8897 by Benjamin Peterson in 
branch 'master':
closes bpo-34641: Further restrict the LHS of keyword argument function call 
syntax. (GH-9212)
https://github.com/python/cpython/commit/c9a71dd223c4ad200a97aa320aef6bd3d45f8897


--
resolution:  -> fixed
stage: patch review -> 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



[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread Jeremy Kloth


Jeremy Kloth  added the comment:

Did you attempt to use the 3-line change I posted earlier?  I stepped through 
to test line-by-line to find the offending piece of code.  And it was indeed 
the open() call causing the test-tree to be processed prior to it being 
completed.  Thus making the .py file seen before the directory of same name 
would exist.

--

___
Python tracker 

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



[issue34654] test_time needs to handle '+' at the beginning of large years

2018-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 21a808230aa33741f1dd9bf38f0e283c1b72210e by Miss Islington (bot) 
in branch '3.6':
closes bpo-34654: Tolerate + at the beginning of large years. (GH-9238)
https://github.com/python/cpython/commit/21a808230aa33741f1dd9bf38f0e283c1b72210e


--

___
Python tracker 

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



[issue33649] asyncio docs overhaul

2018-09-12 Thread Yury Selivanov


Yury Selivanov  added the comment:


New changeset 5b7cbd602e57265604d6c099fd174b1c7917f861 by Yury Selivanov (Carol 
Willing) in branch 'master':
bpo-33649: Edit asyncio eventloop doc - second pass (GH-9233)
https://github.com/python/cpython/commit/5b7cbd602e57265604d6c099fd174b1c7917f861


--

___
Python tracker 

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



[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread Gregory P. Smith


Change by Gregory P. Smith :


--
keywords: +patch
pull_requests: +8679
stage:  -> patch review

___
Python tracker 

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



[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2018-09-12 Thread Sebastian Rittau


Change by Sebastian Rittau :


--
nosy: +srittau

___
Python tracker 

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



[issue34654] test_time needs to handle '+' at the beginning of large years

2018-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset ea2fcd3db65b796ad3eda1619a903cefb1aa9363 by Miss Islington (bot) 
in branch '3.7':
closes bpo-34654: Tolerate + at the beginning of large years. (GH-9238)
https://github.com/python/cpython/commit/ea2fcd3db65b796ad3eda1619a903cefb1aa9363


--
nosy: +miss-islington

___
Python tracker 

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



[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

I can make the test reliable... but I wouldn't say I fully understand the 
ultimate cause of the problem.

The reliability fix for test_pkg is to stop using test.support.modules_setup() 
and test.support.modules_cleanup() in the setUp() and tearDown() methods.

these test support functions are semi scary.  they attempt to backup and 
replace sys.modules contents with special case code in the cleanup function to 
try and avoid doing that to things that are still necessary.

running python -vvv when I could get test_pkg to fail led me looking at code 
paths that were being executed mid-test that i'd expect to be executed only on 
process startup.  locale.getpreferredencoding triggering a _bootlocale import, 
etc.  I don't understand why it cause the problem though.

PR to at least make the test reliable coming.

--

___
Python tracker 

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



[issue34655] Support sendfile in asyncio streams API

2018-09-12 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
components: asyncio
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Support sendfile in asyncio streams API
versions: Python 3.8

___
Python tracker 

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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset bdace2ea53c578184235729a4cf383891084cc70 by Miss Islington (bot) 
in branch '3.6':
closes bpo-34652: Always disable lchmod on Linux. (GH-9234)
https://github.com/python/cpython/commit/bdace2ea53c578184235729a4cf383891084cc70


--

___
Python tracker 

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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
pull_requests: +8678

___
Python tracker 

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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 98344a4f2f09ddae295352ec54fae6388446eeaf by Miss Islington (bot) 
in branch '3.7':
closes bpo-34652: Always disable lchmod on Linux. (GH-9234)
https://github.com/python/cpython/commit/98344a4f2f09ddae295352ec54fae6388446eeaf


--
nosy: +miss-islington

___
Python tracker 

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



[issue34004] Acquiring locks not interrupted by signals on musl libc

2018-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

On Wed, Sep 12, 2018, at 16:03, Joseph Sible wrote:
> 2. Most of the time, counting on receiving an EINTR results in race 
> conditions. Our code seems to be affected by this too. Even on glibc, a 
> signal at just the "right" time could result in it not being 
> interrupted. This is why I think moving to an eventfd or something would 
> be better, since we could then use pselect/ppoll/etc. to avoid the 
> signal blocking race.

The race is a good point.

However, switching to eventfd is not trivial. It would be the third locking 
implementation in python just for pthreads. Using eventfd would require 
reimplementing all the userspace parts of locking (atomics, appropriate memory 
barriers, and spinning) ourselves. futex is carefully optimized for userspace 
locking, whereas I've never heard of normal program locking being done with 
eventfd before.

If the expected usecase for interrupting locks is user pressing C-c, being 
99.9% correct is probably enough.

So, it's fine with me if you open another issue for reimplementing locks with 
eventfd. But, I don't personally have the desire to do it.

--

___
Python tracker 

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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 69e96910153219b0b15a18323b917bd74336d229 by Benjamin Peterson in 
branch '2.7':
[2.7] closes bpo-34652: Always disable lchmod on Linux. (GH-9242)
https://github.com/python/cpython/commit/69e96910153219b0b15a18323b917bd74336d229


--

___
Python tracker 

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



[issue34654] test_time needs to handle '+' at the beginning of large years

2018-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8677

___
Python tracker 

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



[issue34654] test_time needs to handle '+' at the beginning of large years

2018-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset e1a34ceb541ef87e03bb428630097dacc9c658e5 by Benjamin Peterson in 
branch 'master':
closes bpo-34654: Tolerate + at the beginning of large years. (GH-9238)
https://github.com/python/cpython/commit/e1a34ceb541ef87e03bb428630097dacc9c658e5


--
resolution:  -> fixed
stage: patch review -> 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



[issue34654] test_time needs to handle '+' at the beginning of large years

2018-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8676

___
Python tracker 

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



[issue34004] Acquiring locks not interrupted by signals on musl libc

2018-09-12 Thread Joseph Sible


Joseph Sible  added the comment:

Re musl changing their behavior, see 
https://www.openwall.com/lists/musl/2018/09/07/1 and the resulting thread.

In addition to the old kernel version issue, two other issues were raised:
1. EINTR makes programming mistakes more likely, as people won't think to 
handle it. I don't give much weight to this point.
2. Most of the time, counting on receiving an EINTR results in race conditions. 
Our code seems to be affected by this too. Even on glibc, a signal at just the 
"right" time could result in it not being interrupted. This is why I think 
moving to an eventfd or something would be better, since we could then use 
pselect/ppoll/etc. to avoid the signal blocking race.

--

___
Python tracker 

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



[issue34603] ctypes on Windows: error calling C function that returns a struct containing 3 bools

2018-09-12 Thread Vladimir Matveev


Vladimir Matveev  added the comment:

I think the problem is that FFI layer assumes that MSVC compiler will try to 
pass any structure less than 8 bytes in registers whereis it is not always 
true: 
To be returned by value in RAX, user-defined types must have a length of 1, 2, 
4, 8, 16, 32, or 64 bits (from 
https://msdn.microsoft.com/en-us/library/7572ztz4.aspx).
I have a fix, now adding tests.

--
nosy: +v2m

___
Python tracker 

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



[issue34650] test_posix fails with musl

2018-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset e105e551dbf072d773aaa1fd6f8cbda218c273f0 by Benjamin Peterson in 
branch '3.6':
[3.6] closes bpo-34650: Check if sched_getscheduler returns ENOSYS before 
declaring it supported. (GH-9237)
https://github.com/python/cpython/commit/e105e551dbf072d773aaa1fd6f8cbda218c273f0


--

___
Python tracker 

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



[issue34650] test_posix fails with musl

2018-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 0aef909d630ff40614cde0c58796a8bdf66c67eb by Benjamin Peterson in 
branch '3.7':
[3.7] closes bpo-34650: Check if sched_getscheduler returns ENOSYS before 
declaring it supported. (GH-9236)
https://github.com/python/cpython/commit/0aef909d630ff40614cde0c58796a8bdf66c67eb


--

___
Python tracker 

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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8674

___
Python tracker 

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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8675

___
Python tracker 

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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
pull_requests: +8673

___
Python tracker 

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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
pull_requests: +8672

___
Python tracker 

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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 40caa05fa4d1810a1a6bfc34e0ec930c351089b7 by Benjamin Peterson in 
branch 'master':
closes bpo-34652: Always disable lchmod on Linux. (GH-9234)
https://github.com/python/cpython/commit/40caa05fa4d1810a1a6bfc34e0ec930c351089b7


--
resolution:  -> fixed
stage: patch review -> 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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8670

___
Python tracker 

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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8671

___
Python tracker 

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



[issue34654] test_time needs to handle '+' at the beginning of large years

2018-09-12 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
keywords: +patch
pull_requests: +8669
stage:  -> patch review

___
Python tracker 

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



[issue34654] test_time needs to handle '+' at the beginning of large years

2018-09-12 Thread Benjamin Peterson


New submission from Benjamin Peterson :

POSIX allows the '%Y' format in strftime to start with a '+' sign for years 
with more than 4 digits. test_time is not tolerant of that, which leads to 
failures like this with musl:

==
FAIL: test_large_year (test.test_time.TestStrftime4dyear)
--
Traceback (most recent call last):
  File "/buildbot/buildarea/3.x.ware-alpine/build/Lib/test/test_time.py", line 
683, in test_large_year
return super().test_large_year()
  File "/buildbot/buildarea/3.x.ware-alpine/build/Lib/test/test_time.py", line 
706, in test_large_year
self.assertEqual(self.yearstr(12345), '12345')
AssertionError: '+12345' != '12345'
- +12345
? -
+ 12345

--
components: Tests
messages: 325203
nosy: benjamin.peterson
priority: normal
severity: normal
status: open
title: test_time needs to handle '+' at the beginning of large years
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue34004] Acquiring locks not interrupted by signals on musl libc

2018-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

Reimplementing locks with eventfd can be another issue. Such a change can only 
land in a new Python version, though. We'll just have to consider musl 
unsupported for interrupting locks in our current maintenance releases as I 
have done.

How likely is it that musl will change to allow returning EINTR from 
sem_timedwait given that the only stated reason not to is very old kernel 
versions?

--

___
Python tracker 

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



[issue32933] mock_open does not support iteration around text files.

2018-09-12 Thread Anthony Flury


Anthony Flury  added the comment:

Berker,
Thanks for your work on getting this complete.

I would strongly support backporting if possible.

3.5 and 3.6 will be in common use for a while (afaik 3.6 has only now got 
delivered to Ubuntu as the default Python 3), and this does fix does allow full 
testing of what would be considered pythonic code.

--

___
Python tracker 

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



[issue34004] Acquiring locks not interrupted by signals on musl libc

2018-09-12 Thread Joseph Sible


Joseph Sible  added the comment:

How is this considered "fixed"? Why couldn't this be actually fixed by using 
eventfd instead of semaphores when they're available, for example?

--

___
Python tracker 

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



[issue21258] Add __iter__ support for mock_open

2018-09-12 Thread Berker Peksag


Berker Peksag  added the comment:

Closing this as a duplicate of issue 32933. Let's discuss backporting to 
maintenance branches there.

--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> mock_open does not support iteration around text files.

___
Python tracker 

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



[issue32933] mock_open does not support iteration around text files.

2018-09-12 Thread Berker Peksag


Berker Peksag  added the comment:

Thanks for the patch, Anthony.I consider this a new feature, so I removed 3.6 
and 3.7 from the versions field. We can backport to 3.7 if other core 
developers think that it's worth to fix in the latest maintenance branch.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type: behavior -> enhancement
versions:  -Python 3.6, Python 3.7

___
Python tracker 

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



[issue32933] mock_open does not support iteration around text files.

2018-09-12 Thread Berker Peksag


Berker Peksag  added the comment:


New changeset 2087023fdec2c89070bd14f384a3c308c548a94a by Berker Peksag (Tony 
Flury) in branch 'master':
bpo-32933: Implement __iter__ method on mock_open() (GH-5974)
https://github.com/python/cpython/commit/2087023fdec2c89070bd14f384a3c308c548a94a


--

___
Python tracker 

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



[issue21258] Add __iter__ support for mock_open

2018-09-12 Thread Anthony Flury


Anthony Flury  added the comment:

The lack of dunder_iter support on mock_open has been resolved in Issue 32933 
(Git Hub 5974).

Can I suggest that once the above PR is merged into 3.8 (due imminently 
allegedly ), that we should then backport that fix into 3.5, 3.6 & 3.7 
as a minimum ?

I am by no means an expert though.

--
nosy: +anthony-flury

___
Python tracker 

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



[issue34650] test_posix fails with musl

2018-09-12 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
pull_requests: +8668

___
Python tracker 

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



[issue34650] test_posix fails with musl

2018-09-12 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
pull_requests: +8667

___
Python tracker 

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



[issue34650] test_posix fails with musl

2018-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset c7042224b8a67748f125c22836862483f81a87a6 by Benjamin Peterson in 
branch 'master':
closes bpo-34650: Check if sched_getscheduler returns ENOSYS before declaring 
it supported. (GH-9228)
https://github.com/python/cpython/commit/c7042224b8a67748f125c22836862483f81a87a6


--
resolution:  -> fixed
stage: patch review -> 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



[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

kinda poking at ideas here, but from a lunch conversation could this be related 
to the filesystem iteration order within the temp directories.

assigned to me while i investigate possibilities.

--

___
Python tracker 

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



[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread Gregory P. Smith


Change by Gregory P. Smith :


--
assignee:  -> gregory.p.smith

___
Python tracker 

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



[issue34649] Modules/_json.c: Missing NULL checks in _encoded_const()

2018-09-12 Thread Berker Peksag


Berker Peksag  added the comment:


New changeset 669429fb583031c7c87392e30b065e99a2d8ccda by Berker Peksag (Miss 
Islington (bot)) in branch '2.7':
bpo-34649: Add missing NULL checks to _encoded_const() (GH-9225)
https://github.com/python/cpython/commit/669429fb583031c7c87392e30b065e99a2d8ccda


--

___
Python tracker 

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



[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2018-09-12 Thread Ned Deily


Ned Deily  added the comment:

The crash can also be reproduced with a Spanish keyboard selected and using the 
Tcl/Tk wish shell edit text demo.  So it's definitely not a Python (tkinter or 
IDLE) issue.  I see that Kevin Walzer, the primary maintainer for Tk on macOS, 
is CC here.  If anyone wants this issue to be addressed, someone should 
probably check the Tck/Tk issue tracker and, if the problem hasn't already been 
reported, open an issue there:

https://core.tcl.tk/tk/ticket

--
resolution:  -> third party
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



[issue34649] Modules/_json.c: Missing NULL checks in _encoded_const()

2018-09-12 Thread Berker Peksag


Berker Peksag  added the comment:

Thanks, Alexey!

--
resolution:  -> fixed
stage: patch review -> 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



[issue34649] Modules/_json.c: Missing NULL checks in _encoded_const()

2018-09-12 Thread Berker Peksag


Berker Peksag  added the comment:


New changeset 6d726868cd1743623a28b8e048e31b9c3c52a399 by Berker Peksag (Miss 
Islington (bot)) in branch '3.6':
bpo-34649: Add missing NULL checks to _encoded_const() (GH-9225)
https://github.com/python/cpython/commit/6d726868cd1743623a28b8e048e31b9c3c52a399


--

___
Python tracker 

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



[issue33649] asyncio docs overhaul

2018-09-12 Thread Carol Willing


Change by Carol Willing :


--
pull_requests: +8666

___
Python tracker 

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



[issue34653] PyParser_SimpleParseStringFilename should be deleted

2018-09-12 Thread Eric V. Smith


New submission from Eric V. Smith :

There are 6 PyParser_SimpleParse* functions in pythonrun.c. 5 of them are 
documented in c-api/veryhigh.rst and appear in pythonrun.h. But 
PyParser_SimpleParseStringFilename is not documented and is not in any .h file.

I propose we delete PyParser_SimpleParseStringFilename. It's not documented, 
it's not in a .h file, and it's not called from within Python's source. It's 
also trivial to implement in terms of PyParser_SimpleParseStringFlagsFilename.

--
assignee: eric.smith
components: Interpreter Core
messages: 325189
nosy: eric.smith
priority: normal
severity: normal
status: open
title: PyParser_SimpleParseStringFilename should be deleted
type: enhancement
versions: Python 3.7, Python 3.8

___
Python tracker 

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



[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

and I do agree that it is somewhat random.  while i have some situations where 
I can reproduce this, i have others where I can rerun exactly the same binary 
and single process single thread process running just test_pkg.py and nothing 
else where the behavior differs between runs in terms of which of test_4 and 
test_7 fail or not.

--
title: importlib: python -m test test_pkg fails -> importlib: python -m test 
test_pkg fails semi-randomly

___
Python tracker 

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



[issue34200] importlib: python -m test test_pkg fails

2018-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

this also happens in 3.6.  whatever the problem is, it has been around a long 
time.

--
priority: release blocker -> deferred blocker
versions: +Python 3.6

___
Python tracker 

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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
keywords: +patch
pull_requests: +8665
stage:  -> patch review

___
Python tracker 

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



[issue34649] Modules/_json.c: Missing NULL checks in _encoded_const()

2018-09-12 Thread Berker Peksag


Berker Peksag  added the comment:


New changeset ec4d099b9f1951b08d1a53181c278173ff6a0cc1 by Berker Peksag (Miss 
Islington (bot)) in branch '3.7':
bpo-34649: Add missing NULL checks to _encoded_const() (GH-9225)
https://github.com/python/cpython/commit/ec4d099b9f1951b08d1a53181c278173ff6a0cc1


--

___
Python tracker 

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



[issue34652] never enable lchmod on Linux

2018-09-12 Thread Benjamin Peterson


New submission from Benjamin Peterson :

You can't modify the mode of symbolic links on Linux. Thus, lchmod is a useless 
function. libc may, however, define a lchmod stub that always returns an error. 
autoconf has a check that detects the dummy stub for glibc, but it detects 
lchmod as working on musl. I propose we simply always disable lchmod if the 
target system is Linux.

--
components: Build
messages: 325185
nosy: benjamin.peterson
priority: normal
severity: normal
status: open
title: never enable lchmod on Linux
versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue33649] asyncio docs overhaul

2018-09-12 Thread Carol Willing


Change by Carol Willing :


--
pull_requests: +8664

___
Python tracker 

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



[issue34004] Acquiring locks not interrupted by signals on musl libc

2018-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 5a435eac1b83f080c9dfceff0de0d639541e4bcb by Miss Islington (bot) 
in branch '3.6':
closes bpo-34004: Skip lock interruption tests on musl. (GH-9224)
https://github.com/python/cpython/commit/5a435eac1b83f080c9dfceff0de0d639541e4bcb


--

___
Python tracker 

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



[issue34004] Acquiring locks not interrupted by signals on musl libc

2018-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset b608fcd444c00ff37a19d34e4eeadb1221fb6436 by Miss Islington (bot) 
in branch '3.7':
closes bpo-34004: Skip lock interruption tests on musl. (GH-9224)
https://github.com/python/cpython/commit/b608fcd444c00ff37a19d34e4eeadb1221fb6436


--
nosy: +miss-islington

___
Python tracker 

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



[issue34649] Modules/_json.c: Missing NULL checks in _encoded_const()

2018-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8663

___
Python tracker 

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



[issue34649] Modules/_json.c: Missing NULL checks in _encoded_const()

2018-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8661

___
Python tracker 

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



[issue34649] Modules/_json.c: Missing NULL checks in _encoded_const()

2018-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8662

___
Python tracker 

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



[issue34649] Modules/_json.c: Missing NULL checks in _encoded_const()

2018-09-12 Thread Berker Peksag


Berker Peksag  added the comment:


New changeset 6f82bffd2df63a4072b3f0483cdbe93ddedb87e9 by Berker Peksag (Alexey 
Izbyshev) in branch 'master':
bpo-34649: Add missing NULL checks to _encoded_const() (GH-9225)
https://github.com/python/cpython/commit/6f82bffd2df63a4072b3f0483cdbe93ddedb87e9


--

___
Python tracker 

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



[issue34651] Disallow fork in a subinterpreter.

2018-09-12 Thread Eric Snow


New submission from Eric Snow :

os.fork() potentially has some problematic behavior when called from a 
subinterpreter.  In additional to the normal fork+threads madness, there's the 
question of what to do with existing subinterpreters.  The simplest solution is 
to simply disallow fork in a subinterpreter and then wipe out all 
subinterpreters in the child process post-fork (if os.fork() called in the main 
interpreter).

--
assignee: eric.snow
components: Interpreter Core
messages: 325181
nosy: eric.snow, gregory.p.smith
priority: normal
severity: normal
stage: needs patch
status: open
title: Disallow fork in a subinterpreter.
versions: Python 3.8

___
Python tracker 

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



[issue34282] Enum._convert shadows members named _convert

2018-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8660

___
Python tracker 

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



[issue34630] Don't log ssl cert errors in asyncio

2018-09-12 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 0dd71807a98c4a86ece2aea869ea99f09204b16b by Andrew Svetlov in 
branch 'master':
bpo-34630: Skip logging SSL certificate errors by asyncio code (GH-9169)
https://github.com/python/cpython/commit/0dd71807a98c4a86ece2aea869ea99f09204b16b


--

___
Python tracker 

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



[issue34650] test_posix fails with musl

2018-09-12 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
keywords: +patch
pull_requests: +8659
stage:  -> patch review

___
Python tracker 

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



[issue34650] test_posix fails with musl

2018-09-12 Thread Benjamin Peterson


New submission from Benjamin Peterson :

ERROR: test_get_and_set_scheduler_and_param (test.test_posix.PosixTester)
--
Traceback (most recent call last):
  File "/buildbot/buildarea/3.x.ware-alpine/build/Lib/test/test_posix.py", line 
1280, in test_get_and_set_scheduler_and_param
mine = posix.sched_getscheduler(0)
OSError: [Errno 38] Function not implemented
==
ERROR: test_setscheduler_only_param (test.test_posix.TestPosixSpawn)
--
Traceback (most recent call last):
  File "/buildbot/buildarea/3.x.ware-alpine/build/Lib/test/test_posix.py", line 
1651, in test_setscheduler_only_param
policy = os.sched_getscheduler(0)
OSError: [Errno 38] Function not implemented
==
ERROR: test_setscheduler_with_policy (test.test_posix.TestPosixSpawn)
--
Traceback (most recent call last):
  File "/buildbot/buildarea/3.x.ware-alpine/build/Lib/test/test_posix.py", line 
1669, in test_setscheduler_with_policy
policy = os.sched_getscheduler(0)
OSError: [Errno 38] Function not implemented
--

--
components: Tests
messages: 325179
nosy: benjamin.peterson
priority: normal
severity: normal
status: open
title: test_posix fails with musl
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue34004] Acquiring locks not interrupted by signals on musl libc

2018-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8658

___
Python tracker 

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



[issue34004] Acquiring locks not interrupted by signals on musl libc

2018-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 5b10d5111d7a855297654af9045f8907b7d3dd08 by Benjamin Peterson in 
branch 'master':
closes bpo-34004: Skip lock interruption tests on musl. (GH-9224)
https://github.com/python/cpython/commit/5b10d5111d7a855297654af9045f8907b7d3dd08


--
nosy: +benjamin.peterson
resolution:  -> fixed
stage: patch review -> 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



[issue34004] Acquiring locks not interrupted by signals on musl libc

2018-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8657

___
Python tracker 

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



[issue34649] Modules/_json.c: Missing NULL checks in _encoded_const()

2018-09-12 Thread Alexey Izbyshev


Change by Alexey Izbyshev :


--
keywords: +patch
pull_requests: +8656
stage:  -> patch review

___
Python tracker 

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



[issue34649] Modules/_json.c: Missing NULL checks in _encoded_const()

2018-09-12 Thread Alexey Izbyshev


New submission from Alexey Izbyshev :

The return value of PyUnicode_InternFromString() is not checked for NULL and 
then dereferenced at three places in 
https://github.com/python/cpython/blob/0bd1a2dcfdf36b181385ae61361e7692f4ebb0fd/Modules/_json.c#L1369

Reported by Svace static analyzer.

--
components: Extension Modules
messages: 325177
nosy: benjamin.peterson, berker.peksag, izbyshev, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Modules/_json.c: Missing NULL checks in _encoded_const()
type: behavior
versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2018-09-12 Thread Nathaniel Manista


Nathaniel Manista  added the comment:

... and while we're here, how about StackSummary.from_list's "a_list" parameter 
as well:

3) Can it be Iterable? It looks like it can be Iterable? Is it fine for it to 
be Iterable?

4) Should the component type of "a_list" be FrameSummary? Is the support for 
Tuple[str, int, str, Optional[str]] merely backward-looking, or is new code 
encouraged to pass Tuple[str, int, str, Optional[str]] objects?

--
title: Confirm the type of traceback.format_list post-3.5 -> Confirm the types 
of parameters of traceback.format_list and traceback.StackSummary.from_list 
post-3.5

___
Python tracker 

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



[issue34648] Confirm the type of traceback.format_list post-3.5

2018-09-12 Thread Nathaniel Manista


New submission from Nathaniel Manista :

So I'm fixing a bug in typeshed's accounting of the traceback module 
(https://github.com/python/typeshed/pull/2436) and the documented semantics of 
traceback.format_list don't quite smell to me what I think they might be 
intended to be:

1) I know it has the name "format_list", but is it really intended to require a 
list? Why not a sequence, or a collection, or an iterable? I would think it 
would be fine to pass an iterable to traceback.format_list. Is it fine?

2) What is the desired component type for the aggregate passed to format_list? 
In 3.4-and-earlier it was Tuple[str, int, str, Optional[str]], and that still 
works in 3.5-through-3.8, but is that just backwards compatibility or is that 
something that users of traceback.format_list should feel encouraged to 
continue passing into the future?

Sorry for filing a bug just to ask "huh; really?" but... please confirm?

--
assignee: docs@python
components: Documentation
messages: 325175
nosy: Nathaniel Manista, docs@python
priority: normal
severity: normal
status: open
title: Confirm the type of traceback.format_list post-3.5
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue34004] Acquiring locks not interrupted by signals on musl libc

2018-09-12 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
keywords: +patch
pull_requests: +8655
stage:  -> patch review

___
Python tracker 

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



[issue31577] crash in os.utime() in case of a bad ns argument

2018-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 329ea4ef7cc3a907a64c6f0702fc93206b6744de by Miss Islington (bot) 
in branch '3.7':
bpo-31577: Fix a crash in os.utime() in case of a bad ns argument. (GH-3752)
https://github.com/python/cpython/commit/329ea4ef7cc3a907a64c6f0702fc93206b6744de


--
nosy: +miss-islington

___
Python tracker 

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



[issue34647] print sys.thread_info in regrtest header

2018-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

Actually, this is already in "make pythoninfo", which is enough, I think.

--
resolution:  -> rejected
stage: patch review -> 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



[issue34247] PYTHONOPTIMIZE ignored in 3.7.0 when using custom launcher

2018-09-12 Thread Ned Deily


Ned Deily  added the comment:

PR 9223 adds Nick's proposed wording to the 3.7 What's News.

--

___
Python tracker 

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



[issue34247] PYTHONOPTIMIZE ignored in 3.7.0 when using custom launcher

2018-09-12 Thread Ned Deily


Change by Ned Deily :


--
pull_requests: +8654
stage: commit review -> patch review

___
Python tracker 

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



  1   2   >