-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
segfault with v3.1.0 and possibly --harmony-arrow-functions #2561
segfault with v3.1.0 and possibly --harmony-arrow-functions #2561
Comments
Can you produce a minimal, reproducible example? What platform is this on? I just tried a simple script (with |
It seems to work fine here as well with a smaller sample, The following script works fine on 3.2.0 : 'use strict'
let callback = (name) => {
console.log("hello " + name)
}
callback("shai") But specifically when running my server (which works fine on 2.5.0 as well as 3.0.0) , it crashes with a Segfault. Is there any way to get more verbose output so I can give a better direction for this? Thank you |
What OS is that? Try running it through either |
See #1655 just in case. |
Not sure if related, but found an issue where txt ~/src/dlivr/api master
❯ npm start
> [email protected] 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
> [email protected] 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 can you open a new issue? Also, can both of you use either lldb or gdb, or mdb to get a thorough breakdown of what is happening in the segfault? Feel free to ask if you need more info, setting this stuff up isn't particularly trivial. |
@Fishrock123 I'm willing to run that, but could you point me in the right direction on how to set that up? Thanks! |
Been a while since I did it. @thlorenz has a guide here for lldb on OS X: https://gist.github.com/thlorenz/30bf0a3f67b1d97b2945 (Not sure if it is up-to-date, when I did it I didn't patch lldb and it worked?) |
@freak4pc Could you let us know what OS you're seeing this on at least? :) |
Sorry guys, I'm pretty much flooded with work now. |
is this still an issue in the latest stable (v4.2.1 as of now)? |
Closing due to inactivity and the fact that arrow functions are no longer behind a flag as of v4. If this is still an issue please feel to reopen. Thanks! |
When trying to run the following
iojs --harmony-arrow-functions dreamdate.js
This issue isn't happening in io.js v2.5.0 , and also doesn't happen on io.js v3.0.
Starts from v3.1.0.
The text was updated successfully, but these errors were encountered: