Comments (2)
I found the problem. I had installed node-gyp using sudo apt install node-gyp
.
Installing with npm install -g node-gyp
fixed the issue.
from denim.
I should add that I'm running GCC v12.2.0.
When running valgrind node js/test.js
the final part is:
==61918== Process terminating with default action of signal 11 (SIGSEGV)
==61918== at 0x6B78E2C: __pthread_kill_implementation (pthread_kill.c:44)
==61918== by 0x6B29FB1: raise (raise.c:26)
==61918== by 0xF15EE1: node::TrapWebAssemblyOrContinue(int, siginfo_t*, void*) (in /home/debian/.nvm/versions/node/v22.2.0/bin/node)
==61918== by 0x6B2A04F: ??? (in /usr/lib/x86_64-linux-gnu/libc.so.6)
==61918== by 0x67BBAC4: bcmp (vg_replace_strmem.c:1203)
==61918== by 0x11E6EEC: std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, node::UnionBytes, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, node::UnionBytes> > >::map(std::initializer_list<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, node::UnionBytes> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > const&, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, node::UnionBytes> > const&) (in /home/debian/.nvm/versions/node/v22.2.0/bin/node)
==61918== by 0x2AB10776: ??? (in /usr/lib/x86_64-linux-gnu/libnode.so.108)
==61918== by 0x5F769CD: call_init (dl-init.c:74)
==61918== by 0x5F769CD: call_init (dl-init.c:26)
==61918== by 0x5F76AB3: _dl_init (dl-init.c:121)
==61918== by 0x6C3D023: _dl_catch_exception (dl-error-skeleton.c:182)
==61918== by 0x5F7D21D: dl_open_worker (dl-open.c:808)
==61918== by 0x6C3CFC9: _dl_catch_exception (dl-error-skeleton.c:208)
from denim.
Related Issues (13)
- Build binding.gyp given a package name HOT 3
- node-gyp put node_api.h in an unexpected place
- denim -h doesn't do anything HOT 2
- Macros for cleaner export Nim code HOT 2
- Compiled binary segfaults when run HOT 6
- Code breaks with latest head HOT 9
- Can't use add-on in an external project HOT 3
- Frequent: SIGSEGV: Illegal storage access. (Attempt to read from nil?) HOT 2
- Nim exceptions break the node process HOT 3
- Calling callback JS functions in Nim HOT 3
- `export_napi` not works with variables since Nim 2.0 HOT 1
- Build for Windows? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from denim.