osmcode / libosmium

Fast and flexible C++ library for working with OpenStreetMap data.
https://osmcode.org/libosmium/
Boost Software License 1.0
462 stars 113 forks source link

ctest failing on newly compiled code #333

Closed a-ya19 closed 3 years ago

a-ya19 commented 3 years ago

I successfully compiled libosmium after installing all of its prerequisites in order to install Nominatim. When I run ctest in the build directory, there is one assertion that fails in one test case. I'm running ctest on an AWS ec2 instance. The failed test that shows up is test #64: storate_test_item_stash:

Test #64: storage_test_item_stash

Fill item stash until it garbage collects

/home/ec2-user/work/libosmium/test/t/storage/test_item_stash.cpp:134 ...............................................................................

/home/ec2-user/work/libosmium/test/t/storage/test_item_stash.cpp:134: FAILED: {Unknown expression after the reported line} due to unexpected exception with message: std::bad_alloc

=============================================================================== test cases: 3 | 2 passed | 1 failed assertions: 1218 | 1217 passed | 1 failed

Is this failed assertion important, and could it be caused by any error on my end?

a-ya19 commented 3 years ago

The issue was caused by limited memory.