[Pkg-dns-devel] Bug#887034: pdns-recursor: FTBFS on mips64el - mtasker related failures

James Cowgill jcowgill at debian.org
Fri Jan 12 17:21:31 UTC 2018


Source: pdns-recursor
Version: 4.1.0-1
Severity: serious
Tags: sid buster patch

Hi,

pdns-recursor FTBFS on mips64el due segfaulting (or another crash) while
executing the mtasker tests.

Build log (exit status 139 = SIGSEGV):
> Checking bad value for record type SOA test #1
> FAIL testrunner (exit status: 139)

Similar errors occur on other architectures which might be related to
the failure on mips64el, but I did not investigate those.

On mips64el the crash comes as a result of throwing an exception in the
willThrow function in test-mtasker.cc. Throwing an exception makes a
call into the stack unwinder in libgcc which uses enough stack space to
overflow the stack allocated for the currently running task. In this
case, it just so happens that the return ucontext gets overwritten by
the stack overflow and after returning from threadWrapper, we jump to
some garbage memory location.

The attached patch fixes this by increasing the stack size for all 128k
for all tasks.

The 32-bit build failures are related to #887030.

Thanks,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mtasker-stack.patch
Type: text/x-patch
Size: 486 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-dns-devel/attachments/20180112/700a102a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-dns-devel/attachments/20180112/700a102a/attachment.sig>


More information about the pkg-dns-devel mailing list