Skip to content

segfault in ABM with OpenMP #857

@dabele

Description

@dabele

Bug description

OpenMP multithreaded abm_simulation crashes with a segfault. without OpenMP (or OMP_NUM_THREADS=1) the program runs normal. In Release build the crash happened reliably for me. In Debug builds the crash doesn't always happen or takes a long time to happen, so it's hard to debug

Version

Linux

To reproduce

  1. build abm_simulation with MEMILIO_ENABLE_OPENMP=ON
  2. export OMP_NUM_THREADS=<N>, higher N seems to increase chance of it happening.
  3. run abm_simulation 1 <dir>

Relevant log output

No response

Add any relevant information, e.g. used compiler, screenshots.

gcc 11, ubuntu 20

Checklist

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project

Metadata

Metadata

Assignees

Labels

class::bugBugs found in the softwareloc::backendThis issue concerns the C++ backend implementation.model::abmThis issue concerns any kind of agent-based model.prio::highThe priority of this task is high.

Type

No type

Projects

Status

Done (Total) 💯

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions