This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Description
e.g. in a rails project with the less-rails gem, e.g. bundle exec rake -T fails with
/usr/include/c++/9/bits/stl_vector.h:1042: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = v8::Handle<v8::Value>; _Alloc = std::allocator<v8::Handle<v8::Value> >; std::vector<_Tp, _Alloc>::reference = v8::Handle<v8::Value>&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed.
Aborted (core dumped)
That's due to gcc's hardening flags -D_GLIBCXX_ASSERTIONS.
See this stack overflow answer
https://stackoverflow.com/questions/51661931/rails-s-command-issue