From jwk@stack.nl  Thu Sep  5 05:35:49 2002
Return-Path: <jwk@stack.nl>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id AB65237B400
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  5 Sep 2002 05:35:49 -0700 (PDT)
Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140])
	by mx1.FreeBSD.org (Postfix) with ESMTP id EF52F43E4A
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  5 Sep 2002 05:35:48 -0700 (PDT)
	(envelope-from jwk@stack.nl)
Received: from toad.stack.nl (toad.stack.nl [2001:610:1108:5010:202:b3ff:fe17:9e1a])
	by mailhost.stack.nl (Postfix) with ESMTP
	id 9FF9AA2FC8; Thu,  5 Sep 2002 14:35:47 +0200 (CEST)
Received: by toad.stack.nl (Postfix, from userid 887)
	id 196EE96D1; Thu,  5 Sep 2002 14:35:47 +0200 (CEST)
Message-Id: <20020905123547.196EE96D1@toad.stack.nl>
Date: Thu,  5 Sep 2002 14:35:47 +0200 (CEST)
From: Jan Willem Knopper <jwk@stack.nl>
Reply-To: Jan Willem Knopper <jwk@stack.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc: unix@stack.nl
Subject: problem in idlequeue/debugging mode ?
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         42442
>Category:       kern
>Synopsis:       problem in idlequeue/debugging mode ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 05 05:40:02 PDT 2002
>Closed-Date:    Sat Mar 26 16:58:36 UTC 2011
>Last-Modified:  Sat Mar 26 16:58:36 UTC 2011
>Originator:     Jan Willem Knopper
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
M.C.G.V. Stack
>Environment:
System: FreeBSD toad.stack.nl 4.6-STABLE FreeBSD 4.6-STABLE #0: Tue Aug 20 17:45:11 CEST 2002 jwk@toad.stack.nl:/toad.mnt/slurp/obj/toad.mnt/sources/4.x/sys/toad_vwww i386


>Description:
	The configure script of zsh hung in idle mode (and not in normal mode).
	It seems to be a problem with reading opening fifo's and/or forking.
	When using gdb the same problem occurs.
>How-To-Repeat:
	Code of the configure script:
//#line 6320 "configure"
//#include "confdefs.h"
#define HAVE_MKFIFO

#include <fcntl.h>
#include <signal.h>
main()
{
    char c;
    int fd;
    int pid, ret;
    unlink("/tmp/fifo6424");
#ifdef HAVE_MKFIFO
    if(mkfifo("/tmp/fifo6424", 0600) < 0)
#else
    if(mknod("/tmp/fifo6424", 0010600, 0) < 0)
#endif
	exit(1);

    pid = fork();
    if(pid < 0)
	exit(1);
    if(pid) {
	fd = open("/tmp/fifo6424", O_RDONLY);
	exit(fd < 0 || read(fd, &c, 1) != 1 || c != 'x');
    }
    fd = open("/tmp/fifo6424", O_WRONLY);
    ret = (fd < 0 || write(fd, "x", 1) < 1);
    unlink("/tmp/fifo6424");
    exit(ret);
}

>Fix:
	none known 
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: jh 
State-Changed-When: Sun Feb 13 08:47:55 UTC 2011 
State-Changed-Why:  
Can you still reproduce this on a supported release? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42442 
State-Changed-From-To: feedback->closed 
State-Changed-By: jh 
State-Changed-When: Sat Mar 26 16:58:35 UTC 2011 
State-Changed-Why:  
Feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42442 
>Unformatted:
