Xavier de Gaye added the comment:
The conditions used for the fix are still the same in 2.7: f->f_trace == NULL
on a call event, f->f_lasti == -1 in a new frame and f->f_stacktop == NULL in a
trace function with a non-line event except for yield statements.
There are minor differe
Xavier de Gaye added the comment:
FWIW I now get github notifications, the problem was some bad configuration of
my github profile (my fault).
--
___
Python tracker
<https://bugs.python.org/issue17
Change by Xavier de Gaye :
--
pull_requests: +5908
___
Python tracker
<https://bugs.python.org/issue19417>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Xavier de Gaye :
--
pull_requests: +5913
___
Python tracker
<https://bugs.python.org/issue19417>
___
___
Python-bugs-list mailing list
Unsubscribe:
Xavier de Gaye added the comment:
I will work on it shortly.
--
___
Python tracker
<https://bugs.python.org/issue24565>
___
___
Python-bugs-list mailin
New submission from Xavier de Gaye :
In _PyEval_EvalFrameDefault(), the call to maybe_dtrace_line() sets
frame->f_lasti to instr_prev and for that reason, in the ensuing call to
maybe_call_line_trace(), the call_trace() function with PyTrace_LINE is not
called as it should when a backw
Xavier de Gaye added the comment:
A trace function may also be set in extension modules by PyEval_SetTrace() and
it may not use f->f_trace. This is another reason why f->f_trace cannot be used
in PyFrame_GetLineNumber() to know when f->f_lineno
Xavier de Gaye added the comment:
Added PR 6233.
One of the GitHub bots failed to link this issue with PR 6233. Maybe this is
related to the fact that connections to bpo are currently failing intermitently
with the message:
An error occurred during a connection to bugs.python.org. Peer’s
Xavier de Gaye added the comment:
extract_from_pkgs() in the attached extract_from_packages.py script extracts
/etc files from the tar files in PKG_DIR into WORK_DIR using a
ThreadPoolExecutor (a ThreadPoolExecutor, when used to extract all the /etc
files from the packages that build a whole
Change by Xavier de Gaye :
--
pull_requests: +6188
___
Python tracker
<https://bugs.python.org/issue32232>
___
___
Python-bugs-list mailing list
Unsubscribe:
Xavier de Gaye added the comment:
The compilation failure is a consequence of the changes made in issue 30860.
Simply adding '#include "internal/pystate.h"' in Modules/_elementtree.c fixes
the compilation although this is not the correct fix.
The modules configured i
Xavier de Gaye added the comment:
To answer my own comment in PR 6489 about the interference of the pyconfig.h
macros with the build of std lib extension modules, the py_config_macros.py
script prints the list of pyconfig.h.in macros that are being used by the
standard library extension
Xavier de Gaye added the comment:
This is a duplicate of issue 13044.
> Why the code of the never used asynchronous generator is executed at all?
The destructor of the asynchronous generator is called during python
finalization while the trace is still active. Here is the backtrace wh
Xavier de Gaye added the comment:
I can reproduce this bug with python 3.6.5 using akl's debug.py. The exception
is now on 3.6.5:
(Pdb) next
--Call--
Exception ignored in:
Traceback (most recent call last):
File "/usr/lib/python3.6/types.py", line 27, in _ag
File &quo
Xavier de Gaye added the comment:
I cannot reproduce the problem with Python 3.6.5, building pyephem and with the
command:
( sleep 15; python setup.py build ) >foo.log 2>&1
--
nosy: +xdegaye
___
Python tracker
<https://bu
New submission from Xavier de Gaye :
In the following code, the destructors of objects referenced by the 'a' and 'b'
local variables are not traced by the 'step' command of pdb.
1 class C:
2 def __init__(self, name):
3 self.name = name
Change by Xavier de Gaye :
--
keywords: +patch
pull_requests: +6422
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33446>
___
___
Py
Xavier de Gaye added the comment:
In both cases the destructor cannot be traced because it is invoked from
functions called from [1] call_trace() where tracing is disabled:
Case local variable 'a':
On line 12, just before executing this line with a pdb step command, t
Xavier de Gaye added the comment:
Closing as a duplicate of issue 33446 which has a wider scope and a PR.
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Xavier de Gaye added the comment:
Nosying Serhiy as this post attempts to answer one of the questions raised in
msg315588 in issue 33328:
> Is it good that the debugger is enabled at the shutdown stage?
This post has four different sections showing that the successive and
incremen
Change by Xavier de Gaye :
Added file: https://bugs.python.org/file47579/gdb_backtrace.txt
___
Python tracker
<https://bugs.python.org/issue13044>
___
___
Python-bug
Change by Xavier de Gaye :
Added file: https://bugs.python.org/file47578/lazy_import.diff
___
Python tracker
<https://bugs.python.org/issue13044>
___
___
Python-bug
Xavier de Gaye added the comment:
Actually the segfault can be avoided by running the garbage collection before
_PyState_ClearModules() in PyImport_Cleanup() and one can trace the C
destructor with the attached patch global_destructors.diff applied on top of PR
6730.
_PyState_ClearModules
New submission from Xavier de Gaye :
This issue is a companion to issue 13044.
Running with Python 3.6.5 the following code fails with NameError:
1 class C:
2 def __del__(self):
3 print('deleted')
4
5 c = C()
6 x = 1
$ python -m pdb bar.py
> ./bar.py(1)()
-> clas
Xavier de Gaye added the comment:
The following patch fixes the problem when applied applied on top of PR 6730:
diff --git a/Lib/bdb.py b/Lib/bdb.py
index c6a10359ac..07231ec588 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -582,7 +582,7 @@ class Bdb:
cmd = compile(cmd, "&qu
Xavier de Gaye added the comment:
See also issue 33458 that deals with the same problem when pdb is run as
'python -m pdb some_main.py' instead of by inserting a breakpoint with
'pdb.set_trace()'.
--
___
Python tracker
<
Xavier de Gaye added the comment:
Philip, 9791c5d55f52 was commited in november 2013 and issue19901 was closed in
december 2013, so how can they be an appropriate solution for a problem
reported on 2017-01-13 in msg285392 ?
--
___
Python tracker
Change by Xavier de Gaye :
--
pull_requests: -2537
___
Python tracker
<https://bugs.python.org/issue20210>
___
___
Python-bugs-list mailing list
Unsubscribe:
Xavier de Gaye added the comment:
> Ah, the discussion restarted on the other issue:
> http://bugs.python.org/issue20210#msg287516
Issue 20210 has ended up as a change in the build system eventually and not the
installation process, only a tiny step towards the configuration of a s
Xavier de Gaye added the comment:
Nick, in msg304388 you wrote "[allow] immediate write-through from trace
functions". The latest iteration of PEP 558 says instead:
"tracing mode: the way the interpreter behaves when a trace hook has been
registered..."
and also sa
Xavier de Gaye added the comment:
Test cases in issues #30697 and #30817, back ported to 3.6, need
_testcapi.set_nomemory().
--
versions: +Python 3.6
___
Python tracker
<https://bugs.python.org/issue30
Xavier de Gaye added the comment:
New changeset aaf6a3dbbdb9754f98d480b468adfcae0f66e3a2 by xdegaye (Miss
Islington (bot)) in branch '3.6':
[3.6] bpo-30695: Add set_nomemory(start, stop) to _testcapi (GH-2406) (#4083)
https://github.com/python/cpyt
Change by Xavier de Gaye :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Xavier de Gaye :
--
stage: -> patch review
versions: -Python 3.5
___
Python tracker
<https://bugs.python.org/issue30817>
___
___
Python-bugs-lis
Xavier de Gaye added the comment:
Removing 2.7 as the problem cannot be reproduced here.
PyEval_CallObjectWithKeywords() does not assert on PyErr_Occurred().
--
versions: -Python 2.7
___
Python tracker
<https://bugs.python.org/issue30
New submission from Xavier de Gaye :
When built with: Android clang version 3.8.275480 (based on LLVM 3.8.275480)
The following warning is emitted:
ccache
/pathto/android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
-target x86_64-none-linux-androideabi -gcc-toolchain
Xavier de Gaye added the comment:
New changeset 66caacf2f0d6213b049a3097556e28e30440b900 by xdegaye in branch
'master':
bpo-30817: Fix PyErr_PrintEx() when no memory (#2526)
https://github.com/python/cpython/commit/66caacf2f0d6213b049a3097556e28
Change by Xavier de Gaye :
--
pull_requests: +4077
___
Python tracker
<https://bugs.python.org/issue30817>
___
___
Python-bugs-list mailing list
Unsubscribe:
Xavier de Gaye added the comment:
New changeset d5d79545b73110b2f4c2b66d150409514e2ca8e0 by xdegaye in branch
'3.6':
[3.6] bpo-30817: Fix PyErr_PrintEx() when no memory (GH-2526). (#4107)
https://github.com/python/cpython/commit/d5d79545b73110b2f4c2b66d150409
Change by Xavier de Gaye :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Xavier de Gaye added the comment:
Android has both memalign() [1] and posix_memalign() [2] and does not have
aligned_alloc(), posix_memalign() is a wrapper around memalign() [3].
[1]
https://android.googlesource.com/platform/bionic/+/master/libc/include/malloc.h#38
[2]
https
Xavier de Gaye added the comment:
Checking the test_exceptions test cases that are added by PR 2327 on the
current master branch, before the merge of PR 2327:
* test_recursion_normalizing_exception still fails (SIGABRT on a debug build
and SIGSEGV otherwise
Xavier de Gaye added the comment:
New changeset 56d1f5ca32892c7643eb8cee49c40c1644f1abfe by xdegaye in branch
'master':
bpo-30697: Fix PyErr_NormalizeException() when no memory (GH-2327)
https://github.com/python/cpython/commit/56d1f5ca32892c7643eb8cee49c40c
Change by Xavier de Gaye :
--
keywords: +patch
pull_requests: +4098
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue30697>
___
___
Py
Xavier de Gaye added the comment:
New changeset 4b27d51222be751125e6800453a39360a2dec11d by xdegaye in branch
'3.6':
[3.6] bpo-30697: Fix PyErr_NormalizeException() when no memory (GH-2327).
(#4135)
https://github.com/python/cpython/commit/4b27d51222be751125e6800453a393
Change by Xavier de Gaye :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Xavier de Gaye added the comment:
Fixed by issue 30697.
--
resolution: -> out of date
stage: patch review -> resolved
status: open -> closed
versions: -Python 3.5
___
Python tracker
<https://bugs.python.or
Change by Xavier de Gaye :
--
nosy: +xdegaye
___
Python tracker
<https://bugs.python.org/issue31626>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Xavier de Gaye :
--
pull_requests: +4129
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue30696>
___
___
Python-bugs-list mai
Change by Xavier de Gaye :
--
versions: -Python 3.5
___
Python tracker
<https://bugs.python.org/issue30696>
___
___
Python-bugs-list mailing list
Unsubscribe:
Xavier de Gaye added the comment:
The infinite loop may occur if one of the functions called by
PyRun_InteractiveOneObject() returns persistently -1. This may be the case when
there is no more memory and is handled by issue 30696.
It is not possible anymore to reproduce the infinite loop
Change by Xavier de Gaye :
--
components: +Cross-Build -Build
nosy: +Alex.Willmer
stage: -> needs patch
title: 'make install' fails when exec_prefix is '/' and DESTDIR not empty ->
'make install' fails when the configure 'prefix' is
Change by Xavier de Gaye :
--
keywords: +patch
pull_requests: +4141
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issu
Xavier de Gaye added the comment:
To test PR 4172 on linux one needs a chroot. The following test is run on
archlinux using systemd-nspawn (a chroot on steroids, see
https://wiki.archlinux.org/index.php/Systemd-nspawn).
1) Setup systemd-nspawn by installing arch-install-scripts and by using
Xavier de Gaye added the comment:
Clarification about the test results:
On archlinux /bin is a symlink to /usr/bin, so on archlinux the value of
sys.prefix is '/usr' instead of the expected '/'. This is because in
Modules/getpath.c, 'argv0_path' is the directo
Xavier de Gaye added the comment:
Actually, sys.prefix is '/usr' because '/usr/bin' is in PATH while '/bin' is
not in PATH. After adding '/bin' to the start of PATH, then sys.prefix becomes
'/.' when Python is run as 'python3'. The
Xavier de Gaye added the comment:
The problem is that the build system , Py_GetPath() and the distutils module do
not handle correctly the case where the configure prefix is '/'.
Closing as a duplicate of issue 31114.
--
resolution: -> duplicate
stage: test needed ->
New submission from Xavier de Gaye :
The error message when building out of a not clean source tree:
renaming build/scripts-3.7/2to3 to build/scripts-3.7/2to3-3.7
renaming build/scripts-3.7/pyvenv to build/scripts-3.7/pyvenv-3.7
gcc -pthread -Xlinker -export-dynamic -o Programs/_testembed
Change by Xavier de Gaye :
--
keywords: +patch
pull_requests: +4217
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31934>
___
___
Py
Xavier de Gaye added the comment:
When you build out of the source tree and this source tree has been built
previously (by running 'make' in the source tree), then you get the error msg
printed in msg305486 when you try to build *out* of this not clean source tree.
The solution
Xavier de Gaye added the comment:
To build out of the 'src' source tree (a subdirectory of the current directory)
in a 'build' subdirectory:
$ ls -ld src
drwxr-xr-x 21 xavier xavier 4.0K Nov 3 23:50 src/
$ mkdir build
$ cd build
$ $(cd ../src && pwd)/configure
Change by Xavier de Gaye :
--
pull_requests: +4289
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue28180>
___
___
Python-bugs-list mai
Xavier de Gaye added the comment:
PEP 538 is implemented now in the master branch.
Closing this issue as out of date for the following reasons:
a) PR 4334 adds locale coercion for Android to the implementation of PEP 538
(and test_nonascii succeeds with this PR).
b) With the current
Xavier de Gaye added the comment:
PR 4334 added: fix the implementation of PEP 538 on Android.
The current implementation of PEP 538 fixes issue 28997 without the locale
coercion for Android added by PR 4334, see msg305848.
--
___
Python tracker
Xavier de Gaye added the comment:
New changeset 0de92859caf25e65fc968d4bb68626e9ba21b851 by xdegaye in branch
'master':
bpo-31934: Abort when building out of a not clean source tree (GH-4255)
https://github.com/python/cpython/commit/0de92859caf25e65fc968d4bb68626
Change by Xavier de Gaye :
--
pull_requests: +4294
___
Python tracker
<https://bugs.python.org/issue31934>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Xavier de Gaye :
--
pull_requests: +4298
___
Python tracker
<https://bugs.python.org/issue31934>
___
___
Python-bugs-list mailing list
Unsubscribe:
Xavier de Gaye added the comment:
New changeset 0c4785bf39b4e86dea3a70b651e5d5db2f2cf017 by xdegaye in branch
'3.6':
[3.6] bpo-31934: Abort when building out of a not clean source tree (GH-4255).
(#4340)
https://github.com/python/cpython/commit/0c4785bf39b4e86dea3a70b651e5d5
Xavier de Gaye added the comment:
I also tested the 2.7 and 3.6 PRs before submitting them.
Thanks for testing and for your reviews Victor :-)
--
___
Python tracker
<https://bugs.python.org/issue31
Xavier de Gaye added the comment:
Oh I understand, there is no practical way to test that feature except manually.
--
___
Python tracker
<https://bugs.python.org/issue31
Xavier de Gaye added the comment:
New changeset fbdd3eeba3e526e162f2eb54d224cf36ed8cfea1 by xdegaye in branch
'2.7':
[2.7] bpo-31934: Abort when building out of a not clean source tree (GH-4255).
(#4342)
https://github.com/python/cpython/commit/fbdd3eeba3e526e162f2eb54d224cf
Change by Xavier de Gaye :
--
pull_requests: +4307
___
Python tracker
<https://bugs.python.org/issue28759>
___
___
Python-bugs-list mailing list
Unsubscribe:
Xavier de Gaye added the comment:
> Several of the tests in test_c_locale_coercion (particularly
> LocaleCoercionTests._check_c_locale_coercion) tend to assume that the system
> default locale used when setting setlocale(category, "") and when all the
> relevant env
Change by Xavier de Gaye :
--
versions: -Python 3.6
___
Python tracker
<https://bugs.python.org/issue29180>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Xavier de Gaye :
--
versions: -Python 3.6
___
Python tracker
<https://bugs.python.org/issue29181>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Xavier de Gaye :
--
versions: -Python 3.6
___
Python tracker
<https://bugs.python.org/issue29184>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Xavier de Gaye :
--
pull_requests: +4323
___
Python tracker
<https://bugs.python.org/issue29180>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Xavier de Gaye :
--
pull_requests: +4324
___
Python tracker
<https://bugs.python.org/issue29181>
___
___
Python-bugs-list mailing list
Unsubscribe:
Xavier de Gaye added the comment:
New changeset 1588be66d7b0eeebc4614309cd0fc837ff52776a by xdegaye in branch
'master':
bpo-28180: Fix the implementation of PEP 538 on Android (GH-4334)
https://github.com/python/cpython/commit/1588be66d7b0eeebc4614309cd0fc8
Xavier de Gaye added the comment:
New changeset e0582a37c8d1776a2fd4968e9216f3a05f780276 by xdegaye in branch
'master':
bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160)
https://github.com/python/cpython/commit/e0582a37c8d1776a2fd4968e9216f3
Change by Xavier de Gaye :
--
pull_requests: +4327
___
Python tracker
<https://bugs.python.org/issue30696>
___
___
Python-bugs-list mailing list
Unsubscribe:
Xavier de Gaye added the comment:
New changeset 92c2ca7633c881a56157f2fb8b2e1b8c7114e5fb by xdegaye in branch
'master':
bpo-28759: Skip some tests on PermissionError raised by Android (GH-4350)
https://github.com/python/cpython/commit/92c2ca7633c881a56157f2fb8b2e1b
Xavier de Gaye added the comment:
New changeset ea5b545e38b3fec7ff29276b5cd59dec583ebf34 by xdegaye in branch
'3.6':
[3.6] bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160).
(#4379)
https://github.com/python/cpython/commit/ea5b545e38b3fec7ff29276b5cd59d
Change by Xavier de Gaye :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Xavier de Gaye :
--
pull_requests: +4328
___
Python tracker
<https://bugs.python.org/issue28759>
___
___
Python-bugs-list mailing list
Unsubscribe:
Xavier de Gaye added the comment:
New changeset 6a55d09573e5c35c9e4a24a6f811120b41a2a994 by xdegaye in branch
'master':
bpo-29180: Skip test_os tests on PermissionError raised by Android (GH-4374)
https://github.com/python/cpython/commit/6a55d09573e5c35c9e4a24a6f81112
Change by Xavier de Gaye :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Xavier de Gaye :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Xavier de Gaye added the comment:
New changeset d7d4fea4a39da4bfdea1de22fe040023eb4ddc17 by xdegaye in branch
'master':
bpo-29181: Skip test_tarfile tests on PermissionError raised by Android
(GH-4375)
https://github.com/python/cpython/commit/d7d4fea4a39da4bfdea1de22fe0400
Xavier de Gaye added the comment:
New changeset ad004f9b5a581f577374c56d8ab27e9ef2e73452 by xdegaye in branch
'3.6':
[3.6] bpo-28759: Skip some tests on PermissionError raised by Android (GH-4350)
(#4380)
https://github.com/python/cpython/commit/ad004f9b5a581f577374c56d8ab27e
Change by Xavier de Gaye :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Xavier de Gaye added the comment:
> What about Python 2.7?
_testcapi.set_nomemory() does not exist on Pyhton 2.7 so the changes cannot be
tested. Applying the changes to PyRun_InteractiveLoopFlags() in 2.7 looks
rather straightforward but there are too many differences
Xavier de Gaye added the comment:
Also the existing test coverage of these functions in all the Python versions
is very weak.
--
___
Python tracker
<https://bugs.python.org/issue30
Change by Xavier de Gaye :
--
pull_requests: +4335
___
Python tracker
<https://bugs.python.org/issue29184>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Xavier de Gaye :
--
versions: -Python 3.6
___
Python tracker
<https://bugs.python.org/issue29185>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Xavier de Gaye :
test_mixed_case_module_names_are_lower_cased fails when there is a symlink in
the directory path of the installed standard library.
--
components: Tests
messages: 306259
nosy: xdegaye
priority: normal
severity: normal
stage: needs patch
status: open
New submission from Xavier de Gaye :
On Android API 24:
$ python -c "import pwd; print(pwd.getpwuid(0))"
pwd.struct_passwd(pw_name='root', pw_passwd='', pw_uid=0, pw_gid=0,
pw_gecos=None, pw_dir='/', pw_shell='/system/bin/sh')
The pw_gecos me
Xavier de Gaye added the comment:
> I'm not sure that it's very useful to distinguish NULL and an empty char*
> string.
I agree. An attribute of a ('pwd' Python module) password database entry
corresponds to the field of a line in a 'passwd' text file. So
Change by Xavier de Gaye :
--
pull_requests: +4380
___
Python tracker
<https://bugs.python.org/issue29185>
___
___
Python-bugs-list mailing list
Unsubscribe:
Xavier de Gaye added the comment:
The error:
generic_x86_64:/data/local/tmp/python $ python -m test test_pydoc
Run tests sequentially
0:00:00 [1/1] test_pydoc
test test_pydoc failed -- Traceback (most recent call last):
File "/sdcard/org.python/lib/python3.7/test/test_pydoc.py", li
301 - 400 of 1492 matches
Mail list logo