[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-24 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file43860/strace-pydebug.txt ___ Python tracker <http://bugs.python.org/issue27606> ___ ___ Python-bug

[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-24 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file43861/logcat-pydebug.txt ___ Python tracker <http://bugs.python.org/issue27606> ___ ___ Python-bug

[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-24 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file43859/logcat.txt ___ Python tracker <http://bugs.python.org/issue27606> ___ ___ Python-bugs-list mailin

[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-24 Thread Xavier de Gaye
New submission from Xavier de Gaye: Android ndk version r11c. The crash happens very early on python startup. The SIGILL occurs when python is built 'with-pydebug'. Python runs fine on the armv5te emulator when built with clang without '-mthumb'. Python runs fine on

[issue26865] Meta-issue: support of the android platform

2016-07-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #27606: Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL -- dependencies: +Android cross-built for armv5te with clang and '-mthumb' crashes wi

[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: The reference to '-mthumb' in the ndk documentation: https://developer.android.com/ndk/guides/standalone_toolchain.html#abi. -- ___ Python tracker <http://bugs.python.o

[issue26851] android compilation and link flags

2016-07-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: The previous patch was using awkwardly, a 'host_cpu' configure argument to specify the arm ABI and missed setting LDFLAGS for the armv7 ABI. This patch instead uses the __ARM_ARCH macro defined by each compiler of the Android toolchains: echo

[issue26944] android: test_posix fails

2016-07-24 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +haypo stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issue26944> ___ ___ Python-bugs-lis

[issue26851] android compilation and link flags

2016-07-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the review and the suggestions Martin :) New patch. -- Added file: http://bugs.python.org/file43875/build-flags_3.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26944] android: test_posix fails

2016-07-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Hum, does the id program supports -G on Android? It does on Android 6.0 but prints the same result as 'id' (without -G) on previous Android versions. Here is the output of the commands involved in the test for the root user on my archlinux box

[issue26851] android compilation and link flags

2016-07-25 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file43878/build-flags_3.patch ___ Python tracker <http://bugs.python.org/issue26851> ___ ___ Python-bug

[issue26851] android compilation and link flags

2016-07-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: The first 'build-flags_3.patch' file that was uploaded did not get a review button because ssh://h...@hg.python.org/cpython was down at that time. The second upload has been successfull ! -- ___ Pyth

[issue26944] android: test_posix fails

2016-07-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: The test is already skipped by the patch, for Android API level < 23, with the statement: raise unittest.SkipTest("need working 'id -G'") Do you mean that the test should be skipped instead more explicitly with so

[issue26851] android compilation and link flags

2016-07-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the suggestion, I won't include them anymore in patches then. -- ___ Python tracker <http://bugs.python.org/is

[issue26851] android compilation and link flags

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch. The sed commands used to evaluate ANDROID_API_LEVEL and _arm_arch do not need to discard comment lines and empty lines in the output of the preprocessor. -- Added file: http://bugs.python.org/file43893/build-flags_4.patch

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-26 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue26942] android: test_ctypes crashes on armv7

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for looking into that problem. Can you provide a patch ? -- ___ Python tracker <http://bugs.python.org/issue26

[issue26865] Meta-issue: support of the android platform

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #27627: clang fails to build ctypes on Android armv7 -- dependencies: +clang fails to build ctypes on Android armv7 ___ Python tracker <http://bugs.python.org/issue26

[issue27627] clang fails to build ctypes on Android armv7

2016-07-26 Thread Xavier de Gaye
New submission from Xavier de Gaye: The build is done with: clang --sysroot=/opt/android-ndk/platforms/android-21/arch-arm -target armv7-none-linux-androideabi -gcc-toolchain /opt/android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 The error message: clang --sysroot=/opt

[issue27627] clang fails to build ctypes on Android armv7

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: See also msg 269907 and msg269908. -- ___ Python tracker <http://bugs.python.org/issue27627> ___ ___ Python-bugs-list mailin

[issue23085] update internal libffi copy to 3.2.1

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Cross-compile CPython for ARM with clang fails in _ctypes due to > https://llvm.org/bugs/show_bug.cgi?id=20595. This bug is already fixed in > libffi. I have entered issue 27627 for this problem. -- nosy:

[issue26942] android: test_ctypes crashes on armv7

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: Nice, the patch fixes the problem when python is built with gcc :) Running test_ctypes on the Android emulator when python is built for the arm architecture or the armv7 architecture gives in both cases the same successfull result: Ran 456 tests in

[issue16353] add function to os module for getting path to default shell

2016-07-27 Thread Xavier de Gaye
Xavier de Gaye added the comment: > After several years there is still no consenus, so make it simple - the popen > and subprocess shell is one of /bin/sh, cmd.exe, or some other "hard-coded" > shell. I agree, the last patch that is being reviewed in issue 16255 a

[issue27640] add the '--disable-test-suite' option to configure

2016-07-28 Thread Xavier de Gaye
New submission from Xavier de Gaye: Do not install the Python test suite when configure is run with '--disable-test-suite'. This about divides by two the size of the installed standard library. Related to issue 26852: add the '--enable-legacy-pyc-files' option to conf

[issue27640] add the '--disable-test-suite' option to configure

2016-07-28 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file43918/listdirs.py ___ Python tracker <http://bugs.python.org/issue27640> ___ ___ Python-bugs-list mailin

[issue27640] add the '--disable-test-suite' option to configure

2016-07-28 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- components: +Cross-Build nosy: +Alex.Willmer ___ Python tracker <http://bugs.python.org/issue27640> ___ ___ Python-bugs-list mailin

[issue26852] add the '--enable-legacy-pyc-files' option to configure

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: Install byte-code files to their legacy locations and names to save space (default are the PEP 3147 locations and names) when configure is run with '--enable-legacy-pyc-files'. The patch does not prevent ensurepip to use PEP 3147 locations and name

[issue26865] Meta-issue: support of the android platform

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #27640: add the '--disable-test-suite' option to configure -- dependencies: +add the '--disable-test-suite' option to configure ___ Python tracker <http://bug

[issue27640] add the '--disable-test-suite' option to configure

2016-07-28 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +haypo, thomas-petazzoni ___ Python tracker <http://bugs.python.org/issue27640> ___ ___ Python-bugs-list mailing list Unsub

[issue26852] add the '--enable-legacy-pyc-files' option to configure

2016-07-28 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +haypo, thomas-petazzoni ___ Python tracker <http://bugs.python.org/issue26852> ___ ___ Python-bugs-list mailing list Unsub

[issue26852] add the '--enable-legacy-pyc-files' option to configure

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: > hmm, I really don't buy the space-saving argument. you are saving some space > with shorter path names, nothing more. so why do you introduce this option? No, compileall is run with '-b', so there are no PEP 3147 __pycache__ dir

[issue26851] android compilation and link flags

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: > I am still curious what configures the preprocessor to set __ARM_ARCH to 7 (I > guess the clang -target argument?) Yes, the -target clang argument or the -march gcc argument. > and why we can’t set LDFLAGS at the same time or place. Is it

[issue26852] add the '--enable-legacy-pyc-files' option to configure

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: > but these are rebuilt when you start the interpreter, aren't they? No. Quoting PEP 3147: Case 4: legacy pyc files and source-less imports Python will ignore all legacy pyc files when a source file exists next to it. In other words, if a

[issue26851] android compilation and link flags

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: Yes, the packager must use appropriately either CFLAGS CPPFLAGS [1] and LDFLAGS, or CC. I am using: CC="clang --sysroot=$(SYSROOT) -target $(TARGET) -gcc-toolchain $(GCC_TOOLCHAIN)". [1] See issue 27453, for the remaining problem upon usin

[issue26852] add the '--enable-sourceless-distribution' option to configure

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: > and if the only reason is to reduce space by omitting the source, then it > should also not install the source so the name is wrong :) I miss your point, msg271515 said earlier "the patch removes all *.py files". The patch does a sourceless

[issue26852] add the '--enable-sourceless-distribution' option to configure

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: > About doko's note and your response: unless this patch does not install the > source (I haven't looked), the __pycache__ files *will* be rebuilt at > interpreter start, according to the text you quoted. Right, and since the source fil

