translation problems on unicode-utf8-py3

I have two failures with translation that I need some help with on the unicode-utf8-py3 branch. Occasionally while translating the branch locally, I get an error [translation:ERROR] UnsupportedFieldExc: unexpected array(struct(struct)) [translation] start debugger...
/home/matti/pypy_stuff/pypy_35/rpython/jit/codewriter/heaptracker.py(111)all_interiorfielddescrs() -> raise UnsupportedFieldExc("unexpected array(struct(struct))") I can get to the offending struct <GcArray of utf8_loc_elem { baseindex: Signed, ofs: FixedSizeArray of 16 Char } > The struct is from rpython/rlib/rutf8.py: UTF8_INDEX_STORAGE = lltype.GcArray(lltype.Struct('utf8_loc_elem', ('baseindex', lltype.Signed), ('ofs', lltype.FixedSizeArray(lltype.Char, 16)), )) and is returned from the function create_utf8_index_storage which is called in that file as well as in objspace/std/unicodeobject.py I put more of the error messsage and the code bits in this gist https://gist.github.com/mattip/057554dd7eba64f8cbf2bc1a70c1c6eb The second strange failure is of a own z_translation test http://buildbot.pypy.org/summary/longrepr?testname=test__codecs_translates&builder=own-linux-x86-64&build=6944&mod=pypy.module._codecs.test.test_ztranslation Any help would be welcome. Matti

Hi, On 31 August 2018 at 08:15, Matti Picus <matti.picus@gmail.com> wrote:
I've tried both on unicode-utf8-py3 and on unicode-utf8 (which seems to have the same logic around these functions). I didn't get the error. The error message is not enough to understand what is wrong, I'll need a pdb prompt and look around. Maybe if you manage to reproduce in a "screen" on bencher4, I could connect. Armin

Hi, On 31 August 2018 at 08:15, Matti Picus <matti.picus@gmail.com> wrote:
I've tried both on unicode-utf8-py3 and on unicode-utf8 (which seems to have the same logic around these functions). I didn't get the error. The error message is not enough to understand what is wrong, I'll need a pdb prompt and look around. Maybe if you manage to reproduce in a "screen" on bencher4, I could connect. Armin
participants (2)
-
Armin Rigo
-
Matti Picus