[issue3581] failures in test_uuid

2010-04-10 Thread Stefan Krah
Stefan Krah added the comment: Sorry, the random node id generation in uuid.py is correct. The least significant bit of the first octet (which is set to 1) is the first one transmitted on the network, then the "low 47 random bits" follow. I assumed that the least significant bit of

[issue3581] failures in test_uuid

2010-04-10 Thread Stefan Krah
Changes by Stefan Krah : -- resolution: -> accepted ___ Python tracker <http://bugs.python.org/issue3581> ___ ___ Python-bugs-list mailing list Unsubscri

[issue8093] IDLE processes don't close

2010-04-11 Thread Stefan Krah
Stefan Krah added the comment: For the record: In 2.7-alpha you do not even get to press [Restart Shell], since IDLE is not responding during the calculation. -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue8

[issue8367] test_winsound: failure on systems without soundcard

2010-04-11 Thread Stefan Krah
New submission from Stefan Krah : Got this test failure on Windows/qemu: == FAIL: test_stopasync (__main__.PlaySoundTest) -- Traceback (most recent call last

[issue8367] test_winsound: failure on systems without soundcard

2010-04-11 Thread Stefan Krah
Stefan Krah added the comment: Searching for the failure reveals that sporadically this has appeared on the buildbots, so I plan to apply the patch soon if there aren't any protests. -- assignee: -> skrah components: +Tests keywords: +patch priority: -> normal stage

[issue7301] Add environment variable $PYTHONWARNINGS

2010-04-11 Thread Stefan Krah
Stefan Krah added the comment: The changes in main.c in r79881 don't look right: strtok() is used on the string returned by getenv(), which must not be modified. Also (and this admittedly cosmetic), perhaps use a static buffer like wchar_t warning[128] or use a single allocation befor

[issue3581] failures in test_uuid

2010-04-12 Thread Stefan Krah
Stefan Krah added the comment: Applied test_uuid3.patch to trunk (r79954), release26-maint (r79959), py3k (r79960) and release31-maint (r79961). No buildbot failures so far, so I'm closing this. -- stage: commit review -> committed/rejected status: open -> closed versions:

[issue7650] test_uuid is invalid

2010-04-12 Thread Stefan Krah
Stefan Krah added the comment: Fixed in issue 3581. Thanks for the report and the comments! -- assignee: -> skrah dependencies: +failures in test_uuid keywords: +patch resolution: -> accepted stage: needs patch -> committed/rejected status: open -> closed superseder: -&

[issue1481] test_uuid is warning about unreliable functions

2010-04-12 Thread Stefan Krah
Stefan Krah added the comment: Issue fixed by test_uuid3.patch from issue 3581 in trunk (r79954), release26-maint (r79959), py3k (r79960) and release31-maint (r79961). -- assignee: -> skrah keywords: -needs review resolution: -> accepted stage: patch review -> committed

[issue4639] Build failure on OpenBSD 4.4-current regarding lstat()

2010-04-12 Thread Stefan Krah
Stefan Krah added the comment: This has been fixed in issue 7903. -- assignee: -> skrah keywords: +patch resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> Configure script incorrect for reasonably

[issue6467] PyOS_Readline: treatment of "1234EOF"; behavior of builtin_raw_input

2010-04-12 Thread Stefan Krah
Stefan Krah added the comment: There are two cases: 1) stdin and stdout go to a tty: my_fgets() from Parser/myreadline.c does not handle the case where fgets() reads some characters followed by an EOF. One way to deal with this is to consider a sequence like 1234EOF an empty line. This is

[issue8367] test_winsound: failure on systems without soundcard

2010-04-12 Thread Stefan Krah
Stefan Krah added the comment: Committed in r8, r80001, r80002 and r80003. -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-12 Thread Stefan Krah
Stefan Krah added the comment: This type of failure appears again in current builds: http://www.python.org/dev/buildbot/builders/x86 gentoo 3.x/builds/2160/steps/test/logs/stdio -- nosy: +skrah versions: +Python 3.2, Python 3.3 ___ Python tracker

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-13 Thread Stefan Krah
Stefan Krah added the comment: This bugreport http://bugs.gentoo.org/28193 indeed suggests that the failure occurs on systems without nptl. Would it be possible for someone with an affected system to run the test program from the bug report

[issue8355] diff.py produce unified format by default

