From owner-freebsd-hackers Fri Apr 4 07:51:09 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA15012 for hackers-outgoing; Fri, 4 Apr 1997 07:51:09 -0800 (PST) Received: from boulder.syr.servtech.com (boulder.syr.servtech.com [206.106.144.94]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA14994; Fri, 4 Apr 1997 07:50:52 -0800 (PST) Received: from boulder.syr.servtech.com (localhost [127.0.0.1]) by boulder.syr.servtech.com (8.8.5/8.8.5) with SMTP id KAA01245; Fri, 4 Apr 1997 10:54:44 -0500 (EST) Message-ID: <33452443.41C67EA6@servtech.com> Date: Fri, 04 Apr 1997 10:54:43 -0500 From: Shawn Carey X-Mailer: Mozilla 3.0 (X11; I; FreeBSD 2.2.1-RELEASE i386) MIME-Version: 1.0 To: John Polstra CC: dyson@freebsd.org, hackers@freebsd.org Subject: Re: Anyone else seen this? References: <199703270427.XAA04344@dyson.iquest.net> <333AA089.41C67EA6@servtech.com> <199703280313.TAA28286@austin.polstra.com> <333B5B51.41C67EA6@servtech.com> <199703282034.MAA04175@austin.polstra.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk John Polstra wrote: > > > If I run the same executable under GDB, it runs for 10 seconds at the > > most and then GDB kills it before reporting "Process terminated due to > > text file modification". No breakpoints, no nuthin. Not even a > > .gdbinit. > > > > Now, if I link with -static, the exectuable retains its timestamp, even > > whe run under GDB, and GDB lets it run peacefully. > > It's worth noting that there are hooks between gdb and the dynamic > linker. The dynamic linker can tell whether the program is being run > [...] Indeed it is. I just found out today that if I set a breakpoint on the static binary *before* running the program, I get the same result as when the binary is lunk dynamically. Sorry for the confusion on my part... Is there anything I can do to help solve this problem? If someone gave me a probable starting point, I'd be more than happy to thrash around with it... -Shawn