home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / gdb / bug / 876 next >
Encoding:
Text File  |  1992-07-23  |  4.6 KB  |  113 lines

  1. Newsgroups: gnu.gdb.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!uvm.edu!Garrett.Wollman
  3. From: Garrett.Wollman@uvm.edu (Garrett Wollman)
  4. Subject: Irix support, working in 4.5, now broken in 4.6.
  5. Message-ID: <1992Jul20.142949.12939@uvm.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: University of Vermont, EMBA Computer Facility
  8. Distribution: gnu
  9. Date: Mon, 20 Jul 1992 14:29:49 GMT
  10. Approved: bug-gdb@prep.ai.mit.edu
  11. Lines: 100
  12.  
  13. Here is what I get if I try to run GDB on itself:
  14.  
  15.  
  16.  
  17. wollman@sal(25)$ ./gdb ./gdb
  18. GDB is free software and you are welcome to distribute copies of it
  19.  under certain conditions; type "show copying" to see the conditions.
  20. There is absolutely no warranty for GDB; type "show warranty" for details.
  21. GDB 4.6, Copyright 1992 Free Software Foundation, Inc...
  22. Setting up the environment for debugging gdb.
  23. During symbol reading, guessed tag type of struct sigaction incorrectly.
  24. During symbol reading, stEnd with storage class 1 not handled.
  25. Breakpoint 1 at 0x42af78: file ../../gdb/gdb/utils.c, line 294.
  26. Breakpoint 2 at 0x40217c: file ../../gdb/gdb/main.c, line 1667.
  27. (top-gdb) i break
  28. Num Type           Disp Enb Address    What
  29. 1   breakpoint     keep y   0x0042af78 in fatal_dump_core at ../../gdb/gdb/utils.c:294
  30. 2   breakpoint     keep y   0x0040217c in show_command at ../../gdb/gdb/main.c:1667
  31.         silent
  32.         return
  33.  
  34. Note that breakpoint 2 is supposed to be in `info_command', *not*
  35. `show_command'.  If I set a breakpoint at `main', run the program, and
  36. then try to `next' it when the breakpoint gets hit, the inferior runs
  37. for a while and hangs; if I interrupt it and then continue with
  38. `signal 0' it starts running.  (It never stops for what should have
  39. been the `next' line.)  Entering `show' in the inferior gdb causes the
  40. parent GDB to hang, and if I kill it with a SIGILL, it leaves an
  41. interesting core file.
  42.  
  43. Here's the rest of the transcript...
  44.  
  45. (top-gdb) br main
  46. Breakpoint 3 at 0x400548: file ../../gdb/gdb/main.c, line 415.
  47. (top-gdb) run
  48. Starting program: /a/trantor/usr/src/tools/checkout/gdb.iris/gdb/gdb
  49.  
  50. Breakpoint 3, 0x400548 in main (argc=0, argv=0x0) at ../../gdb/gdb/main.c:415
  51. 415          int argc;
  52. (top-gdb) n
  53.  
  54. Program received signal 2, Interrupt
  55. getcwd () at getcwd.c:40
  56. getcwd.c:40: No such file or directory.
  57. (top-gdb) bt
  58. #0  getcwd () at getcwd.c:40
  59. #1  0x400604 in main (argc=1, argv=0x7fffc764) at ../../gdb/gdb/main.c:415
  60. (top-gdb) signal 0
  61. Continuing with signal 0.
  62. GDB is free software and you are welcome to distribute copies of it
  63.  under certain conditions; type "show copying" to see the conditions.
  64. There is absolutely no warranty for GDB; type "show warranty" for details.
  65. GDB 4.6, Copyright 1992 Free Software Foundation, Inc.
  66. Setting up the environment for debugging gdb.
  67. No symbol table is loaded.  Use the "file" command.
  68. (gdb) show
  69.  
  70. [2]+  Stop signal from tty    ./gdb ./gdb
  71. wollman@sal(26)$ kill -ILL %2
  72.  
  73. [. . .]
  74.  
  75. wollman@sal(30)$ dbx ./gdb core
  76. dbx version 2.10 11/15/91 2:02
  77. Type 'help' for help.
  78. Reading symbolic information of `./gdb' . . .
  79. Process name from core dump: gdb
  80. Process died at pc 0x431b30 of signal : Segmentation fault
  81. [using memory image in core]
  82. (dbx) where
  83. >  0 mips_pop_frame(0x1005b010, 0x1, 0x1a, 0x1006d108, 0x0, 0x1) ["../../gdb/gdb/mips-tdep.c":501, 0x431b2c]
  84.    1 return_command(retval_exp = (nil), from_tty = 0) ["../../gdb/gdb/stack.c":1123, 0x40a548]
  85.    2 execute_command(p = 0x10059f5e = "", from_tty = 0) ["../../gdb/gdb/main.c":865, 0x401178]
  86.    3 bpstat_do_actions(bsp = 0x10032be0) ["../../gdb/gdb/breakpoint.c":665, 0x404c60]
  87.    4 command_loop(0x1005b010, 0x1, 0x1a, 0x1006d108, 0x38, 0x402658) ["../../gdb/gdb/main.c":958, 0x401338]
  88.    5 .main.main(argc = 2, argv = 0x7fffc76c) ["../../gdb/gdb/main.c":415, 0x400f84]
  89.    6 mips_pop_frame(0x1005b010, 0x1, 0x1a, 0x1006d108, 0x7fffc89a, 0x7fffc8d1) ["../../gdb/gdb/mips-tdep.c":501, 0x431b20]
  90.    7 <past end of a.out text>(0x1005b010, 0x1, 0x1a, 0x1006d108, 0xffffffff, 0xffffffff) [0x7fffc7ec]
  91.  
  92. warning: address 0xfffffffc for 4 bytes is not in the core file
  93.  
  94. warning: address 0xfffffffc for 4 bytes is not in the core file
  95. (dbx)
  96.  
  97. sal.emba.uvm.edu is a 4D/310 Power Series machine with an IP7
  98. processor card (R3000 3.0, R3010 4.0).  It currently runs Irix 4.0.
  99. GDB was compiled using GCC 2.2.2, running on the same machine.
  100.  
  101. I can provide a copy of the binary for anyone who is interested; if I
  102. get the time I will look int othis problem myself, starting with a
  103. diff between 4.4 and 4.5 procfs.c...
  104.  
  105. -GAWollman
  106.  
  107. -- 
  108.    Garrett A. Wollman  = wollman@emba.uvm.edu = UVM is welcome to my opinions
  109.                        =    uvm-gen!wollman   =
  110.    That's what being alive is all about.  No deity, no higher goal
  111.    exists, than to bring joy to another person.    - Elf Sternberg
  112.  
  113.