Repository navigation
illegal hardware instruction (core dumped) on importing gcloud #425
Description
Activity
Hmm, strange. Have you seen this error before with other modules? I've heard of this issue happening with strange hardware like Raspberry Pis. Considering I don't have access to your hardware, which looks like the issue here, I'd suggest compiling NodeJS from source if you can, preferably the latest version (0.12.0) and if you cannot do that I'd look into whether https://github.com/Voxer/sse4_crc32 (a library we use in this module) is the culprit here. Perhaps try installing and using that module on its own and seeing if you run into any issues similar to the one you've listed here.
Edit: Another library worth messing with: https://github.com/broofa/node-uuid
Looks like this happened because of sse4_crc32.
Setup:
npm install sse4_crc32
Script
console.log('Importing sse4_crc32'); var SSE4CRC32 = require("sse4_crc32"); console.log('invoking sse4'); var output = SSE4CRC32.calculate("my string"); console.log('invoked sse4. output below'); console.log(output); console.log('end');
Output
Importing sse4_crc32 invoking sse4 zsh: illegal hardware instruction (core dumped) node require-test.js
Similar test with node-uuid created no problems.
I raised an issue sse4_crc32's repository.
So sse4_crc32 3.0.0 now has software fallback so maybe we should use it instead of the fast-crc library. Might not eliminate this issue but will help reduce the number of layers between our library and the library at hand.
Flawed fallback detection filed here: https://github.com/Voxer/sse4_crc32/issues/24
@ryanseys SSE4_CRC32 release v3.1.0 fixes hardware detection issues. I've tested it on my macbook and our SmartOS boxes and it works just fine. Feel free to upgrade your dependencies and try again.
@mahtuag Can you confirm that the latest version in master no longer gives you the
illegal hardware instruction (core dumped)issue? Thanks!@ryanseys Sorry about the delay. Issue is still reproducible.
@mahtuag I'm guessing you're compiling using GCC since you're running Linux. What version of the compiler are you using?
Also, can you please paste the build log in this thread?
Thanks
You can rebuild your dependencies using
npm rebuild.@anandsuresh @ryanseys rebuilding did not seem to help. Next I re-installed gcloud and it pulled in recent changes. Issue is gone now.
Sweet. Good luck.
On May 4, 2015 5:11 PM, "Gautham Thyagarajan" [email protected]
wrote:@anandsuresh https://github.com/anandsuresh @ryanseys
https://github.com/ryanseys rebuilding did not seem to help. Next I
re-installed gcloud and it pulled in recent changes. Issue is gone now.—
Reply to this email directly or view it on GitHub
#425 (comment)
.Happens here as well:
> require('sse4_crc32') zsh: illegal hardware instruction (core dumped) nodeI am running Arch linux, Node 0.12.2, Intel Core2Quad Q6600, latest gcloud.
Thanks
- addedtype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
on May 11, 2015 34 remaining items
- added a commit that references this issue
on Feb 2, 2026 - added a commit that references this issue
on Feb 3, 2026 - added 2 commits that reference this issue
on Feb 3, 2026 - added a commit that references this issue
on Feb 23, 2026 - added 2 commits that reference this issue
on Feb 24, 2026 - added a commit that references this issue
on Feb 26, 2026 - added a commit that references this issue
on Mar 5, 2026 - added a commit that references this issue
on Mar 5, 2026 - added a commit that references this issue
on Mar 18, 2026
I have a laptop running a Penryn CPU (Intel T4400), Fedora 21 x86_64 and Node.js installed from the official repositories (currently v0.10.33).
The only line of code in my app is:
And this happens:
PS: This is different from #424 because it happens on a different machine. Infact #424 happened after I attempted to run the code on a different machine (i.e, google compute cloud).