GeezerVison is showing github.com — illegal hardware instruction (core dumped) on importing gcloud · Issue #425 · googleapis/google-cloud-node
illegal hardware instruction (core dumped) on importing gcloud #425Labels 🚨This issue needs some love.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DescriptionI 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:
var gcloud = require('gcloud');
And this happens:
zsh: illegal hardware instruction (core dumped) node gcloud.js
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). Activityryanseys commented on Mar 4, 2015 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 wingedrhino commented on Mar 5, 2015 Looks like this happened because of sse4_crc32.
Setup:
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. ryanseys commented on Mar 17, 2015 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. ryanseys commented on Mar 18, 2015 anandsuresh commented on Apr 2, 2015 @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. ryanseys commented on Apr 29, 2015 @mahtuag Can you confirm that the latest version in master no longer gives you the illegal hardware instruction (core dumped) issue? Thanks! wingedrhino commented on May 3, 2015 @ryanseys Sorry about the delay. Issue is still reproducible. anandsuresh commented on May 3, 2015 @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 ryanseys commented on May 3, 2015 You can rebuild your dependencies using npm rebuild. wingedrhino commented on May 5, 2015 @anandsuresh @ryanseys rebuilding did not seem to help. Next I re-installed gcloud and it pulled in recent changes. Issue is gone now. anandsuresh commented on May 5, 2015 ofekd commented on May 11, 2015 Happens here as well:
> require('sse4_crc32')
zsh: illegal hardware instruction (core dumped) node
I am running Arch linux, Node 0.12.2, Intel Core2Quad Q6600, latest gcloud.
Thanks
MetadataMetadata🚨This issue needs some love.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DevelopmentNo branches or pull requestsIssue actions
|