distributions: v0.10.33 segfaults on Raspberry Pi with Raspbian Wheezy (2014-09-09)

I followed the Debian and Ubuntu based Linux distributions instructions.

When I run node or npm a segmentation fault occurs.

pi@raspberrypi ~ $ node -v
Segmentation fault
pi@raspberrypi ~ $ npm -v
Segmentation fault

GDB output:

pi@raspberrypi ~ $ gdb /usr/bin/node
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/node...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/node 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x001e8fd2 in DES_xcbc_encrypt ()
(gdb) bt
#0  0x001e8fd2 in DES_xcbc_encrypt ()
(gdb) 

Install output:

pi@raspberrypi ~ $ sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  rlwrap
The following NEW packages will be installed:
  nodejs rlwrap
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/5,671 kB of archives.
After this operation, 17.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously unselected package rlwrap.
(Reading database ... 78080 files and directories currently installed.)
Unpacking rlwrap (from .../rlwrap_0.37-3_armhf.deb) ...
Selecting previously unselected package nodejs.
Unpacking nodejs (from .../nodejs_0.10.33-2nodesource1~wheezy1_armhf.deb) ...
Processing triggers for man-db ...
Setting up rlwrap (0.37-3) ...
update-alternatives: using /usr/bin/rlwrap to provide /usr/bin/readline-editor (readline-editor) in auto mode
Setting up nodejs (0.10.33-2nodesource1~wheezy1) ...

Ran a sudo apt-get update && sudo apt-get upgrade before node setup/install.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 23 (5 by maintainers)

Most upvoted comments

The instructions supplied by @rvagg don’t seem to work on a full Jessie build as opposed to the light version working as reported by @aburgd.

Also, @dmiddlecamp, I’m presumably being stupid, but how did you install from that tarball? The readme says to do ./configure, but there is no configure or makefile or anything 😒

Edit: Oh, that was a stupid question 😃 just needs putting into /usr/local. For anyone else that this might be helpful for,

wget http://nodejs.org/dist/v4.2.4/node-v4.2.4-linux-armv6l.tar.gz
cd usr/local
sudo tar xzvf ~/node-v4.2.4-linux-armv6l.tar.gz --strip=1

This goes and gets node v4.2.4 using wget and puts it in the home folder, changes to usr/local where we want to put node so we can call it from the command line using “node”, and then uncompresses the archive. The strip command is to stop it from being uncompresses into a folder called “node-v4.2.4-linux-armv6l.tar.gz”.

By the way, Adafruit has their own builds for Node.js. See: https://learn.adafruit.com/node-embedded-development/installing-node-dot-js