From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15387 invoked from network); 30 Sep 2001 02:24:08 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Sep 2001 02:24:08 -0000 Received: (qmail 24702 invoked by alias); 30 Sep 2001 02:24:01 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15907 Received: (qmail 24683 invoked from network); 30 Sep 2001 02:23:59 -0000 From: Bart Schaefer Message-Id: <1010930022316.ZM20422@candle.brasslantern.com> Date: Sun, 30 Sep 2001 02:23:16 +0000 In-Reply-To: <20010930022055.B2654@fysh.org> Comments: In reply to Zefram "Re: error on TTY read: no such file or directory" (Sep 30, 2:20am) References: <3BB56D03.2000300@mow.siemens.ru> <20010929034953.E16561@hithaeglir.net> <3BB62E93.10802@mow.siemens.ru> <20010929170811.G16561@hithaeglir.net> <3BB63D16.5040709@mow.siemens.ru> <20010929173848.H16561@hithaeglir.net> <3BB64378.8060505@mow.siemens.ru> <20010929181100.I16561@hithaeglir.net> <1010929223918.ZM20169@candle.brasslantern.com> <20010929202423.K16561@hithaeglir.net> <20010930022055.B2654@fysh.org> X-Mailer: Z-Mail (5.0.0 30July97) To: Zefram Subject: Re: error on TTY read: no such file or directory Cc: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 30, 2:20am, Zefram wrote: } } The strace output you're getting shows the kernel violating the rules } of the read() API; but if that may be broken, then it's also possible } that ptrace() or strace is broken instead. I don't think it's ptrace/strace that's broken, as the error output that he's getting from zsh when not tracing is consistent with a > 1 return value from read(). I'd be suspicious that the kernel is expecting a 64-bit value as the third argument to read() and is getting only a 32-bit value -- but in that case I'd expect strace to show the whole 64 bits so that we'd be able to tell how many bytes read() really was looking for; and that would leave the question of where the other 1024 bytes came from, and why stuffing 1025 bytes through the address of a single character on the stack doesn't cause a more serious meltdown ... -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net