Reputation: 31
when i open a new terminal window in OS X and just type bash, i got a segmentation fault:11 all the time. The problem seems to be specific to my machine as i have tried it on another machine and it worked fine. bash gives out segfault 11
Upvotes: 3
Views: 9281
Reputation: 531325
You had infinite recursion. When bash
started, it executed .bashrc
, which sources .bashrc
, which sources .bashrc
, etc. Eventually, you run out of memory somewhere, because bash
has to remember where in the previous iteration of .bashrc
it is so it can continue after the next one returns, which leads to the segmentation fault.
Upvotes: 4