[issue26865] Meta-issue: support of the android platform

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: Roman, can you please enter a new issue for that problem. -- ___ Python tracker <http://bugs.python.org/issue26865> ___ ___ Pytho

[issue26865] Meta-issue: support of the android platform

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Some dependent issues, like issue26852, issue26859 and issue27640, are for > reducing the size of an installation. How about moving them to another > meta-issue? First they are not critical for normal usages on Android. Second > they are no

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-07-29 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +thomas-petazzoni ___ Python tracker <http://bugs.python.org/issue23968> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27453] $CPP invocation in configure must use $CPPFLAGS

2016-07-29 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +thomas-petazzoni ___ Python tracker <http://bugs.python.org/issue27453> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22724] byte-compile fails for cross-builds

2016-07-29 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +thomas-petazzoni ___ Python tracker <http://bugs.python.org/issue22724> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-29 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +thomas-petazzoni ___ Python tracker <http://bugs.python.org/issue27606> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27627] clang fails to build ctypes on Android armv7

2016-07-29 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +thomas-petazzoni ___ Python tracker <http://bugs.python.org/issue27627> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27640] add the '--disable-test-suite' option to configure

2016-07-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the review Martin. I will update the patch accordingly later. -- ___ Python tracker <http://bugs.python.org/issue27

