[pypy-issue] Issue #2211: cryptic translation error with extended slices use in rpython (pypy/pypy)

Vincent Legoll issues-reply at bitbucket.org
Tue Dec 15 16:30:17 EST 2015


New issue 2211: cryptic translation error with extended slices use in rpython
https://bitbucket.org/pypy/pypy/issues/2211/cryptic-translation-error-with-extended

Vincent Legoll:

When attempting to fix issue #2198, I stumbled upon a cryptic error message and Ronan asked me to report that.

Happened at :

https://bitbucket.org/pypy/pypy/pull-requests/369/fix-2198/diff#Lpypy/objspace/std/listobject.pyT1498

```
#!raw
translation:info] Error:
[translation:info]    File "/home/vlegoll/repo/upstream/pypy-for-upstream2/rpython/translator/goal/translate.py", line 318, in main
[translation:info]     drv.proceed(goals)
[translation:info]    File "/home/vlegoll/repo/upstream/pypy-for-upstream2/rpython/translator/driver.py", line 550, in proceed
[translation:info]     result = self._execute(goals, task_skip = self._maybe_skip())
[translation:info]    File "/home/vlegoll/repo/upstream/pypy-for-upstream2/rpython/translator/tool/taskengine.py", line 114, in _execute
[translation:info]     res = self._do(goal, taskcallable, *args, **kwds)
[translation:info]    File "/home/vlegoll/repo/upstream/pypy-for-upstream2/rpython/translator/driver.py", line 279, in _do
[translation:info]     res = func()
[translation:info]    File "/home/vlegoll/repo/upstream/pypy-for-upstream2/rpython/translator/driver.py", line 316, in task_annotate
[translation:info]     s = annotator.build_types(self.entry_point, self.inputtypes)
[translation:info]    File "/home/vlegoll/repo/upstream/pypy-for-upstream2/rpython/annotator/annrpython.py", line 88, in build_types
[translation:info]     return self.build_graph_types(flowgraph, inputs_s, complete_now=complete_now)
[translation:info]    File "/home/vlegoll/repo/upstream/pypy-for-upstream2/rpython/annotator/annrpython.py", line 134, in build_graph_types
[translation:info]     self.complete()
[translation:info]    File "/home/vlegoll/repo/upstream/pypy-for-upstream2/rpython/annotator/annrpython.py", line 188, in complete
[translation:info]     self.complete_pending_blocks()
[translation:info]    File "/home/vlegoll/repo/upstream/pypy-for-upstream2/rpython/annotator/annrpython.py", line 183, in complete_pending_blocks
[translation:info]     self.processblock(graph, block)
[translation:info]    File "/home/vlegoll/repo/upstream/pypy-for-upstream2/rpython/annotator/annrpython.py", line 346, in processblock
[translation:info]     self.flowin(graph, block)
[translation:info]    File "/home/vlegoll/repo/upstream/pypy-for-upstream2/rpython/annotator/annrpython.py", line 445, in flowin
[translation:info]     self.consider_op(op)
[translation:info]    File "/home/vlegoll/repo/upstream/pypy-for-upstream2/rpython/annotator/annrpython.py", line 597, in consider_op
[translation:info]     resultcell = op.consider(self)
[translation:info]    File "/home/vlegoll/repo/upstream/pypy-for-upstream2/rpython/flowspace/operation.py", line 103, in consider
[translation:info]     spec = type(self).get_specialization(*args_s)
[translation:ERROR] AttributeError: type object 'newslice' has no attribute 'get_specialization'
[translation:ERROR] Processing block:
[translation:ERROR]  block at 662 is a <class 'rpython.flowspace.flowcontext.SpamBlock'>
[translation:ERROR]  in (pypy.objspace.std.listobject:1457)FloatListStrategy.setslice
[translation:ERROR]  containing the following operations:
[translation:ERROR]        v482 = add(v481, slicelength_0)
[translation:ERROR]        v483 = newslice(v481, v482, step_0)
[translation:ERROR]        v484 = setitem(items_15, v483, other_items_0)
[translation:ERROR]  --end--
```





More information about the pypy-issue mailing list