public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* getc() issue
@ 2008-05-03  1:23 Vardhan, Sundara (GE Infra, Energy)
  0 siblings, 0 replies; only message in thread
From: Vardhan, Sundara (GE Infra, Energy) @ 2008-05-03  1:23 UTC (permalink / raw)
  To: gcc-help

Hi

I have an application which hangs after reading some lines from a file. It uses getc(). Upon attaching the process to gdb and checking the stack, it looks to be hanging at __read_nocancel(), like follows :

(gdb) where
#0  0x40000402 in __kernel_vsyscall ()
#1  0x00a3fe93 in __read_nocancel () from /lib/libc.so.6
#2  0x009e1d78 in _IO_file_read_internal () from /lib/libc.so.6
#3  0x009e30c0 in _IO_new_file_underflow () from /lib/libc.so.6
#4  0x009e37bb in _IO_default_uflow_internal () from /lib/libc.so.6
#5  0x009e4b1d in __uflow () from /lib/libc.so.6
#6  0x009dec10 in getc () from /lib/libc.so.6
#7  0x4000897f in syn_yylex () from /xalocal/L/lib/ldb/libsynL.so
#8  0x4000fe89 in syn_yyparse () from /xalocal/L/lib/ldb/libsynL.so
#9  0x40006141 in syn_check_syntax () from /xalocal/L/lib/ldb/libsynL.so
#10 0x0804c1e8 in read_attr_syntax ()
#11 0x0804aa33 in proc_lines ()
#12 0x0804a213 in proc_ascii_file ()
#13 0x08049d99 in process_lf_request ()
#14 0x080496eb in process_args ()
#15 0x0804936c in main ()

Any ideas why this happens and how to get out of this?

Thanks and Regards

Vardhan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-03  1:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-03  1:23 getc() issue Vardhan, Sundara (GE Infra, Energy)

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).