Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECONNREFUSED on startup segfaults on 3.3.0 #2621

Closed
yoshuawuyts opened this issue Aug 31, 2015 · 4 comments
Closed

ECONNREFUSED on startup segfaults on 3.3.0 #2621

yoshuawuyts opened this issue Aug 31, 2015 · 4 comments
Labels
question Issues that look for answers.

Comments

@yoshuawuyts
Copy link

originally posted here #2561 (comment)

Found an issue where 0.12.x gives an ECONNREFUSED error, 3.2.0 segfaults.

img
screen shot 2015-08-31 at 12 40 41

txt

~/src/dlivr/api master
❯ npm start

> api@1.0.0 start /Users/yw/src/dlivr/api
> node .

zsh: segmentation fault  npm start

~/src/dlivr/api master
❯ node -v
v3.2.0

~/src/dlivr/api master
❯ nvm use 0.12
^[kkNow using node v0.12.7 (npm v2.11.3)

~/src/dlivr/api master
❯ npm start

> api@1.0.0 start /Users/yw/src/dlivr/api
> node .

{"name":"log","type":"static","message":"debug"}
{"name":"port","message":1337,"type":"static"}
{"name":"env","message":"development","type":"static"}
Knex:Error Pool2 - Error: connect ECONNREFUSED
Knex:Error Pool2 - Error: connect ECONNREFUSED
^C

~/src/dlivr/api master  2m 20s
❯ nvm use 3
Now using io.js v3.2.0 (npm v2.13.3)
@yoshuawuyts
Copy link
Author

In order to start the app properly pgsql must be running. The issue here is that node@3 segfaults instead of giving a meaningful error.

@yoshuawuyts
Copy link
Author

Hm, apparently it also fails even if pgsql is running. Might be due to binaries compiled on 0.12 not working on 3.3.

@mscdex
Copy link
Contributor

mscdex commented Aug 31, 2015

Yes, you'll need to re-compile any addons if you switch between any of node 0.10, node 0.12, or any major io.js version (1.x, 2.x, 3.x).

@yoshuawuyts
Copy link
Author

@mscdex yeah, I figured. Think this issue is best closed (can't think of an easy fix), but I do think that it'd be nice to think of a better way to signal to a user why the code segfaulted.

Perhaps a stack trace of some sorts? Though I'm not sure that's possible, I assume it'd be implemented already if it was.

Maybe a way to check if the deps that are being run were compiled with a certain node version? I'm not sure.

@ChALkeR ChALkeR added the question Issues that look for answers. label Aug 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issues that look for answers.
Projects
None yet
Development

No branches or pull requests

3 participants