public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* lex/yacc
@ 2008-05-06 14:25 Vardhan, Sundara (GE Infra, Energy)
  2008-05-06 15:37 ` lex/yacc Andrew Bell
  0 siblings, 1 reply; 2+ messages in thread
From: Vardhan, Sundara (GE Infra, Energy) @ 2008-05-06 14:25 UTC (permalink / raw)
  To: gcc-help

Hi 

I have a lex file which generates the corresponding c file using flex. In that a getc() is used to get the next character. The program hangs in this place indefinitely . The same program works fine on AIX and Solaris. Any ideas or pointers?

With Regards


Vardhan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: lex/yacc
  2008-05-06 14:25 lex/yacc Vardhan, Sundara (GE Infra, Energy)
@ 2008-05-06 15:37 ` Andrew Bell
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Bell @ 2008-05-06 15:37 UTC (permalink / raw)
  To: Vardhan, Sundara (GE Infra, Energy); +Cc: gcc-help

On Tue, May 6, 2008 at 9:19 AM, Vardhan, Sundara (GE Infra, Energy)
<sundara.vardhan@ge.com> wrote:
> Hi
>
>  I have a lex file which generates the corresponding c file using flex. In that a getc() is used to get the next character. The program hangs in this place indefinitely . The same program works fine on AIX and Solaris. Any ideas or pointers?

What OS are you using?  Sounds like getc() is blocking -- is it
possible that another thread/process is locking the file you are
trying to read?  Kill the process with some signal that will generate
a core dump and have a look.

-- 
Andrew Bell
andrew.bell.ia@gmail.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-06 14:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-06 14:25 lex/yacc Vardhan, Sundara (GE Infra, Energy)
2008-05-06 15:37 ` lex/yacc Andrew Bell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).