From owner-freebsd-hackers Wed Aug 20 00:49:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id AAA06507 for hackers-outgoing; Wed, 20 Aug 1997 00:49:46 -0700 (PDT) Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id AAA06498 for ; Wed, 20 Aug 1997 00:49:39 -0700 (PDT) Received: from LOCAL (uucp@localhost) by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 5835 on Wed, 20 Aug 1997 07:49:21 GMT; id HAA05835 efrom: hans@brandinnovators.com; eto: UNKNOWN Received: by truk.brandinnovators.com (8.7.5/BI96070101) for <> id JAA21257; Wed, 20 Aug 1997 09:32:27 +0200 (MET DST) Message-Id: <199708200732.JAA21257@truk.brandinnovators.com> From: hans@brandinnovators.com (Hans Zuidam) Subject: Re: gdb: Program received signal SIGTRAP? To: grog@lemis.com (Greg Lehey) Date: Wed, 20 Aug 1997 09:32:27 +0200 (MET DST) Cc: hackers@FreeBSD.ORG In-Reply-To: <19970820122215.34114@lemis.com> from Greg Lehey at "Aug 20, 97 12:22:15 pm" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Greg Lehey wrote: > Has anybody seen problems with gdb where you can't continue from a > breakpoint? I'm currently trying to test user ppp, but once I hit a > breakpoint, I can't continue. I'm running -current as of yesterday. > Here's a sample: > Program received signal SIGTRAP, Trace/breakpoint trap. > DoLoop () at /src/FREEBIE/usr.sbin/ppp/main.c:773 > 773 if (been_here_before) /* we won't be able to do it again, */ > (gdb) > Cannot insert breakpoint 0: > Error accessing memory address 0xefbfdfdc: Bad address. This is probably because your process (ppp) is corrupting its stack. gdb examines to processes stack to find proper stack frames when inserting/removing breakpoint. If the stack is corrupted gdb gets very confused. Regards, Hans -- H. Zuidam E-Mail: hans@brandinnovators.com Brand Innovators B.V. P-Mail: P.O. Box 1377 de Pinckart 54 5602 BJ Eindhoven, The Netherlands 5674 CC Nuenen Tel. +31 40 2631134, Fax. +31 40 2831138