64-bit gdb: invalid decimal " 0x22DBF0"

Ryan Johnson ryan.johnson@cs.utoronto.ca
Sat Jul 27 22:19:00 GMT 2013


On 27/07/2013 6:30 AM, Daniel Brown wrote:
> I have also ran into this problem, in my case though I have managed to 
> reduce the issue down to an fgets call when reading a pipe.
> The following code causes the issue for me if I try and debug it:
<STC snipped>
That STC let me get a stack trace of gdb:
> #0 write (fd=2, ptr=ptr@entry=0x600298c70, len=len@entry=27)
> at /usr/src/debug/cygwin-1.7.22-1/winsup/cygwin/syscalls.cc:1215
> #1 0x00000001801aef93 in _write_r (ptr=ptr@entry=0xc2d440,
> fd=<optimized out>, buf=buf@entry=0x600298c70, cnt=cnt@entry=27)
> at /usr/src/debug/cygwin-1.7.22-1/newlib/libc/reent/writer.c:58
> #2 0x000000018019c2bf in __swrite64 (ptr=0xc2d440,
> cookie=0x1801cb608 <reent_data+1704>,
> buf=0x600298c70 "invalid decimal \" 0x22DBF0\"", n=27)
> at /usr/src/debug/cygwin-1.7.22-1/newlib/libc/stdio64/stdio64.c:71
> #3 0x000000018019bc00 in __sfvwrite_r (ptr=ptr@entry=0xc2d440,
> fp=fp@entry=0x1801cb608 <reent_data+1704>, uio=uio@entry=0xc2a690)
> at /usr/src/debug/cygwin-1.7.22-1/newlib/libc/stdio/fvwrite.c:97
> #4 0x00000001801752e4 in _fputs_r (ptr=0xc2d440, s=<optimized out>,
> fp=0x1801cb608 <reent_data+1704>)
> at /usr/src/debug/cygwin-1.7.22-1/newlib/libc/stdio/fputs.c:94
> #5 0x00000001801130cb in _sigfe () from /usr/bin/cygwin1.dll
... ten frames of garbage...
> #15 0x0000000100513f7a in print_exception (file=0x60017c920, 
> file@entry=0x0, e=...)
> at /usr/src/debug/gdb-7.6-2/gdb/exceptions.c:303
> #16 0x00000001005144e4 in exception_print (file=0x0, e=...)
> at /usr/src/debug/gdb-7.6-2/gdb/exceptions.c:333
> #17 0x000000010051c8bc in start_event_loop ()
> at /usr/src/debug/gdb-7.6-2/gdb/event-loop.c:435
> #18 0x00000001005160c6 in captured_command_loop (data=data@entry=0x0)
> at /usr/src/debug/gdb-7.6-2/gdb/main.c:258
> #19 0x000000010051484a in catch_errors (
> func=func@entry=0x1005160b0 <captured_command_loop>,
> func_args=func_args@entry=0x0,
> errstring=errstring@entry=0x100753ea3 
> <__PRETTY_FUNCTION__.13175+221> "",
> mask=mask@entry=6)
> at /usr/src/debug/gdb-7.6-2/gdb/exceptions.c:546
> #20 0x0000000100516f7d in captured_main (data=data@entry=0xc2aaa0)
> at /usr/src/debug/gdb-7.6-2/gdb/main.c:1041
> #21 0x000000010051484a in catch_errors (
> func=func@entry=0x1005163a0 <captured_main>,
> func_args=func_args@entry=0xc2aaa0,
> errstring=errstring@entry=0x100753ea3 
> <__PRETTY_FUNCTION__.13175+221> "",
> mask=mask@entry=6)
> at /usr/src/debug/gdb-7.6-2/gdb/exceptions.c:546
> #22 0x00000001005174ec in gdb_main (args=args@entry=0xc2aaa0)
> at /usr/src/debug/gdb-7.6-2/gdb/main.c:1050
> #23 0x00000001006e0721 in main (argc=2, argv=0xc2ab20)
> at /usr/src/debug/gdb-7.6-2/gdb/gdb.c:34

Maybe that will help?
Ryan
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /