Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

"Stack trace terminated abnormally" due to symlink

Halvor_L_
Beginner
447 Views

I have encountered a strange issue with tracebackqq in combination with symlinks, which causes the stack trace to terminate abnormally.

Consider a file tracebacktest.f90:

program tracebacktest
  use ifcore, only: tracebackqq
  call tracebackqq()
end program tracebacktest

which is compiled and run as follows:

ifort -traceback tracebacktest.f90 -o tracebacktest/a.out
ln -s tracebacktest/a.out test
./test

This causes a "Stack trace terminated abnormally". Similarly, if the symlink is in the same folder, the Routine/Line/Source columns only list "Unknown":

ifort -traceback tracebacktest.f90 -o a.out
ln -s a.out test
./test

I'm guessing this is a compiler issue, but please correct me if it is due to incorrect use of symlinks. I'm using ifort version 16.0.2 on Linux .

 

0 Kudos
2 Replies
Steven_L_Intel1
Employee
447 Views

I can reproduce this. My guess is that the traceback code, which needs to read the executable file, is having trouble with the symlink. I will pass this on to the developers and let you know of any news. Issue ID is DPD200409564.

0 Kudos
Steven_L_Intel1
Employee
447 Views

I expect this to be fixed in Update 4.

0 Kudos
Reply