Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  5 Sep 2002 14:35:47 +0200 (CEST)
From:      Jan Willem Knopper <jwk@stack.nl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        unix@stack.nl
Subject:   kern/42442: problem in idlequeue/debugging mode ?
Message-ID:  <20020905123547.196EE96D1@toad.stack.nl>

next in thread | raw e-mail | index | archive | help

>Number:         42442
>Category:       kern
>Synopsis:       problem in idlequeue/debugging mode ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 05 05:40:02 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020905123547.196EE96D1>