getc() issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux