bus error / crash using https

Adam adam_goucher at hotmail.com
Thu Jun 17 19:12:40 CEST 2004


I have an application which interacts with a webserver over https
using client certificates.

Due to a bug in openssl 0.9.6, I upgraded to 0.9.7 and rebuilt python.
Now, when I access the page python is crashing with with a "bus error"
and coring.

Any insite as to what I need to do to fix this? The gdb output is
below.

-adam

[adam at goblin bin]$ gdb /usr/local/bin/python core
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "sparc-sun-solaris2.8"...
Core was generated by `/usr/local/bin/python testdriver.py -g
/home/adam/newport/inferno-iplanet.xml e'.
Program terminated with signal 9, Killed.
Reading symbols from /usr/lib/libresolv.so.2...done.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/librt.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libpthread.so.1...done.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libmp.so.2...done.
Reading symbols from /usr/lib/libaio.so.1...done.
Reading symbols from
/usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...done.
Reading symbols from /usr/lib/libthread.so.1...done.
Reading symbols from
/usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2...
done.
Reading symbols from
/usr/local/lib/python2.3/lib-dynload/math.so...done.
Reading symbols from
/usr/local/lib/python2.3/lib-dynload/_random.so...done.
Reading symbols from
/usr/local/lib/python2.3/lib-dynload/time.so...done.
Reading symbols from
/usr/local/lib/python2.3/lib-dynload/fcntl.so...done.
Reading symbols from
/usr/local/lib/python2.3/lib-dynload/strop.so...done.
Reading symbols from
/home/adam/work/mainline/qa/Scripts/TestDriver-devel/ldapmodules/solaris/_ldap.so...done.
Reading symbols from
/home/adam/work/mainline/qa/Scripts/TestDriver-devel/lib/libldap_r.so.2...done.
Reading symbols from
/home/adam/work/mainline/qa/Scripts/TestDriver-devel/lib/liblber.so.2...done.
Reading symbols from
/home/adam/work/mainline/qa/Scripts/TestDriver-devel/lib/libssl.so.0.9.7...done.
Reading symbols from
/home/adam/work/mainline/qa/Scripts/TestDriver-devel/lib/libcrypto.so.0.9.7...done.
Reading symbols from /usr/lib/libgen.so.1...done.
Reading symbols from
/home/adam/work/mainline/qa/Scripts/TestDriver-devel/lib/libsasl2.so.2...done.
Reading symbols from
/usr/local/lib/python2.3/lib-dynload/binascii.so...done.
Reading symbols from
/usr/local/lib/python2.3/lib-dynload/cStringIO.so...done.
Reading symbols from
/usr/local/lib/python2.3/lib-dynload/_socket.so...done.
Reading symbols from
/usr/local/lib/python2.3/lib-dynload/_ssl.so...done.
Reading symbols from
/usr/local/lib/python2.3/lib-dynload/cPickle.so...done.
Reading symbols from
/usr/local/lib/python2.3/lib-dynload/struct.so...done.
Reading symbols from
/usr/local/lib/python2.3/lib-dynload/pyexpat.so...done.
Reading symbols from
/usr/local/lib/python2.3/lib-dynload/sha.so...done.
Reading symbols from
/usr/local/lib/python2.3/lib-dynload/unicodedata.so...
done.
Reading symbols from
/usr/local/lib/python2.3/lib-dynload/itertools.so...done.
Reading symbols from
/usr/local/lib/python2.3/lib-dynload/array.so...done.
#0  0xfe6a7aa0 in ssl3_read_bytes ()
---Type <return> to continue, or q <return> to quit---
   from /home/adam/work/mainline/qa/Scripts/TestDriver-devel/lib/libssl.so.0.9.7
(gdb) where
#0  0xfe6a7aa0 in ssl3_read_bytes ()
   from /home/adam/work/mainline/qa/Scripts/TestDriver-devel/lib/libssl.so.0.9.7
#1  0xfe6a55c4 in ssl3_read ()
   from /home/adam/work/mainline/qa/Scripts/TestDriver-devel/lib/libssl.so.0.9.7
#2  0xfe6ae9b8 in SSL_read ()
   from /home/adam/work/mainline/qa/Scripts/TestDriver-devel/lib/libssl.so.0.9.7
#3  0xfe481e70 in PySSL_SSLread (self=0x1ddd98, args=0x0)
    at /usr/local/src/Python-2.3.4/Modules/_ssl.c:442
#4  0xcbea0 in PyCFunction_Call (func=0x3669e0, arg=0x2ee050, kw=0x0)
    at Objects/methodobject.c:108
#5  0x80554 in call_function (pp_stack=0xffbee6f0, oparg=3072080)
    at Python/ceval.c:3439
#6  0x7e080 in eval_frame (f=0x1feb28) at Python/ceval.c:2116
#7  0x8078c in fast_function (func=0x34b3f0, pp_stack=0x263ac8, n=1,
na=0,
    nk=1146912) at Python/ceval.c:3518
#8  0x80640 in call_function (pp_stack=0xffbee888, oparg=1)
    at Python/ceval.c:3458
#9  0x7e080 in eval_frame (f=0x263960) at Python/ceval.c:2116
#10 0x7f634 in PyEval_EvalCodeEx (co=0x3484a0, globals=0x0,
locals=0x263960,
    args=0x1f4f78, argcount=1, kws=0x1f4f7c, kwcount=0, defs=0x3498fc,
    defcount=1, closure=0x0) at Python/ceval.c:2663
#11 0x80818 in fast_function (func=0x34b430, pp_stack=0xffbeeaa8, n=1,
na=1,
    nk=0) at Python/ceval.c:3529
#12 0x80640 in call_function (pp_stack=0xffbeeaa8, oparg=1)
    at Python/ceval.c:3458
#13 0x7e080 in eval_frame (f=0x1f4e20) at Python/ceval.c:2116
#14 0x7f634 in PyEval_EvalCodeEx (co=0x3452a0, globals=0x0,
locals=0x1f4e20,
    args=0x38b5cc, argcount=1, kws=0x38b5d0, kwcount=0, defs=0x3498bc,
    defcount=1, closure=0x0) at Python/ceval.c:2663
#15 0x80818 in fast_function (func=0x335d70, pp_stack=0xffbeecc8, n=1,
na=1,
    nk=0) at Python/ceval.c:3529
#16 0x80640 in call_function (pp_stack=0xffbeecc8, oparg=1)
    at Python/ceval.c:3458
#17 0x7e080 in eval_frame (f=0x38b468) at Python/ceval.c:2116
#18 0x7f634 in PyEval_EvalCodeEx (co=0x33d920, globals=0x0,
locals=0x38b468,
    args=0x374dc4, argcount=2, kws=0x374dcc, kwcount=0, defs=0x35b1fc,
    defcount=1, closure=0x0) at Python/ceval.c:2663
#19 0x80818 in fast_function (func=0x35c7b0, pp_stack=0xffbeeee8, n=2,
na=2,
    nk=0) at Python/ceval.c:3529
#20 0x80640 in call_function (pp_stack=0xffbeeee8, oparg=2)
    at Python/ceval.c:3458
#21 0x7e080 in eval_frame (f=0x374c60) at Python/ceval.c:2116
#22 0x7f634 in PyEval_EvalCodeEx (co=0x33d960, globals=0x0,
locals=0x374c60,
    args=0x1780e4, argcount=1, kws=0x1780e8, kwcount=0, defs=0x35b21c,
    defcount=1, closure=0x0) at Python/ceval.c:2663
#23 0x80818 in fast_function (func=0x35c7f0, pp_stack=0xffbef108, n=1,
na=1,
    nk=0) at Python/ceval.c:3529
#24 0x80640 in call_function (pp_stack=0xffbef108, oparg=1)
    at Python/ceval.c:3458
#25 0x7e080 in eval_frame (f=0x177f78) at Python/ceval.c:2116
#26 0x8078c in fast_function (func=0x361670, pp_stack=0x2be170, n=1,
na=0,
    nk=1146912) at Python/ceval.c:3518
---Type <return> to continue, or q <return> to quit---
#27 0x80640 in call_function (pp_stack=0xffbef2a0, oparg=1)
    at Python/ceval.c:3458
#28 0x7e080 in eval_frame (f=0x2bdfd0) at Python/ceval.c:2116
#29 0x8078c in fast_function (func=0x2d5af0, pp_stack=0x1ca698, n=1,
na=0,
    nk=1146912) at Python/ceval.c:3518
#30 0x80640 in call_function (pp_stack=0xffbef438, oparg=1)
    at Python/ceval.c:3458
#31 0x7e080 in eval_frame (f=0x1ca548) at Python/ceval.c:2116
#32 0x7f634 in PyEval_EvalCodeEx (co=0x18cb60, globals=0x0,
locals=0x1ca548,
    args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0,
    closure=0x0) at Python/ceval.c:2663
#33 0x82458 in PyEval_EvalCode (co=0x18cb60, globals=0x1329c0,
locals=0x1329c0)
    at Python/ceval.c:537
#34 0xa5488 in run_node (n=0x122158, filename=0x18cb60 "",
globals=0x1329c0,
    locals=0x1329c0, flags=0xffbef804) at Python/pythonrun.c:1267
#35 0xa5434 in run_err_node (n=0x122158, filename=0x18cb60 "",
    globals=0x1329c0, locals=0x1329c0, flags=0xffbef804)
    at Python/pythonrun.c:1254
#36 0xa5094 in PyRun_FileExFlags (fp=0x116fb0,
    filename=0xffbefa3a "testdriver.py", start=1255872,
globals=0x1329c0,
    locals=0x1329c0, closeit=1, flags=0xffbef804) at
Python/pythonrun.c:1245
#37 0xa39a8 in PyRun_SimpleFileExFlags (fp=0x116fb0,
    filename=0xffbefa3a "testdriver.py", closeit=1, flags=0xffbef804)
    at Python/pythonrun.c:862
#38 0xa4b88 in PyRun_AnyFileExFlags (fp=0x116fb0,
    filename=0xffbefa3a "testdriver.py", closeit=1, flags=0xffbef804)
    at Python/pythonrun.c:659
#39 0x1c430 in Py_Main (argc=5, argv=0xffbef8ec) at Modules/main.c:415
#40 0x1bc68 in main (argc=5, argv=0xffbef8ec) at Modules/python.c:23
(gdb)



More information about the Python-list mailing list