Skip to content

illegal hardware instruction (core dumped) on importing gcloud #425

Description

@wingedrhino

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:

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).

Activity

  1. ryanseys commented on Mar 4, 2015

    @ryanseys
    Contributor

    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

  2. wingedrhino commented on Mar 5, 2015

    @wingedrhino
    Author

    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.

  3. ryanseys commented on Mar 17, 2015

    @ryanseys
    Contributor

    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.

  4. ryanseys commented on Mar 18, 2015

    @ryanseys
    Contributor

    Flawed fallback detection filed here: https://github.com/Voxer/sse4_crc32/issues/24

  5. anandsuresh commented on Apr 2, 2015

    @anandsuresh
    Contributor

    @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.

  6. ryanseys commented on Apr 29, 2015

    @ryanseys
    Contributor

    @mahtuag Can you confirm that the latest version in master no longer gives you the illegal hardware instruction (core dumped) issue? Thanks!

  7. wingedrhino commented on May 3, 2015

    @wingedrhino
    Author

    @ryanseys Sorry about the delay. Issue is still reproducible.

  8. anandsuresh commented on May 3, 2015

    @anandsuresh
    Contributor

    @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

  9. ryanseys commented on May 3, 2015

    @ryanseys
    Contributor

    You can rebuild your dependencies using npm rebuild.

  10. wingedrhino commented on May 5, 2015

    @wingedrhino
    Author

    @anandsuresh @ryanseys rebuilding did not seem to help. Next I re-installed gcloud and it pulled in recent changes. Issue is gone now.

  11. anandsuresh commented on May 5, 2015

    @anandsuresh
    Contributor

    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)
    .

  12. ofekd commented on May 11, 2015

    @ofekd

    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

  13. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on May 11, 2015
  14. added this to the Core Stable milestone on May 11, 2015
  15. 34 remaining items

  16. added a commit that references this issue on Feb 2, 2026
  17. added a commit that references this issue on Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🚨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.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions