data61 / MP-SPDZ

Versatile framework for multi-party computation
Other
944 stars 280 forks source link

VM: An out-of-bounds error occurred while accessing the array #1487

Closed HopeDevote closed 2 months ago

HopeDevote commented 2 months ago

Hello, sorry for disturbing you.

a = sint.Array(3)
for i in range(3):
    a[i] = i

print_ln("%s", a.reveal())

When I insert some instructions in the original instruction set that don't affect the semantics of the program: bug

Run the following command:

  1. ./compile.py -F 64 test3
  2. ./emulate test3

VM Error:

Using statistical security parameter 40
Trying to run 64-bit computation
Fatal error: vector::_M_range_check: __n (which is 3) >= this->size() (which is 3)

Is this a bug?

Thanks!

mkskeller commented 2 months ago

I don't think I can comment on this without further information. Can you install GDB and run gdb_front ./emulate.x test3 -o throw_exceptions?