Date: Mon, 31 Oct 2005 21:57:39 GMT From: Arjo Hooimeijer <arjo.hooimeijer@xs4all.nl> To: freebsd-gnats-submit@FreeBSD.org Subject: amd64/88299: swapcontext fails with errno 0 Message-ID: <200510312157.j9VLvddQ070632@www.freebsd.org> Resent-Message-ID: <200510312200.j9VM0bdG046364@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 88299 >Category: amd64 >Synopsis: swapcontext fails with errno 0 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 31 22:00:36 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Arjo Hooimeijer >Release: 6.0-RC1 >Organization: >Environment: FreeBSD deathstar.starwars.nl.eu.org 6.0-RC1 FreeBSD 6.0-RC1 #0: Sun Oct 16 19:09:55 CEST 2005 root@yoda.starwars.nl.eu.org:/usr/obj/usr/src/sys/DEATHSTAR amd64 >Description: The dns/powerdns port contains a program 'pdns_recursor', which calls swapcontext. Sooner or later, swapcontext fails, but the error no is 0. The error occurs when the following code is executed: if(swapcontext(&d_kernel,i->second.context)) { // swaps back to the above point 'A' perror("swapcontext in schedule2"); exit(EXIT_FAILURE); } The following error is logged: swapcontext in schedule2: Unknown error: 0 >How-To-Repeat: Install the powerdns port on 6.0-RC1 amd64 and run the pdns_recursor program. The pdns_recursor program will just eventually stop. Or, to see it happen, run it with the switch: --daemon=no >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510312157.j9VLvddQ070632>