[New-bugs-announce] [issue11895] pybench prep_times calculation error

Mikhail Terekhov report at bugs.python.org
Thu Apr 21 05:20:13 CEST 2011


New submission from Mikhail Terekhov <termim at gmail.com>:

For some time now my builds of python 3.2 on x86_64 platform in SuSE OBS are failing depending on the phase of the moon. The spec file for the python3-base package uses 'make profile-opt' command to build and Makefile.pre.in uses pybench.py for profile guided optimization. The pybench.py fails sometimes with the '* Internal Error (use --debug to display the traceback)' error. Adding --debug gives 'calibration setup did not work' i.e. some of the self.overhead_times values in the Test.calibrate_test method became negative. It happens for the  NestedForLoops test. The source inspection shows that most probably it was forgotten to divide by CALIBRATION_LOOPS when calculating prep_times. The patch against current head is attached, it solves the problem.

----------
components: Demos and Tools, Installation
files: pybench.patch
keywords: patch
messages: 134192
nosy: termim
priority: normal
severity: normal
status: open
title: pybench prep_times calculation error
type: crash
versions: Python 3.2
Added file: http://bugs.python.org/file21745/pybench.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11895>
_______________________________________


More information about the New-bugs-announce mailing list