<p>My system env: </p>

<p>$ uname -r<br>
4.1.6-100.fc21.x86_64<br>
$ rpm -q offlineimap<br>
offlineimap-6.5.5-2.fc21.noarch<br>
$ rpm -q krb5-workstation<br>
krb5-workstation-1.12.2-17.fc21.x86_64</p>

<p>When start offlineimap without exec <code>kinit</code>, it works well. But when exec <code>kinit</code>, it crashed</p>

<p>$ offlineimap -a test<br>
OfflineIMAP 6.5.5<br>
  Licensed under the GNU GPL v2+ (v2 or any later version)<br>
Account sync redhat:<br>
 *** Processing account test<br>
 Establishing connection to mail.test.com:993<br>
*** Error in `/usr/bin/python': free(): invalid pointer: 0x00007fbcc088da60 ***<br>
======= Backtrace: =========<br>
/lib64/libc.so.6(+0x77d9e)[0x7fbccf0a0d9e]<br>
/lib64/libc.so.6(cfree+0x5b5)[0x7fbccf0ac9f5]<br>
/lib64/libgssapi_krb5.so.2(gss_release_buffer+0x3c)[0x7fbcc71a769c]<br>
/home/Liu/.python-eggs/pykerberos-1.1.8-py2.7-linux-x86_64.egg-tmp/kerberos.so(authenticate_gss_client_wrap+0x141)[0x7fbcc30fd071]<br>
/home/Liu/.python-eggs/pykerberos-1.1.8-py2.7-linux-x86_64.egg-tmp/kerberos.so(+0x2eb7)[0x7fbcc30faeb7]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5f6e)[0x7fbccfdf3a5e]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5106)[0x7fbccfdf2bf6]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5106)[0x7fbccfdf2bf6]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x820)[0x7fbccfdf4410]<br>
/lib64/libpython2.7.so.1.0(+0x6f5dc)[0x7fbccfd805dc]<br>
/lib64/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7fbccfd5b903]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x3570)[0x7fbccfdf1060]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x820)[0x7fbccfdf4410]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5004)[0x7fbccfdf2af4]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x820)[0x7fbccfdf4410]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5004)[0x7fbccfdf2af4]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5106)[0x7fbccfdf2bf6]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5106)[0x7fbccfdf2bf6]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5106)[0x7fbccfdf2bf6]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5106)[0x7fbccfdf2bf6]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5106)[0x7fbccfdf2bf6]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x820)[0x7fbccfdf4410]<br>
/lib64/libpython2.7.so.1.0(+0x6f6bd)[0x7fbccfd806bd]<br>
/lib64/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7fbccfd5b903]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x3570)[0x7fbccfdf1060]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x820)[0x7fbccfdf4410]<br>
/lib64/libpython2.7.so.1.0(+0x6f5dc)[0x7fbccfd805dc]<br>
/lib64/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7fbccfd5b903]<br>
/lib64/libpython2.7.so.1.0(+0x59815)[0x7fbccfd6a815]<br>
/lib64/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7fbccfd5b903]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x3aa5)[0x7fbccfdf1595]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x820)[0x7fbccfdf4410]<br>
/lib64/libpython2.7.so.1.0(+0x6f5dc)[0x7fbccfd805dc]<br>
/lib64/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7fbccfd5b903]<br>
/lib64/libpython2.7.so.1.0(+0x59815)[0x7fbccfd6a815]<br>
/lib64/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7fbccfd5b903]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x3aa5)[0x7fbccfdf1595]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5106)[0x7fbccfdf2bf6]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5106)[0x7fbccfdf2bf6]<br>
/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x820)[0x7fbccfdf4410]<br>
/lib64/libpython2.7.so.1.0(+0x6f5dc)[0x7fbccfd805dc]<br>
/lib64/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7fbccfd5b903]<br>
/lib64/libpython2.7.so.1.0(+0x59815)[0x7fbccfd6a815]<br>
/lib64/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7fbccfd5b903]<br>
/lib64/libpython2.7.so.1.0(PyEval_CallObjectWithKeywords+0x47)[0x7fbccfded4d7]<br>
/lib64/libpython2.7.so.1.0(+0x1120a2)[0x7fbccfe230a2]<br>
/lib64/libpthread.so.0(+0x752a)[0x7fbccfafc52a]<br>
/lib64/libc.so.6(clone+0x6d)[0x7fbccf12922d]<br>
======= Memory map: ========<br>
00400000-00401000 r-xp 00000000 08:02 5771430                            /usr/bin/python2.7<br>
00600000-00601000 r--p 00000000 08:02 5771430                            /usr/bin/python2.7<br>
00601000-00602000 rw-p 00001000 08:02 5771430                            /usr/bin/python2.7<br>
015b9000-0185f000 rw-p 00000000 00:00 0                                  [heap]<br>
7fbca8000000-7fbca8021000 rw-p 00000000 00:00 0<br>
7fbca8021000-7fbcac000000 ---p 00000000 00:00 0<br>
7fbcac000000-7fbcac021000 rw-p 00000000 00:00 0<br>
7fbcac021000-7fbcb0000000 ---p 00000000 00:00 0<br>
7fbcb0000000-7fbcb0021000 rw-p 00000000 00:00 0<br>
7fbcb0021000-7fbcb4000000 ---p 00000000 00:00 0<br>
7fbcb4000000-7fbcb402f000 rw-p 00000000 00:00 0<br>
7fbcb402f000-7fbcb8000000 ---p 00000000 00:00 0<br>
...[too long, snipped, tell me if you need it]..<br>
7fbccfaf5000-7fbccfb0c000 r-xp 00000000 08:02 5767855                    /usr/lib64/libpthread-2.20.soAborted (core dumped</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OfflineIMAP/offlineimap/issues/257">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AKFSEA-O-GkufSVRK7Ze2U2s30IgNCFWks5o5cZEgaJpZM4GLBlQ.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OfflineIMAP/offlineimap/issues/257"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>