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.

Failed to map segment from shared object

See original GitHub issue

Error code:

$ gulp
module.js:435
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: /xxx/xxxx/xxx/node_modules/node-sass/vendor/linux-x64-46/binding.node: failed to map segment from shared object
    at Error (native)
    at Object.Module._extensions..node (module.js:435:18)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/xxx/xxxx/xxx/node_modules/node-sass/lib/index.js:24:15)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)

System info:

npm -v 
3.5.2
node -v
v4.2.6
node -p process.versions
{ http_parser: '2.5.0',
  node: '4.2.6',
  v8: '4.5.103.35',
  uv: '1.8.0',
  zlib: '1.2.8',
  ares: '1.10.1-DEV',
  icu: '55.1',
  modules: '46',
  openssl: '1.0.2g-fips' }
node -p process.platform
linux
node -p process.arch
x64

"gulp-sass": "^2.3.2",

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

4reactions
michmzrcommented, Oct 14, 2016

I resolved my problem by change in configuration of /etc/fstab. I have a few mounted partitions on the server. One was for /usr, other is for /var/www, where I have my web projects. I had to give flash data=exec, and then reboot system, reinstall node_modules in project directory.

UUID="b0d7a164-2536-4c2a-98f7-cdc6c3107c45" /var/www ext4 rw,relatime,data=ordered,exec 0 2

3reactions
K4LiNcommented, Oct 21, 2016

Thanks @michmzr! That solved mine issue. I am using ‘users’ option and it’s worth mention here that:

User mounted partitions, e.g. when using the ‘user’ or ‘users’ mount options in the /etc/fstab file, are done with the ‘noexec’ mount option by default for security reasons. Solution: Add the ‘exec’ mount option to the end of the mount options. It’s important that the option to be the last one, otherwise other mount option can over judge its effect.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What are possible causes of "failed to map segment from ...
I have put all the shared libraries that they are dependent on in the same directory, including ld-linux.so.3. I run the executables by...
Read more >
What does a "failed to map segment from shared object" error ...
It's probably because you don't give an example; a possible cause could be a mismatch between a program and the dynamic libraries it's...
Read more >
IDL CALL_EXTERNAL error: Failed to map segment from ...
Topic: Problem description. Some IDL users on Linux may encounter a error when accessing a remotely located shared library file with IDL CALL_EXTERNAL...
Read more >
ERROR: "failed to map segment from shared object - Search
This issue happens when the exec flag is not set on /tmp directory. 1) For Solution, enter CR with a Workaround if a...
Read more >
failed to map segment from shared object error on start #1339
When I run docker-compose --version on a host with noexec set on /tmp I get the following error: docker-compose: error while loading shared...
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