[issue33164] Blake 2 module update

2021-03-30 Thread Inada Naoki


Change by Inada Naoki :


--
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



[issue43662] test_tools: test_reindent_file_with_bad_encoding() fails RHEL7 on x86-64 and s390x with GCC 4.8.5 and LTO

2021-03-30 Thread STINNER Victor


STINNER Victor  added the comment:

This issue should be fixed by:

commit 92a02c1f7e2dcdc62913a4236589e7e5d96172b9
Author: Pablo Galindo 
Date:   Tue Mar 30 00:24:49 2021 +0100

Fix tokenizer error when raw decoding null bytes (GH-25080)

The fix is the usage of strlen() instead of "tok->end - tok->cur" to compute 
the line length.

> https://buildbot.python.org/all/#/builders/244/builds/931

The latest 6 builds are successful. I close the issue.

--
resolution:  -> fixed
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



[issue43656] StackSummary.format fails if str(value) fails

2021-03-30 Thread Irit Katriel


Change by Irit Katriel :


--
nosy: +iritkatriel

___
Python tracker 

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



[issue43656] StackSummary.format fails if str(value) fails

2021-03-30 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Why str() is called at all? Would not be better to use repr()?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue43659] AIX: test_curses crashes buildbot

2021-03-30 Thread Michael Felt


Michael Felt  added the comment:

my default TERM=xterm

I'll also use 'ansi'

The filenames will be ${TERM}.err and ${TERM}.out

for TERM in xterm ansi; do
./python -m test -vuall test_curses 2>${TERM}.err >${TERM}.out
done

After TERM=ansi - my terminal is in raw mode (i.e.,
$ stty sane ^J

needed).

--
Added file: https://bugs.python.org/file49917/issue43659.zip

___
Python tracker 

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



[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-03-30 Thread Inada Naoki


Inada Naoki  added the comment:

I created bpo-43651 to track fixing EncodingError in Python stdlibs.
I close this issue for now.

--
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



[issue43651] PEP 597: Fix EncodingError

2021-03-30 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +vstinner

___
Python tracker 

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



[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-03-30 Thread STINNER Victor


Change by STINNER Victor :


--
title: PEP 597: Fix EncodingError -> PEP 597: Fix EncodingWarning warnings in 
the Python stdlib

___
Python tracker 

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



[issue43665] AIX: test_importlib regression (ENV change)

2021-03-30 Thread Michael Felt


New submission from Michael Felt :

Since issue43517 test_importlib 'fails' (bot status) with ENV_CHANGED.

The core dump is caused by SIGTRAP. I need help to learn how to stop the core 
dump from being cleaned up so I can load it into dbx and hopefully 
understand/learn with sub-test is actually having issues.

e.g., see 
https://buildbot.python.org/all/#/builders/438/builds/1031/steps/5/logs/stdio 
for current bot exit status

Thx for assistance.

--
components: Tests
messages: 389797
nosy: Michael.Felt
priority: normal
severity: normal
status: open
title: AIX: test_importlib regression (ENV change)
versions: Python 3.10, Python 3.9

___
Python tracker 

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



[issue43665] AIX: test_importlib regression (ENV change)

2021-03-30 Thread STINNER Victor


STINNER Victor  added the comment:

A core dump is a very bad sign of health.

Can you please try to bisect which test is causing the segfault using 
bisect_cmd? Try the command:

./python -m test.bisect_cmd -o bisect --fail-env-changed test_importlib

The command should takes 10-60 minutes, and you should see the number of tests 
decreasing. I hope that at the end, the command will identify a single method 
triggering the crash.

At the end, the create "bisect" file contains the test methods causing the bug.

Then you can re-run tests with:

./python -m test --fail-env-changed test_importlib --matchfile=bisect


> The core dump is caused by SIGTRAP. I need help to learn how to stop the core 
> dump from being cleaned up so I can load it into dbx and hopefully 
> understand/learn with sub-test is actually having issues.

You can re-run the test without libregrtest by running it directly. Example:

./python -m test.test_importlib 
test_spec.Frozen_ModuleSpecMethodsTests.test_reload -v

It should create a core dump in the current directory, or you run the command 
in your favorite debugger.


My notes on debugging a Python crash: 
https://pythondev.readthedocs.io/debug_tools.html#core-dump

--
nosy: +vstinner

___
Python tracker 

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



[issue43659] AIX: test_curses crashes buildbot

2021-03-30 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
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



[issue43659] AIX: test_curses crashes buildbot

2021-03-30 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution: fixed -> 
stage: resolved -> 
status: closed -> open

___
Python tracker 

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



[issue43637] winreg: SetValueEx leaks memory if PySys_Audit fails

2021-03-30 Thread miss-islington


miss-islington  added the comment:


New changeset f79577ddbd7c87b6cc1810e98ee4eaca7ae50699 by Miss Islington (bot) 
in branch '3.9':
bpo-43637: Fix a possible memory leak in winreg.SetValueEx() (GH-25038)
https://github.com/python/cpython/commit/f79577ddbd7c87b6cc1810e98ee4eaca7ae50699


--

___
Python tracker 

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



[issue43637] winreg: SetValueEx leaks memory if PySys_Audit fails

2021-03-30 Thread miss-islington


miss-islington  added the comment:


New changeset 5486b105a4c5de840c24776c726eeac2a8dc973c by Miss Islington (bot) 
in branch '3.8':
bpo-43637: Fix a possible memory leak in winreg.SetValueEx() (GH-25038)
https://github.com/python/cpython/commit/5486b105a4c5de840c24776c726eeac2a8dc973c


--

___
Python tracker 

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



[issue43637] winreg: SetValueEx leaks memory if PySys_Audit fails

2021-03-30 Thread Dong-hee Na


Change by Dong-hee Na :


--
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



[issue43659] AIX: test_curses crashes buildbot

2021-03-30 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Thank you. I see that 7 tests are failed (test_background, test_color_attrs, 
test_color_content, test_getch, test_getstr, test_init_pair, 
test_insert_delete) and test_output_string perhaps crashes.

Could you please run tests with test_insert_delete skipped (option -i 
test_insert_delete or just skip in code)? If it crashes on other tests, skip 
them as well.

--

___
Python tracker 

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



[issue19124] os.execv executes in background on Windows

2021-03-30 Thread Eryk Sun


Eryk Sun  added the comment:

Steve, what do you think about os.exec*()? Should it be emulated better or 
deprecated? 

We can't hide the reality that it's a new process with a different process ID 
and parent process ID -- against what POSIX requires. But emulating exec() is 
probably good enough for most cases, especially if code expects to work in 
Windows.

> I like the idea, but we shouldn't invert the dependencies like that. 
> nt/os is a lower-level library, and should provide its own 
> implementation (that perhaps subprocess could then use).

The precedent I had in mind is os.popen(), which uses subprocess.

There wouldn't be much need to implement system() and spawnv[e] if ucrt used 
PROC_THREAD_ATTRIBUTE_HANDLE_LIST in the common spawn code (exec\spawnv.cpp). 
Any chance that's in development or planned?

If Python implements its own system() and spawnv[e]() functions, support for 
inheritable file descriptors [1] would probably have to be dropped. That's not 
a great loss, IMO, but I'm sure someone will be unhappy about it. The problem 
is that the flags for an open fd (e.g. FDEV, FPIPE, FAPPEND, FTEXT, 
FNOINHERIT), which the CRT copies to the STARTUPINFO.lpReserved2 buffer, are 
not public data. In particular, the FAPPEND flag for an O_APPEND open can't be 
determined or inferred.

---

[1] Making an fd inheritable currently requires two steps in Windows Python: 
fd2 = os.dup(fd); os.set_inheritable(fd2, True). os.dup(fd) creates a duplicate 
fd that's not flagged FNOINHERIT, but the underlying OS handle isn't 
inheritable. os.set_inheritable(fd, True) makes the OS handle inheritable, but 
it can't remove the FNOINHERIT fd flag.

--

___
Python tracker 

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



[issue43659] AIX: test_curses crashes buildbot

2021-03-30 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Please also try to comment out the following line in test_output_string. Does 
it help?

s = '\u0661\u0662\u0663\u0664'
try:
func(s, 3)
except UnicodeEncodeError:
self.assertRaises(UnicodeEncodeError, s.encode, encoding)

--

___
Python tracker 

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



[issue43666] AIX: Lib/_aix_support.py may break in a WPAR environment

2021-03-30 Thread Michael Felt


New submission from Michael Felt :

When working in a WPAR (workload partition) the routines supporting 
aix_platform() may fail if there is no related builddate for bos.mp64.

a) the fileset queried is changed to `bos.rte`
b) an extreme value (9988) is returned for any similar (unexpected) situations 
- so that, in any case, the build of Python can proceed.

--
components: Library (Lib)
messages: 389804
nosy: Michael.Felt
priority: normal
severity: normal
status: open
title: AIX: Lib/_aix_support.py may break in a WPAR environment
versions: Python 3.10, Python 3.9

___
Python tracker 

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



[issue24234] Should we define complex.__complex__ and bytes.__bytes__?

2021-03-30 Thread Takumi Kato


Takumi Kato  added the comment:

Recently, the situation has changed. We should consider this issue again.

typing.SupportsComplex is an ABC with one abstract method __complex__.
Thus, isinstance(complex, typing.SupportsComplex) is False.
typing.SupportsBytes also.

It is nonsense.

--
nosy: +gyu-don

___
Python tracker 

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



[issue43125] Trying To Concatenate Bytes and String in SMTPLIB

2021-03-30 Thread Dong-hee Na


Change by Dong-hee Na :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10 -Python 3.6, Python 3.8

___
Python tracker 

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



[issue43125] Trying To Concatenate Bytes and String in SMTPLIB

2021-03-30 Thread Dong-hee Na

Dong-hee Na  added the comment:


New changeset cf35e05f89bb008d6f4553f9875e0fe87fc02406 by Grégory Starck in 
branch 'master':
bpo-43125: Fix: return expected type (str), not original value (bytes) in 
email/base64mime.py::body_encode (GH-24476)
https://github.com/python/cpython/commit/cf35e05f89bb008d6f4553f9875e0fe87fc02406


--

___
Python tracker 

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



[issue43622] TLS 1.3, client polling returns event without data

2021-03-30 Thread gchauvel


gchauvel  added the comment:

Based on your first comment, poll returning an event and recv not able to read 
data is a behavior to expect with TLSv1.2/TLSv1.3 (or ...)
So in order to use SSLContext in a polling loop with multiple file descriptors, 
a non-blocking mode (to avoid an fd event and not being able to read data) is 
mandatory. Do you agree with this statement ?

Furthermore, I looked at [1], the other tests in test_ssl.py and also set a few 
traces in _ssl.c

- without non blocking mode: even with a fd event, the test blocks on SSL_read
- with non blocking mode: SSL_read returns a negative value, PySSL_SetError 
throws PySSLWantWriteErrorObject, but:

nothing is printed on the console, a thread is blocked at 
PyThread_acquire_lock_timed, so the test hangs forever.

- with non blocking mode + try/except ssl.SSLWantReadError [2], the test is ok

[1] https://docs.python.org/3/library/ssl.html#ssl-nonblocking
[2] 
https://github.com/g-chauvel/cpython/commit/dc57cbea3558ff7b3c040326709d9b759214584a

--

___
Python tracker 

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



[issue43659] AIX: test_curses crashes buildbot

2021-03-30 Thread Michael Felt


Michael Felt  added the comment:

./python -m test -vuall -i test_output_string -i test_insert_delete test_curses 
2>test.err 1>test.out

returns four failures: see attached

'-i test_output_string' stops the crash

--
Added file: https://bugs.python.org/file49918/test.out

___
Python tracker 

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



[issue43631] Update to OpenSSL 1.1.1k

2021-03-30 Thread miss-islington


miss-islington  added the comment:


New changeset 9ac263091db4a8c7dedb577d01f544622a448744 by Christian Heimes in 
branch '3.8':
[3.8] bpo-43631: Update to OpenSSL 1.1.1k (GH-25024) (GH-25089)
https://github.com/python/cpython/commit/9ac263091db4a8c7dedb577d01f544622a448744


--

___
Python tracker 

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



[issue43631] Update to OpenSSL 1.1.1k

2021-03-30 Thread miss-islington


miss-islington  added the comment:


New changeset cd82d592063aa03dcc238dcc5222bd47ee0eb438 by Christian Heimes in 
branch '3.9':
[3.9] bpo-43631: Update to OpenSSL 1.1.1k (GH-25024) (GH-25088)
https://github.com/python/cpython/commit/cd82d592063aa03dcc238dcc5222bd47ee0eb438


--

___
Python tracker 

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



[issue37745] 3.8b3 - windows install gui/ inconsistent options

2021-03-30 Thread Dimitri Merejkowsky


Dimitri Merejkowsky  added the comment:

> the inevitable confusion when multiple PATH updates do not play well together 
> (which they don't).

Oh I see. Did not think about that. I can see a scenario where you install 3.9, 
PATH is set, you install 3.10, the PATH update fails for some reason and then 
you get stuck because PATH was not updated correctly... and then you're back to 
manually setting PATH which was the thing we were trying to prevent ...

> you can modify [Python installations coming from the Windows store] through 
> the built-in "Manage App Execution Aliases" control panel if you have 
> multiple)

Good to know, thanks. That was one of my concerns actually.

> I'm sick to death of being abused over this issue

I'm sorry to hear that and I apologize - I was simply trying to get answers.

Well, now that I know why the box is not ticked, I can say I'm happy with the 
state of the installer, and I guess I'll continue to teach my students about 
PATH - after all, it's a useful skill to have ;)

--

___
Python tracker 

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



[issue43622] TLS 1.3, client polling returns event without data

2021-03-30 Thread gchauvel


gchauvel  added the comment:

err: second item: copy/paste error, the exception is PySSLWantReadErrorObject

--

___
Python tracker 

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



