This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Async bug?


Stepping through this simple program in async mode on x86_64-linux-gnu
reports a segmentation fault.  An Emacs user has reported a similar
problem on restarting an inferior on i486-linux-gnu 

---------------------

#include <stdio.h>

int main() {
  printf ("Hello World\n");
}

---------------------


This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/nickrob/bar...done.
(gdb) set target-async 1
(gdb) set pagination off
(gdb) set non-stop on
(gdb) start
Temporary breakpoint 1 at 0x400514: file bar.c, line 4.
Starting program: /home/nickrob/bar 

Temporary breakpoint 1, main () at bar.c:4
4	  printf ("Hello World\n");
(gdb) n
Hello World
5	}
(gdb) n

Program received signal SIGSEGV, Segmentation fault.
main () at bar.c:5
5	}
(gdb) 

-- 
Nick                                           http://users.snap.net.nz/~nickrob




Additionally an Emacs user has reported a similar problem on restarting an
inferior on i486-linux-gnu:

(gdb) start
Temporary breakpoint 1 at 0x80483a5: file bar.c, line 2.
Starting program: /usr/local/home/md5i/bar 
(gdb) n
(gdb) n
(gdb) n
(gdb) n
(gdb) n
(gdb) n
(gdb) n
(gdb) n
The program is not being run.
(gdb) start
Temporary breakpoint 2 at 0x80483a5: file bar.c, line 2.
Starting program: /usr/local/home/md5i/bar 
Error in re-setting breakpoint 2: Warning:
Cannot insert breakpoint -44.
Error accessing memory address 0xb7ea56c0: Input/output error.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]