title: Debugging Python Crash
body: <p>I am building Python 2.6 4 from source on a Linux server and am experiencing a Segmentation Fault when running the tests (make test) (test_hashlib.py and test_hmac.py).  When I opened the core dump file in gdb, I am told that the error is at <code>0x00002b73379ac446 in ??</code>.  I then recompiled python with both my CFLAGS and CPPFLAGS set to -g to enable debug symbols and reran the failing test.  When I opened the core dump file in gdb, I got the same useless stuff as I got before enabling debug symbols.  I then tried to run python within gdb, but go the same result.</p>
  
  <p>Here is the script (install-python.sh) that I used to build and install Python:</p>
  
  <pre><code>#!/bin/sh
  
  VER=2.6.4
  
  wget http://www.python.org/ftp/python/${VER}/Python-${VER}.tar.bz2
  tar -xjf Python-${VER}.tar.bz2
  cd Python-${VER}
  export CFLAGS="-g"
  export CPPFLAGS="${CFLAGS}"
  ./configure --prefix=${HOME}/packages/python --exec-prefix=${HOME}/packages/python
  make &amp;&amp; make test
  make install
  cd ..
  #rm -rf Python-${VER}*
  </code></pre>
  
  <p>Does anyone know how to get a usable backtrace out of my hand-rolled Python?</p>