Menu

#69 SIGSEGV in v4l2core_prepare_new_resolution

next
open
nobody
None
2022-01-23
2022-01-23
Alex
No

Hi!
I have SIGSEGV with 2.0.7.2 version from fedora35. In dmesg i see
[ 6286.962903] guvcview[5226]: segfault at 0 ip 00007ff62e67e10c sp 00007fff9d566910 error 4 in libgviewv4l2core-2.0.so.2.0.0[7ff62e679000+18000]
[ 6286.962920] Code: d3 44 89 e2 0f 49 d8 89 de 48 63 db e8 bd c9 ff ff 48 c1 e3 06 31 d2 48 03 5d 40 85 c0 0f 48 c2 48 98 48 c1 e0 05 48 03 43 38 <8b> 10 8b 40 04 89 15 55 e9 01 00 89 05 4b e9 01 00 48 83 c4 08 5b
[ 6392.050011] guvcview[5373]: segfault at 0 ip 00007f3cd9e3f10c sp 00007ffc3239d9e0 error 4 in libgviewv4l2core-2.0.so.2.0.0[7f3cd9e3a000+18000]
[ 6392.050033] Code: d3 44 89 e2 0f 49 d8 89 de 48 63 db e8 bd c9 ff ff 48 c1 e3 06 31 d2 48 03 5d 40 85 c0 0f 48 c2 48 98 48 c1 e0 05 48 03 43 38 <8b> 10 8b 40 04 89 15 55 e9 01 00 89 05 4b e9 01 00 48 83 c4 08 5b
[ 6592.189038] guvcview[5520]: segfault at 0 ip 00007fa67ddaf10c sp 00007ffc991d8670 error 4 in libgviewv4l2core-2.0.so.2.0.0[7fa67ddaa000+18000]
[ 6592.189061] Code: d3 44 89 e2 0f 49 d8 89 de 48 63 db e8 bd c9 ff ff 48 c1 e3 06 31 d2 48 03 5d 40 85 c0 0f 48 c2 48 98 48 c1 e0 05 48 03 43 38 <8b> 10 8b 40 04 89 15 55 e9 01 00 89 05 4b e9 01 00 48 83 c4 08 5b
[ 7037.679038] guvcview[5817]: segfault at 0 ip 00007f1bc350710c sp 00007fff232f7d60 error 4 in libgviewv4l2core-2.0.so.2.0.0[7f1bc3502000+18000]
[ 7037.679061] Code: d3 44 89 e2 0f 49 d8 89 de 48 63 db e8 bd c9 ff ff 48 c1 e3 06 31 d2 48 03 5d 40 85 c0 0f 48 c2 48 98 48 c1 e0 05 48 03 43 38 <8b> 10 8b 40 04 89 15 55 e9 01 00 89 05 4b e9 01 00 48 83 c4 08 5b
[ 7189.802067] guvcview[5964]: segfault at 0 ip 00007f199241a10c sp 00007ffdbaf42f50 error 4 in libgviewv4l2core-2.0.so.2.0.0[7f1992415000+18000]
[ 7189.802087] Code: d3 44 89 e2 0f 49 d8 89 de 48 63 db e8 bd c9 ff ff 48 c1 e3 06 31 d2 48 03 5d 40 85 c0 0f 48 c2 48 98 48 c1 e0 05 48 03 43 38 <8b> 10 8b 40 04 89 15 55 e9 01 00 89 05 4b e9 01 00 48 83 c4 08 5b
[ 7251.973893] guvcview[6025]: segfault at 0 ip 00007f238898d10c sp 00007ffc527782f0 error 4 in libgviewv4l2core-2.0.so.2.0.0[7f2388988000+18000]
[ 7251.973912] Code: d3 44 89 e2 0f 49 d8 89 de 48 63 db e8 bd c9 ff ff 48 c1 e3 06 31 d2 48 03 5d 40 85 c0 0f 48 c2 48 98 48 c1 e0 05 48 03 43 38 <8b> 10 8b 40 04 89 15 55 e9 01 00 89 05 4b e9 01 00 48 83 c4 08 5b
[ 7267.107322] guvcview[6086]: segfault at 0 ip 00007ff718d6f10c sp 00007ffe4c0d2390 error 4 in libgviewv4l2core-2.0.so.2.0.0[7ff718d6a000+18000]
[ 7267.107343] Code: d3 44 89 e2 0f 49 d8 89 de 48 63 db e8 bd c9 ff ff 48 c1 e3 06 31 d2 48 03 5d 40 85 c0 0f 48 c2 48 98 48 c1 e0 05 48 03 43 38 <8b> 10 8b 40 04 89 15 55 e9 01 00 89 05 4b e9 01 00 48 83 c4 08 5b
[ 9651.195199] guvcview[7141]: segfault at 0 ip 00007f786055c10c sp 00007fffd75d8140 error 4 in libgviewv4l2core-2.0.so.2.0.0[7f7860557000+18000]
[ 9651.195218] Code: d3 44 89 e2 0f 49 d8 89 de 48 63 db e8 bd c9 ff ff 48 c1 e3 06 31 d2 48 03 5d 40 85 c0 0f 48 c2 48 98 48 c1 e0 05 48 03 43 38 <8b> 10 8b 40 04 89 15 55 e9 01 00 89 05 4b e9 01 00 48 83 c4 08 5b


And in gdb i have this:
gdb
GNU gdb (GDB) Fedora 11.1-5.fc35
Copyright (C) 2021 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 "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
https://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.

For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) exec-file guvcview
(gdb) run
Starting program: /usr/bin/guvcview
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
GUVCVIEW: version 2.0.7
V4L2_CORE: Unable to find parent usb device.V4L2_CORE: Unable to find parent usb device.V4L2_CORE: Unable to find parent usb device.V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Неприменимый к данному устройству ioctl
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Неприменимый к данному устройству ioctl
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Неприменимый к данному устройству ioctl
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Неприменимый к данному устройству ioctl
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Неприменимый к данному устройству ioctl
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Неприменимый к данному устройству ioctl
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Неприменимый к данному устройству ioctl
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Неприменимый к данному устройству ioctl
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Неприменимый к данному устройству ioctl
V4L2_CORE: (VIDIOC_ENUM_FRAMESIZES) - Error enumerating frame sizes
v4L2_CORE: Unable to enumerate frame sizes :Неприменимый к данному устройству ioctl
V4L2_CORE: (VIDIOC_ENUM_FRAMESIZES) - Error enumerating frame sizes
v4L2_CORE: Unable to enumerate frame sizes :Неприменимый к данному устройству ioctl
V4L2_CORE: (VIDIOC_ENUM_FRAMESIZES) - Error enumerating frame sizes
v4L2_CORE: Unable to enumerate frame sizes :Неприменимый к данному устройству ioctl
V4L2_CORE: (VIDIOC_ENUM_FRAMESIZES) - Error enumerating frame sizes
v4L2_CORE: Unable to enumerate frame sizes :Неприменимый к данному устройству ioctl
V4L2_CORE: (VIDIOC_ENUM_FRAMESIZES) - Error enumerating frame sizes
v4L2_CORE: Unable to enumerate frame sizes :Неприменимый к данному устройству ioctl
V4L2_CORE: (VIDIOC_ENUM_FRAMESIZES) - Error enumerating frame sizes
v4L2_CORE: Unable to enumerate frame sizes :Неприменимый к данному устройству ioctl
V4L2_CORE: (VIDIOC_ENUM_FRAMESIZES) - Error enumerating frame sizes
v4L2_CORE: Unable to enumerate frame sizes :Неприменимый к данному устройству ioctl
V4L2_CORE: (VIDIOC_ENUM_FRAMESIZES) - Error enumerating frame sizes
v4L2_CORE: Unable to enumerate frame sizes :Неприменимый к данному устройству ioctl
V4L2_CORE: (VIDIOC_ENUM_FRAMESIZES) - Error enumerating frame sizes
v4L2_CORE: Unable to enumerate frame sizes :Неприменимый к данному устройству ioctl
V4L2_CORE: (VIDIOC_ENUM_FRAMESIZES) - Error enumerating frame sizes
v4L2_CORE: Unable to enumerate frame sizes :Неприменимый к данному устройству ioctl

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7f8910c in v4l2core_prepare_new_resolution (vd=0x5555555ad070, new_width=640, new_height=480) at /usr/src/debug/guvcview-2.0.7.2-1.fc35.x86_64/gview_v4l2core/v4l2_core.c:1659
1659 my_width = vd->list_stream_formats[format_index].list_stream_cap[resolution_index].width;

Is it possible to fix this? Thank you.

Discussion

  • Alex

    Alex - 2022-01-23

    i try to use Etron USB 2.0 camera. There is lsusb -vv -s output in attachment

     
  • Alex

    Alex - 2022-01-23
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,5 +1,5 @@
     Hi!
    -I have SIGSEGV with 2.07 version from fedora35. In dmesg i see
    +I have SIGSEGV with 2.0.7.2 version from fedora35. In dmesg i see
     [ 6286.962903] guvcview[5226]: segfault at 0 ip 00007ff62e67e10c sp 00007fff9d566910 error 4 in libgviewv4l2core-2.0.so.2.0.0[7ff62e679000+18000]
     [ 6286.962920] Code: d3 44 89 e2 0f 49 d8 89 de 48 63 db e8 bd c9 ff ff 48 c1 e3 06 31 d2 48 03 5d 40 85 c0 0f 48 c2 48 98 48 c1 e0 05 48 03 43 38 &lt;8b&gt; 10 8b 40 04 89 15 55 e9 01 00 89 05 4b e9 01 00 48 83 c4 08 5b
     [ 6392.050011] guvcview[5373]: segfault at 0 ip 00007f3cd9e3f10c sp 00007ffc3239d9e0 error 4 in libgviewv4l2core-2.0.so.2.0.0[7f3cd9e3a000+18000]
    
     

Log in to post a comment.

MongoDB Logo MongoDB