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

the ruby racer fails with hardened gcc flags #453

Closed
ibotty opened this issue Apr 9, 2019 · 3 comments
Closed

the ruby racer fails with hardened gcc flags #453

ibotty opened this issue Apr 9, 2019 · 3 comments

Comments

@ibotty
Copy link

ibotty commented Apr 9, 2019

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

@ibotty ibotty changed the title the ruby racer fails on hardened the ruby racer fails with hardened gcc flags Apr 9, 2019
@da2x
Copy link

da2x commented Apr 29, 2019

Same issue in Fedora 30. (Fedora uses gcc hardening by default.)

@victorsosa
Copy link

releated to the PR #451

@lloeki
Copy link
Contributor

lloeki commented Dec 4, 2023

Sorry but this gem is unmaintained, so I will close this issue.

We recommend going with mini_racer + libv8-node. If you feel the issue is still relevant to either of those, please open an issue over there!

@lloeki lloeki closed this as completed Dec 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants