https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115421

--- Comment #8 from Liviu Ionescu <ilg at livius dot net> ---
A small correction, the first run should be without -static:

```
$ g++ sleepy-threads-cv.cpp -o sleepy-threads-cv -g -lpthread
$ ./sleepy-threads-cv 4
abcd
$ g++ sleepy-threads-cv.cpp -o static-sleepy-threads-cv -static -g -lpthread
$ ./static-sleepy-threads-cv 4
Segmentation fault
```

Reply via email to