BradTotaro / python-video4linux2

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

vivi segfault malloc_consolidate #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
sudo modprobe vivi
juser@dhcp186:~/vga2usb/py/python-video4linux2-trunk$ dmesg | grep vivi
[ 1811.915266] vivi: V4L2 device registered as /dev/video0

>>> import pyv4l2
>>> d=pyv4l2.Device('/dev/video0')
>>> x=d.GetResolutions()
Program received signal SIGSEGV, Segmentation fault.

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

GoogleCodeExporter commented 8 years ago
juser@dhcp186:~/vga2usb/py/python-video4linux2-trunk$ sudo modprobe vivi
juser@dhcp186:~/vga2usb/py/python-video4linux2-trunk$ dmesg | grep vivi
[ 1811.915266] vivi: V4L2 device registered as /dev/video0

juser@dhcp186:~/vga2usb/py/python-video4linux2-trunk$ 
LD_LIBRARY_PATH=/usr/lib/debug gdb
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) file python
Reading symbols from /usr/bin/python...Reading symbols from
/usr/lib/debug/usr/bin/python2.5...done.
done.
(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 0xb7f388c0 (LWP 5287)]
>>> import pyv4l2
>>> d=pyv4l2.Device('/dev/video0')
>>> x=d.GetResolutions()

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7f388c0 (LWP 5287)]
0xb7fa4f5e in malloc_consolidate (av=0xb8079140) at malloc.c:4852
4852    malloc.c: No such file or directory.
    in malloc.c
(gdb) bt full
#0  0xb7fa4f5e in malloc_consolidate (av=0xb8079140) at malloc.c:4852
    fb = (mfastbinptr *) 0xb8079164
    maxfb = (mfastbinptr *) 0xb807916c
    p = (mchunkptr) 0x9f45be8
    nextp = (mchunkptr) 0x0
    unsorted_bin = (mchunkptr) 0xb8079170
    first_unsorted = <value optimized out>
    nextchunk = (mchunkptr) 0x9f45be8
    size = 0
    nextsize = 0
    prevsize = <value optimized out>
    bck = (mchunkptr) 0x0
    fwd = (mchunkptr) 0x0
#1  0xb7fa70e5 in _int_malloc (av=0xb8079140, bytes=8208) at malloc.c:4184
    nb = 8216
    idx = 107
    bin = <value optimized out>
    victim = (mchunkptr) 0x9ec2c90
    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  0xb7fa904c in *__GI___libc_malloc (bytes=8208) at malloc.c:3551
    ar_ptr = (mstate) 0xb8079140
    victim = (void *) 0x9ec2c90
    hook = <value optimized out>
#3  0x080eb016 in PyArena_New () at ../Python/pyarena.c:83
No locals.
#4  0x080eda3a in PyRun_InteractiveOneFlags (fp=0xb8078420, 
    filename=0x8128462 "<stdin>", flags=0xbfdded58)
    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 = 0xb7ebde14 ">>> "
    ps2 = 0xb7ecd8d4 "... "
    errcode = <value optimized out>
#5  0x080eddb8 in PyRun_InteractiveLoopFlags (fp=0xb8078420, 
    filename=0x8128462 "<stdin>", flags=0xbfdded58)
    at ../Python/pythonrun.c:723
    v = (PyObject *) 0xb7ecd8c0
---Type <return> to continue, or q <return> to quit---
    ret = <value optimized out>
    local_flags = {cf_flags = -1209243392}
#6  0x080ee516 in PyRun_AnyFileExFlags (fp=0xb8078420, 
    filename=0x8128462 "<stdin>", closeit=0, flags=0xbfdded58)
    at ../Python/pythonrun.c:692
    err = <value optimized out>
#7  0x080595e7 in Py_Main (argc=0, argv=0xbfddee24) at ../Modules/main.c:532
    c = <value optimized out>
    sts = <value optimized out>
    command = 0x0
    filename = 0x0
    module = 0x0
    fp = (FILE *) 0xb8078420
    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.
(gdb) 

Original comment by cfkars...@gmail.com on 29 Oct 2008 at 1:56

GoogleCodeExporter commented 8 years ago
>>> import pyv4l2
>>> d=pyv4l2.Device('/dev/video0')
>>> d.GetResolutions()
[]

but, when I hit ^D to exit python:
>>> 
Segmentation fault

I'll submit a new report.

Original comment by cfkars...@gmail.com on 30 Oct 2008 at 10:11