Bug 1176

Summary: Segmentation fault on Alpine Linux 3.4
Product: unbound Reporter: Uladzimir Trehubenka <utrehubenka>
Component: serverAssignee: unbound team <unbound-team>
Status: RESOLVED FIXED    
Severity: major CC: cathya, wouter
Priority: P5    
Version: 1.5.10   
Hardware: x86_64   
OS: Linux   
Attachments: Docker build env for reproduce the issue. Also included quick fix.

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
http://wiki.musl-libc.org/wiki/Functional_differences_from_glibc#Thread_stack_size
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