title: getting "Segmentation fault: 11" from NodeJS after 4.0 update
body: <p>I just reinstalled NodeJS. Prior to the reinstall, when I ran <code>node -v</code> I got a version number that said something like "0.2.x"... It was a weird number. And since I read this morning Node was just updated to version 4.x.x I thought I should update it. Also, I was having other problems, so I thought that this might be the reason for that.</p>
  
  <p>When I run the following server.js I get the following console print out. </p>
  
  <p>server.js...</p>
  
  <pre><code>var express = require('express');
  var mongoose = require('mongoose');
  var bodyParser = require('body-parser');
  var methodOverride = require('method-override');
  var _ = require('lodash');
  
  // Create the application.
  var app = express();
  
  // Add Middleware necessary for REST API's
  app.use(bodyParser.urlencoded({extended: true}));
  app.use(bodyParser.json());
  app.use(methodOverride('X-HTTP-Method-Override'));
  
  // CORS Support
  app.use(function(req, res, next) {
    res.header('Access-Control-Allow-Origin', '*');
    res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
    res.header('Access-Control-Allow-Headers', 'Content-Type');
    next();
  });
  
  // Connect to MongoDB
  mongoose.connect('mongo connection string......');
  mongoose.connection.once('open', function() {
  
    // Load the models.
    app.models = require('./models/index');
  
    // Load the routes.
    var routes = require('./routes');
    _.each(routes, function(controller, route) {
      app.use(route, controller(app, route));
    });
  
    console.log('Listening on port 3000...');
    app.listen(3000);
  });
  </code></pre>
  
  <p>The console prints the following after I run <code>node --debug server.js</code></p>
  
  <pre><code>Debugger listening on port 5858
  Segmentation fault: 11
  </code></pre>
  
  <p>Edit: I have another project that is based off of MEANJS. When I run the <code>Gruntfile.js</code> I get a <code>Segmentation fault: 11</code> from the console.</p>
  
  <p>Edit #2: I just downgraded to node v0.12.7 and things seem to be working normal... </p>