2010-04-13 Thread Stefan Krah
Stefan Krah added the comment: You can use http://gnuwin32.sourceforge.net/packages/diffutils.htm or cygwin or msys. -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue8

[issue8355] diff.py produce unified format by default

2010-04-13 Thread Stefan Krah
Stefan Krah added the comment: The requirement to remember the "-u" option is a benefit for the user. If he ever wants to use a standard diff, he doesn't have to relearn things. I don't agree that diff.py should be a custom tool. It's unfortunate that it already dev

[issue8355] diff.py produce unified format by default

2010-04-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker <http://bugs.python.org/issue8355> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7384] curses crash on FreeBSD

2010-04-16 Thread Stefan Krah
Stefan Krah added the comment: Valgrind can be installed by: cd /usr/ports/devel/valgrind && make install Then you can do (curses_test.py is your short test program): 1) valgrind --db-attach=yes --suppressions=Misc/valgrind-python.supp ./python curses_test.py 2) valgrind --supp

[issue7384] curses crash on FreeBSD

2010-04-17 Thread Stefan Krah
Stefan Krah added the comment: One oddity: In Mark's test case, the error only shows if readline is imported _before_ curses. The other way around it's fine. On FreeBSD 8.0 amd64, with the _default_ libcurses, the Valgrind output for py3k looks like this: [...] ==31089== Invali

[issue7384] curses crash on FreeBSD

2010-04-17 Thread Stefan Krah
Stefan Krah added the comment: I take that back. With the curses from /usr/ports/devel/ncurses, Mark's test case is fine, but ./python Lib/test/regrtest.py -uall test_curses fails again. -- ___ Python tracker <http://bugs.python.org/i

[issue7384] curses crash on FreeBSD

2010-04-17 Thread Stefan Krah
Stefan Krah added the comment: Alas, after installing curses from /usr/ports/devel/ncurses I did not recompile Modules/_curses_panel.c. So, after a proper build ./python Lib/test/regrtest.py -uall test_curses shows no errors. -- ___ Python

[issue7384] curses crash on FreeBSD

2010-04-17 Thread Stefan Krah
Stefan Krah added the comment: It seems that FreeBSD has problems with the fact that readline.so is linked with -lreadline and -lncursesw (why?). With issue7384.patch I get no more errors using either Mark's test case or test_curses.py. -- Added file: http://bugs.python.org/file

[issue8431] buildbot: hung on ARM Debian

2010-04-17 Thread Stefan Krah
Stefan Krah added the comment: Antoine is right: On a fast machine (3.16GHz) test_io.py takes 810s on debian-arm/qemu. All tests pass, so perhaps the limit is just too restrictive on slow machines. -- nosy: +skrah ___ Python tracker <h

[issue8431] buildbot: hung on ARM Debian

2010-04-18 Thread Stefan Krah
Stefan Krah added the comment: I ran the whole test suite on http://people.debian.org/~aurel32/qemu/arm/debian_lenny_arm_small.qcow2 and there were no hanging processes. test_tokenize also takes around 10min on a fast machine (12s without -uall). Probably the timeout has to be increased

[issue7384] curses crash on FreeBSD

