home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6128 < prev    next >
Encoding:
Text File  |  1992-09-12  |  1.8 KB  |  58 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!van-bc!extropia.wimsey.bc.ca!miron
  3. From: miron@extropia.wimsey.bc.ca (Miron Cuperman)
  4. Subject: 3.0 gdb does not work?
  5. Message-ID: <1992Sep12.092712.706@extropia.wimsey.bc.ca>
  6. Summary: it doesn't fork
  7. Keywords: gdb
  8. Organization: Immortal Freedom's Deck
  9. Date: Sat, 12 Sep 1992 09:27:12 GMT
  10. Lines: 46
  11.  
  12. When I try to run gdb, it fails to even create the child process.
  13. For example, trying gdb on /bin/cat:
  14.  
  15. ------------------------
  16. % gdb -nx /bin/cat
  17. Reading symbol data from /bin/cat...
  18. (no debugging symbols found)...done.
  19. Reading symbol data from /usr/shlib/libsys_s.B.shlib...done.
  20. (gdb) b abort
  21. Breakpoint 1 at 0x505358a
  22. (gdb) run
  23. Starting program: /bin/cat 
  24. Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
  25. Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
  26. Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
  27. Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
  28. Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
  29. ^CProgram generated(1): Memory access exception on address 0x7d6f8 (invalid address).
  30. Quit
  31. 0x501e7fa in _cproc_fork_child ()
  32. (gdb) bt
  33. #0  0x501e7fa in _cproc_fork_child ()
  34. #1  0x502e444 in _cthread_fork_child ()
  35. #2  0x5008544 in fork ()
  36. #3  0x2ff2e in ?? ()
  37. #4  0x1b83e in ?? ()
  38. #5  0x3bea in ?? ()
  39. #6  0x25d30 in ?? ()
  40. #7  0x3cb8 in ?? ()
  41. #8  0x3a78 in ?? ()
  42. (gdb) 
  43. ------------------------
  44.  
  45. The ps output:
  46.   568 p1 SW    0:01 gdb -nx /bin/cat
  47.   569 p1 HW    0:00 gdb -nx /bin/cat
  48.  
  49. Attaching to a running process works fine.
  50.  
  51. Anybody know what is going on?
  52. -- 
  53.     Miron Cuperman <miron@extropia.wimsey.bc.ca>    (NeXTmail ok)
  54.                <miron@cs.sfu.ca>
  55.     AMIX: MCuperman
  56.  
  57. ImmortalCyberComputingLaissezfaire
  58.