Segmentation fault

327 views
Skip to first unread message

jdeighan

unread,
Jul 6, 2012, 12:06:53 PM7/6/12
to nodejs
I'm getting a segmentation fault trying to "make" Node v0.8.1 from
source. OS is Slackware linux 13.37. I simply downloaded the tar.gz
file, expanded it, cd'd to the node directory, ran ./configure, then
make as instructed in the book "Hands-on Node.js". I used 'su' to
become root and did all this from the /root directory. The tail end of
the output is:

CXX(target) /root/node-v0.8.1/out/Release/obj.target/v8_base/deps/v8/
src/x64/regexp-macro-assembler-x64.o
CXX(target) /root/node-v0.8.1/out/Release/obj.target/v8_base/deps/v8/
src/x64/stub-cache-x64.o
CXX(target) /root/node-v0.8.1/out/Release/obj.target/v8_base/deps/v8/
src/platform-linux.o
CXX(target) /root/node-v0.8.1/out/Release/obj.target/v8_base/deps/v8/
src/platform-posix.o
ACTION postmortem-metadata_gen-postmortem-metadata /root/node-v0.8.1/
out/Release/obj/gen/debug-support.cc
CXX(target) /root/node-v0.8.1/out/Release/obj.target/v8_base/gen/
debug-support.o
AR(target) /root/node-v0.8.1/out/Release/obj.target/deps/v8/tools/
gyp/libv8_base.a
CXX(target) /root/node-v0.8.1/out/Release/obj.target/v8_nosnapshot/
gen/libraries.o
CXX(target) /root/node-v0.8.1/out/Release/obj.target/v8_nosnapshot/
gen/experimental-libraries.o
CXX(target) /root/node-v0.8.1/out/Release/obj.target/v8_nosnapshot/
deps/v8/src/snapshot-empty.o
AR(target) /root/node-v0.8.1/out/Release/obj.target/deps/v8/tools/
gyp/libv8_nosnapshot.a
CXX(target) /root/node-v0.8.1/out/Release/obj.target/mksnapshot/deps/
v8/src/mksnapshot.o
LINK(target) /root/node-v0.8.1/out/Release/mksnapshot
LINK(target) /root/node-v0.8.1/out/Release/mksnapshot: Finished
ACTION v8_snapshot_run_mksnapshot /root/node-v0.8.1/out/Release/
obj.target/v8_snapshot/geni/snapshot.cc
/bin/sh: line 1: 1739 Segmentation fault "/root/node-v0.8.1/out/
Release/mksnapshot" --log-snapshot-positions --logfile "/root/node-
v0.8.1/out/Release/obj.target/v8_snapshot/geni/snapshot.log" "/root/
node-v0.8.1/out/Release/obj.target/v8_snapshot/geni/snapshot.cc"
make[1]: *** [/root/node-v0.8.1/out/Release/obj.target/v8_snapshot/
geni/snapshot.cc] Error 139
make[1]: Leaving directory `/root/node-v0.8.1/out'
make: *** [node] Error 2

Any hints on how to proceed would be greatly appreciated.

Ben Noordhuis

unread,
Jul 6, 2012, 12:16:44 PM7/6/12
to nod...@googlegroups.com
Can you try the HEAD of the v0.8 branch? It looks like a compiler bug
that we work around now.

John Deighan

unread,
Jul 6, 2012, 12:29:49 PM7/6/12
to nod...@googlegroups.com
I would be glad to, but I don't know how to retrieve it (I just
downloaded what I used from nodejs.org/dist). If you can send me command
lines to use to retrieve the HEAD code, I'll give it a try, and post the
results to Google Groups so others know the solution.

On 7/6/2012 12:16 PM, Ben Noordhuis wrote:
>> ACTION v8_snapshot_run_mksnapshot/root/node-v0.8.1/out/Release/

Ryan Schmidt

unread,
Jul 6, 2012, 12:41:49 PM7/6/12
to nod...@googlegroups.com
On Jul 6, 2012, at 11:29, John Deighan wrote:

> I would be glad to, but I don't know how to retrieve it (I just downloaded what I used from nodejs.org/dist). If you can send me command lines to use to retrieve the HEAD code, I'll give it a try, and post the results to Google Groups so others know the solution.

You can always download the latest development zipball by visiting:

https://github.com/joyent/node

and clicking the "Zip" button near the upper left. Or if you prefer a tarball:

https://github.com/joyent/node/tarball/master

As I posted here some days ago, I'm having the same crash on OS X 10.5, and am now also trying to build a newer version from the repository.

Reply all
Reply to author
Forward
0 new messages