2010-04-18 Thread Stefan Krah
Stefan Krah added the comment: To clarify a couple of things: On some systems (Redhat?) readline is not linked against ncurses in order to give the user the possibility to choose. This is why setup.py has to select an ncurses version. However, things can go wrong if readline is already

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-19 Thread Stefan Krah
Stefan Krah added the comment: test_itimer_virtual assumes that a process must get 0.3s of virtual time within 5s of real time. This is not true: I can easily make the test fail even on a fast machine by doing as root (do it n times for n cores): nice -n -19 sh -c 'echo "1234^12345

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-19 Thread Stefan Krah
Stefan Krah added the comment: Mark, I also think there is no reliable witness function that checks the amount of virtual time used. I guess it's best to increase the timeout and just print a diagnostic if the test "fails". -- keywords: +patch Added file: http://

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-19 Thread Stefan Krah
Stefan Krah added the comment: Right, the skip should be left in place. -- Added file: http://bugs.python.org/file16988/issue8424-2.patch ___ Python tracker <http://bugs.python.org/issue8

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-20 Thread Stefan Krah
Stefan Krah added the comment: Committed fix (with the freebsd6 skips intact) in r80238, r80239, r80240 and r80241. David, is it intentional that py3k doesn't have the freebsd6 fixes? -- assignee: -> skrah resolution: -> accepted status: open

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-20 Thread Stefan Krah
Stefan Krah added the comment: Mark, sorry, let me know if I should revert anything. I took the stdout over from some similar print statements that once were in test_uuid (I agree that stderr would seem more natural). [http://svn.python.org/view/python/trunk/Lib/test/test_uuid.py?r1=50896&am

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-20 Thread Stefan Krah
Stefan Krah added the comment: The Tiger buildbot triggers the message in build #31: test_signal test_itimer_virtual: timeout: likely cause: machine too slow or load too high. But build #23 is ok. -- ___ Python tracker <http://bugs.python.

[issue8263] regrtest stops prematurately on FreeBSD buildbot, with "success" result.

2010-04-20 Thread Stefan Krah
Stefan Krah added the comment: Confirmed on FreeBSD-6.4/py3k. Threading causes the problem, the skip works here, too. -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue8

[issue7384] curses crash on FreeBSD

2010-04-21 Thread Stefan Krah
Stefan Krah added the comment: Jeroen, thanks for the idea. I asked Thomas Dickey and he said that one should not load both libncurses.so and libncursesw.so. I think this means that if libreadline.so is already linked against libncurses.so, we are stuck with libncurses.so for the curses module

[issue7384] curses crash on FreeBSD

2010-04-23 Thread Stefan Krah
Stefan Krah added the comment: Mark, thanks for reviewing the patch. In the new patch, I added a skip for OS X. Buildbot testing looks good. In particular, one FreeBSD bot passes test_curses now (the other one is hanging in multiprocessing). For most bots nothing changes. The solaris bot has

[issue7384] curses crash on FreeBSD

2010-04-23 Thread Stefan Krah
Stefan Krah added the comment: Yes, readline uses only the termcap part of ncurses. I think that --with-termlib is the correct option, see: http://www.mail-archive.com/util-linux...@vger.kernel.org/msg00273.html -- ___ Python tracker <h

[issue7384] curses crash on FreeBSD

2010-04-23 Thread Stefan Krah
Stefan Krah added the comment: Actually this means that we should also look for -ltinfo in the ldd check (A Redhat buildbot would be nice). -- ___ Python tracker <http://bugs.python.org/issue7

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-23 Thread Stefan Krah
Stefan Krah added the comment: The buildbots are generally happy with the change. However, on OpenBSD test_itimer_prof fails seemingly unrelated to machine load. I'm not so familiar with the signal module, but how can the signal handlers in the tests be guaranteed to work? For example, i

[issue7384] curses crash on FreeBSD

2010-04-24 Thread Stefan Krah
Stefan Krah added the comment: I included the test for libtinfo in the latest patch. The patch is tested on Fedora and correctly links the curses module with -lncursesw. This means that the ldd method works on all buildbots, OpenBSD, OpenSolaris and Fedora. -- Added file: http

[issue7384] curses crash on FreeBSD

2010-04-24 Thread Stefan Krah
Stefan Krah added the comment: I'm not against sorting things out in configure.in, but I'm not quite sure that it will be more portable than ldd: On FreeBSD (the problem system!) I can't get this to work: [ste...@freebsd-i386 ~]$ echo 'int main() { readline(); }

[issue7384] curses crash on FreeBSD

2010-04-24 Thread Stefan Krah
Stefan Krah added the comment: Sigh. xxx.c == test_readline.c in the previous comment. -- ___ Python tracker <http://bugs.python.org/issue7384> ___ ___ Python-bug

[issue6091] Curses segfaulting in FreeBSD/amd64

2010-04-24 Thread Stefan Krah
Stefan Krah added the comment: Can you check if the latest patch for issue 7384 fixes the problem? The patch is against py3k, but it comes down to this: 1) Build the readline module _only_ with -lreadline (instead of -lreadline -lncursesw) 2) Build the curses and curses_panel modules

[issue7384] curses crash on FreeBSD

2010-04-27 Thread Stefan Krah
Stefan Krah added the comment: Roumen Petrov wrote: > Yes , I understand . > For the protocol did gcc on FreeBSD warn if library order is -lncursesw > -lreadline ? No. > P.S. Issue with readline library linked to termcap compatible library on > system that distribut

