title: /bin/bash giving a segmentation fault upon startup
body: <p>I am getting a segmentation fault from bash when I try to SSH to a remote server (running RHEL 4.4.5-6). After providing my credentials, the SSH client spits back the "Last login: ..." information, and then just hangs. </p>
  
  <p>Out of curiosity, I pressed Ctrl-C and was able to get to a bash prompt. However, it's not the "usual" prompt that I see (it usually has my username, the server hostname, etc).</p>
  
  <pre><code>login as: xxxxxxx
  xxxxx@xxxx's password:
  Last login: Fri Mar 30 14:33:41 2012 from xxx.xx.xx.xxx
  
  -bash-4.1$ echo $0
  -bash
  -bash-4.1$
  </code></pre>
  
  <p>I tried to run /bin/bash from GDB. After a medium-sized wait time, I finally got a SIGSEGV error:</p>
  
  <pre><code>(gdb) run
  Starting program: /bin/bash
  
  Program received signal SIGSEGV, Segmentation fault.
  0x08067ab5 in yyparse ()
  (gdb)
  </code></pre>
  
  <p>The last (significant) changes that I've made to the system was installing GNU screen (using yum install screen). Screen seemed to hang as well when I tried to start it (I'm assuming because it tried running bash, and got the same segfault).</p>
  
  <p>Edit:</p>
  
  <p>I tried running rpm -V:</p>
  
  <pre><code>-bash-4.1$ rpm -V bash
  -bash-4.1$
  </code></pre>
  
  <p>Here are my .bash* files:</p>
  
  <p>.bashrc:</p>
  
  <pre><code># .bashrc
  
  # Get the aliases and functions
  if [ -f ~/.bashrc ]; then
          . ~/.bashrc
  fi
  
  # User specific environment and startup programs
  </code></pre>
  
  <p>.bash_profile:</p>
  
  <pre><code># .bash_profile
  
  # Get the aliases and functions
  if [ -f ~/.bashrc ]; then
          . ~/.bashrc
  fi
  
  # User specific environment and startup programs
  </code></pre>
  
  <p>.bash_logout:</p>
  
  <pre><code># ~/.bash_logout
  </code></pre>
  
  <p>.bash_history is quite long. I erased it, tried logging in again, and got the same results.</p>