Bug 1176 - Segmentation fault on Alpine Linux 3.4
Segmentation fault on Alpine Linux 3.4
Product: unbound
Classification: Unclassified
Component: server
x86_64 Linux
: P5 major
Assigned To: unbound team
Depends on:
  Show dependency treegraph
Reported: 2016-12-09 11:00 CET by Uladzimir Trehubenka
Modified: 2019-04-11 09:12 CEST (History)
3 users (show)

See Also:

Docker build env for reproduce the issue. Also included quick fix. (2.09 KB, application/zip)
2016-12-09 11:00 CET, Uladzimir Trehubenka

Note You need to log in before you can comment on or make changes to this bug.
Description Uladzimir Trehubenka 2016-12-09 11:00:22 CET
Created attachment 365 [details]
Docker build env for reproduce the issue. Also included quick fix.

On Alpine Linux default thread stack size is 80 Kb. See
This is not enough for Unbound and cause segmentation fault. Other linux distros have 2 Mb at least. NOTE: num-threads should be more than 1.
Comment 1 Wouter Wijngaards 2016-12-09 11:10:24 CET
Hi Uladzimir,

Thank you for the detailed report.  The patch looks good, I changed the logging and included it as-is.  Since the rc1 for 1.6.0 is already out, this one has to wait for 1.6.1 (because of the pthread usage and portability) for release.

Best regards, Wouter
Comment 2 Lynda Sharp 2019-04-11 09:12:44 CEST
according to ctime(3) Solaris requires a -D_POSIX_PTHREAD_SEMANTICS to allow a 2 argument ctime call. https://happywheels2.io