Open ghost opened 12 years ago
several options here:
Thanks!
Thanks for your reply.
$ gdb python -c python2.7.core
GNU gdb 6.3
Copyright 2004 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 "amd64-unknown-openbsd5.1"...(no debugging symbols found)
Core was generated by `python2.7'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libpthread.so.13.3...done. Loaded symbols for /usr/lib/libpthread.so.13.3 Reading symbols from /usr/local/lib/libpython2.7.so.0.0...done. Loaded symbols for /usr/local/lib/libpython2.7.so.0.0 Reading symbols from /usr/lib/libutil.so.11.2...done. Loaded symbols for /usr/lib/libutil.so.11.2 Reading symbols from /usr/lib/libstdc++.so.54.0...done. Loaded symbols for /usr/lib/libstdc++.so.54.0 Reading symbols from /usr/lib/libm.so.7.0...done. Loaded symbols for /usr/lib/libm.so.7.0 Symbols already loaded for /usr/lib/libpthread.so.13.3 Reading symbols from /usr/lib/libc.so.62.0...done. Loaded symbols for /usr/lib/libc.so.62.0 Reading symbols from /usr/libexec/ld.so...done. Loaded symbols for /usr/libexec/ld.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/time.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/time.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/strop.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/strop.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/zlib.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/zlib.so Reading symbols from /usr/lib/libz.so.4.1...done. Loaded symbols for /usr/lib/libz.so.4.1 Reading symbols from /usr/local/lib/python2.7/lib-dynload/_collections.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/_collections.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/operator.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/operator.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/itertools.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/itertools.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/_bisect.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/_bisect.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/_heapq.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/_heapq.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/_functools.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/_functools.so Reading symbols from /root/.python-eggs/pytrace-0.2.1-py2.7-openbsd-5.1-amd64.egg-tmp/pytrace/tracer.so...done. Loaded symbols for /root/.python-eggs/pytrace-0.2.1-py2.7-openbsd-5.1-amd64.egg-tmp/pytrace/tracer.so Reading symbols from /usr/local/lib/libprotobuf-c.so.0.0...done. Loaded symbols for /usr/local/lib/libprotobuf-c.so.0.0 Reading symbols from /usr/local/lib/libsqlite3.so.16.0...done. Loaded symbols for /usr/local/lib/libsqlite3.so.16.0 Reading symbols from /usr/local/lib/python2.7/site-packages/urwid/str_util.so...done. Loaded symbols for /usr/local/lib/python2.7/site-packages/urwid/str_util.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/array.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/array.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/_locale.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/_locale.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/termios.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/termios.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/select.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/select.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/fcntl.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/fcntl.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/_struct.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/_struct.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/binascii.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/binascii.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/cStringIO.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/cStringIO.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/cPickle.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/cPickle.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/_hashlib.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/_hashlib.so Reading symbols from /usr/lib/libssl.so.17.1...done. Loaded symbols for /usr/lib/libssl.so.17.1 Reading symbols from /usr/lib/libcrypto.so.20.1...done. Loaded symbols for /usr/lib/libcrypto.so.20.1 Reading symbols from /usr/local/lib/python2.7/lib-dynload/math.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/math.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/datetime.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/datetime.so Reading symbols from /usr/local/lib/python2.7/site-packages/sqlalchemy/cprocessors.so...done. Loaded symbols for /usr/local/lib/python2.7/site-packages/sqlalchemy/cprocessors.so Reading symbols from /usr/local/lib/python2.7/site-packages/sqlalchemy/cresultproxy.so...done. Loaded symbols for /usr/local/lib/python2.7/site-packages/sqlalchemy/cresultproxy.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/_socket.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/_socket.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/_ssl.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/_ssl.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/_random.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/_random.so Reading symbols from /usr/local/lib/python2.7/lib-dynload/grp.so...done. Loaded symbols for /usr/local/lib/python2.7/lib-dynload/grp.so Reading symbols from /usr/local/lib/python2.7/site-packages/psycopg2/_psycopg.so...done. Loaded symbols for /usr/local/lib/python2.7/site-packages/psycopg2/_psycopg.so Reading symbols from /usr/local/lib/libpq.so.5.4...done. Loaded symbols for /usr/local/lib/libpq.so.5.4 Reading symbols from /usr/lib/libcom_err.so.18.0...done. Loaded symbols for /usr/lib/libcom_err.so.18.0
) at /usr/src/lib/libc/string/bcopy.c:115 115 TLOOP1(--dst = --src);
File /usr/src/lib/libc/string/bcopy.c exists on system, you can get a copy here: http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/string/#dirlist
# ls -l /usr/src/lib/libc/string/bcopy.c
-rw-r--r-- 1 root wsrc 3830 Aug 8 2005 /usr/src/lib/libc/string/bcopy.c
could you invoke the 'bt' command so i'll get a full stack trace. all I can see here is that it crashed within memcopy. what version of openbsd are you using? i'll install one myself.
Here it is:
(gdb) bt
) at /usr/src/lib/libc/string/bcopy.c:115
from /root/.python-eggs/pytrace-0.2.1-py2.7-openbsd-5.1-amd64.egg-tmp/pytrace/tracer.so
from /root/.python-eggs/pytrace-0.2.1-py2.7-openbsd-5.1-amd64.egg-tmp/pytrace/tracer.so
from /root/.python-eggs/pytrace-0.2.1-py2.7-openbsd-5.1-amd64.egg-tmp/pytrace/tracer.so
from /root/.python-eggs/pytrace-0.2.1-py2.7-openbsd-5.1-amd64.egg-tmp/pytrace/tracer.so
(gdb)
Hi Alon,
I uploaded the core file here: http://173.254.22.21/python2.7.core.bz2 (about 5.5MB), you can debug it directly. It's generated on a testing machine, so there's no sensitive info at all.
I'm running OpenBSD 5.1 (amd64) in a VMware machine. Thanks for your help.
I try invoking a web.py app, but got a core dump immediately:
Anything i can do to see why it terminates?