teerytko / python-video4linux2

Automatically exported from code.google.com/p/python-video4linux2
0 stars 0 forks source link

spca561 cam, .GetResolutions() segfault malloc_consolidate #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
>>> import pyv4l2
>>> d=pyv4l2.Device('/dev/video1')

>>> x=d.GetResolutions()

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7e488c0 (LWP 5943)]
0xb7eb4ff9 in malloc_consolidate (av=0xb7f89140) at malloc.c:4860
4860    malloc.c: No such file or directory.
    in malloc.c

Original issue reported on code.google.com by cfkars...@gmail.com on 31 Oct 2008 at 1:32

GoogleCodeExporter commented 8 years ago
juser@dhcp186:~/python-video4linux2$ 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 0xb7e488c0 (LWP 5943)]
>>> import pyv4l2
>>> d=pyv4l2.Device('/dev/video1')
>>> d.QueryCaps()
>>> print d.driver, d.card
spca561 Camera
>>> print d.caps
['Capture', 'ReadWrite', 'Streaming']
>>> print d.capabilities
{'VideoOutputOverlay': 512, 'Capture': 1, 'VBICapture': 16, 'SlicedVBICapture': 
64,
'ReadWrite': 16777216, 'Overlay': 4, 'Radio': 262144, 'Audio': 131072,
'SlicedVBIOutput': 128, 'Streaming': 67108864, 'RDSCapture': 256, 'Tuner': 
65536,
'Output': 2, 'VBIOutput': 32, 'AsyncIO': 33554432}
>>> x=d.GetResolutions()

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7e488c0 (LWP 5943)]
0xb7eb4ff9 in malloc_consolidate (av=0xb7f89140) at malloc.c:4860
4860    malloc.c: No such file or directory.
    in malloc.c
(gdb) bt full
#0  0xb7eb4ff9 in malloc_consolidate (av=0xb7f89140) at malloc.c:4860
    fb = (mfastbinptr *) 0xb7f89150
    maxfb = (mfastbinptr *) 0xb7f8916c
    p = (mchunkptr) 0x8a0a668
    nextp = (mchunkptr) 0x0
    unsorted_bin = (mchunkptr) 0xb7f89170
    first_unsorted = <value optimized out>
    nextchunk = (mchunkptr) 0x8a0a688
    size = 80
    nextsize = 48
    prevsize = <value optimized out>
    bck = (mchunkptr) 0x160
    fwd = (mchunkptr) 0x1
#1  0xb7eb70e5 in _int_malloc (av=0xb7f89140, bytes=8208) at malloc.c:4184
    nb = 8216
    idx = 107
    bin = <value optimized out>
    victim = (mchunkptr) 0x89a2c90
    size = <value optimized out>
    victim_index = <value optimized out>
    remainder = <value optimized out>
    remainder_size = <value optimized out>
    block = <value optimized out>
    bit = <value optimized out>
    map = <value optimized out>
    fwd = <value optimized out>
    bck = <value optimized out>
#2  0xb7eb904c in *__GI___libc_malloc (bytes=8208) at malloc.c:3551
    ar_ptr = (mstate) 0xb7f89140
    victim = (void *) 0x89a2c90
    hook = <value optimized out>
#3  0x080eb016 in PyArena_New () at ../Python/pyarena.c:83
No locals.
#4  0x080eda3a in PyRun_InteractiveOneFlags (fp=0xb7f88420, 
    filename=0x8128462 "<stdin>", flags=0xbfbef378)
    at ../Python/pythonrun.c:766
    m = <value optimized out>
    d = <value optimized out>
    v = <value optimized out>
    w = <value optimized out>
    mod = <value optimized out>
    arena = <value optimized out>
    ps1 = 0xb7dcde14 ">>> "
    ps2 = 0xb7dde8d4 "... "
    errcode = <value optimized out>
#5  0x080eddb8 in PyRun_InteractiveLoopFlags (fp=0xb7f88420, 
    filename=0x8128462 "<stdin>", flags=0xbfbef378)
    at ../Python/pythonrun.c:723
    v = (PyObject *) 0xb7dde8c0
---Type <return> to continue, or q <return> to quit---
    ret = <value optimized out>
    local_flags = {cf_flags = -1210226432}
#6  0x080ee516 in PyRun_AnyFileExFlags (fp=0xb7f88420, 
    filename=0x8128462 "<stdin>", closeit=0, flags=0xbfbef378)
    at ../Python/pythonrun.c:692
    err = <value optimized out>
#7  0x080595e7 in Py_Main (argc=0, argv=0xbfbef444) at ../Modules/main.c:532
    c = <value optimized out>
    sts = <value optimized out>
    command = 0x0
    filename = 0x1 <Address 0x1 out of bounds>
    module = 0x0
    fp = (FILE *) 0xb7f88420
    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}
#8  0x08058962 in main (argc=1, argv=0x1) at ../Modules/python.c:23
No locals.

Original comment by cfkars...@gmail.com on 31 Oct 2008 at 1:33