[issue27453] $CPP invocation in configure must use $CPPFLAGS

2016-07-29 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +haypo stage: -> commit review ___ Python tracker <http://bugs.python.org/issue27453> ___ ___ Python-bugs-list mai

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-07-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: To reproduce the problem on any system where Python is built with configure: $ mkdir -p tmp/build tmp/install $ cd tmp $ hg clone https://hg.python.org/cpython cpython $ cd build $ $(cd ../cpython && pwd)/configure --prefix=$(cd ../install &&a

[issue27641] Do not build Programs/_freeze_importlib when cross-compiling

2016-07-29 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +xdegaye ___ Python tracker <http://bugs.python.org/issue27641> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27641] Do not build Programs/_freeze_importlib when cross-compiling

2016-07-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: Nice. FWIW cross-compilation for Android works fine with comment-out-regen.patch. > In native compiling mode, everything should be as normal. When > cross-compiling, the rules for regenerating files should read like > > Python/importlib.h: # $

[issue26942] android: test_ctypes crashes on armv7 and aarch64

2016-07-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: > By msg264746, only ARM fails, so I patch libffi for arm and aarch64 triplets > only Why not for all Android architectures (*-linux-android*) as it is done in PR120 ? -- stage: -> patch review ___ Pytho

[issue27453] $CPP invocation in configure must use $CPPFLAGS

2016-07-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the patch Chi Hsuan Yen! -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue26942] android: test_ctypes crashes on armv7 and aarch64

2016-07-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: We should wait for the pull request to be merged in the libffi development repo before committing the patch. The PR is at https://github.com/libffi/libffi/pull/265. -- ___ Python tracker <http://bugs.python.

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-07-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: This problem occured for the first time on the "installed Python" buildbot (setup by Zachary) at http://buildbot.python.org/all/builders/x86%20Gentoo%20Installed%20with%20X%203.x/builds/747 on the day changeset 78d2cb7f66b6 has been commited (see

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-07-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: The reason I would like this problem fixed is that the test suite is run on an installed Python when cross-compiling, obviously you cannot run the test suite with the cross-compiled Python on the source tree of the build system

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-07-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: It is also broken for gcc, see the buildbot 'compile' output. It seems broken for all non windows builds whatever the compiler. -- ___ Python tracker <http://bugs.python.o

[issue22724] byte-compile fails for cross-builds

2016-07-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: Patch rebased to current tip. To summarize: * The root cause of the problem reported by Benedikt still exists. * The problem is hidden now that the shared libraries names include the PLATFORM_TRIPLET. * But byte-compilation still fails for cross-builds when

[issue27659] Check for the existence of crypt()

