Re: [Python-Dev] Coverity Scan Spotlight Python

2013-08-29 Thread Terry Reedy
On 8/29/2013 7:24 PM, Sturla Molden wrote: Do the numbers add up? .005 defects in 1,000 lines of code is one defect in every 200,000 lines of code. However they also claim that "to date, the Coverity Scan service has analyzed nearly 400,000 lines of Python code and identified 996 new defects

Re: [Python-Dev] Can someone try to duplicate corruption on Gentoo?

2013-08-29 Thread Tim Peters
[R. David Murray ] > Emerge uses Python, and 2.7 is the default system python on Gentoo, > so unless he changed his default, that error almost certainly came from > the existing Python he was having trouble with. Yes, "The Python used to run `emerge` here was a --with-pydebug Python the bug report

Re: [Python-Dev] Can someone try to duplicate corruption on Gentoo?

2013-08-29 Thread R. David Murray
On Thu, 29 Aug 2013 18:43:13 -0500, Tim Peters wrote: > In > > http://bugs.python.org/issue18843 > > a user reported a debug PyMalloc "bad leading pad byte" memory > corruption death while running their code. After some thrashing, they > decided to rebuild Python, and got the same kind of e

Re: [Python-Dev] Coverity Scan Spotlight Python

2013-08-29 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/29/2013 07:24 PM, Sturla Molden wrote: > > Do the numbers add up? > > .005 defects in 1,000 lines of code is one defect in every 200,000 > lines of code. > > However they also claim that "to date, the Coverity Scan service has > analyzed near

[Python-Dev] Can someone try to duplicate corruption on Gentoo?

2013-08-29 Thread Tim Peters
In http://bugs.python.org/issue18843 a user reported a debug PyMalloc "bad leading pad byte" memory corruption death while running their code. After some thrashing, they decided to rebuild Python, and got the same kind of error while rebuilding Python. See http://bugs.python.org/msg196

Re: [Python-Dev] Coverity Scan Spotlight Python

2013-08-29 Thread Sturla Molden
Do the numbers add up? .005 defects in 1,000 lines of code is one defect in every 200,000 lines of code. However they also claim that "to date, the Coverity Scan service has analyzed nearly 400,000 lines of Python code and identified 996 new defects – 860 of which have been fixed by the Pyth

Re: [Python-Dev] Coverity Scan Spotlight Python

2013-08-29 Thread Christian Heimes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Am 30.08.2013 00:46, schrieb Antoine Pitrou: > On Fri, 30 Aug 2013 00:10:27 +0200 Christian Heimes > wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 >> >> Hello, >> >> Coverity has published its "Coverity Scan Spotlight Python" a >> coup

Re: [Python-Dev] Coverity Scan Spotlight Python

2013-08-29 Thread Antoine Pitrou
On Fri, 30 Aug 2013 00:10:27 +0200 Christian Heimes wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Hello, > > Coverity has published its "Coverity Scan Spotlight Python" a couple > of hours ago. It features a summary of Python's ecosystem, an > interview with me about Python core

Re: [Python-Dev] Coverity Scan Spotlight Python

2013-08-29 Thread Eli Bendersky
Great work, Christian! On Thu, Aug 29, 2013 at 3:10 PM, Christian Heimes wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Hello, > > Coverity has published its "Coverity Scan Spotlight Python" a couple > of hours ago. It features a summary of Python's ecosystem, an > interview with

[Python-Dev] Coverity Scan Spotlight Python

2013-08-29 Thread Christian Heimes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hello, Coverity has published its "Coverity Scan Spotlight Python" a couple of hours ago. It features a summary of Python's ecosystem, an interview with me about Python core development and a defect report. The report is awesome. We have reached a d

Re: [Python-Dev] [Python-checkins] cpython: Issue #16799: Switched from getopt to argparse style in regrtest's argument

2013-08-29 Thread Eric Snow
On Thu, Aug 29, 2013 at 3:27 AM, serhiy.storchaka < python-check...@python.org> wrote: > http://hg.python.org/cpython/rev/997de0edc5bd > changeset: 85444:997de0edc5bd > parent: 85442:676bbd5b0254 > user:Serhiy Storchaka > date:Thu Aug 29 12:26:23 2013 +0300 > summary: > I

Re: [Python-Dev] Add a new tracemalloc module to trace memory allocations

2013-08-29 Thread Victor Stinner
2013/8/29 Brett Cannon : >> I also created a "pyfailmalloc" project based on the PEP 445 to inject >> MemoryError exceptions. (...) > > Would extension module authors find it useful? I don't know, I created two months ago and I didn't made a public annoucement. > If so maybe we need a malloc pack

Re: [Python-Dev] Add a new tracemalloc module to trace memory allocations

2013-08-29 Thread Brett Cannon
On Wed, Aug 28, 2013 at 8:16 PM, Victor Stinner wrote: > Hi, > > Thanks to the PEP 445, it becomes possible to trace easily memory > allocations. I propose to add a new tracemalloc module computing the > memory usage per file and per line number. It has also a private > method to retrieve the loca