[issue8540] Make Context._clamp public in decimal module

2010-04-27 Thread Stefan Krah
Stefan Krah added the comment: (1) Perhaps I missed the relevant part in the spec, so I had to check what decNumber does: In the default context, clamp is 0, in the extended contexts, it is 1. So Python's ExtendedContext should indeed set _clamp to 1. (2) I agree about the importance o

[issue8540] Make Context._clamp public in decimal module

2010-04-27 Thread Stefan Krah
Stefan Krah added the comment: I knew it was somewhere: In the test case description, clamp=0 is specified as the default: http://speleotrove.com/decimal/dtfile.html#syntax -- ___ Python tracker <http://bugs.python.org/issue8

[issue7384] curses crash on FreeBSD

2010-04-27 Thread Stefan Krah
Stefan Krah added the comment: Jeroen Ruigrok van der Werven wrote: > Stefan, I was emailing with Rong-En Fan, a FreeBSD committer, about this > issue and he asked: > > "Basically, this is caused by > > a) our readline.so is linked against ncurses.so (via -ltermcap w

[issue8540] Make Context._clamp public in decimal module

2010-04-27 Thread Stefan Krah
Stefan Krah added the comment: I'd prefer to drop the ExtendedContext completely. Reasons are: 1) _clamp, prec, emin and emax aren't set to IEEE754 values. 2) The use of 'extended' is decNumber specific (see http://speleotrove.com/decimal/dncont.html ). In IEEE754

[issue8567] decimal module doesn't respect precedence rules for exceptional conditions

2010-04-29 Thread Stefan Krah
Stefan Krah added the comment: Mark, I'm very short of time today, so I hope I don't miss anything that you wrote. The model of decNumber (and libmpdec) is to accumulate any status (flags) that occurs in a function, regardless of whether a signal is trapped or not. Only at functio

[issue8540] Make Context._clamp public in decimal module

2010-04-29 Thread Stefan Krah
Stefan Krah added the comment: > Were you thinking of any deviations in particular? More or less a commentary on what is listed here: http://speleotrove.com/decimal/dascope.html ==> Restrictions I only have a draft of IEEE754, but for instance I can't find a power or rem

[issue8597] build out-of-line asm on Windows

2010-05-02 Thread Stefan Krah
Stefan Krah added the comment: I think this is a duplicate of issue 7546. -- nosy: +skrah type: behavior -> feature request ___ Python tracker <http://bugs.python.org/iss

[issue8613] Decimal module flags undetermined when a signal is trapped.

2010-05-05 Thread Stefan Krah
Stefan Krah added the comment: I agree that the spec is not unambiguous, but consider the Overflow and Underflow passages here: http://speleotrove.com/decimal/daexcep.html ==> Overflow ==> In all cases, Inexact and Rounded will also be raised. "Raise" here of course m

[issue7724] setup.py ignores SDK root on OSX

2010-05-08 Thread Stefan Krah
Stefan Krah added the comment: Just to save you some time investigating, it broke the build because of missing parentheses in setup.py: if sys.platform == 'darwin' and dir.startswith('/System') or dir.startswith('/usr') -- nosy: +skrah

[issue1481] test_uuid is warning about unreliable functions

2010-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issue1481> ___ ___ Python-bugs-list mailing list Unsubscri

[issue6419] Broken test_kqueue.py on OpenBSD

2010-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue6419> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue7449] A number tests "crash" if python is compiled --without-threads

2010-05-13 Thread Stefan Krah
Stefan Krah added the comment: Victor, I think one more skip is required in test_socketserver. -- nosy: +skrah resolution: fixed -> status: closed -> open Added file: http://bugs.python.org/file17317/nothreads-socketserver-shutdown

[issue6419] Broken test_kqueue.py on OpenBSD

2010-05-14 Thread Stefan Krah
Stefan Krah added the comment: The same patch was applied to the Python port by OpenBSD developer Damien Miller: http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/python/2.6/patches/patch-Lib_test_test_kqueue_py Mark, would it be ok in this situation to apply the patch even though personally

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-05-14 Thread Stefan Krah
Stefan Krah added the comment: Luckily, the OpenBSD failures are caused by issues in libpthread. This means that some skips could be added (as for FreeBSD), but I'll open a separate issue for that. Thanks for the comments on the patch. I add two new patches that incorporate the s

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-05-14 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file17335/issue8424-trunk-skiptest.patch ___ Python tracker <http://bugs.python.org/issue8424> ___ ___ Pytho

[issue8710] test_xpickle: compat tests: workaround for missing test_support

2010-05-14 Thread Stefan Krah
New submission from Stefan Krah : When the system python does not have the Lib/test directory, the compat tests are failing. == ERROR: test_attribute_name_interning (test.test_xpickle.CPicklePython26Compat

[issue3771] test_httpservers intermittent failure, test_post and EINTR

2010-05-14 Thread Stefan Krah
Stefan Krah added the comment: The EINTR issue should be fixed in trunk (issue1628205). Have you by any chance run the test suite on trunk in the meantime? -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue3

[issue8710] test_xpickle: compat tests: workaround for missing test_support

2010-05-14 Thread Stefan Krah
Stefan Krah added the comment: The compat tests check that pickling in the newly compiled Python version is compatible with pickling in installed Python versions. The installed versions may or may not have a test directory. For example, the 2.6 port in OpenBSD does not have the test directory

[issue8712] Skip libpthread related test failures on OpenBSD

2010-05-14 Thread Stefan Krah
New submission from Stefan Krah : [Added OpenBSD Python port maintainers to the nosy list.] I've identified a number of tests that all pass when Python is compiled without threads, but fail otherwise. The failures are probably caused by libpthread issues in OpenBSD, as described in this

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-07 Thread Stefan Krah
Stefan Krah added the comment: With _pydecimal the memory also grows very slowly (I didn't have the patience to wait for MemoryError). I'm pretty sure decNumber also does the same, it's just easier to implement and does not slow down division for small numbers. libmpde

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-07 Thread Stefan Krah
Stefan Krah added the comment: MAX_PREC is chosen so that 5*MAX_PREC does not overflow 32-bit or 64-bit signed integers. This eliminates many overflow checks for the exponent. Updating the exponent is (perhaps surprisingly) quite performance sensitive, that's why the 32-bit build doe

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-07 Thread Stefan Krah
Stefan Krah added the comment: The feature would be nice to have; however, if you choose the precision to match the amount of available RAM things work (I have 8GB here, one word in the coefficient has 19 digits for the 4 bit version): >>> from decimal import * >>&

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-07 Thread Stefan Krah
Stefan Krah added the comment: > This isn't purely academic. The `decimal` docs, at the end: Yes, that is a good point. I think for libmpdec I'll just do a trial divmod if prec > BIGNUM_THRESHOLD. > Perhaps the only thing to be done is to add words to t

[issue39552] shell scripts use legacy

2020-02-07 Thread Stefan Krah
New submission from Stefan Krah : As mentioned in the PR, I don't see sufficient evidence that backticks are legacy. So I'll close this. -- assignee: -> skrah nosy: +skrah resolution: -> rejected stage: patch review -> resolved sta

[issue39610] memoryview.__len__ should raise an exception for 0d buffers

2020-02-11 Thread Stefan Krah
Stefan Krah added the comment: The change looks reasonable, but unfortunately this is a long-standing behavior that originates from before the Python-3.3 memoryview rewrite. It is also present in 2.7 (the previous implementation) and documented in 3.3: https://docs.python.org/3/library

[issue39701] Azure Pipelines PR broken

2020-02-20 Thread Stefan Krah
Change by Stefan Krah : -- nosy: skrah priority: normal severity: normal status: open title: Azure Pipelines PR broken ___ Python tracker <https://bugs.python.org/issue39

[issue39701] Azure Pipelines PR broken

2020-02-20 Thread Stefan Krah
New submission from Stefan Krah : There is no status report, no details link and manually committing is prohibited: https://github.com/python/cpython/pull/18569 -- ___ Python tracker <https://bugs.python.org/issue39

[issue39701] Azure Pipelines PR broken

2020-02-20 Thread Stefan Krah
Stefan Krah added the comment: Closing and reopening the PR helped. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue39701] Azure Pipelines PR broken

2020-02-20 Thread Stefan Krah
Stefan Krah added the comment: Re-opening this issue, Azure fails too often: https://github.com/python/cpython/pull/18577 https://dev.azure.com/Python/cpython/_build/results?buildId=58220&view=logs&j=c83831cd-3752-5cc7-2f01-8276

[issue39701] Azure Pipelines PR broken

2020-02-20 Thread Stefan Krah
Change by Stefan Krah : -- status: closed -> open ___ Python tracker <https://bugs.python.org/issue39701> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-20 Thread Stefan Krah
Change by Stefan Krah : -- keywords: +patch pull_requests: +17951 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18581 ___ Python tracker <https://bugs.python.org/issu

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-20 Thread Stefan Krah
Stefan Krah added the comment: Fortunately libmpdec raises MemoryError almost instantaneously, so the PR retries the affected operations with estimated upper bounds for exact results without slowing down the common case. The docs still need updating because people will still wonder why 1

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-20 Thread Stefan Krah
Stefan Krah added the comment: BTW, this PR implements the invariant: "If there exists an exact result at a lower precision, this result should also be returned at MAX_PREC (without MemoryError)". So non-integer powers are left out, since _decimal has no notion of exact non-inte

[issue39704] Disable code coverage

2020-02-20 Thread Stefan Krah
New submission from Stefan Krah : The automated code coverage on GitHub is quite inaccurate and needlessly flags PRs as red. I'd prefer to make this opt-in. -- messages: 362367 nosy: skrah priority: normal severity: normal status: open title: Disable code cov

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-20 Thread Stefan Krah
Stefan Krah added the comment: New changeset 90930e65455f60216f09d175586139242dbba260 by Stefan Krah in branch 'master': bpo-39576: Prevent memory error for overly optimistic precisions (GH-18581) https://github.com/python/cpython/commit/90930e65455f60216f09d175586139

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-20 Thread Stefan Krah
Stefan Krah added the comment: New changeset c6f95543b4832c3f0170179da39bcf99b40a7aa8 by Miss Islington (bot) in branch '3.7': bpo-39576: Prevent memory error for overly optimistic precisions (GH-18581) (#18585) https://github.com/python/cpyt

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-20 Thread Stefan Krah
Stefan Krah added the comment: New changeset b6271025c640c228505dc9f194362a0c2ab81c61 by Miss Islington (bot) in branch '3.8': bpo-39576: Prevent memory error for overly optimistic precisions (GH-18581) (#18584) https://github.com/python/cpyt

[issue39704] Disable code coverage

2020-02-21 Thread Stefan Krah
Stefan Krah added the comment: I'd definitely disable the automatic comment and prefer that the build happens on buildbot.python.org rather than affecting the GitHub build status. -- ___ Python tracker <https://bugs.python.org/is

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-21 Thread Stefan Krah
Stefan Krah added the comment: Vedran, msg362365 is meant to say: "This PR implements $SOMEWHAT_MATHEMATICAL_SPEC except for inexact power." Had I put the caveat inside the statement as well, the message would have been: "Thi

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-21 Thread Stefan Krah
Stefan Krah added the comment: "So non-integer powers are left out" in isolation would indeed be wrong, but actual sentence is unambiguously qualified with: "... since _decimal has no notion of exact non-integer powers yet.", which clearly states that exact non-inte

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-21 Thread Stefan Krah
Change by Stefan Krah : -- pull_requests: +17961 pull_request: https://github.com/python/cpython/pull/18594 ___ Python tracker <https://bugs.python.org/issue39

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-21 Thread Stefan Krah
Stefan Krah added the comment: Updated docs: https://github.com/python/cpython/pull/18594 The PR uses some of Tim's suggestions while also explaining how to calculate the amount of memory used in a single large decimal. Hopefully it isn't too much i

[issue39704] Disable code coverage

2020-02-21 Thread Stefan Krah
Stefan Krah added the comment: They are allowed failures but the build is still marked in red: https://github.com/python/cpython/pull/18567 So if you look at the front page you have to click through red results only to find that the reason is code coverage

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-21 Thread Stefan Krah
Stefan Krah added the comment: New changeset a025d4ca99fb4c652465368e0b4eb03cf4b316b9 by Stefan Krah in branch 'master': bpo-39576: docs: set context for decimal arbitrary precision arithmetic (#18594) https://github.com/python/cpython/commit/a025d4ca99fb4c652465368e0b4eb0

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-21 Thread Stefan Krah
Stefan Krah added the comment: New changeset 00e45877e33d32bb61aa13a2033e3bba370bda4d by Miss Islington (bot) in branch '3.7': bpo-39576: docs: set context for decimal arbitrary precision arithmetic (GH-18594) (#18596) https://github.com/python/cpyt

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-21 Thread Stefan Krah
Stefan Krah added the comment: New changeset d6965ff026f35498e554bc964ef2be8f4d80eb7f by Miss Islington (bot) in branch '3.8': bpo-39576: docs: set context for decimal arbitrary precision arithmetic (GH-18594) (#18597) https://github.com/python/cpyt

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-21 Thread Stefan Krah
Stefan Krah added the comment: libmpdec and the docs are done, the question remains what to do with decimal.py. It has the same behavior, but I don't think users are running decimal.py with very large precisions. Anyway, unassigning myself in case anyone else wants to work on a

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-21 Thread Stefan Krah
Change by Stefan Krah : -- stage: patch review -> resolved ___ Python tracker <https://bugs.python.org/issue39576> ___ ___ Python-bugs-list mailing list Un

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-23 Thread Stefan Krah
Change by Stefan Krah : -- pull_requests: +17981 pull_request: https://github.com/python/cpython/pull/18616 ___ Python tracker <https://bugs.python.org/issue39

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-23 Thread Stefan Krah
Stefan Krah added the comment: New changeset b76518d43fb82ed9e5d27025d18c90a23d525c90 by Stefan Krah in branch 'master': bpo-39576: Clarify the word size for the 32-bit build. (#18616) https://github.com/python/cpython/commit/b76518d43fb82ed9e5d27025d18c90

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-23 Thread Stefan Krah
Stefan Krah added the comment: New changeset 24c570bbb82a7cb70576c253a73390accfa7ed78 by Miss Islington (bot) in branch '3.7': bpo-39576: Clarify the word size for the 32-bit build. (GH-18616) (#18617) https://github.com/python/cpython/commit/24c570bbb82a7cb70576c253a73390

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-02-23 Thread Stefan Krah
Stefan Krah added the comment: New changeset c6ecd9c14081a787959e13df33e250102a658154 by Miss Islington (bot) in branch '3.8': bpo-39576: Clarify the word size for the 32-bit build. (GH-18616) (#18618) https://github.com/python/cpython/commit/c6ecd9c14081a787959e13df33e250

[issue39704] Disable code coverage

2020-02-23 Thread Stefan Krah
Stefan Krah added the comment: For me even a mail with a single line would be too much. I can filter that in my mail client but not on GitHub. Speaking about that, I also don't want to get mail from Bevedere stating that I, in fact, have signed a CLA any time I open

[issue39776] Crash in decimal module in heavy-multithreaded scenario

2020-02-27 Thread Stefan Krah
Stefan Krah added the comment: Before I look at the example code: Can you also reproduce this with Python 3.6? The threading code in _decimal was changed to a ContextVar in 3.7. There's a high chance though that the problem is in the c++ module. -- nosy: +

[issue39776] Crash in decimal module in heavy-multithreaded scenario

2020-02-27 Thread Stefan Krah
Stefan Krah added the comment: I've briefly looked at the zip archive. Without going much into the C++ module as a whole, this should not be done: gil_unlocker.UnlockGILAndSleep() self.val = decimal.Decimal(1) / decimal.Decimal(7) gil_unlocker.UnlockGILAndSleep() If you w

[issue39776] Crash in decimal module in heavy-multithreaded scenario

2020-02-27 Thread Stefan Krah
Change by Stefan Krah : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue39776> ___ ___

[issue39776] Crash in decimal module in heavy-multithreaded scenario

2020-02-27 Thread Stefan Krah
Stefan Krah added the comment: I built your example with 3.6: git clone https://github.com/pybind/pybind11 wget https://bugs.python.org/file48923/decimal_crash.zip unzip decimal_crash.zip git checkout v3.6.7 ./configure --with-pydebug make g++ -std=c++11 -pthread -Wno-unused-result -Wsign

[issue39776] Crash in decimal module in heavy-multithreaded scenario

2020-02-28 Thread Stefan Krah
Stefan Krah added the comment: This is 3.6.7, compiled --with-pydebug: $ ./main Aborted (core dumped) (gdb) bt #0 0x7f9974077428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54 #1 0x7f997407902a in __GI_abort () at abort.c:89 #2 0x0056e2d1 in

<    1   2   3   4   5   6   7   8   9   10   >