2016-07-31 Thread Xavier de Gaye
Xavier de Gaye added the comment: > A question: should I include changes to configure and pyconfig.h.in in the > patch? You just need to mention that one should run autoreconf. -- ___ Python tracker <http://bugs.python.org/i

[issue26865] Meta-issue: support of the android platform

2016-07-31 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #27659: Check for the existence of crypt() -- dependencies: +Check for the existence of crypt() ___ Python tracker <http://bugs.python.org/issue26

[issue17191] pdb list shows unexpected code when stack frame includes a try / finally block

2013-02-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: This is fixed in python 3.2 by changeset 670d4cbf1464, and indeed the '>>' marker is shown at line 8 of pdb_list_bug_reproduce.py when debugging this (modified for py3) script with python 3.2. -

[issue17277] incorrect line numbers in backtrace after removing a trace function

2013-02-22 Thread Xavier de Gaye
New submission from Xavier de Gaye: It seems that using f_trace in the f_lineno getter PyFrame_GetLineNumber(), as the condition to decide when tracing is active, is incorrect. See the following two examples. In the backtrace printed by tracer.py running with python 3.3, the last entry should

[issue17277] incorrect line numbers in backtrace after removing a trace function

2013-02-22 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file29163/generator.py ___ Python tracker <http://bugs.python.org/issue17277> ___ ___ Python-bugs-list m

[issue17277] incorrect line numbers in backtrace after removing a trace function

2013-02-23 Thread Xavier de Gaye
Xavier de Gaye added the comment: The patch (on the default branch) reverts one of the changes made in r72488 to introduce the new PyFrame_GetLineNumber() function (issue 5954): tb_lineno is now back again the result of the call to PyCode_Addr2Line() instead of the call to PyFrame_GetLineNumber

[issue17277] incorrect line numbers in backtrace after removing a trace function

2013-02-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: The proposed patch fixes the backtrace line numbers issue, but it does not fix PyFrame_GetLineNumber() which is the recommended way to get the frame line number. As mentionned in the original message, testing for f->f_trace to implement the f_lineno getter

[issue17277] incorrect line numbers in backtrace after removing a trace function

2013-02-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: > fix the issue by changing PyFrame_GetLineNumber() and the f_lineno accessors The new patch named traced_frame.patch has been uploaded. Also, now it is not allowed anymore to set the f_lineno attribute of a frame that is not the frame being traced, as f_la

[issue17288] cannot jump from a return after setting f_lineno

2013-02-24 Thread Xavier de Gaye
New submission from Xavier de Gaye: On python 3.3 and the default branch, the jump from a 'return' fails although the change to f_lineno is validated, see below. This problem does not occur with python 2.7. $ python return.py > /tmp/return.py(8)() -> foo() (Pdb) break 5 Brea

[issue17288] cannot jump from a return after setting f_lineno

2013-02-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: Oops, it occurs too with python 2.7. -- versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue17288> ___ ___

[issue16446] pdb raises BdbQuit on 'quit' when started with set_trace

2013-02-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: There is an error in my patch (already fixed in pdb-clone) and in Jyrki's patch. Running Jyrki's patch on quit.py produces the following output where the line number in the last entry of the backtrace is incorrect (should be line 9 instead of line 7):

[issue16446] pdb raises BdbQuit on 'quit' when started with set_trace

2013-02-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: The patch changes the semantics of the quit command: quit behaves like the gdb detach command when pdb is started with set_trace. -- Added file: http://bugs.python.org/file29232/branch-27.patch ___ Python tracker

[issue17277] incorrect line numbers in backtrace after removing a trace function

2013-02-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: The traced_frame.patch fixes also issue 7238 and issue 16482. -- ___ Python tracker <http://bugs.python.org/issue17277> ___ ___

[issue17288] cannot jump from a return after setting f_lineno

2013-03-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: Nosying Benjamin Peterson who knows frame_setlineno (issue 14612) and nosying Jesús Cea Avión. Hoping they don't mind. This problem occurs also when setting f_lineno from an exception debug event. One may crash the interpreter (or get a "SystemErro

[issue17288] cannot jump from a return after setting f_lineno

2013-03-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: The proposed patch fixes the problem: * f_lineno cannot be set now from an exception trace function or from a return trace function. * The broken arithmetic involving a null pointer (f->f_stacktop, at the end of frame_setlineno when popping blocks that

[issue17288] cannot jump from a return after setting f_lineno

2013-03-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: Must add for completeness that f_lineno must be valid within a return trace function for the reasons explained in the last paragraph of Objects/lnotab_notes.txt. -- ___ Python tracker <http://bugs.python.

[issue17697] Incorrect stacktrace from pdb

2013-04-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: The call to set_trace() installs a local trace function on all the frames of the stack, including on the oldest frame, i.e. the module level frame. This causes the invocation of frame_settrace() in frameobject.c and the module frame f_lineno is evaluated by

[issue16482] pdb.set_trace() clobbering traceback on error

2013-04-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: The last patch proposed at issue 17277 and named traced_frame.patch fixes also issue 17697, and issues 7238, 16482. IMHO one should remove the assumption in PyFrame_GetLineNumber() that f_lineno is correct when f_trace is not NULL, as there does not seem to be a

[issue16482] pdb.set_trace() clobbering traceback on error

2013-04-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: Forgot to say that traced_frame.patch includes a test. -- ___ Python tracker <http://bugs.python.org/issue16482> ___ ___ Pytho

[issue17925] asynchat.async_chat.initiate_send : del deque[0] is not safe

2013-05-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: The attached script, test_initiate_send.py, tests initiate_send with threads, causing duplicate writes and an IndexError. This is the script output using python on the default branch: $ python test_initiate_send.py --- Test: duplicate data sent --- chat.send

[issue16133] asyncore.dispatcher.recv doesn't handle EAGAIN / EWOULDBLOCK

2013-05-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: For the reson why read() must still check for EWOULDBLOCK even though after select() has reported a file descriptor ready for reading, see the BUGS section of select linux man page, which says: Under Linux, select() may report a socket file descriptor as

[issue16133] asyncore.dispatcher.recv doesn't handle EAGAIN / EWOULDBLOCK

2013-05-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Deciding what's best to do at this point without breaking existent > code is not easy, that is why I think that on python <= 3.3 we > should fix *asynchat* in order to take EAGAIN/EWOULDBLOCK into > account and leave asyncore's re

[issue22588] memory corrupted in test_capi refleaks test

2014-10-09 Thread Xavier de Gaye
New submission from Xavier de Gaye: This does not happen on tests run with '-R 22:22' or a lower run count, but occur systematically with '-R 23:23' or a greater run count. $ ./python Python 3.5.0a0 (default:1e1c6e306eb4, Oct 9 2014, 19:52:59) [GCC 4.9.1 20140903 (prerel

[issue22588] memory corrupted in test_capi refleaks test

2014-10-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: That was really fast Victor! I confirm that the '-R 23:23' refleak test does not crash any more here after changeset 5d87a6b38422. -- ___ Python tracker <http://bugs.python.o

[issue22588] memory corrupted in test_capi refleaks test

2014-10-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: With the attached patch (the patch does reintroduce the bug in 'test_incref_decref_API' for testing purposes), it is possible to find the failing subtest rapidly: Get the number of subtests (35 subsets): $ export SUBTEST_RANGE="[]" $

[issue22588] memory corrupted in test_capi refleaks test

2014-10-10 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- keywords: +patch Added file: http://bugs.python.org/file36870/subtest_in_range.diff ___ Python tracker <http://bugs.python.org/issue22

[issue22607] find by dichotomy the failing test

2014-10-11 Thread Xavier de Gaye
New submission from Xavier de Gaye: This issue stems from issue 22588. See message 228968 for the rationale: Automatize the dichotomy process used to to identify memory leaks, crash, reference leak, resource leak, etc. in a failing test. -- components: Tests messages: 229067 nosy

[issue22607] find by dichotomy the failing test

2014-10-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: See msg 228968 for the rationale. -- ___ Python tracker <http://bugs.python.org/issue22607> ___ ___ Python-bugs-list mailin

[issue22607] find by dichotomy the failing test

2014-10-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: With the attached patch (the patch does reintroduce the bug in 'test_incref_decref_API' of issue 22588 for testing purposes), it is possible to find the failing subtest rapidly: After identifying the failing test, print the list of subtests in thi

[issue22607] find by dichotomy the failing test

2014-10-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: > With the attached patch (the patch does reintroduce the bug in > 'test_incref_decref_API' of issue 22588 for testing purposes) Sorry for not being more explicit and for being lazy doing a copy paste from msg 229022: * this is not a patch, o

[issue22607] find by dichotomy the failing test

2014-10-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: @ Georg Brandl > I don't think this feature is generally useful enough to be included. > > * Since you need to modify the test code anyway (adding the try-except), it > is probably just as much work to do the selection there. You seem to

[issue22607] find by dichotomy the failing test

2014-10-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: The attached patch adds the '-X' and '-Y' options to the regrtest tool, allowing to select a range of tests and a range of their subtests. The patch is missing the test cases for the moment. Limitation: Does not work very well with ne

[issue22607] find by dichotomy the failing test

2014-10-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: This new version of the patch uses a specific exception to skip tests and fixes a bug when invoking the overriden and wrapped subTest method. -- Added file: http://bugs.python.org/file36994/regrest_XY_options_2.patch

[issue22762] PyObject_Call called with an exception set while displaying a traceback

2014-10-29 Thread Xavier de Gaye
New submission from Xavier de Gaye: To reproduce the crash run the following two-lines script and, at the fisrt (Pdb) prompt, remove the last line of this script (and the following empty lines if any): import pdb; pdb.set_trace() x = 1 then issue the 'quit' pdb command. This wil

[issue22762] PyObject_Call called with an exception set while displaying a traceback

2014-10-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: Looks similar to the problem fixed at changeset 298d98486794 by Victor Stinner. -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue22

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-11-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: The attached script raises the PyExc_RecursionErrorInst singleton and reproduces the issue. The attached patch fixes the issue by ignoring the warning when clearing PyExc_RecursionErrorInst and clearing the frames associated with its traceback, in _PyExc_Fini

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-11-25 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file37279/warn_2.patch ___ Python tracker <http://bugs.python.org/issue22898> ___ ___ Python-bugs-list m

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-11-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: > +/* during Python finalization, warnings may be emited after > interp->sysdict > + is cleared: see issue #22898 */ > > I would prefer to see this comment in the else block. Indeed. New updated patch attached. -

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-11-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Why recursion limit is restored? Couldn't the test be simpler without it? For the sake of explicitness, so that the interpreter will not raise a RuntimeError during finalization when checking for the recursion limit after g.throw(MyException) ha

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-11-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: > out can be b'Done.\r\n'. Use self.assertIn. Ok, new patch attached. >> If both patches were to be included, the test case in warn_4.patch would >> test the above patch and not the changes made in Python/_warnings.c. > You can

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-11-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: Out of curiosity I have tried to figure out how to build another test case using the model provided by runtimerror_singleton.py. This cannot be done, and for the following reasons: The infinite recursion of PyErr_NormalizeException() is supposed to occur as

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-12-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: When tstate->overflowed is already set to 1 before entering PyErr_NormalizeException() to normalize an exception, the following cases may occur: 1) Normalizing a built-in exception => instantiation ok. 2) Normalizing a python exception that fails

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-12-01 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file37333/mymodule.c ___ Python tracker <http://bugs.python.org/issue22898> ___ ___ Python-bugs-list mailin

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-12-01 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file37334/setup.py ___ Python tracker <http://bugs.python.org/issue22898> ___ ___ Python-bugs-list mailin

[issue22991] test_gdb leaves the terminal in raw mode with gdb 7.8.1

2014-12-03 Thread Xavier de Gaye
New submission from Xavier de Gaye: This happens on archlinux. Annoying: the terminal becomes unusable unless you type blindly 'stty sane ', and the backspace key is still wrong. This does not happen with gdb 7.6.1. And this does not happen when running gdb with the 'mi&#x

<    6   7   8   9   10   11   12   13   14   15   >