X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=xUBvIv1MXcgRWW+LTMJxnG7F5xixoMsZJIqgOcXVnLm kZur2oQYii036mfDi0Htcse8r5Oj8fYrP7ZYZrxkHAkBgWtSxhOQ4BlpGs3SmRBn ti5KgiCX1NH8dxXsKz4lS+cTQwXjbtUlWSNx2OfmRsKpMzb5JmW8+jiZwUVZThZM = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=T9haqQjHBOs3dz5nfw62pUhBTSQ=; b=diupI+qyxC33c6vNE U86AbSXUfe0WW+HTQvB69D7vWBG15bGPh3hsm1KuVkstECT2+4tFSx78KqaTZ2j1 aj6U2JhtUC6ryGHJdPt5iI/fzYCJ2/hQO/3MEDteQbjApWQEZxv6tV5+77kT24qS diwzKKa1aGtY/n5pp1W/43XjQE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_40,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RDNS_NONE,SPF_NEUTRAL autolearn=no version=3.3.1 Message-ID: <51F422BE.7040208@cs.utoronto.ca> Date: Sat, 27 Jul 2013 15:42:54 -0400 From: Ryan Johnson User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: 64-bit gdb: invalid decimal " 0x22DBF0" References: <51F33E9D DOT 9030703 AT cs DOT utoronto DOT ca> <51F3A133 DOT 8090805 AT star DOT sr DOT bham DOT ac DOT uk> In-Reply-To: <51F3A133.8090805@star.sr.bham.ac.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: That STC let me get a stack trace of gdb: > #0 write (fd=2, ptr=ptr AT entry=0x600298c70, len=len AT entry=27) > at /usr/src/debug/cygwin-1.7.22-1/winsup/cygwin/syscalls.cc:1215 > #1 0x00000001801aef93 in _write_r (ptr=ptr AT entry=0xc2d440, > fd=, buf=buf AT entry=0x600298c70, cnt=cnt AT 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 , > 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 AT entry=0xc2d440, > fp=fp AT entry=0x1801cb608 , uio=uio AT 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=, > fp=0x1801cb608 ) > 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 AT 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 AT entry=0x0) > at /usr/src/debug/gdb-7.6-2/gdb/main.c:258 > #19 0x000000010051484a in catch_errors ( > func=func AT entry=0x1005160b0 , > func_args=func_args AT entry=0x0, > errstring=errstring AT entry=0x100753ea3 > <__PRETTY_FUNCTION__.13175+221> "", > mask=mask AT entry=6) > at /usr/src/debug/gdb-7.6-2/gdb/exceptions.c:546 > #20 0x0000000100516f7d in captured_main (data=data AT entry=0xc2aaa0) > at /usr/src/debug/gdb-7.6-2/gdb/main.c:1041 > #21 0x000000010051484a in catch_errors ( > func=func AT entry=0x1005163a0 , > func_args=func_args AT entry=0xc2aaa0, > errstring=errstring AT entry=0x100753ea3 > <__PRETTY_FUNCTION__.13175+221> "", > mask=mask AT entry=6) > at /usr/src/debug/gdb-7.6-2/gdb/exceptions.c:546 > #22 0x00000001005174ec in gdb_main (args=args AT 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