Intel® High Level Design
Support for Intel® High Level Synthesis Compiler, DSP Builder, OneAPI for Intel® FPGAs, Intel® FPGA SDK for OpenCL™
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
528 Discussions

Segmentation fault (Core dumped)

leonardopereira
Beginner
460 Views

Good afternoon.

I have been chasing the cause of this error for over two months. My FORTRAN source compiles, but when I run the compiled program, Segmentation fault (core dumped) occurs. I suspect something is missing or some necessary Intel oneAPI configuration is missing. My FORTRAN sources were written to compile on x86.

 

Could you give me some guidance? Thank you very much.

Linux Ubuntu 20.01

Intel oneAPI Base & HPC Tooklit version 2021.2

 

1) When I try to initialize the environment in the ia32 architecture, it shows the absence of the libtbb.so.12 library, in addition to several compilation errors in the program. LOG below:

source /opt/intel/oneapi/setvars.sh ia32

------------------------------------------
:: initializing oneAPI environment ...
compile.sh: BASH_VERSION = 5.0.17(1)-release
:: advisor -- latest
:: ccl -- latest
:: clck -- latest
:: compiler -- latest
:: dal -- latest
:: debugger -- latest
:: dev-utilities -- latest
:: dnnl -- latest
:: dpcpp-ct -- latest
:: dpl -- latest
:: inspector -- latest
:: intelpython -- latest
:: ipp -- latest
:: ippcp -- latest
:: ipp -- latest
:: itac -- latest
:: mkl -- latest
:: mpi -- latest
:: tbb -- latest
ERROR: libtbb.so.12 library does not exist in /opt/intel/oneapi/tbb/2021.2.0/env/../lib/ia32/gcc4.8.
:: vpl -- latest
:: vtune -- latest
:: oneAPI environment initialized ::

------------------------------------------

How do I fix this?

 

2) When I try to initialize the environment on intel64 architecture, the program compiles, but when executing it, Segmentation fault (core dumped) occurs.

source /opt/intel/oneapi/setvars.sh intel64

 

3) Not knowing what else to do, I tried to run sys_check.sh intel64, running the following commands:
/opt/intel/oneapi/sys_check.sh intel64

:: debugger -- latest
Error: gdb-oneapi binary not in $PATH.
Run
'source /opt/intel/oneapi/debugger/10.1.1/env/var.sh'
to ensure the environment is correctly configured.
GDB encountered issues.
:: tbb -- latest
:: compiler -- latest
Warning: INTELFPGAOCLSDKROOT is not set.
Please source oneAPI setvars.sh to set it.
Continuing sys_check with INTELFPGAOCLSDKROOT set to /opt/intel/oneapi/compiler/2021.2.0/linux/lib/oclfpga.
Warning: INTEL_FPGA_ROOT is not set.
Please ensure Intel(R) FPGA Add-on for oneAPI Base Toolkit is installed
if you want to perform FPGA bitstream generation.
Warning: Open Programmable Acceleration Engine (OPAE) driver was not found.
If Intel(R) Programmable Acceleration Card with Intel(R) Arria(R) 10 GX
or Intel(R) Stratix(R) 10 SX FPGA is installed in the system, please
install OPAE driver by running
aocl install <board package name or path>
:: advisor -- latest
:: vtune -- latest
:: dpcpp-ct -- latest
The Intel(R) DPC++ Compatibility Tool requires the python to be installed.
:: intelpython -- latest
Error: Python environment is not activated.
Use 'source /opt/intel/oneapi/intelpython/latest/env/vars.sh'
or 'source /opt/intel/oneapi/intelpython/latest/bin/activate'
to use Intel(R) Distribution for Python
:: inspector -- latest
Error: Intel(R) Inspector 2021.2 does not support this version of OS.
Issues Encountered.

 

4) Since Python wasn't enabled, I ran:
source /opt/intel/oneapi/intelpython/latest/env/vars.sh
/opt/intel/oneapi/sys_check.sh intel64
Below the LOG:

:: debugger -- latest
Error: gdb-oneapi binary not in $PATH.
Run
'source /opt/intel/oneapi/debugger/10.1.1/env/var.sh'
to ensure the environment is correctly configured.
GDB encountered issues.
:: tbb -- latest
:: compiler -- latest
Warning: INTELFPGAOCLSDKROOT is not set.
Please source oneAPI setvars.sh to set it.
Continuing sys_check with INTELFPGAOCLSDKROOT set to /opt/intel/oneapi/compiler/2021.2.0/linux/lib/oclfpga.
Warning: INTEL_FPGA_ROOT is not set.
Please ensure Intel(R) FPGA Add-on for oneAPI Base Toolkit is installed
if you want to perform FPGA bitstream generation.
Warning: Open Programmable Acceleration Engine (OPAE) driver was not found.
If Intel(R) Programmable Acceleration Card with Intel(R) Arria(R) 10 GX
or Intel(R) Stratix(R) 10 SX FPGA is installed in the system, please
install OPAE driver by running
aocl install <board package name or path>
:: advisor -- latest
:: vtune -- latest
:: dpcpp-ct -- latest
:: intelpython -- latest
...None

======================================================================
ERROR: test_smoke (__main__.TestIntelDistribution) (package='cython')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/intel/oneapi/intelpython/latest/sys_check/sys_check.py", line 80, in test_smoke
raise err
File "/opt/intel/oneapi/intelpython/latest/sys_check/sys_check.py", line 77, in test_smoke
stderr=subprocess.DEVNULL)
File "/opt/intel/oneapi/intelpython/latest/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'python "/opt/intel/oneapi/intelpython/latest/pkgs/cython-0.29.21-py37h288f0c4_4/info/test/run_test.py"' returned non-zero exit status 1.

----------------------------------------------------------------------
Ran 4 tests in 53.153s

FAILED (errors=1)

Failed
:: inspector -- latest
Error: Intel(R) Inspector 2021.2 does not support this version of OS.
Issues Encountered.

0 Kudos
1 Reply
BoonBengT_Intel
Moderator
337 Views

Hi @leonardopereira,

 

Thank you for posting in Intel community forum, hope this message find you well and apologies for the delayed in response.
Please do let us know if you are still facing the difficulties mention and we would get back to you as soon as possible.

 

Best Wishes
BB

Reply