Re: gdb hangs on ^Z [was: Re: 64-bit gdb: invalid decimal 0x22DBF0]

2013-07-31 Thread Ryan Johnson
On 29/07/2013 3:27 PM, Ryan Johnson wrote: On 29/07/2013 3:13 PM, Ryan Johnson wrote: On 29/07/2013 3:11 PM, Corinna Vinschen wrote: On Jul 29 12:01, Ryan Johnson wrote: On 29/07/2013 7:06 AM, Corinna Vinschen wrote: On Jul 27 11:30, Daniel Brown wrote: I have also ran into this problem, in

Re: 64-bit gdb: invalid decimal 0x22DBF0

2013-07-29 Thread Corinna Vinschen
On Jul 27 11:30, 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: #include stdio.h #include stdlib.h int main(int argc,

gdb hangs on ^Z [was: Re: 64-bit gdb: invalid decimal 0x22DBF0]

2013-07-29 Thread Ryan Johnson
On 29/07/2013 7:06 AM, Corinna Vinschen wrote: On Jul 27 11:30, 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: #include

Re: gdb hangs on ^Z [was: Re: 64-bit gdb: invalid decimal 0x22DBF0]

2013-07-29 Thread Corinna Vinschen
On Jul 29 12:01, Ryan Johnson wrote: On 29/07/2013 7:06 AM, Corinna Vinschen wrote: On Jul 27 11:30, 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

Re: gdb hangs on ^Z [was: Re: 64-bit gdb: invalid decimal 0x22DBF0]

2013-07-29 Thread Ryan Johnson
On 29/07/2013 3:11 PM, Corinna Vinschen wrote: On Jul 29 12:01, Ryan Johnson wrote: On 29/07/2013 7:06 AM, Corinna Vinschen wrote: On Jul 27 11:30, 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

Re: gdb hangs on ^Z [was: Re: 64-bit gdb: invalid decimal 0x22DBF0]

2013-07-29 Thread Ryan Johnson
On 29/07/2013 3:13 PM, Ryan Johnson wrote: On 29/07/2013 3:11 PM, Corinna Vinschen wrote: On Jul 29 12:01, Ryan Johnson wrote: On 29/07/2013 7:06 AM, Corinna Vinschen wrote: On Jul 27 11:30, Daniel Brown wrote: I have also ran into this problem, in my case though I have managed to reduce the

Re: 64-bit gdb: invalid decimal 0x22DBF0

2013-07-27 Thread Daniel Brown
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: #include stdio.h #include stdlib.h int main(int argc, char** argv) { char out[100] = {0};

Re: 64-bit gdb: invalid decimal 0x22DBF0

2013-07-27 Thread Ryan Johnson
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:

64-bit gdb: invalid decimal 0x22DBF0

2013-07-26 Thread Ryan Johnson
Hi all, The latest 64-bit gdb/cygwin combo chokes whenever a process it has attached to is backgrounded (and also if it blocks on I/O, I think). To repro with the attached STC: 1. gcc -g bug.c ./a prints its PID 2. gdb -p PID 3. Continue gdb 4. ^Z the STC 5. STC freezes, gdb gets confused.