Probably some `malloc()` fails and return isn't checked against `NULL`. The segfault occurs after workers are started. - 6. worker ... done. All workers up and running Segmentation fault (core dumped)