[pypy-issue] [issue935] Possible typing error in micronumpy

Joshua Root tracker at bugs.pypy.org
Mon Nov 21 20:23:04 CET 2011


New submission from Joshua Root <jmr at macports.org>:

Platform: OS X 10.6.8 x86_64, Xcode 3.2.6

See attached traceback that occurred during translation. I was going to chalk 
this up to gcc-4.2 still being unsupported, but I was advised by arigato on IRC 
that it doesn't look like a gcc version issue and I should file a bug. It did 
work when I tried again using gcc-4.0.

----------
files: pypy-traceback.txt
messages: 3454
nosy: jmr, pypy-issue
priority: bug
release: 1.7
status: unread
title: Possible typing error in micronumpy

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue935>
________________________________________
-------------- next part --------------
[translation:ERROR] Error:
[translation:ERROR]  Traceback (most recent call last):
[translation:ERROR]    File "translate.py", line 308, in main
[translation:ERROR]     drv.proceed(goals)
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/translator/driver.py", line 809, in proceed
[translation:ERROR]     return self._execute(goals, task_skip = self._maybe_skip())
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/translator/tool/taskengine.py", line 116, in _execute
[translation:ERROR]     res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/translator/driver.py", line 286, in _do
[translation:ERROR]     res = func()
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/translator/driver.py", line 323, in task_annotate
[translation:ERROR]     s = annotator.build_types(self.entry_point, self.inputtypes)
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/annotation/annrpython.py", line 103, in build_types
[translation:ERROR]     return self.build_graph_types(flowgraph, inputcells, complete_now=complete_now)
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/annotation/annrpython.py", line 194, in build_graph_types
[translation:ERROR]     self.complete()
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/annotation/annrpython.py", line 250, in complete
[translation:ERROR]     self.processblock(graph, block)
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/annotation/annrpython.py", line 448, in processblock
[translation:ERROR]     self.flowin(graph, block)
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/annotation/annrpython.py", line 508, in flowin
[translation:ERROR]     self.consider_op(block.operations[i])
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/annotation/annrpython.py", line 710, in consider_op
[translation:ERROR]     raise_nicer_exception(op, str(graph))
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/annotation/annrpython.py", line 707, in consider_op
[translation:ERROR]     resultcell = consider_meth(*argcells)
[translation:ERROR]    File "<4186-codegen /opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/annotation/annrpython.py:745>", line 3, in consider_op_simple_call
[translation:ERROR]     return arg.simple_call(*args)
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/annotation/unaryop.py", line 175, in simple_call
[translation:ERROR]     return obj.call(getbookkeeper().build_args("simple_call", args_s))
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/annotation/unaryop.py", line 696, in call
[translation:ERROR]     return bookkeeper.pbc_call(pbc, args)
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/annotation/bookkeeper.py", line 667, in pbc_call
[translation:ERROR]     results.append(desc.pycall(schedule, args, s_previous_result, op))
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/annotation/description.py", line 798, in pycall
[translation:ERROR]     return self.funcdesc.pycall(schedule, args, s_previous_result, op)
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/annotation/description.py", line 283, in pycall
[translation:ERROR]     result = self.specialize(inputcells, op)
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/annotation/description.py", line 275, in specialize
[translation:ERROR]     enforceargs(self, inputcells) # can modify inputcells in-place
[translation:ERROR]    File "/opt/local/var/macports/build/_Users_josh_Coding_dports-dev_svn_dports_lang_pypy/pypy/work/pypy-pypy-release-1.7/pypy/annotation/signature.py", line 135, in __call__
[translation:ERROR]     s_input))
[translation:ERROR]  Exception': <FunctionDesc for <function box at 0x15ac91410>> argument 2:
[translation:ERROR] expected SomeInteger(knowntype=r_uint, nonneg=True, unsigned=True),
[translation:ERROR]      got SomeFloat()
[translation:ERROR] 	.. v120 = simple_call(v118, v119)
[translation:ERROR] 	.. '(pypy.module.micronumpy.interp_support:10)fromstring'
[translation:ERROR] Processing block:
[translation:ERROR]  block at 169 is a <class 'pypy.objspace.flow.flowcontext.SpamBlock'>
[translation:ERROR]  in (pypy.module.micronumpy.interp_support:10)fromstring
[translation:ERROR]  containing the following operations:
[translation:ERROR]        v121 = getslice(s_0, start_0, end_0)
[translation:ERROR]        v122 = getattr(a_0, ('dtype'))
[translation:ERROR]        v123 = getattr(v122, ('setitem'))
[translation:ERROR]        v124 = getattr(a_0, ('storage'))
[translation:ERROR]        v118 = getattr(dtype_0, ('box'))
[translation:ERROR]        v119 = simple_call((function runpack), ('d'), v121)
[translation:ERROR]        v120 = simple_call(v118, v119)
[translation:ERROR]        v125 = simple_call(v123, v124, i_0, v120)
[translation:ERROR]        v126 = inplace_add(i_0, (1))
[translation:ERROR]        v127 = inplace_add(start_0, (8))
[translation:ERROR]        v128 = inplace_add(end_0, (8))
[translation:ERROR]  --end--
[translation] batch mode, not calling interactive helpers


More information about the pypy-issue mailing list