Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Edward_R_2
Beginner
90 Views

vainfo seg-faults on Ubuntu14.10 on i7-4790K

Hi,

I can't get Media SDK to work. vainfo seg faults trying to write to 0x18.

Here' s my install steps:

Install fresh Ubuntu 14.10

#########################################################
# Add necessary components

sudo apt-get install build-essential git yasm cmake libtool libc6 libc6-dev

 

#########################################################

 

# Intel Graphics Stack Installer
# https://01.org/linuxgraphics/downloads

wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg -O - | sudo apt-key add -
wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg-2 -O - | sudo apt-key add -
wget https://download.01.org/gfx/ubuntu/14.10/main/pool/main/i/intel-linux-graphics-installer/intel-linux...
sudo dpkg -i intel-linux-graphics-installer_1.1.0-0intel1_amd64.deb
sudo apt-get update
sudo intel-linux-graphics-installer

#########################################################
# Install Intel Media Framework SDK

tar xfp mediaserverstudioessentials2015r6.tar.gz
pushd MediaServerStudioEssentials2015R6
    tar xfp SDK2015Production16.4.2.1.tar.gz
    cd SDK2015Production16.4.2.1
        cd Generic
            tar xfp intel-linux-media-ocl_generic_16.4.2.1-39163_64bit.tar.gz
            sudo ./install_media.sh
popd

# repair Intel Media SDK missing installation parts
sudo ln -s /opt/intel/mediasdk/include /usr/local/include/mfx
sudo mkdir /usr/local/lib/pkgconfig/
sudo cp libmfx.pc /usr/local/lib/pkgconfig/
sudo ldconfig

lab@lab-X10SAE:~/$ cat libmfx.pc

prefix=/opt/intel/mediasdk
exec_prefix=${prefix}
libdir=${exec_prefix}/lib/lin_x64
libdir2=${exec_prefix}/lib64

includedir=${exec_prefix}/include

Name: libmfxhw64

Description: Intel Media SDK dispatcher.
Version: 2015r3
Libs: -L${libdir} -lmfx -L${libdir2} -lva -lva-drm -ldrm -lstdc++ -ldl
Cflags: -I${includedir}

 

lab@lab-X10SAE:~$ vainfo
libva info: VA-API version 0.37.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
Segmentation fault (core dumped)

lab@lab-X10SAE:~$ gdb vainfo
GNU gdb (Ubuntu 7.8-1ubuntu4) 7.8.0.20141001-cvs
Copyright (C) 2014 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://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"...
Reading symbols from vainfo...done.
(gdb) run
Starting program: /usr/bin/vainfo
libva info: VA-API version 0.37.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
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
libva info: Found init function __vaDriverInit_0_32

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff47272eb in ?? () from /opt/intel/mediasdk/lib64/iHD_drv_video.so
(gdb) bt
#0  0x00007ffff47272eb in ?? () from /opt/intel/mediasdk/lib64/iHD_drv_video.so
#1  0x00007ffff7bc48b8 in ?? () from /usr/lib/x86_64-linux-gnu/libva.so.1
#2  0x00007ffff7bc5700 in vaInitialize () from /usr/lib/x86_64-linux-gnu/libva.so.1
#3  0x0000000000400edc in main (argc=<optimized out>, argv=<optimized out>) at vainfo.c:107
(gdb)

0 Kudos
1 Reply
Jiandong_Z_Intel
Employee
90 Views

Reply