https://bugs.documentfoundation.org/show_bug.cgi?id=155937

            Bug ID: 155937
           Summary: UITest: frames[0] throws "index out of ranges" in
                    close_doc() on riscv64
           Product: LibreOffice
           Version: 7.6.0.0 beta1+
          Hardware: Other
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: UI
          Assignee: [email protected]
          Reporter: [email protected]

Description:
I am trying to fix a uitest bug on riscv64. All the UI test failed for throwing
"IndexError: index out of range" when closing doc. Here is an example:

https://gist.github.com/Sakura286/e216f57c1a81c6dc813ac52f76479293

On x86, "bool(frames)" should be "False" and "frames[0].active" should not be
executed in uitest/uitest/test.py::close_doc(). But on riscv64, "bool(frames)"
turn out to be "True".

I looked into the code, and find that "frames.__len__()" on x86 changed from 1
to 0, but on riscv64 it changed from 270582939649 to 270582939648.

270582939648 is 0011 1111 0000 0000 0000 0000 0000 0000 0000 0000 in binary
form (32 bit zero suffix).

Maybe this is the opening to solve the problem. But I cannot find out where the
__len__() function of the pyuno object is defined and cannot track how this
weired number value comes from. I would be appreciated if someone provide some
tips.

Steps to Reproduce:
1. Run any UI test on riscv64
2. UI test failed for "IndexError: index out of range"

Actual Results:
UItest failed for error

Expected Results:
The doc closed without exception


Reproducible: Always


User Profile Reset: No

Additional Info:
Described above.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to