Community
cancel
Showing results for 
Search instead for 
Did you mean: 
eric_h_3
Beginner
71 Views

signal 11 at MFXVideoDECODE_DecodeHeader

sorry for my poor English!

My project use freeswitch! I want qsv for video!

system info: CentOS Linux release 7.2.1511 (Core)

but crash at MFXVideoDECODE_DecodeHeader

gdb core info:

(gdb) bt
#0  0x00007f65e070ed18 in ?? () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
#1  0x00007f65e070ce0c in ?? () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
#2  0x00007f65e06ff478 in ?? () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
#3  0x00007f65e06fc029 in ?? () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
#4  0x00007f65e06fe80f in ?? () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
#5  0x00007f65e0700000 in ?? () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
#6  0x00007f65e070059b in ?? () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
#7  0x00007f65e05f91ee in ?? () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
#8  0x00007f65e0590720 in MFXVideoDECODE_DecodeHeader () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
#9  0x00007f65e3dc3722 in mpc_qsv_dec_header1 (hdr=0x18dd860, buffer=<optimized out>, buffer_len=2048, use_len=0x7fff1f0e12fc) at mpc_qsv.c:567
#10 0x00007f65e3dc5ff8 in mpc_codec_local_dec1 () at mpc_codec.c:150
#11 0x00007f65e3db7d41 in mod_mpc_load (module_interface=module_interface@entry=0x7fff1f0e13b8, pool=0x1903738) at mod_mpc.c:6338
#12 0x00007f661c1beb89 in switch_loadable_module_load_file (new_module=<synthetic pointer>, global=SWITCH_FALSE, filename=0x17c5138 "mod_mpc", path=0x17c5148 "/usr/local/freeswitch/mod/mod_mpc.so") at src/switch_loadable_module.c:1412
#13 switch_loadable_module_load_module_ex (dir=dir@entry=0x15f1120 "/usr/local/freeswitch/mod", fname=fname@entry=0x7f66165832a9 "mod_mpc", runtime=runtime@entry=SWITCH_FALSE, global=global@entry=SWITCH_FALSE, 
    err=err@entry=0x7fff1f0e1468) at src/switch_loadable_module.c:1520
#14 0x00007f661c1c16cd in switch_loadable_module_init (autoload=autoload@entry=SWITCH_TRUE) at src/switch_loadable_module.c:1826
#15 0x00007f661c196443 in switch_core_init_and_modload (flags=flags@entry=68225, console=console@entry=SWITCH_TRUE, err=err@entry=0x7fff1f0e16a0) at src/switch_core.c:2259
#16 0x0000000000402d5a in main (argc=<optimized out>, argv=<optimized out>) at src/switch.c:1176

 

How cant i debug libmfxhw64.so ?

0 Kudos
3 Replies
Jiandong_Z_Intel
Employee
71 Views

Hi There,

Which codec are you using ? H.264 or others ?

libmfxhw64.so is not opensouce, you can't got the source and debug it.

Does MSDK sample_decode work for you ?

 

Thanks,

Zachary

eric_h_3
Beginner
71 Views

I find the reason!

I setting pthread stack size is too small!

source codec is dec_hdr.zip

usage: ./demo [stack_size]

stack_size default is 1024*16

if stack size is 1024*16

[root@localhost ~]# ./demo 
use stack size is 16384
open /dev/dri/card0 success!!!!
libva info: VA-API version 0.99.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
Initialized VA v0.99
impl desc is [hardware accelerated] version is 1.17
段错误(吐核)

[root@localhost ~]# gdb ./demo core.14748 
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7
Copyright (C) 2013 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".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /root/demo...done.
[New LWP 14757]
[New LWP 14752]
[New LWP 14750]
[New LWP 14751]
[New LWP 14748]
[New LWP 14749]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `./demo'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f5dac246504 in ?? () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
Missing separate debuginfos, use: debuginfo-install glibc-2.17-106.el7_2.6.x86_64 intel-linux-media-16.4.4-47109.el7.x86_64 libX11-devel-1.6.3-2.el7.x86_64 libXau-1.0.8-2.1.el7.x86_64 libdrm-2.4.56-47109.el7.x86_64 libdrm-2.4.60-3.el7.x86_64 libgcc-4.8.5-4.el7.x86_64 libpciaccess-0.13.4-2.el7.x86_64 libstdc++-4.8.5-4.el7.x86_64 libva-1.67.0.pre1-47109.el7.x86_64 libxcb-1.11-4.el7.x86_64
(gdb) bt
#0  0x00007f5dac246504 in ?? () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
#1  0x00007f5dac239478 in ?? () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
#2  0x00007f5dac236029 in ?? () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
#3  0x00007f5dac23880f in ?? () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
#4  0x00007f5dac23a000 in ?? () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
#5  0x00007f5dac23a59b in ?? () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
#6  0x00007f5dac1331ee in ?? () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
#7  0x00007f5dac0ca720 in MFXVideoDECODE_DecodeHeader () from /opt/intel/mediasdk/lib64/libmfxhw64-p.so.1.17
#8  0x0000000000403597 in __dec_hdr (p=0x0) at main.c:39
#9  0x00007f5daffb1dc5 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f5dafac8ced in clone () from /lib64/libc.so.6
(gdb) 

 

if stack size is 1024000

[root@localhost ~]# ./demo 1024000
use stack size is 1024000
open /dev/dri/card0 success!!!!
libva info: VA-API version 0.99.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
Initialized VA v0.99
impl desc is [hardware accelerated] version is 1.17

mfx decode header success!!!

 

Thanks.

 

 

Jiandong_Z_Intel
Employee
71 Views

Great to know, you have solved this issue. others may benefit from your solution. thank you.

closing this thread now. you can post new thread if you have other question.

Thanks

Zachary

 

Reply