bsc-performance-tools / dimemas

High-abstracted network simulator for message-passing programs.
GNU Lesser General Public License v2.1
7 stars 1 forks source link

Segfaults upon `task` dereference in function `void TASK_OpenMP_Task` #5

Open joanvyc opened 1 month ago

joanvyc commented 1 month ago

What Happened?

The application segfaults.

What version?

Dimemas 5.4.2

Insight

After running Dimemas with GDB I found that the segfault was happening in the funcitonTASK_OpenMP_Task where I discovered that the struct pointer tasks is never allocated however is dereferenced later in the function.

https://github.com/bsc-performance-tools/dimemas/blob/508bfdd12b6850acb16a1ec18216482112001edc/Simulator/model/task.c#L569-L595