[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-03-30 Thread Jakub Kulik


New submission from Jakub Kulik :

On Linux, wchar_t values are mapped to their UTF-8 counterparts; however, that 
does not have to be the case as the standard allows any arbitrary 
representation to be used, and this is the case for Solaris.

In Oracle Solaris, the internal form of wchar_t is specific to a locale; in the 
Unicode locales, wchar_t has the UTF-32 Unicode encoding form, and other 
locales have different representations [1].

This is an issue because Python expects wchar_t to correspond with Unicode, 
which on Oracle Solaris with non-UTF locale results either in errors (values 
are outside the Unicode range) or in output with different symbols.

Unicode locales work as expected, but they are not an acceptable workaround for 
some Oracle Solaris users that cannot use Unicode encoding for various reasons.


Because of that, we fixed it a few months ago with a patch to 
`PyUnicode_FromWideChar`, which handles conversion to unicode (attached in PR). 
It was tested over the last half a year, and we didn't see any related issues 
since.

Is something like this acceptable or should it be fixed on a different place/in 
a different way? All comments are appreciated.

[1] https://docs.oracle.com/cd/E36784_01/html/E39536/gmwkm.html

--
components: Unicode
messages: 389813
nosy: ezio.melotti, kulikjak, vstinner
priority: normal
severity: normal
status: open
title: Solaris: Fix broken Unicode encoding in non-UTF locales
versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-03-30 Thread Jakub Kulik


Change by Jakub Kulik :


--
keywords: +patch
pull_requests: +23840
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/25096

___
Python tracker 

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



[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-03-30 Thread Jakub Kulik


Jakub Kulik  added the comment:

I forgot to mention: this affects Oracle Solaris. I tested this on SmartOS, and 
I cannot reproduce it there as it seems that they are using Unicode 
representation for all locales. Based on the documentation, this might also 
affect other systems as well (e.g. HP UIX specifically says: 'These values may 
not be compatible with values obtained by specifying other locales that are 
supported'), but it's hard to tell without testing that.

This one liner breaks with ValueError: character U+3069 is not in range 
[U+; U+10] if the issue is present:
python3.7 -c 'import datetime; import locale; 
locale.setlocale(locale.LC_ALL,"es_ES.ISO8859-1"); datetime.date(2001, 1, 
3).strftime("%a")'

--

___
Python tracker 

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



[issue43656] StackSummary.format fails if str(value) fails

2021-03-30 Thread Martin


Martin  added the comment:

Yes, it is repr in FrameSummary.__init__.

--

___
Python tracker 

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



[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-03-30 Thread Inada Naoki


Change by Inada Naoki :


--
keywords: +patch
pull_requests: +23841
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/25097

___
Python tracker 

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



[issue43668] Segfault with for fresh ubuntu 20.04 install

2021-03-30 Thread axel


New submission from axel :

The python interpreter segfaults when running in a miniconda environment on a 
fresh install of ubuntu 20.04.2. This seems to happen intermittently, both 
while running "pip" during the conda setup of an environment and during the 
execution of code like below. The issue is most have mostly been reproduced 
with conda, but seems to happen regardless, which is why I suspect it is a 
python bug. It is very odd that I can't seem to find anyone else with the same 
issue.

The segfault always occurs when running the following code, which reads texts 
from files and tokenizes the result. The segfault location changes from run to 
run. Also the exact same code can run on another computer with the same conda 
environment on a ubuntu 18.04.

The core dumps always points to some function in the unicodeobject.c file in 
python but the exact function changes from crash to crash. At least one crash 
has a clear dereferenced pointer 0x0 where the "unicode object" should be.

My guess is that something causes the python interpreter to throw away the 
pointed to unicode object while it is still being worked on causing a segfault. 
But any bug in the interpreter or NLTK should have been noticed by more users, 
and I cannot find anyone with similar issues. 

Things tried that didn't fix the issue:
1. Reformatting and reinstalling ubuntu
2. Switched to ubuntu 18.04 (on this computer, another computer with 18.04 can 
run the code just fine)
3. Replacing hardware, to ensure that RAM, or SSD disk isn't broken
4. Changing to python versions 3.8.6, 3.8.8, 3.9.2
5. Cloning the conda environment from a working computer to the broken one

Attached is one stacktrace of the fault handler along with it's corresponding 
core dump stack trace from gdb.

```
(eo) axel@minimind:~/test$ python tokenizer_mini.py 
2021-03-30 11:10:15.588399: W 
tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load 
dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open 
shared object file: No such file or directory
2021-03-30 11:10:15.588426: I 
tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror 
if you do not have a GPU set up on your machine.
Fatal Python error: Segmentation fault

Current thread 0x7faa73bbe740 (most recent call first):
  File "tokenizer_mini.py", line 36 in preprocess_string
  File "tokenizer_mini.py", line 51 in 
Segmentation fault (core dumped)
```

```
#0  raise (sig=) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  
#2  find_maxchar_surrogates (num_surrogates=, 
maxchar=, 
end=0x4 , begin=0x0)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/unicodeobject.c:1703
#3  _PyUnicode_Ready (unicode=0x7f7e4e04d7f0)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/unicodeobject.c:1742
#4  0x55cd65f6df6a in PyUnicode_RichCompare (left=0x7f7e4cf43fb0, 
right=, op=2)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/unicodeobject.c:11205
#5  0x55cd6601712a in do_richcompare (op=2, w=0x7f7e4e04d7f0, 
v=0x7f7e4cf43fb0)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/object.c:726
#6  PyObject_RichCompare (op=2, w=0x7f7e4e04d7f0, v=0x7f7e4cf43fb0)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/object.c:774
#7  PyObject_RichCompareBool (op=2, w=0x7f7e4e04d7f0, v=0x7f7e4cf43fb0)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/object.c:796
#8  list_contains (a=0x7f7e4e04b4c0, el=0x7f7e4cf43fb0)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/listobject.c:455
#9  0x55cd660be41b in PySequence_Contains (ob=0x7f7e4cf43fb0, 
seq=0x7f7e4e04b4c0)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/abstract.c:2083
#10 cmp_outcome (w=0x7f7e4e04b4c0, v=0x7f7e4cf43fb0, op=, 
tstate=)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Python/ceval.c:5082
#11 _PyEval_EvalFrameDefault (f=, throwflag=)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Python/ceval.c:2977
#12 0x55cd6609f706 in PyEval_EvalFrameEx (throwflag=0, f=0x7f7e4f4d3c40)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Python/ceval.c:738
#13 function_code_fastcall (globals=, nargs=, 
args=, co=)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/call.c:284
#14 _PyFunction_Vectorcall (func=, stack=, 
nargsf=, kwnames=)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/call.c:411
#15 0x55cd660be54f in _PyObject_Vectorcall (kwnames=0x0, nargsf=, args=0x7f7f391985b8, callable=0x7f7f39084160)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/

[issue43668] Segfault with for fresh ubuntu 20.04 install

2021-03-30 Thread STINNER Victor


STINNER Victor  added the comment:

This is very likely a crash in a 3rd party C extensions. You should try to 
write a simpler reproducer and report it to the C extensions causing the crash. 
You can try to enable the Python Development Mode to see if it provides you 
more information:
https://docs.python.org/dev/library/devmode.html

See also my notes on debugging a Python crash:
https://pythondev.readthedocs.io/debug_tools.html


#2  find_maxchar_surrogates (num_surrogates=, 
maxchar=, 
end=0x4 , begin=0x0)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/unicodeobject.c:1703
#3  _PyUnicode_Ready (unicode=0x7f7e4e04d7f0)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/unicodeobject.c:1742

Python no longer create "not ready" strings: _PyUnicode_Ready() is called to 
convert strings created with the deprecated legacy C API. It is likely a string 
created by a 3rd party C extension.

"begin=0x0 and end=0x4" sounds like the string is corrupted: in 
_PyUnicode_Ready(), _PyUnicode_WSTR(unicode) must not be NULL (begin=0x0).

--
nosy: +vstinner

___
Python tracker 

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



[issue43668] Segfault with for fresh ubuntu 20.04 install

2021-03-30 Thread STINNER Victor


STINNER Victor  added the comment:

Also, it would help a lot to use a Python built in debug mode.

--

___
Python tracker 

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



[issue43656] StackSummary.format fails if str(value) fails

2021-03-30 Thread Irit Katriel


Irit Katriel  added the comment:

See issue39228.

--

___
Python tracker 

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



[issue43668] Segfault with for fresh ubuntu 20.04 install

2021-03-30 Thread STINNER Victor


STINNER Victor  added the comment:

> Also, it would help a lot to use a Python built in debug mode.

See: https://pythondev.readthedocs.io/builds.html#pydebug

--

___
Python tracker 

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



[issue43668] Segfault with for fresh ubuntu 20.04 install

2021-03-30 Thread axel


axel  added the comment:

Thanks for the reply, I don't know exactly what you mean by making a simpler 
reproducer, but as I wrote in the original post, just using pip will cause this 
issue to happen from time to time, which is why I find it unlikely to be caused 
by third party libs. 

I will try to cause a reproduction without 3rd party libs but since I don't 
have a good idea of what is causing it, I'm not really sure where to start.

--

___
Python tracker 

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



[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-03-30 Thread Inada Naoki


Inada Naoki  added the comment:

In bpo-43651, I found code pattern that it's difficult to use 
io.text_encoding():

class OpenWrapper:
def __new__(cls, *args, **kwargs):
return open(*args, **kwargs)

`kwargs["encoding"] = text_encoding(kwargs.get("encoding)` doesn't work because 
`open(filename, "b", encoding="locale")` raises `ValueError: binary mode 
doesn't take an encoding argument`.

I think we should accept `encoding="locale"` even in binary mode. It makes easy 
to use `text_encoding()` and `encoding="locale"`.

--
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue43669] PEP 644: Require OpenSSL 1.1.1 or newer

2021-03-30 Thread Christian Heimes

New submission from Christian Heimes :

Tracker ticket for PEP 644, https://www.python.org/dev/peps/pep-0644/

This PEP proposes for CPython’s standard library to support only OpenSSL 1.1.1 
LTS or newer. Support for OpenSSL versions past end-of-lifetime, incompatible 
forks, and other TLS libraries are dropped.

--
assignee: christian.heimes
components: SSL
messages: 389823
nosy: christian.heimes
priority: normal
severity: normal
status: open
title: PEP 644: Require OpenSSL 1.1.1 or newer
type: enhancement
versions: Python 3.10

___
Python tracker 

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



[issue43669] PEP 644: Require OpenSSL 1.1.1 or newer

2021-03-30 Thread Christian Heimes


Change by Christian Heimes :


--
keywords: +patch
pull_requests: +23842
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23014

___
Python tracker 

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



[issue43668] Segfault with for fresh ubuntu 20.04 install

2021-03-30 Thread STINNER Victor


STINNER Victor  added the comment:

> Thanks for the reply, I don't know exactly what you mean by making a simpler 
> reproducer

Script with less lines and less imports.

> just using pip will cause this issue to happen from time to time, which is 
> why I find it unlikely to be caused by third party libs. 

pip is a 3rd party project using 3rd party C extensions.

"3rd party" means "not maintained by python.org" (not part of the stdlib). See 
also:
https://docs.python.org/dev/library/sys.html#sys.stdlib_module_names

> I'm not really sure where to start.

Set PYTHONDEVMODE=1 in your ~/.bashrc, to run all Python applications with the 
Python Development Mode enabled :-D

Try to reproduce your pip crash with PYTHONDEVMODE=1.

--

___
Python tracker 

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



[issue43670] Typo in 3.10 changelog

2021-03-30 Thread Ilya Gruzinov


New submission from Ilya Gruzinov :

In next lines typo in function `load`:

# BUG: "rb" mode or encoding="utf-8" should be used.
with open("data.json") as f:
data = json.laod(f)

--
assignee: docs@python
components: Documentation
messages: 389825
nosy: docs@python, shagren
priority: normal
pull_requests: 23843
severity: normal
status: open
title: Typo in 3.10 changelog
versions: Python 3.10

___
Python tracker 

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



[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-03-30 Thread Christian Heimes


Christian Heimes  added the comment:

Serhiy was right, this is a security issue.

The patch should not have landed in 3.8. At a bare minimum the patch should 
have been postponed until documentation was updated. Since 3.8 the ipaddresss 
does not behave as documented. A similar security issue in NPM was published 
two days ago, CVE-2021-28918.

I proposed to not only revert the change, but also tighten the check for 
leading zeros so it behaves like glibc's inet_pton(). It refuses any IPv4 
string with a leading zero.

>>> socket.inet_pton(socket.AF_INET, "01.1.1.1")
Traceback (most recent call last):
  File "", line 1, in 
OSError: illegal IP address string passed to inet_pton
>>> socket.inet_pton(socket.AF_INET, "1.1.1.01")
Traceback (most recent call last):
  File "", line 1, in 
OSError: illegal IP address string passed to inet_pton

--
components: +Library (Lib)
keywords: +3.8regression, 3.9regression -3.2regression
nosy: +christian.heimes
priority: normal -> critical
type: behavior -> security
versions: +Python 3.10, Python 3.9

___
Python tracker 

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



[issue43671] segfault when using tkinter + pygame for ~5 minutes

2021-03-30 Thread Samuel Kirwin


New submission from Samuel Kirwin :

Per the attached file, when testing an adapted version of pygame's alien script 
as part of research. Python segfaulted.

This has occured twice about 5 minutes in.

I had console running all messages at the time if more logs needed.

MacOS Big Sur 11.2.3 on MacBook Air (Retina, 13-inch, 2018) with 1.6 GHz 
Dual-Core Intel Core i5 & 8 GB 2133 MHz LPDDR3 Memory

--
components: Tkinter
files: segfault.rtf
messages: 389827
nosy: Pycryptor10
priority: normal
severity: normal
status: open
title: segfault when using tkinter + pygame for ~5 minutes
type: crash
versions: Python 3.9
Added file: https://bugs.python.org/file49919/segfault.rtf

___
Python tracker 

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



[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-03-30 Thread Eryk Sun


Eryk Sun  added the comment:

> I think we should accept `encoding="locale"` even in binary mode.

That's a good idea. It means the same as passing None, except it avoids a 
warning.

--
nosy: +eryksun

___
Python tracker 

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



[issue31956] Add start and stop parameters to the array.index()

2021-03-30 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

___
Python tracker 

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



[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-03-30 Thread Christian Heimes


Change by Christian Heimes :


--
keywords: +patch
pull_requests: +23844
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/25099

___
Python tracker 

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



[issue43666] AIX: Lib/_aix_support.py may break in a WPAR environment

2021-03-30 Thread Michael Felt


Change by Michael Felt :


--
keywords: +patch
pull_requests: +23845
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/25095

___
Python tracker 

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



[issue43671] segfault when using tkinter + pygame for ~5 minutes

2021-03-30 Thread Pycrytor10


Pycrytor10  added the comment:

Can reproduce with a modified pygame.examples.alien to run in a loop after a 
similar time.

--
Added file: https://bugs.python.org/file49920/aliens.py

___
Python tracker 

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



[issue43671] segfault when using tkinter + pygame for ~5 minutes

2021-03-30 Thread Pycrytor10


Change by Pycrytor10 :


Added file: https://bugs.python.org/file49921/segfaultpygame.txt

___
Python tracker 

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



[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-30 Thread Alex


Alex  added the comment:

Is there anything else I should be doing, in order to get this merged in time 
for 3.10? (the PR is "awaiting merge")
For the record, the equivalent PR for PyPy is now merged in the py3.7 branch: 
https://foss.heptapod.net/pypy/pypy/-/merge_requests/807.

Regarding the backporting, I understand from the devguide this is done 
automatically from GitHub labels (nice!), but it does not look like I have the 
rights to add those to my PR.

--

___
Python tracker 

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



[issue43671] segfault when using tkinter + pygame for ~5 minutes

2021-03-30 Thread Pycrytor10


Pycrytor10  added the comment:

Also filed https://github.com/pygame/pygame/issues/2543 as not sure where issue 
comes from

--

___
Python tracker 

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



[issue38263] [Windows] multiprocessing: DupHandle.detach() race condition on DuplicateHandle(DUPLICATE_CLOSE_SOURCE)

2021-03-30 Thread Eryk Sun


Eryk Sun  added the comment:

spawn_main() could handle a PermissionError by checking the exit code. If the 
parent has terminated already, then simply exit quietly. 
_winapi.PROCESS_QUERY_LIMITED_INFORMATION would need to be defined. For example:

def spawn_main(pipe_handle, parent_pid=None, tracker_fd=None):
"""Run code specified by data received over a pipe."""
assert is_forking(sys.argv), "Not forking"

if sys.platform == 'win32':
import msvcrt
import _winapi

if parent_pid is not None:
source_process = _winapi.OpenProcess(
_winapi.SYNCHRONIZE |
_winapi.PROCESS_DUP_HANDLE |
_winapi.PROCESS_QUERY_LIMITED_INFORMATION,
False, parent_pid)
else:
source_process = None
try:
new_handle = reduction.duplicate(
pipe_handle, source_process=source_process)
fd = msvcrt.open_osfhandle(new_handle, os.O_RDONLY)
exitcode = _main(fd, source_process)
except PermissionError:
if (source_process is None or
  _winapi.GetExitCodeProcess(source_process) ==
  _winapi.STILL_ACTIVE):
raise
exitcode = 1
else:
from . import resource_tracker
resource_tracker._resource_tracker._fd = tracker_fd
exitcode = _main(pipe_handle, os.dup(pipe_handle))

sys.exit(exitcode)

--
stage:  -> needs patch
type:  -> behavior
versions: +Python 3.10 -Python 3.7

___
Python tracker 

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



[issue42134] Raise ImportWarning when falling back to find_module()

2021-03-30 Thread Brett Cannon


Brett Cannon  added the comment:


New changeset a7ff6df60c05e1b69fca743573b1e118bebf121d by Brett Cannon in 
branch 'master':
bpo-42134: Raise ImportWarning when calling find_module() in the import system 
(GH-25044)
https://github.com/python/cpython/commit/a7ff6df60c05e1b69fca743573b1e118bebf121d


--

___
Python tracker 

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



[issue43672] Raise ImportWarning when calling find_loader()

2021-03-30 Thread Brett Cannon


New submission from Brett Cannon :

Using find_loader() in the import system should raise ImportWarning to start 
transitioning people over to find_spec() who haven't migrated since Python 3.4.

--
assignee: brett.cannon
components: Interpreter Core
messages: 389834
nosy: brett.cannon
priority: normal
severity: normal
status: open
title: Raise ImportWarning when calling find_loader()
versions: Python 3.10

___
Python tracker 

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



[issue38263] [Windows] multiprocessing: DupHandle.detach() race condition on DuplicateHandle(DUPLICATE_CLOSE_SOURCE)

2021-03-30 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

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



[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-30 Thread Guido van Rossum


Guido van Rossum  added the comment:

Can you past the full output from your command?

Also, try making a dummy change (e.g. add a blank line) to each of the input 
files -- this will trigger the rebuild.

PS. Please don't remove nosy folks unless they request so.

--
nosy: +anthonypjshaw, lys.nikolaou, pablogsal, paul.moore, steve.dower, 
tim.golden, vstinner, zach.ware

___
Python tracker 

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



[issue41369] Update to libmpdec-2.5.1

2021-03-30 Thread Antoine Pitrou


Antoine Pitrou  added the comment:


New changeset 73b20ae2fb7a5c1374aa5c3719f64c53d29fa0d2 by Antoine Pitrou in 
branch 'master':
bpo-41369: Finish updating the vendored libmpdec to version 2.5.1 (GH-24962)
https://github.com/python/cpython/commit/73b20ae2fb7a5c1374aa5c3719f64c53d29fa0d2


--

___
Python tracker 

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



[issue41369] Update to libmpdec-2.5.1

2021-03-30 Thread Antoine Pitrou


Change by Antoine Pitrou :


--
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



[issue33125] Windows 10 ARM64 platform support

2021-03-30 Thread Steve Dower


Steve Dower  added the comment:

Our builds are fine, so there's no need for an issue on our side. The decision 
to release is based on the ecosystem catching up.

If you're able to help projects like setuptools, pip, and the core parts of the 
data science stack (which will need the most help) be able to support ARM64 
builds (despite the current lack of CI/CD support, which I'm working on 
separately), that will accelerate us being able to make the ARM64 releases 
available/supported.

--

___
Python tracker 

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



[issue19124] os.execv executes in background on Windows

2021-03-30 Thread Steve Dower


Steve Dower  added the comment:

> emulating exec() is probably good enough for most cases, especially if code 
> expects to work in Windows.

I think good-enough emulation is fine, but we should update the docs to clarify 
that non-Unix platforms may create a subprocess with a new PID, and callers 
should avoid relying on POSIX semantics if they may run on non-compliant 
platforms.

> If Python implements its own system() and spawnv[e]() functions, support for 
> inheritable file descriptors [1] would probably have to be dropped

I don't see how its behaviour would change at all, unless we're going well out 
of our way to override the CRT. Which I wouldn't want to see us do.

So let's at least fix the current issue of having the child process break away 
immediately, by waiting for it and then exiting. Even if that's just swapping 
the execv call for spawnv(_P_WAIT) and then exiting, that's fine by me (all the 
CRT calls go through the same path, so they'll launch it consistently 
regardless of mode).

--

___
Python tracker 

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



[issue37945] [Windows] test_locale.TestMiscellaneous.test_getsetlocale_issue1813() fails

2021-03-30 Thread Steve Dower


Steve Dower  added the comment:

This is now holding up some security releases (due to a couple of CVEs). Can we 
get the test skipped or fixed asap, please?

--
nosy: +lukasz.langa, ned.deily
priority: normal -> release blocker

___
Python tracker 

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



[issue43656] StackSummary.format fails if str(value) fails

2021-03-30 Thread Martin


Martin  added the comment:

I didn't know repr is supposed to always succeed. Does the documentation 
mention this?

--

___
Python tracker 

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



[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-30 Thread Guido van Rossum


Guido van Rossum  added the comment:

@Steve, Anthony: I am now in a state where I have *no* changes anywhere, 
build.bat completes without errors, but build.bat --regen produces this error 
(after first doing a regular build):

C:\Program Files (x86)\Microsoft Visual 
Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(67,5):
 error MSB8020: The build to
ols for v142 (Platform Toolset = 'v142') cannot be found. To build using the 
v142 build tools, please install v142 build tools.  Alternatively, you may u 
pgrade to the current Visual Studio tools by selecting the Project menu or 
right-click the solution, and then selecting "Retarget solution". [C:\Users\gv 
anrossum\cpython\PCbuild\regen.vcxproj]

Help!

--

___
Python tracker 

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



[issue43656] StackSummary.format fails if str(value) fails

2021-03-30 Thread Martin


Martin  added the comment:

I can't find any mention of this in the documentation:

https://docs.python.org/3/reference/datamodel.html#object.__repr__

https://docs.python.org/3/library/functions.html#repr

I think this should be mentioned somewhere.

--

___
Python tracker 

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



[issue43673] Missing stub for logging attribute manager

2021-03-30 Thread William (David) Wilcox


Change by William (David) Wilcox :


--
components: Library (Lib)
nosy: wdwilcox
priority: normal
severity: normal
status: open
title: Missing stub for logging attribute manager
type: enhancement
versions: Python 3.10

___
Python tracker 

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



[issue19124] os.execv executes in background on Windows

2021-03-30 Thread Eryk Sun


Eryk Sun  added the comment:

> Even if that's just swapping the execv call for spawnv(_P_WAIT) 
> and then exiting, that's fine by me

Maybe call SuspendThread() on other threads, at least the ones that can be 
enumerated with the threading module.

> I don't see how its behaviour would change at all, unless we're going
> well out of our way to override the CRT. Which I wouldn't want to see 
> us do.

The suggestion was for Python to implement system() and spawnv[e]() using 
subprocess or _winapi. That would eliminate the problem of leaked handles when 
subprocess.Popen() is called concurrently with os.system() and os.spawn*(). 
However, inheritance of file descriptors cannot be reasonably implemented in 
that case, not without accessing private CRT data (i.e. the internal flags of 
each file descriptor). 

If os.spawn*() has to continue supporting inheritance of file descriptors, then 
the idea is probably a non-starter. All we can do is hope that the CRT's common 
spawn code will eventually use PROC_THREAD_ATTRIBUTE_HANDLE_LIST. This feature 
only protects against leaked handles (particularly important for pipes) if it's 
used by all concurrent CreateProcessW() calls that inherit handles.

--

___
Python tracker 

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



[issue36534] tarfile and zipfile: handling Windows (path) illegal characters in archive member names

2021-03-30 Thread Eryk Sun


Change by Eryk Sun :


--
versions: +Python 3.10 -Python 3.7

___
Python tracker 

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



[issue42968] [Windows] multiprocessing handle leak when child process is killed during startup/unpickling

2021-03-30 Thread Eryk Sun


Change by Eryk Sun :


--
title: multiprocessing handle leak on Windows when child process is killed 
during startup/unpickling -> [Windows] multiprocessing handle leak when child 
process is killed during startup/unpickling
versions:  -Python 3.7

___
Python tracker 

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



[issue38822] [Windows] Inconsistent os.stat behavior for directory with Access Denied

2021-03-30 Thread Eryk Sun


Change by Eryk Sun :


--
components: +Extension Modules
title: Inconsistent os.stat behavior for directory with Access Denied -> 
[Windows] Inconsistent os.stat behavior for directory with Access Denied
versions: +Python 3.10 -Python 3.7

___
Python tracker 

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



[issue43105] [Windows] Can't import extension modules resolved via relative paths in sys.path

2021-03-30 Thread Eryk Sun


Change by Eryk Sun :


--
components: +Interpreter Core, Library (Lib) -Extension Modules
title: Can't import extension modules resolved via relative paths in sys.path 
on Windows -> [Windows] Can't import extension modules resolved via relative 
paths in sys.path
versions:  -Python 3.7

___
Python tracker 

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



[issue29753] [Linux] ctypes packs bitfields Incorrectly

2021-03-30 Thread Eryk Sun


Change by Eryk Sun :


--
title: Ctypes Packing Bitfields Incorrectly - Linux -> [Linux] ctypes packs 
bitfields Incorrectly
versions: +Python 3.10 -Python 3.7

___
Python tracker 

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



[issue43673] Missing stub for logging attribute manager

2021-03-30 Thread William (David) Wilcox


Change by William (David) Wilcox :


--
resolution:  -> rejected
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



[issue43431] Subprocess timeout causes output to be returned as bytes in text mode

2021-03-30 Thread Eryk Sun


Change by Eryk Sun :


--
versions:  -Python 3.7

___
Python tracker 

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



[issue42134] Raise ImportWarning when falling back to find_module()

2021-03-30 Thread Brett Cannon


Change by Brett Cannon :


--
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



[issue32671] redesign Windows os.getlogin, and add os.getuser

2021-03-30 Thread Eryk Sun


Change by Eryk Sun :


--
resolution:  -> rejected
stage: test needed -> 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



[issue39228] traceback.FrameSummary does not handle exceptions from `repr()`

2021-03-30 Thread Martin


Martin  added the comment:

> As is true for most special methods, it is a bug for __repr__ methods to 
> raise.

Is this codified anywhere? I only learned about that in this bug report.

--
nosy: +moi90

___
Python tracker 

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



[issue43671] segfault when using tkinter + pygame for ~5 minutes

2021-03-30 Thread E. Paine


E. Paine  added the comment:

Not sure why this was marked as a problem with tkinter (neither Pygame nor the 
example use it). I would be very surprised if this wasn't an issue with Pygame, 
as the Python is just requesting a dictionary deallocation which is then 
handled by Pygame's `font.cpython-39-darwin.so`.

--
nosy: +epaine, serhiy.storchaka

___
Python tracker 

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



[issue43671] segfault when using tkinter + pygame for ~5 minutes

2021-03-30 Thread Pycrytor10


Pycrytor10  added the comment:

My original script has tkinter used as well. I wasn't entirely sure where it 
was when I filed the bug at first and just saw a tk/tcl mentioned in the logs. 
It does look now I've managed to investigate further to be something in pygame. 
I've never had to debug a segfault before.

--

___
Python tracker 

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



[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-03-30 Thread STINNER Victor


STINNER Victor  added the comment:

> The patch should not have landed in 3.8. At a bare minimum the patch should 
> have been postponed until documentation was updated. Since 3.8 the ipaddresss 
> does not behave as documented. A similar security issue in NPM was published 
> two days ago, CVE-2021-28918.

Link: https://sick.codes/sick-2021-011

--
nosy: +vstinner

___
Python tracker 

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



[issue36534] tarfile and zipfile: handling Windows (path) illegal characters in archive member names

2021-03-30 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

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



[issue43674] strange effect at recursion limit

2021-03-30 Thread TW


New submission from TW :

user@development:~$ python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

def recurse(n):
print(n)
try:
recurse(n+1)
except RecursionError:
print("recursion error")
print(n)


Please note that there are 2 print(n) on the same level.

>>> recurse(0)
0
1
2
...
994
995
recursion error
994
993
...
2
1
0

Why is there no 2nd 995 after the recursion error?

Same happens for python 3.8.8 and 3.9.2.

Related question:

I also tried to set sys.setrecursionlimit(10) and ran recurse(0), but at a 
bit beyond 21800, it just segfaulted.

Is there a way to determine the practically working maximum it can do?

--
components: Interpreter Core
messages: 389848
nosy: ThomasWaldmann2
priority: normal
severity: normal
status: open
title: strange effect at recursion limit
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue30511] shutil.make_archive should not need to chdir (alternatively: make shutil.make_archive thread-safe)

2021-03-30 Thread Michael Osipov


Michael Osipov <1983-01...@gmx.net> added the comment:

Just wasted two hours for this. Can someone really update the documentation of 
it if this is not going to change.

--
nosy: +michael-o

___
Python tracker 

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



[issue37368] test_asyncio: test_create_server_ssl_match_failed() failed on s390x SLES 3.x and logged an unraisable exception

2021-03-30 Thread Neil Schemenauer


Neil Schemenauer  added the comment:

It seems to not be specific to S390, same kind of failure on the PPC64LE RHEL8 
LTO + PGE 3.x tester:

Exception ignored in: 
Traceback (most recent call last):  
  File 
"/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/asyncio/sslproto.py",
 line 321, in __del__
self.close()
  File 
"/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/asyncio/sslproto.py",
 line 316, in close
self._ssl_protocol._start_shutdown()
  File 
"/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/asyncio/sslproto.py",
 line 590, in _start_shutdown
self._abort()   
  File 
"/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/asyncio/sslproto.py",
 line 731, in _abort
self._transport.abort() 
  File 
"/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/asyncio/selector_events.py",
 line 680, in abort
self._force_close(None) 
  File 
"/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/asyncio/selector_events.py",
 line 731, in _force_close
self._loop.call_soon(self._call_connection_lost, exc)   
  File 
"/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/asyncio/base_events.py",
 line 745, in call_soon
self._check_closed()
  File 
"/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/asyncio/base_events.py",
 line 510, in _check_closed
raise RuntimeError('Event loop is closed')  
RuntimeError: Event loop is closed

--

___
Python tracker 

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



[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-30 Thread Zveinn


Zveinn  added the comment:

No problem, 

Hopefully this will improve the performance on some network devices and proxy 
services.

--

___
Python tracker 

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



[issue39228] traceback.FrameSummary does not handle exceptions from `repr()`

2021-03-30 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

__repr__() and repr() can raise exceptions. Silencing arbitrary exception is 
usually a bad idea. Even correctly raised code can raise exceptions such as 
MemoryError, RecursionError and KeybordInterrupt.

For this reason I think that the proposed change should not be made.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-30 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset 51a85ddce8b336addcb61b96f04c9c5edef07296 by Alex Prengère in 
branch 'master':
bpo-43399: Fix ElementTree.extend not working on iterators (GH-24751)
https://github.com/python/cpython/commit/51a85ddce8b336addcb61b96f04c9c5edef07296


--

___
Python tracker 

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



[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-30 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 6.0 -> 7.0
pull_requests: +23846
pull_request: https://github.com/python/cpython/pull/25101

___
Python tracker 

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



[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-30 Thread miss-islington


Change by miss-islington :


--
pull_requests: +23847
pull_request: https://github.com/python/cpython/pull/25102

___
Python tracker 

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



[issue43675] test

2021-03-30 Thread Aysal Marandian


Change by Aysal Marandian :


--
nosy: aysal.marandian
priority: normal
severity: normal
status: open
title: test

___
Python tracker 

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



[issue28276] test_loading.py - false positive result for "def test_find" when find_library() is not functional or the (shared) library does not exist

2021-03-30 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Concur. Also you can add "ssl" to the list of tested names if both "c" and "m" 
fail on AIX.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue43675] test

2021-03-30 Thread Aysal Marandian


New submission from Aysal Marandian :

test out python

--
resolution:  -> not a bug
versions: +Python 3.10

___
Python tracker 

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



[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-30 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Pinging us was the only action needed. Thank you for your contribution Alex.

--

___
Python tracker 

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



[issue43675] test

2021-03-30 Thread Eric V. Smith


Change by Eric V. Smith :


--
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



[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-30 Thread miss-islington


miss-islington  added the comment:


New changeset c1079cde2a7676892a9b98703903206b7d26ed1f by Miss Islington (bot) 
in branch '3.8':
bpo-43399: Fix ElementTree.extend not working on iterators (GH-24751)
https://github.com/python/cpython/commit/c1079cde2a7676892a9b98703903206b7d26ed1f


--

___
Python tracker 

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



[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-30 Thread miss-islington


miss-islington  added the comment:


New changeset b500bd8e672d15c6dfa24568a3264fdc0f3e0c01 by Miss Islington (bot) 
in branch '3.9':
bpo-43399: Fix ElementTree.extend not working on iterators (GH-24751)
https://github.com/python/cpython/commit/b500bd8e672d15c6dfa24568a3264fdc0f3e0c01


--

___
Python tracker 

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



[issue39228] traceback.FrameSummary does not handle exceptions from `repr()`

2021-03-30 Thread Irit Katriel


Irit Katriel  added the comment:

If we decide to reject this then we should add unit tests that show this state 
of affairs is deliberate.

--
nosy: +iritkatriel

___
Python tracker 

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



[issue41461] test_pathlib assumes underlying filesystem permits creation with world-write permissions

2021-03-30 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

umask(0o002) looks good idea (and perhaps umask(0o026) instead of 
umask(0o022)). Please add also a short explanation comment.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



  1   2   >