New submission from Greg Czajkowski <[email protected]>:

Full traceback attached

[translation:ERROR]  AssertionError: ('mixing pointer type <* Array of INT > 
with something else SomePBC(can_be_None=True, const=None, subset_of=None)', <
[translation:ERROR] Occurred processing the following simple_call:
[translation:ERROR]       (KeyError getting at the binding!)
[translation:ERROR]  v300 = simple_call((function _unicode2rawwcharp_loop), 
u_0, 
v299)
[translation:ERROR] In <FunctionGraph of 
(pypy.module._codecs.locale:115)unicode2rawwcharp at 0x2aaab980ed50>:
[translation:ERROR] Happened at file /path/pypy/pypy/module/_codecs/locale.py 
line 120
[translation:ERROR]
[translation:ERROR]         size = _unicode2rawwcharp_loop(u, None) if 
MERGE_SURROGATES else len(u)
[translation:ERROR]         array = lltype.malloc(RAW_WCHARP.TO, size + 1, 
flavor='raw')
[translation:ERROR]         array[size] = rffi.cast(rffi.WCHAR_T, u'\x00')
[translation:ERROR] ==>     _unicode2rawwcharp_loop(u, array)
[translation:ERROR]
[translation:ERROR] Known variable annotations:
[translation:ERROR]  u_0 = SomeUnicodeString()
[translation:ERROR]  v299 = SomePtr(ll_ptrtype=<* Array of INT >)>)
[translation:ERROR] Processing block:
[translation:ERROR]  block@15 is a <class 
'rpython.flowspace.flowcontext.SpamBlock'>
[translation:ERROR]  in (pypy.module._codecs.locale:115)unicode2rawwcharp
[translation:ERROR]  containing the following operations:
[translation:ERROR]        v301 = simple_call((function 
_unicode2rawwcharp_loop), u_0, (None))
[translation:ERROR]        v302 = add(v301, (1))
[translation:ERROR]        v299 = call_args((function malloc), ((2, 
('flavor',), 
False, False)), (Array array), v302, ('raw'))
[translation:ERROR]        v303 = simple_call((function force_cast), (Number 
INT), (u'\x00'))
[translation:ERROR]        v304 = setitem(v299, v301, v303)
[translation:ERROR]        v300 = simple_call((function 
_unicode2rawwcharp_loop), u_0, v299)
[translation:ERROR]  --end--

