[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: YY_INPUT causes crash
From: |
James Hughes |
Subject: |
Re: YY_INPUT causes crash |
Date: |
Wed, 24 Jul 2002 07:37:20 -0400 |
User-agent: |
Mutt/1.4i |
On Mon, Jul 22, 2002 at 09:11:48AM -0400, W. L. Estes wrote:
> On Saturday, 20 July 2002,14:13 -0400, James Hughes wrote:
>
> > You're right: this is not a flex problem. I know this because
> > I attempted to compile and run a simple program using getchar()
> > (from page 17 of K&R 2nd. ed. to be exact) and I get the same
> > behaviour. However, could gcc screw up something so basic as
> > reading from stdin, no matter how unstable the version?
> >
> > Very bizarre.
>
> It is odd, but gcc has a history of being not for the feint of heart.
True, but that wasn't my problem here. I was running my programs
from the command line of an emacs terminal. Emacs terminals are very
flaky, and I guess they have trouble with stdin, or something.
Running from a regular shell behaves as expected.
Silly me, I should have thought of that first.
James
pgpqkH9gpDoK5.pgp
Description: PGP signature