This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Problems with GDB-5.0 and recent Linux kernels (2.4.0-test1-ac[47])
- To: gdb at sourceware dot cygnus dot com
- Subject: Problems with GDB-5.0 and recent Linux kernels (2.4.0-test1-ac[47])
- From: Andris Pavenis <pavenis at latnet dot lv>
- Date: Sat, 3 Jun 2000 20:37:45 +0200
- Cc: linux-kernel at vger dot rutgers dot edu
Have somebody tried GDB commands 'info float' and 'info reg' on a system
running latest ac kernels. I'm getting coredump from gdb-5.0 on these commands.
2.4.0-test1 - seems that all works, no such problem
2.4.0-test1-ac4 and 2.4.0-test1-ac7 - gdb coredumps on these commands
It seems to be some stack corruption.
Andris
hal:/usr/src/build/gdb$ gdb gdb
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-slackware-linux"...
Setting up the environment for debugging gdb.
Breakpoint 1 at 0x80bf9cd: file ../../gdb-5.0/gdb/utils.c, line 723.
Breakpoint 2 at 0x80bd3af: file ../../gdb-5.0/gdb/top.c, line 2953.
Breakpoint 3 at 0x80a0563: file ../../gdb-5.0/gdb/i386-linux-nat.c, line 522.
(top-gdb) r
Starting program: /usr/src/build/gdb/gdb
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i586-pc-linux-gnu".
Setting up the environment for debugging gdb.
.gdbinit:5: Error in sourced command file:
No symbol table is loaded. Use the "file" command.
(gdb) file test1
Reading symbols from test1...done.
(gdb) tb main
Breakpoint 1 at 0x80485d6: file test1.c, line 10.
(gdb) r
Starting program: /usr/src/build/gdb/test1
main () at test1.c:10
10 rc = system ("ls -l");
(gdb) info float
Breakpoint 3, fetch_fpregs (tid=319) at ../../gdb-5.0/gdb/i386-linux-nat.c:522
522 if (ret < 0)
(top-gdb) n
528 supply_fpregset (&fpregs);
(top-gdb) n
529 }
(top-gdb)
fetch_inferior_registers (regno=Cannot access memory at address 0xffff0008
) at ../../gdb-5.0/gdb/i386-linux-nat.c:824
824 dummy_sse_values ();
(top-gdb)
825 return;
(top-gdb)
830 }
(top-gdb)
Program received signal SIGSEGV, Segmentation fault.
0x80a06c9 in fetch_inferior_registers (regno=Cannot access memory at address 0xffff0008
) at ../../gdb-5.0/gdb/i386-linux-nat.c:830
830 }