----------
files: traceback.txt
messages: 6148
nosy: gcflymoto, pypy-issue
priority: bug
release: 2.1
status: unread
title: AssertionError: ('mixing pointer type <* Array of INT > with something 
else SomePBC(can_be_None=True, const=None, subset_of=None)

________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1601>
________________________________________
n:ERROR] Error:
[translation:ERROR]  Traceback (most recent call last):
[translation:ERROR]    File "/path/pypy/rpython/translator/goal/translate.py", 
line 316, in main
[translation:ERROR]     drv.proceed(goals)
[translation:ERROR]    File "/path/pypy/rpython/translator/driver.py", line 
534, in proceed
[translation:ERROR]     return self._execute(goals, task_skip = 
self._maybe_skip())
[translation:ERROR]    File "/path/pypy/rpython/translator/tool/taskengine.py", 
line 114, in _execute
[translation:ERROR]     res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR]    File "/path/pypy/rpython/translator/driver.py", line 
283, in _do
[translation:ERROR]     res = func()
[translation:ERROR]    File "/path/pypy/rpython/translator/driver.py", line 
320, in task_annotate
[translation:ERROR]     s = annotator.build_types(self.entry_point, 
self.inputtypes)
[translation:ERROR]    File "/path/pypy/rpython/annotator/annrpython.py", line 
92, in build_types
[translation:ERROR]     return self.build_graph_types(flowgraph, inputcells, 
complete_now=complete_now)
[translation:ERROR]    File "/path/pypy/rpython/annotator/annrpython.py", line 
148, in build_graph_types
[translation:ERROR]     self.complete()
[translation:ERROR]    File "/path/pypy/rpython/annotator/annrpython.py", line 
202, in complete
[translation:ERROR]     self.complete_pending_blocks()
[translation:ERROR]    File "/path/pypy/rpython/annotator/annrpython.py", line 
197, in complete_pending_blocks
[translation:ERROR]     self.processblock(graph, block)
[translation:ERROR]    File "/path/pypy/rpython/annotator/annrpython.py", line 
347, in processblock
[translation:ERROR]     self.flowin(graph, block)
[translation:ERROR]    File "/path/pypy/rpython/annotator/annrpython.py", line 
411, in flowin
[translation:ERROR]     self.consider_op(block, i)
[translation:ERROR]    File "/path/pypy/rpython/annotator/annrpython.py", line 
605, in consider_op
[translation:ERROR]     resultcell = consider_meth(*argcells)
[translation:ERROR]    File "<2921-codegen 
/path/pypy/rpython/annotator/annrpython.py:645>", line 3, in 
consider_op_simple_call
[translation:ERROR]     return arg.simple_call(*args)
[translation:ERROR]    File "/path/pypy/rpython/annotator/unaryop.py", line 
155, in simple_call
[translation:ERROR]     return 
obj.call(getbookkeeper().build_args("simple_call", args_s))
[translation:ERROR]    File "/path/pypy/rpython/annotator/unaryop.py", line 
736, in call
[translation:ERROR]     return bookkeeper.pbc_call(pbc, args)
[translation:ERROR]    File "/path/pypy/rpython/annotator/bookkeeper.py", line 
657, in pbc_call
[translation:ERROR]     results.append(desc.pycall(schedule, args, 
s_previous_result, op))
[translation:ERROR]    File "/path/pypy/rpython/annotator/description.py", line 
306, in pycall
[translation:ERROR]     result = schedule(graph, inputcells)
[translation:ERROR]    File "/path/pypy/rpython/annotator/bookkeeper.py", line 
653, in schedule
[translation:ERROR]     return self.annotator.recursivecall(graph, whence, 
inputcells)
[translation:ERROR]    File "/path/pypy/rpython/annotator/annrpython.py", line 
293, in recursivecall
[translation:ERROR]     self.addpendingblock(graph, graph.startblock, 
inputcells)
[translation:ERROR]    File "/path/pypy/rpython/annotator/annrpython.py", line 
190, in addpendingblock
[translation:ERROR]     self.mergeinputargs(graph, block, cells)
[translation:ERROR]    File "/path/pypy/rpython/annotator/annrpython.py", line 
384, in mergeinputargs
[translation:ERROR]     unions = [annmodel.unionof(c1,c2) for c1, c2 in 
zip(oldcells,inputcells)]
[translation:ERROR]    File "/path/pypy/rpython/annotator/model.py", line 696, 
in unionof
[translation:ERROR]     s1 = pair(s1, s2).union()
[translation:ERROR]    File "/path/pypy/rpython/annotator/binaryop.py", line 
908, in union
[translation:ERROR]     return pair(p2, obj).union()
[translation:ERROR]    File "/path/pypy/rpython/annotator/binaryop.py", line 
898, in union
[translation:ERROR]     assert False, ("mixing pointer type %r with something 
else %r" % (p.ll_ptrtype, obj))
[translation:ERROR]  AssertionError: ('mixing pointer type <* Array of INT > 
with something else SomePBC(can_be_None=True, const=None, subset_of=None)', <
[translation:ERROR] Occurred processing the following simple_call:
[translation:ERROR]       (KeyError getting at the binding!)
[translation:ERROR]  v300 = simple_call((function _unicode2rawwcharp_loop), 
u_0, v299)
[translation:ERROR] In <FunctionGraph of 
(pypy.module._codecs.locale:115)unicode2rawwcharp at 0x2aaab980ed50>:
[translation:ERROR] Happened at file /path/pypy/pypy/module/_codecs/locale.py 
line 120
[translation:ERROR]
[translation:ERROR]         size = _unicode2rawwcharp_loop(u, None) if 
MERGE_SURROGATES else len(u)
[translation:ERROR]         array = lltype.malloc(RAW_WCHARP.TO, size + 1, 
flavor='raw')
[translation:ERROR]         array[size] = rffi.cast(rffi.WCHAR_T, u'\x00')
[translation:ERROR] ==>     _unicode2rawwcharp_loop(u, array)
[translation:ERROR]
[translation:ERROR] Known variable annotations:
[translation:ERROR]  u_0 = SomeUnicodeString()
[translation:ERROR]  v299 = SomePtr(ll_ptrtype=<* Array of INT >)>)
[translation:ERROR] Processing block:
[translation:ERROR]  block@15 is a <class 
'rpython.flowspace.flowcontext.SpamBlock'>
[translation:ERROR]  in (pypy.module._codecs.locale:115)unicode2rawwcharp
[translation:ERROR]  containing the following operations:
[translation:ERROR]        v301 = simple_call((function 
_unicode2rawwcharp_loop), u_0, (None))
[translation:ERROR]        v302 = add(v301, (1))
[translation:ERROR]        v299 = call_args((function malloc), ((2, 
('flavor',), False, False)), (Array array), v302, ('raw'))
[translation:ERROR]        v303 = simple_call((function force_cast), (Number 
INT), (u'\x00'))
[translation:ERROR]        v304 = setitem(v299, v301, v303)
[translation:ERROR]        v300 = simple_call((function 
_unicode2rawwcharp_loop), u_0, v299)
[translation:ERROR]  --end--
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to