Open GoogleCodeExporter opened 8 years ago
juser@dhcp186:~/python-video4linux2$ uname -a
Linux dhcp186 2.6.27-7-generic #1 SMP Fri Oct 24 06:42:44 UTC 2008 i686
GNU/Linux
juser@dhcp186:~/python-video4linux2$ LD_LIBRARY_PATH=/usr/lib/debug gdb python
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run
Starting program: /usr/bin/python
[Thread debugging using libthread_db enabled]
Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
[New Thread 0xb7f1c8c0 (LWP 13406)]
>>> import pyv4l2
>>> d=pyv4l2.Device('/dev/video0')
>>> d.GetResolutions()
[]
>>> quit()
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7f1c8c0 (LWP 13406)]
collect (generation=2) at ../Modules/gcmodule.c:242
242 ../Modules/gcmodule.c: No such file or directory.
in ../Modules/gcmodule.c
(gdb) bt full
#0 collect (generation=2) at ../Modules/gcmodule.c:242
i = 2
m = <value optimized out>
n = <value optimized out>
young = (PyGC_Head *) 0x81593c8
old = (PyGC_Head *) 0x81593c8
unreachable = {gc = {gc_next = 0x0, gc_prev = 0x0, gc_refs = 1},
dummy = <invalid float value>}
finalizers = {gc = {gc_next = 0x0, gc_prev = 0x0, gc_refs = 0},
dummy = 0}
gc = <value optimized out>
t1 = 0
#1 0x080f938c in PyGC_Collect () at ../Modules/gcmodule.c:1265
n = <value optimized out>
#2 0x080ed7c4 in Py_Finalize () at ../Python/pythonrun.c:389
interp = (PyInterpreterState *) 0x8e53008
#3 0x080ed1fd in handle_system_exit () at ../Python/pythonrun.c:1618
exception = (PyObject *) 0x8146260
value = (PyObject *) 0x814bef8
tb = (PyObject *) 0xb7eb3554
exitcode = 0
#4 0x080ed3fd in PyErr_PrintEx (set_sys_last_vars=1)
at ../Python/pythonrun.c:1064
exception = <value optimized out>
v = <value optimized out>
tb = <value optimized out>
hook = <value optimized out>
#5 0x080ed662 in PyErr_Print () at ../Python/pythonrun.c:978
No locals.
#6 0x080edc88 in PyRun_InteractiveOneFlags (fp=0xb805c420,
filename=0x8128462 "<stdin>", flags=0xbfec5658)
at ../Python/pythonrun.c:795
m = <value optimized out>
d = (PyObject *) 0x0
v = (PyObject *) 0xb7ea1e00
w = <value optimized out>
mod = (mod_ty) 0x8eba740
arena = (PyArena *) 0x8e63c90
ps1 = 0xb7ea1e14 ">>> "
ps2 = <value optimized out>
errcode = -1209388160
#7 0x080eddb8 in PyRun_InteractiveLoopFlags (fp=0xb805c420,
filename=0x8128462 "<stdin>", flags=0xbfec5658)
at ../Python/pythonrun.c:723
v = (PyObject *) 0xb7eb28c0
ret = <value optimized out>
local_flags = {cf_flags = -1209358080}
#8 0x080ee516 in PyRun_AnyFileExFlags (fp=0xb805c420,
filename=0x8128462 "<stdin>", closeit=0, flags=0xbfec5658)
---Type <return> to continue, or q <return> to quit---
at ../Python/pythonrun.c:692
err = <value optimized out>
#9 0x080595e7 in Py_Main (argc=0, argv=0xbfec5724) at ../Modules/main.c:532
c = <value optimized out>
sts = <value optimized out>
command = 0x0
filename = 0x0
module = 0x0
fp = (FILE *) 0xb805c420
p = <value optimized out>
inspect = 0
unbuffered = 0
skipfirstline = 0
stdin_is_interactive = <value optimized out>
help = 0
version = 0
saw_inspect_flag = 0
saw_unbuffered_flag = 0
cf = {cf_flags = 0}
#10 0x08058962 in main (argc=Cannot access memory at address 0xa
) at ../Modules/python.c:23
No locals.
(gdb)
Original comment by cfkars...@gmail.com
on 30 Oct 2008 at 10:21
Original issue reported on code.google.com by
cfkars...@gmail.com
on 30 Oct 2008 at 10:20