question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`Illegal instruction (core dumped)` on Alpine 3.8

See original GitHub issue

Related to https://github.com/lovell/sharp-libvips/issues/13 (by mistake, closing the other issue).

Was able to repro:

node -e "require('farmhash').hash32('sdflkjsdf')"

The most puzzling thing is why all the sudden this is happening.

Verified performing an npm rebuild farmhash resolved. Probably more of an issue from my end as to why different instruction sets are supported between the docker build environment and the release environment. But i’d at least like to better understand the exact difference and perhaps the pre-built could work around the issue?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lovellcommented, Nov 28, 2018

Prebuilt binaries are not currently provided for musl-based Linux such as Alpine.

If the build host and runtime target differ you can specify the target architecture at compile time:

CXXFLAGS="-march=ivybridge" npm install

I suspect you have just started using build servers with support for AVX2 intrinsics.

0reactions
asilvascommented, Nov 28, 2018

Appears to be an ordering of instructions problem since the default config already supplies -march=native. Going the route of only adding opt-out instructions (ala -mno-avx2 -mno-bmi2) seems to do the trick so far.

I’ll close this topic for now, but perhaps others will find it of use. Thanks again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Illegal instruction (core dumped) for every installed packages ...
I provide /home/su/miniconda3 folder to complete installing miniconda3. Then I create an environment conda create -n myenv python=3.8. I checked ...
Read more >
The Strange Case Of The Illegal Instruction - Tao of Mac
The Strange Case Of The Illegal Instruction ... finding that my latest container crashed with an Illegal instruction (core dumped) message.
Read more >
[Solved]-pandas to_hdf function get Illegal instruction-docker
What does Illegal Instruction 4 mean with docker-compose on a Mac? How to solve tf_serving_entrypoint.sh: line 3: 6 Illegal instruction (core dumped) when ......
Read more >
Illegal Instruction - Bug Report - Losant Forums
The Illegal Instruction (core dumped) error is limited to running the non-alpine version 1.10.0 or 1.11.0 of the Losant Edge Agent on an ......
Read more >
" Illegal instruction (core dumped)" Xavier
when i import numpy on python3 shell, it says " Illegal instruction (core dumped)" on xavier.How can i solve this problem? my pip3...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found