Author Topic: KRATOS_THROW_ERROR problem (core dumped)  (Read 460 times)


  • Newbie
  • *
  • Posts: 2
KRATOS_THROW_ERROR problem (core dumped)
« on: March 18, 2016, 07:32:30 PM »
Hello everyone,
there is a problem when two threads try to KRATOS_THROW_ERROR at the same time.
when this happens, I get an "Aborted (core dumped)", and no further information.
Then it becomes extremely hard to track the errors, since I am not expecting the code to halt exactly where it is supposed to be sending a clear error message.
Is there any way to fix this? maybe make it serial?


  • Global Moderator
  • Newbie
  • *****
  • Posts: 47
Re: KRATOS_THROW_ERROR problem (core dumped)
« Reply #1 on: March 19, 2016, 06:46:02 PM »
Hi Pablo,

Unfortunately this is most likely an openmp estandard problem.

Openmp does not make any guarantee about the correctness of exceptions, rather it says explicitly that no guarantee
Is given.

My impression is that this gotworst with modern compilers. (Particularly I had this program once with clang)

We can look into it but I am.afraid there is no good solution without support of the standard.

Most probably the correct exception would be thrown if you do