Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Segmentation fault: 11ation error when starting Meteor server

When I try to start my Meteor server, I get a segmentation fault that says:

Segmentation fault: 11ation

I am unsure as to why this is happening, and am trying to find what part of my code may be causing this to happen. I can't post everything here from my code, but any ideas on where this may be coming from?

like image 589
David Mckee Avatar asked Jan 09 '23 00:01

David Mckee


1 Answers

It turns out I had Meteor running in the background somehow (even after a restart).

Then look for meteor in your running processes:

ps -x | grep meteor

This gave me the following output:

 2080 ttys000    0:00.44 /Users/ruben/.meteor/packages/meteor-tool/.1.0.40.dr5jcc++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/mongodb/bin/mongod --bind_ip 127.0.0.1 --smallfiles --nohttpinterface --port 3001 --dbpath /Users/ruben/Documents/projects/crewafrica/.meteor/local/db --oplogSize 8 --replSet meteor
 2141 ttys000    0:00.00 grep meteor

So then I do:

kill -s KILL 2080
meteor reset
meteor
Now everything works!

Credit to this answer

like image 91
David Mckee Avatar answered Jan 31 '23 00:01

David Mckee