Menu

#6 Segmentation fault on cal::Init() in fglrx driver

v1.0 (example)
open
None
5
2015-02-06
2015-02-06
min0ru
No

Hi! I need some help to resolve library crashing problem.

I'am getting Segmentation Fault on Init() function. Every example from /example dir is affected and any program that is using cal++ lib crashes too.

Here is /example/func gdb output:

$gdb ./func

# some output omitted...

Reading symbols from ./func...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/min0ru/build/calpp-svn/examples/func
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5e72399 in ?? () from /usr/lib/libaticaldd.so
(gdb) backtrace

#0  0x00007ffff5e72399 in ?? () from /usr/lib/libaticaldd.so
#1  0x00007ffff5eba952 in ?? () from /usr/lib/libaticaldd.so
#2  0x00007ffff5ebaa9e in ?? () from /usr/lib/libaticaldd.so
#3  0x00007ffff612ae5e in ?? () from /usr/lib/libaticaldd.so
#4  0x00007ffff612b601 in ?? () from /usr/lib/libaticaldd.so
#5  0x00007ffff612b802 in ?? () from /usr/lib/libaticaldd.so
#6  0x00007ffff6121fc4 in ?? () from /usr/lib/libaticaldd.so
#7  0x00007ffff614227d in ?? () from /usr/lib/libaticaldd.so
#8  0x000000000046512f in cal::Init() ()
#9  0x000000000045f7f1 in main ()

$ldd func
linux-vdso.so.1 => (0x00007fff43bfe000)
libaticalrt.so => /usr/lib/libaticalrt.so (0x00007fd10af33000)
libaticalcl.so => /usr/lib/libaticalcl.so (0x00007fd10ae15000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd10ab10000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd10a8fa000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd10a534000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd10a315000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fd10a10d000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd109e07000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd109c02000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd10b078000)

I'am using last trunc version of the cal++ (0.91-dev i believe). But 0.90 does not work too. I tried different fglrx driver versions but it does not help.

Here is my workstation details:

CPU: Intel core i7 2600k
GPU: AMD Radeon r9 290x

$lspci | grep VGA
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii XT [Radeon R9 290X]

GPU driver: fgflrx-14.20 (linux-amd-catalyst-14.6-beta-v1.0-jul11.zip)

$uname -a
Linux localhost 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Discussion

  • Artur Kornacki

    Artur Kornacki - 2015-02-06

    AMD doesn't support CAL anymore ( library/standard that CAL++ uses ). So I'm afraid that it probably won't work on new hardware ( like your 290x ). Unless someone confirms that it works on 290x cards I'm going to assume that this is the problem.

     
    • min0ru

      min0ru - 2015-02-06

      Thank you for your answer!
      I see.. Looks like it was discontinued after 2012. So it is not CAL++ issue but hardware or amd driver (cal api) problem.

       
    • Timour Omar Rashed

      If I have the AMD 290x, if there an alternative library that DOES work on new hardware link opencl, CUDA, etc....?

      Thanks

       
      • min0ru

        min0ru - 2015-08-04

        CUDA is the proprietary technology of the NVIDIA corporation and it does not work with AMD cards. But OpenCL is universal and it works fine with both NVIDIA and AMD video chips. You could get more information about OpenCL libraries on official AMD developer site: http://developer.amd.com/tools-and-sdks/opencl-zone/ . Check out the "Libraries" section and AMD OpenCL SDK.

         

Log in to post a comment.