pyglet segfaults on FreeBSD 8.0/amd64/nVidia
Giuseppe Pagnoni
gpagnoni at gmail.com
Wed Apr 14 17:12:38 UTC 2010
Hello,
thank you very much for explaining. So, running "gdb python
python.core", I get the following (not sure whether this part is
useful, but I'll post it anyway):
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libutil.so.8...done.
Loaded symbols for /lib/libutil.so.8
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libthr.so.3...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/lib/python2.6/lib-dynload/_ctypes.so...done.
Loaded symbols for /usr/local/lib/python2.6/lib-dynload/_ctypes.so
Reading symbols from /usr/local/lib/python2.6/lib-dynload/_struct.so...done.
Loaded symbols for /usr/local/lib/python2.6/lib-dynload/_struct.so
Reading symbols from /usr/local/lib/python2.6/lib-dynload/math.so...done.
Loaded symbols for /usr/local/lib/python2.6/lib-dynload/math.so
Reading symbols from /usr/local/lib/python2.6/lib-dynload/_weakref.so...done.
Loaded symbols for /usr/local/lib/python2.6/lib-dynload/_weakref.so
Reading symbols from /usr/local/lib/python2.6/lib-dynload/binascii.so...done.
Loaded symbols for /usr/local/lib/python2.6/lib-dynload/binascii.so
Reading symbols from /lib/libz.so.5...done.
Loaded symbols for /lib/libz.so.5
Reading symbols from /usr/local/lib/python2.6/lib-dynload/_random.so...done.
Loaded symbols for /usr/local/lib/python2.6/lib-dynload/_random.so
Reading symbols from /usr/local/lib/python2.6/lib-dynload/cStringIO.so...done.
Loaded symbols for /usr/local/lib/python2.6/lib-dynload/cStringIO.so
Reading symbols from /usr/local/lib/python2.6/lib-dynload/fcntl.so...done.
Loaded symbols for /usr/local/lib/python2.6/lib-dynload/fcntl.so
Reading symbols from /usr/local/lib/libGL.so.1...done.
Loaded symbols for /usr/local/lib/libGL.so.1
Reading symbols from /usr/local/lib/libnvidia-tls.so.1...done.
Loaded symbols for /usr/local/lib/libnvidia-tls.so.1
Reading symbols from /usr/local/lib/libGLcore.so.1...done.
Loaded symbols for /usr/local/lib/libGLcore.so.1
Reading symbols from /usr/local/lib/libX11.so.6...done.
Loaded symbols for /usr/local/lib/libX11.so.6
Reading symbols from /usr/local/lib/libXext.so.6...done.
Loaded symbols for /usr/local/lib/libXext.so.6
Reading symbols from /usr/local/lib/libxcb.so.2...done.
Loaded symbols for /usr/local/lib/libxcb.so.2
Reading symbols from /usr/local/lib/libXau.so.6...done.
Loaded symbols for /usr/local/lib/libXau.so.6
Reading symbols from /usr/local/lib/libXdmcp.so.6...done.
Loaded symbols for /usr/local/lib/libXdmcp.so.6
Reading symbols from /usr/local/lib/libpthread-stubs.so.0...done.
Loaded symbols for /usr/local/lib/libpthread-stubs.so.0
Reading symbols from /usr/lib/librpcsvc.so.5...done.
Loaded symbols for /usr/lib/librpcsvc.so.5
Reading symbols from /usr/local/lib/libGLU.so.1...done.
Loaded symbols for /usr/local/lib/libGLU.so.1
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /usr/local/lib/python2.6/lib-dynload/strop.so...done.
Loaded symbols for /usr/local/lib/python2.6/lib-dynload/strop.so
Reading symbols from /usr/local/lib/python2.6/lib-dynload/operator.so...done.
Loaded symbols for /usr/local/lib/python2.6/lib-dynload/operator.so
Reading symbols from
/usr/local/lib/python2.6/lib-dynload/_collections.so...done.
Loaded symbols for /usr/local/lib/python2.6/lib-dynload/_collections.so
Reading symbols from /usr/local/lib/python2.6/lib-dynload/unicodedata.so...done.
Loaded symbols for /usr/local/lib/python2.6/lib-dynload/unicodedata.so
Reading symbols from /usr/local/lib/libXinerama.so.1...done.
Loaded symbols for /usr/local/lib/libXinerama.so.1
Reading symbols from /usr/local/lib/python2.6/lib-dynload/select.so...done.
Loaded symbols for /usr/local/lib/python2.6/lib-dynload/select.so
Reading symbols from /usr/local/lib/libgdk-x11-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgdk-x11-2.0.so.0
Reading symbols from /usr/local/lib/libpangocairo-1.0.so.0...done.
Loaded symbols for /usr/local/lib/libpangocairo-1.0.so.0
Reading symbols from /usr/local/lib/libpangoft2-1.0.so.0...done.
Loaded symbols for /usr/local/lib/libpangoft2-1.0.so.0
Reading symbols from /usr/local/lib/libpango-1.0.so.0...done.
Loaded symbols for /usr/local/lib/libpango-1.0.so.0
Reading symbols from /usr/local/lib/libXi.so.6...done.
Loaded symbols for /usr/local/lib/libXi.so.6
Reading symbols from /usr/local/lib/libXrandr.so.2...done.
Loaded symbols for /usr/local/lib/libXrandr.so.2
Reading symbols from /usr/local/lib/libXcursor.so.1...done.
Loaded symbols for /usr/local/lib/libXcursor.so.1
Reading symbols from /usr/local/lib/libXcomposite.so.1...done.
Loaded symbols for /usr/local/lib/libXcomposite.so.1
Reading symbols from /usr/local/lib/libXdamage.so.1...done.
Loaded symbols for /usr/local/lib/libXdamage.so.1
Reading symbols from /usr/local/lib/libXfixes.so.3...done.
Loaded symbols for /usr/local/lib/libXfixes.so.3
Reading symbols from /usr/local/lib/libcairo.so.2...done.
Loaded symbols for /usr/local/lib/libcairo.so.2
Reading symbols from /usr/local/lib/libpixman-1.so.9...done.
Loaded symbols for /usr/local/lib/libpixman-1.so.9
Reading symbols from /usr/local/lib/libfontconfig.so.1...done.
Loaded symbols for /usr/local/lib/libfontconfig.so.1
Reading symbols from /usr/local/lib/libfreetype.so.9...done.
Loaded symbols for /usr/local/lib/libfreetype.so.9
Reading symbols from /usr/local/lib/libexpat.so.6...done.
Loaded symbols for /usr/local/lib/libexpat.so.6
Reading symbols from /usr/local/lib/libglitz.so.1...done.
Loaded symbols for /usr/local/lib/libglitz.so.1
Reading symbols from /usr/local/lib/libpng.so.6...done.
Loaded symbols for /usr/local/lib/libpng.so.6
Reading symbols from /usr/local/lib/libxcb-render-util.so.0...done.
Loaded symbols for /usr/local/lib/libxcb-render-util.so.0
Reading symbols from /usr/local/lib/libxcb-render.so.0...done.
Loaded symbols for /usr/local/lib/libxcb-render.so.0
Reading symbols from /usr/local/lib/libXrender.so.1...done.
Loaded symbols for /usr/local/lib/libXrender.so.1
Reading symbols from /usr/local/lib/libgdk_pixbuf-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgdk_pixbuf-2.0.so.0
Reading symbols from /usr/local/lib/libgio-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgio-2.0.so.0
Reading symbols from /usr/local/lib/libgobject-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgobject-2.0.so.0
Reading symbols from /usr/local/lib/libgmodule-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgmodule-2.0.so.0
Reading symbols from /usr/local/lib/libglib-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libglib-2.0.so.0
Reading symbols from /usr/local/lib/libintl.so.8...done.
Loaded symbols for /usr/local/lib/libintl.so.8
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/local/lib/libpcre.so.0...done.
Loaded symbols for /usr/local/lib/libpcre.so.0
Reading symbols from
/usr/local/lib/python2.6/site-packages/PIL/_imaging.so...done.
Loaded symbols for /usr/local/lib/python2.6/site-packages/PIL/_imaging.so
Reading symbols from /usr/local/lib/libjpeg.so.11...done.
Loaded symbols for /usr/local/lib/libjpeg.so.11
Reading symbols from /usr/local/lib/python2.6/lib-dynload/array.so...done.
Loaded symbols for /usr/local/lib/python2.6/lib-dynload/array.so
Reading symbols from /usr/local/lib/python2.6/lib-dynload/zlib.so...done.
Loaded symbols for /usr/local/lib/python2.6/lib-dynload/zlib.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x0000000807a3d901 in FcPatternObjectAddWithBinding ()
from /usr/local/lib/libfontconfig.so.1
[New Thread 800e021c0 (LWP 100331)]
while, when entering "bt full" within the gdb console, I get:
#0 0x0000000807a3d901 in FcPatternObjectAddWithBinding ()
from /usr/local/lib/libfontconfig.so.1
No symbol table info available.
#1 0x000000080111d87c in ffi_call_unix64 ()
at /usr/ports/lang/python26/work/Python-2.6.4/Modules/_ctypes/libffi/src/x86/unix64.S:75
No locals.
#2 0x000000080111d2be in ffi_call (cif=0x7fffffffc7d0,
fn=0x807a3e390 <IA__FcPatternAddDouble>, rvalue=0x7fffffffc8b0,
avalue=0x7fffffffc880)
at /usr/ports/lang/python26/work/Python-2.6.4/Modules/_ctypes/libffi/src/x86/ffi64.c:430
classes = {X86_64_SSEDF_CLASS, 2058, X86_64_NO_CLASS, X86_64_NO_CLASS}
stack = 0x7fffffffc5e0 "@U<\006"
argp = 0x7fffffffc690 "\n\b"
arg_types = (ffi_type **) 0x7fffffffc850
gprcount = 2
ssecount = 1
ngpr = 0
nsse = 1
i = 3
avn = 3
ret_in_memory = false
reg_args = (struct register_args *) 0x7fffffffc5e0
#3 0x00000008011144da in _call_function_pointer (flags=4353,
pProc=0x807a3e390 <IA__FcPatternAddDouble>, avalues=0x7fffffffc880,
atypes=0x7fffffffc850, restype=0x800e078b0, resmem=0x7fffffffc8b0,
argcount=3)
at /usr/ports/lang/python26/work/Python-2.6.4/Modules/_ctypes/callproc.c:816
_save = (PyThreadState *) 0x800e0b0c0
error_object = (PyObject *) 0x0
space = (int *) 0x80109c530
cif = {abi = FFI_UNIX64, nargs = 3, arg_types = 0x7fffffffc850,
rtype = 0x800e078b0, bytes = 0, flags = 2058}
cc = 2
#4 0x0000000801114eda in _CallProc (pProc=0x807a3e390 <IA__FcPatternAddDouble>,
argtuple=0x806644960, flags=4353, argtypes=0x0,
restype=0x801060820, checker=0x0)
at /usr/ports/lang/python26/work/Python-2.6.4/Modules/_ctypes/callproc.c:1163
i = 3
n = 3
argcount = 3
argtype_count = 0
resbuf = (void *) 0x7fffffffc8b0
args = (struct argument *) 0x7fffffffc8d0
pa = (struct argument *) 0x7fffffffc930
atypes = (ffi_type **) 0x7fffffffc850
rtype = (ffi_type *) 0x800e078b0
avalues = (void **) 0x7fffffffc880
retval = (PyObject *) 0x0
#5 0x000000080110f074 in CFuncPtr_call (self=0x806688ae0,
inargs=0x806644960, kwds=0x0)
at /usr/ports/lang/python26/work/Python-2.6.4/Modules/_ctypes/_ctypes.c:3860
restype = (PyObject *) 0x801060820
converters = (PyObject *) 0x0
checker = (PyObject *) 0x0
argtypes = (PyObject *) 0x0
dict = (StgDictObject *) 0x805755ca0
result = (PyObject *) 0x806644960
callargs = (PyObject *) 0x806644960
errcheck = (PyObject *) 0x0
pProc = (void *) 0x807a3e390
inoutmask = 0
outmask = 0
numretvals = 0
#6 0x000000000041e789 in PyObject_Call (func=0x806688ae0,
arg=0x806644960, kw=0x0)
at ./../Objects/abstract.c:2492
result = (PyObject *) 0x804fd3510
call = 0x80110ed40 <CFuncPtr_call>
#7 0x00000000004ac096 in do_call (func=0x806688ae0,
pp_stack=0x7fffffffcd40, na=3, nk=0)
at ./../Python/ceval.c:3924
callargs = (PyObject *) 0x806644960
kwdict = (PyObject *) 0x0
result = (PyObject *) 0x0
#8 0x00000000004ab7c1 in call_function (pp_stack=0x7fffffffcd40, oparg=3)
at ./../Python/ceval.c:3729
na = 3
nk = 0
n = 3
pfunc = (PyObject **) 0x80162d3d0
func = (PyObject *) 0x806688ae0
x = (PyObject *) 0x804db2c20
w = (PyObject *) 0x801062020
#9 0x00000000004a7b69 in PyEval_EvalFrameEx (f=0x80162d220, throwflag=0)
at ./../Python/ceval.c:2389
sp = (PyObject **) 0x80162d3d8
stack_pointer = (PyObject **) 0x80162d3f0
next_instr = (unsigned char *) 0x805d1ed63 "\001t\004"
opcode = 131
oparg = 3
why = WHY_NOT
err = 0
x = (PyObject *) 0x804db2c20
v = (PyObject *) 0x80665aa50
w = (PyObject *) 0x8010481e0
u = (PyObject *) 0x8062fc6a0
t = (PyObject *) 0x10
stream = (PyObject *) 0x0
fastlocals = (PyObject **) 0x80162d398
freevars = (PyObject **) 0x80162d3d0
retval = (PyObject *) 0x0
tstate = (PyThreadState *) 0x800e0b0c0
co = (PyCodeObject *) 0x80582b990
instr_ub = -1
instr_lb = 0
instr_prev = -1
first_instr = (unsigned char *) 0x805d1ece4 "|\002"
names = (PyObject *) 0x800e3d450
consts = (PyObject *) 0x80545da00
#10 0x00000000004ab9a7 in fast_function (func=0x806610668,
pp_stack=0x7fffffffd0a0, n=4,
na=4, nk=0) at ./../Python/ceval.c:3792
retval = (PyObject *) 0x0
fastlocals = (PyObject **) 0x80162d398
i = 4
f = (PyFrameObject *) 0x80162d220
tstate = (PyThreadState *) 0x800e0b0c0
stack = (PyObject **) 0x80107c728
co = (PyCodeObject *) 0x80582b990
globals = (PyObject *) 0x8010d9660
argdefs = (PyObject *) 0x0
d = (PyObject **) 0x0
nd = 0
#11 0x00000000004ab7a8 in call_function (pp_stack=0x7fffffffd0a0, oparg=4)
at ./../Python/ceval.c:3727
na = 4
nk = 0
n = 4
pfunc = (PyObject **) 0x80107c700
func = (PyObject *) 0x806610668
x = (PyObject *) 0x804db2200
w = (PyObject *) 0x7fffffffcf80
#12 0x00000000004a7b69 in PyEval_EvalFrameEx (f=0x80107c520, throwflag=0)
at ./../Python/ceval.c:2389
sp = (PyObject **) 0x80107c728
stack_pointer = (PyObject **) 0x80107c728
next_instr = (unsigned char *) 0x8054fcad0 "}\t"
opcode = 131
oparg = 4
why = WHY_NOT
err = 0
x = (PyObject *) 0x68e610
v = (PyObject *) 0x80104a7d0
w = (PyObject *) 0x80582c6b0
u = (PyObject *) 0x0
t = (PyObject *) 0x11
stream = (PyObject *) 0x0
fastlocals = (PyObject **) 0x80107c698
freevars = (PyObject **) 0x80107c700
retval = (PyObject *) 0x0
tstate = (PyThreadState *) 0x800e0b0c0
co = (PyCodeObject *) 0x80582b8a0
instr_ub = -1
instr_lb = 0
instr_prev = -1
first_instr = (unsigned char *) 0x8054fca24 "t"
names = (PyObject *) 0x800f0bde0
consts = (PyObject *) 0x805454670
#13 0x00000000004a99d8 in PyEval_EvalCodeEx (co=0x80582b8a0,
globals=0x8010d9660,
locals=0x0, args=0x8010337e8, argcount=3, kws=0x8058c8d60, kwcount=3,
defs=0x806644838, defcount=3, closure=0x0) at ./../Python/ceval.c:2968
f = (PyFrameObject *) 0x80107c520
retval = (PyObject *) 0x0
fastlocals = (PyObject **) 0x80107c698
freevars = (PyObject **) 0x80107c700
tstate = (PyThreadState *) 0x800e0b0c0
x = (PyObject *) 0x800e81600
u = (PyObject *) 0x800e929b0
#14 0x0000000000519f5f in function_call (func=0x80660cc80, arg=0x8010337d0,
kw=0x8062fc060) at ./../Objects/funcobject.c:524
result = (PyObject *) 0x0
argdefs = (PyObject *) 0x806644820
d = (PyObject **) 0x806644838
k = (PyObject **) 0x8058c8d60
nk = 3
nd = 3
#15 0x000000000041e789 in PyObject_Call (func=0x80660cc80, arg=0x8010337d0,
kw=0x8062fc060) at ./../Objects/abstract.c:2492
result = (PyObject *) 0x8010337b0
call = 0x519d30 <function_call>
#16 0x0000000000427132 in instancemethod_call (func=0x80660cc80,
arg=0x8010337d0,
kw=0x8062fc060) at ./../Objects/classobject.c:2579
self = (PyObject *) 0x80104a7d0
klass = (PyObject *) 0x8062f4820
result = (PyObject *) 0x7fffffffd6d0
#17 0x000000000041e789 in PyObject_Call (func=0x800f9f8c0, arg=0x801043368,
kw=0x8062fc060) at ./../Objects/abstract.c:2492
result = (PyObject *) 0x800f9f8c0
call = 0x426ed0 <instancemethod_call>
#18 0x000000000047ab3f in slot_tp_init (self=0x80104a7d0, args=0x801043368,
kwds=0x8062fc060) at ./../Objects/typeobject.c:5638
meth = (PyObject *) 0x800f9f8c0
res = (PyObject *) 0x3
init_str = (PyObject *) 0x800e18990
#19 0x000000000046babf in type_call (type=0x8062f4820,
args=0x801043368, kwds=0x8062fc060)
at ./../Objects/typeobject.c:745
obj = (PyObject *) 0x80104a7d0
#20 0x000000000041e789 in PyObject_Call (func=0x8062f4820, arg=0x801043368,
kw=0x8062fc060) at ./../Objects/abstract.c:2492
result = (PyObject *) 0x801042730
call = 0x46b970 <type_call>
#21 0x00000000004ac096 in do_call (func=0x8062f4820,
pp_stack=0x7fffffffd9d0, na=2, nk=3)
at ./../Python/ceval.c:3924
callargs = (PyObject *) 0x801043368
kwdict = (PyObject *) 0x8062fc060
result = (PyObject *) 0x0
#22 0x00000000004ab7c1 in call_function (pp_stack=0x7fffffffd9d0, oparg=770)
at ./../Python/ceval.c:3729
na = 2
nk = 3
n = 8
pfunc = (PyObject **) 0x800ff7af0
func = (PyObject *) 0x8062f4820
x = (PyObject *) 0x4ae
w = (PyObject *) 0x68e610
#23 0x00000000004a7b69 in PyEval_EvalFrameEx (f=0x800ff7920, throwflag=0)
at ./../Python/ceval.c:2389
sp = (PyObject **) 0x800ff7af8
stack_pointer = (PyObject **) 0x800ff7b38
next_instr = (unsigned char *) 0x800e071b4 "}\n"
opcode = 131
oparg = 770
why = WHY_NOT
err = 0
x = (PyObject *) 0x800e81e00
v = (PyObject *) 0x68e610
w = (PyObject *) 0x801056ab0
u = (PyObject *) 0x806689710
t = (PyObject *) 0x80103da28
stream = (PyObject *) 0x0
fastlocals = (PyObject **) 0x800ff7a98
freevars = (PyObject **) 0x800ff7af0
retval = (PyObject *) 0x0
tstate = (PyThreadState *) 0x800e0b0c0
co = (PyCodeObject *) 0x801059120
instr_ub = -1
instr_lb = 0
instr_prev = -1
first_instr = (unsigned char *) 0x800e070a4 "|\001"
names = (PyObject *) 0x800e4e638
consts = (PyObject *) 0x8010310d8
#24 0x00000000004a99d8 in PyEval_EvalCodeEx (co=0x801059120,
globals=0x8010da060,
locals=0x0, args=0x800e05d20, argcount=2, kws=0x800e05d30, kwcount=0,
defs=0x805818b48, defcount=5, closure=0x0) at ./../Python/ceval.c:2968
f = (PyFrameObject *) 0x800ff7920
retval = (PyObject *) 0x0
fastlocals = (PyObject **) 0x800ff7a98
freevars = (PyObject **) 0x800ff7af0
tstate = (PyThreadState *) 0x800e0b0c0
x = (PyObject *) 0x800e81600
u = (PyObject *) 0x7fffffffdbc0
#25 0x00000000004aba93 in fast_function (func=0x80582bb90,
pp_stack=0x7fffffffded0, n=2,
na=2, nk=0) at ./../Python/ceval.c:3802
co = (PyCodeObject *) 0x801059120
globals = (PyObject *) 0x8010da060
argdefs = (PyObject *) 0x805818b30
d = (PyObject **) 0x805818b48
nd = 5
#26 0x00000000004ab7a8 in call_function (pp_stack=0x7fffffffded0, oparg=2)
at ./../Python/ceval.c:3727
na = 2
nk = 0
n = 2
pfunc = (PyObject **) 0x800e05d18
func = (PyObject *) 0x80582bb90
x = (PyObject *) 0x80108fc20
w = (PyObject *) 0x66f160
#27 0x00000000004a7b69 in PyEval_EvalFrameEx (f=0x800e05ba0, throwflag=0)
at ./../Python/ceval.c:2389
sp = (PyObject **) 0x800e05d30
stack_pointer = (PyObject **) 0x800e05d30
next_instr = (unsigned char *) 0x80102a5c2 "Z\003"
opcode = 131
oparg = 2
why = WHY_NOT
err = 0
x = (PyObject *) 0x800e81600
v = (PyObject *) 0x80104a7d0
w = (PyObject *) 0x801041d80
u = (PyObject *) 0x800e81768
t = (PyObject *) 0x4e4365
stream = (PyObject *) 0x0
fastlocals = (PyObject **) 0x800e05d18
freevars = (PyObject **) 0x800e05d18
retval = (PyObject *) 0x0
tstate = (PyThreadState *) 0x800e0b0c0
co = (PyCodeObject *) 0x800f08648
instr_ub = -1
instr_lb = 0
instr_prev = -1
first_instr = (unsigned char *) 0x80102a5a4 "d"
names = (PyObject *) 0x800e4fe68
consts = (PyObject *) 0x800f13158
#28 0x00000000004a99d8 in PyEval_EvalCodeEx (co=0x800f08648,
globals=0x800eb59e0,
locals=0x800eb59e0, args=0x0, argcount=0, kws=0x0, kwcount=0,
defs=0x0, defcount=0,
closure=0x0) at ./../Python/ceval.c:2968
f = (PyFrameObject *) 0x800e05ba0
retval = (PyObject *) 0x0
fastlocals = (PyObject **) 0x800e05d18
freevars = (PyObject **) 0x800e05d18
tstate = (PyThreadState *) 0x800e0b0c0
x = (PyObject *) 0x7fffffffe570
u = (PyObject *) 0x7fffffffe558
#29 0x00000000004a1ac7 in PyEval_EvalCode (co=0x800f08648, globals=0x800eb59e0,
locals=0x800eb59e0) at ./../Python/ceval.c:522
No locals.
#30 0x00000000004d51bb in run_mod (mod=0x801072278,
filename=0x7fffffffe877 "foobar2.py",
globals=0x800eb59e0, locals=0x800eb59e0, flags=0x7fffffffe460,
arena=0x800e6b480)
at ./../Python/pythonrun.c:1335
co = (PyCodeObject *) 0x800f08648
v = (PyObject *) 0x7fffffffe290
#31 0x00000000004d5139 in PyRun_FileExFlags (fp=0x800d22700,
filename=0x7fffffffe877 "foobar2.py", start=257, globals=0x800eb59e0,
locals=0x800eb59e0, closeit=1, flags=0x7fffffffe460) at
./../Python/pythonrun.c:1321
ret = (PyObject *) 0x800d22700
mod = 0x801072278
arena = (PyArena *) 0x800e6b480
#32 0x00000000004d4069 in PyRun_SimpleFileExFlags (fp=0x800d22700,
filename=0x7fffffffe877 "foobar2.py", closeit=1, flags=0x7fffffffe460)
at ./../Python/pythonrun.c:931
m = (PyObject *) 0x800e54718
d = (PyObject *) 0x800eb59e0
v = (PyObject *) 0x4d5f8c
ext = 0x7fffffffe87d "2.py"
set_file_name = 1
ret = -6025
len = 10
#33 0x00000000004d3926 in PyRun_AnyFileExFlags (fp=0x800d22700,
filename=0x7fffffffe877 "foobar2.py", closeit=1, flags=0x7fffffffe460)
at ./../Python/pythonrun.c:735
No locals.
#34 0x0000000000414406 in Py_Main (argc=2, argv=0x7fffffffe558) at
./../Modules/main.c:599
c = -1
sts = -1
command = 0x0
filename = 0x7fffffffe877 "foobar2.py"
module = 0x0
fp = (FILE *) 0x800d22700
p = 0x0
unbuffered = 0
skipfirstline = 0
stdin_is_interactive = 1
help = 0
version = 0
saw_unbuffered_flag = 0
cf = {cf_flags = 0}
#35 0x000000000041320e in main (argc=2, argv=0x7fffffffe558) at
./../Modules/python.c:23
m = 0
Thanks for the help, I appreciate it
giuseppe
On Wed, Apr 14, 2010 at 5:45 PM, Dmitry Marakasov <amdmi3 at amdmi3.ru> wrote:
> * Giuseppe Pagnoni (gpagnoni at gmail.com) wrote:
>
>> => I get a segmentation fault and a python.core file.
>>
>> When I run:
>>
>> gdb core python.core
>
> You should run `gdb python python.core` instead. Or, just
>
> % gdb python
>> run example.py
>
> so it runs python example.py, dies and drops out into gdb.
> In the debugger, you should at least run `bt full` command.
>
>> It doesn't seem very informative to me but I don't know how to use gdb
>> at all; perhaps the debug symbols were stripped on install?
>
> They shouldn't, as WITH_DEBUG disables stripping.
>
> --
> Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D
> amdmi3 at amdmi3.ru ..: jabber: amdmi3 at jabber.ru http://www.amdmi3.ru
>
--
Giuseppe Pagnoni
Dip. Scienze Biomediche
Sezione Fisiologia
Univ. di Modena e Reggio Emilia
Via Campi 287
I-41125 Modena, Italy
Tel: +39-059-205-5742
Fax: +39-059-205-5336
More information about the freebsd-python
mailing list