[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#285352: marked as done (FIFO read doesn't block on SPARC)



Your message dated Sun, 12 Dec 2004 20:02:15 +0100 (CET)
with message-id <Pine.LNX.4.58.0412122000340.4904@localhost>
and subject line Bug#285352: Acknowledgement (FIFO read doesn't block on SPARC)
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 12 Dec 2004 18:28:59 +0000
>From jochen@scram.de Sun Dec 12 10:28:59 2004
Return-path: <jochen@scram.de>
Received: from mail0.scram.de [195.226.127.110] (postfix)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CdYSp-0007ih-00; Sun, 12 Dec 2004 10:28:59 -0800
Received: from mail3.scram.de (mail3.scram.de [195.226.127.113])
	by mail0.scram.de (Postfix) with ESMTP id 8B19E120243;
	Sun, 12 Dec 2004 19:28:56 +0100 (CET)
Received: from [192.168.95.40] (pD9FF7B3C.dip.t-dialin.net [217.255.123.60])
	by mail0.scram.de (Postfix) with ESMTP id 53E851204D7;
	Sun, 12 Dec 2004 19:28:51 +0100 (CET)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Jochen Friedrich <jochen@scram.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: FIFO read doesn't block on SPARC
X-Mailer: reportbug 3.2
Date: Sun, 12 Dec 2004 19:28:47 +0100
Message-Id: <[🔎] 20041212182851.53E851204D7@mail0.scram.de>
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at scram.de
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: libc6
Version: 2.3.2.ds1-19
Severity: normal

While debugging heartbeat on SPARC, i found a problem with FIFO reads 
returning early in blocking mode. This sample demonstrates the problem 
(reproducable on auric):

Do a "mknod /tmp/fifo -p" before running this: 

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>


int main()
{
	int             fiforfd, i;
	FILE *          fifo;
	int             flags;
	char            buf[1000];
	char *          getsret;

	fiforfd = open("/tmp/fifo", O_RDONLY|O_NDELAY|O_NONBLOCK);
	i = open("/tmp/fifo", O_WRONLY);

        flags = fcntl(fiforfd, F_GETFL);
        flags &= ~O_NONBLOCK;
        fcntl(fiforfd, F_SETFL, flags);
        fifo = fdopen(fiforfd, "r");

	getsret = fgets(buf, sizeof(buf), fifo);
	printf("%s\n", buf);
}

On Intel, it will just block (as expected), but on SPARC it immediately 
returns.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: sparc
Kernel: Linux 2.4.27-1-sparc32-smp
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)

Versions of packages libc6 depends on:
ii  libdb1-compat                 2.1.3-7    The Berkeley database routines [gl

-- no debconf information

---------------------------------------
Received: (at 285352-done) by bugs.debian.org; 12 Dec 2004 19:03:06 +0000
>From jochen@scram.de Sun Dec 12 11:03:06 2004
Return-path: <jochen@scram.de>
Received: from mail1.nwe.de [195.226.126.83] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CdYzq-0006p2-00; Sun, 12 Dec 2004 11:03:06 -0800
Received: from mail3.scram.de (mail3.scram.de [195.226.127.113])
	by localhost (Postfix) with ESMTP id D8189BD33
	for <285352-done@bugs.debian.org>; Sun, 12 Dec 2004 20:02:34 +0100 (CET)
Received: from [192.168.95.244] (pD9FF7B3C.dip.t-dialin.net [217.255.123.60])
	(using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))
	(No client certificate requested)
	by mail1.nwe.de (Postfix) with ESMTP id 5D868BD31
	for <285352-done@bugs.debian.org>; Sun, 12 Dec 2004 20:02:28 +0100 (CET)
Date: Sun, 12 Dec 2004 20:02:15 +0100 (CET)
From: Jochen Friedrich <jochen@scram.de>
X-X-Sender: jochen@localhost
To: 285352-done@bugs.debian.org
Subject: Re: Bug#285352: Acknowledgement (FIFO read doesn't block on SPARC)
In-Reply-To: <handler.285352.B.110287613929691.ack@bugs.debian.org>
Message-ID: <Pine.LNX.4.58.0412122000340.4904@localhost>
References: <[🔎] 20041212182851.53E851204D7@mail0.scram.de>
 <handler.285352.B.110287613929691.ack@bugs.debian.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at scram.de
Delivered-To: 285352-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Supid me,

O_NONBLOCK == O_NDELAY on Intel, but not on SPARC!

Sample fixed, and working!

Sorry for the confusion. Bug will be opened for heartbeat instead ;)



Reply to: