Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

abi_tests/abi_large_array test fails with swap space less than 2GB #2330

Closed
Duncan-Ultra opened this issue Mar 22, 2024 · 2 comments · Fixed by #2405 or AntelopeIO/spring#605
Closed
Assignees

Comments

@Duncan-Ultra
Copy link

Duncan-Ultra commented Mar 22, 2024

OS: Ubuntu-22.04
Leap: v5.0.2

Where this happens:

BOOST_CHECK_THROW( abis.binary_to_variant( "hi[]", bin, abi_serializer::create_yield_function( max_serialization_time ) );, fc::exception );

Expected exception when I run with 8GB swap space so it will pass as fc::exception

3015013 unpack_exception: Unpack data exception
Unable to unpack 'ARRAY[0]' from stream
    {"p":"ARRAY[0]"}
    unit_test  abi_serializer.cpp:457 _binary_to_variant
rethrow
    {}
    unit_test  abi_tests.cpp:2258 test_method

Actual exception:

13 St9bad_alloc: std::bad_alloc
rethrow std::bad_alloc:
    {"what":"std::bad_alloc"}
    unit_test  abi_tests.cpp:2257 test_method

My swap space for actual exception:

➜ free -m
               total        used        free      shared  buff/cache   available
Mem:           32059         608       30373           3        1077       31016
Swap:           2048           0        2048

I cannot find any information about the minimum requirement for running leap or these tests. So, should you guy add exception for this case, or I'm expected to increase my swap space instead?

@heifner
Copy link
Member

heifner commented Mar 22, 2024

8GB seems rather small amount of swap space. I would recommend 16GB minimum.

@arhag
Copy link
Member

arhag commented Aug 20, 2024

Thanks for reporting. This issue will be fixed in Leap 5.0.3 (see #2405) and Spring 1.0.0 (see AntelopeIO/spring#603).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment