This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: job control "Bad address" error
- From: Eric Blake <ebb9 at byu dot net>
- To: cygwin at cygwin dot com
- Date: Tue, 16 Jun 2009 15:28:14 +0000 (UTC)
- Subject: Re: job control "Bad address" error
- References: <7vd494i72q.fsf@gmail.com>
Haojun Bao <baohaojun <at> gmail.com> writes:
> type the command:
> cat|cat <Enter>
>
> type ^Z, type
> bg <Enter>
I can also reproduce it under cygwin 1.7, and further clarified that it is the
second cat that is failing:
$ sleep 100 | cat
^Z
$ bg
cat: -: Bad address
I'm not quite sure how to strace this, since you can't use ^Z to suspend an
active strace. But my guess is that there is a bug in cygwin1.dll pipe
handling code, such that it dereferences bad memory when resuming execution of
a read from a pipe after a SIGSTOP; cat is just reporting the EFAULT from a
failed read() call.
--
Eric Blake
volunteer cygwin coreutils maintainer
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/