home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!van-bc!extropia.wimsey.bc.ca!miron
- From: miron@extropia.wimsey.bc.ca (Miron Cuperman)
- Subject: 3.0 gdb does not work?
- Message-ID: <1992Sep12.092712.706@extropia.wimsey.bc.ca>
- Summary: it doesn't fork
- Keywords: gdb
- Organization: Immortal Freedom's Deck
- Date: Sat, 12 Sep 1992 09:27:12 GMT
- Lines: 46
-
- When I try to run gdb, it fails to even create the child process.
- For example, trying gdb on /bin/cat:
-
- ------------------------
- % gdb -nx /bin/cat
- Reading symbol data from /bin/cat...
- (no debugging symbols found)...done.
- Reading symbol data from /usr/shlib/libsys_s.B.shlib...done.
- (gdb) b abort
- Breakpoint 1 at 0x505358a
- (gdb) run
- Starting program: /bin/cat
- Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
- Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
- Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
- Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
- Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
- ^CProgram generated(1): Memory access exception on address 0x7d6f8 (invalid address).
- Quit
- 0x501e7fa in _cproc_fork_child ()
- (gdb) bt
- #0 0x501e7fa in _cproc_fork_child ()
- #1 0x502e444 in _cthread_fork_child ()
- #2 0x5008544 in fork ()
- #3 0x2ff2e in ?? ()
- #4 0x1b83e in ?? ()
- #5 0x3bea in ?? ()
- #6 0x25d30 in ?? ()
- #7 0x3cb8 in ?? ()
- #8 0x3a78 in ?? ()
- (gdb)
- ------------------------
-
- The ps output:
- 568 p1 SW 0:01 gdb -nx /bin/cat
- 569 p1 HW 0:00 gdb -nx /bin/cat
-
- Attaching to a running process works fine.
-
- Anybody know what is going on?
- --
- Miron Cuperman <miron@extropia.wimsey.bc.ca> (NeXTmail ok)
- <miron@cs.sfu.ca>
- AMIX: MCuperman
-
- ImmortalCyberComputingLaissezfaire
-