Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jun 2003 12:41:32 +0200 (MET DST)
From:      =?iso-8859-1?Q?Henrik_Grubbstr=F6m?= <grubba@roxen.com>
To:        Ceri Davies <ceri@FreeBSD.org>
Cc:        Dan Nelson <dnelson@allantgroup.com>
Subject:   Re: misc/22190: A threaded read(2) from a socketpair(2) fd can sometimes fail with errno 19 (ENODEV)
Message-ID:  <Pine.GSO.4.21.0306091233430.13083-100000@jms.roxen.com>
In-Reply-To: <200306081757.h58Hv8Nm000153@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 8 Jun 2003, Ceri Davies wrote:

> Synopsis: A threaded read(2) from a socketpair(2) fd can sometimes fail with errno 19 (ENODEV)
> 
> State-Changed-From-To: feedback->open
> State-Changed-By: ceri
> State-Changed-When: Sun Jun 8 10:57:08 PDT 2003
> State-Changed-Why: 
> Feedback has been requested and received; throw this PR back open.
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=22190

Well, since the last followup was from august last year, I can inform you
that the bug was last triggered on Dan's FreeBSD 5.1-BETA machine
yesterday:

Fatal error 'read(2) may not return ENODEV' at line 98 in file /usr/src/lib/libc_r/uthread/uthread_read.c (errno = 19)
Abort trap (core dumped)

Core was generated by `pike'.
Program terminated with signal 6, Aborted.
#0  0x2826239f in kill () at {standard input}:15
	in {standard input}

Active threads
Current language:  auto; currently asm
* 1 process 33497  0x2826239f in kill () at {standard input}:15

Backtrace
#0  0x2826239f in kill () at {standard input}:15
#1  0x282c219a in abort () at /usr/src/lib/libc/stdlib/abort.c:72
#2  0x2820f443 in _thread_exit ()
    at /usr/src/lib/libc_r/uthread/uthread_exit.c:99
#3  0x28209d65 in _read (fd=12, buf=0xbf966fe8, nbytes=3)
    at /usr/src/lib/libc_r/uthread/uthread_read.c:98
#4  0x28209d9b in __read (fd=12, buf=0xbf966fe8, nbytes=3)
    at /usr/src/lib/libc_r/uthread/uthread_read.c:108
#5  0x080b725a in f_create_process (args=1)
    at /usr/tmp/xenofarm/pike-7.5/dan.emsphone.com/buildtmp/Pike7.5-20030608-215603/src/signal_handler.c:3512
#6  0x0807073d in low_mega_apply (type=APPLY_LOW, args=1, arg1=0x85dced8, 
    arg2=0x6) at apply_low.h:195
#7  0x08071734 in mega_apply (type=APPLY_LOW, args=1, arg1=0x85dced8, arg2=0x6)
    at /usr/tmp/xenofarm/pike-7.5/dan.emsphone.com/buildtmp/Pike7.5-20030608-215603/src/interpret.c:1702
#8  0x080cd7a5 in call_pike_initializers (o=0x85dced8, args=1)
    at /usr/tmp/xenofarm/pike-7.5/dan.emsphone.com/buildtmp/Pike7.5-20030608-215603/src/object.c:326
#9  0x080cd894 in debug_clone_object (p=0x5, args=1)
    at /usr/tmp/xenofarm/pike-7.5/dan.emsphone.com/buildtmp/Pike7.5-20030608-215603/src/object.c:352
#10 0x080711fe in low_mega_apply (type=APPLY_SVALUE_STRICT, args=1, 
    arg1=0x8533554, arg2=0x0)
    at /usr/tmp/xenofarm/pike-7.5/dan.emsphone.com/buildtmp/Pike7.5-20030608-215603/src/interpret.c:1500
#11 0x0806e77d in opcode_F_APPLY (arg1=33496) at interpret_functions.h:1873
#12 0x08533166 in ?? ()
#13 0x08071750 in mega_apply (type=APPLY_STACK, args=1, arg1=0x0, arg2=0x0)
    at /usr/tmp/xenofarm/pike-7.5/dan.emsphone.com/buildtmp/Pike7.5-20030608-215603/src/interpret.c:1704
#14 0x08071874 in f_call_function (args=1)
    at /usr/tmp/xenofarm/pike-7.5/dan.emsphone.com/buildtmp/Pike7.5-20030608-215603/src/interpret.c:1769
#15 0x080f6fed in new_thread_func (data=0xbfbff404)
    at /usr/tmp/xenofarm/pike-7.5/dan.emsphone.com/buildtmp/Pike7.5-20030608-215603/src/threads.c:788
#16 0x28204e6d in _thread_start ()
    at /usr/src/lib/libc_r/uthread/uthread_create.c:275
#17 0xbf91c000 in ?? ()

sysname: FreeBSD
release: 5.1-BETA
version: FreeBSD 5.1-BETA #271: Thu May 29 16:33:28 CDT 2003
dan@dan.emsphone.com:/usr/src/sys/i386/compile/DANSMP 
machine: i386
nodename: dan.emsphone.com
testname: default
command: make xenofarm
clientversion: $Id: client.sh,v 1.73 2003/05/20 12:48:33 mani Exp $
putversion: $Id: put.c,v 1.14 2003/01/12 21:14:16 ceder Exp $
contact: dnelson@allantgroup.com

Thanks,

--
Henrik Grubbström					grubba@roxen.com
Roxen Internet Software AB



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.21.0306091233430.13083-100000>