From owner-freebsd-hackers Thu Sep 17 07:09:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA12150 for freebsd-hackers-outgoing; Thu, 17 Sep 1998 07:09:38 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp-gw.BayNetworks.COM (ns1.BayNetworks.COM [134.177.3.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA12145 for ; Thu, 17 Sep 1998 07:09:37 -0700 (PDT) (envelope-from bwithrow@BayNetworks.COM) Received: from mailhost.BayNetworks.COM (screen2r.BayNetworks.COM [134.177.3.1]) by smtp-gw.BayNetworks.COM (8.8.8/8.8.8) with ESMTP id HAA13537 for ; Thu, 17 Sep 1998 07:09:15 -0700 (PDT) Received: from pobox.engeast.BayNetworks.COM (pobox.engeast.baynetworks.com [192.32.61.6]) by mailhost.BayNetworks.COM (8.8.8/8.8.8) with ESMTP id HAA06204 for ; Thu, 17 Sep 1998 07:09:13 -0700 (PDT) Received: from tuva.engeast.baynetworks.com (tuva [192.32.68.38]) by pobox.engeast.BayNetworks.COM (SMI-8.6/BNET-97/04/24-S) with ESMTP id KAA22744; Thu, 17 Sep 1998 10:09:13 -0400 for Received: from tuva.engeast.baynetworks.com (localhost [127.0.0.1]) by tuva.engeast.baynetworks.com (8.8.8/8.8.8) with ESMTP id KAA02717 for ; Thu, 17 Sep 1998 10:09:10 -0400 (EDT) (envelope-from bwithrow@tuva.engeast.baynetworks.com) Message-Id: <199809171409.KAA02717@tuva.engeast.baynetworks.com> X-Mailer: exmh version 2.0.2 2/24/98 To: hackers@FreeBSD.ORG Subject: GDB modifies shared libraries? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 17 Sep 1998 10:09:09 -0400 From: Robert Withrow Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I was debugging a (large) program using GDB on an xterm (which prevented me from getting the exact text, as you will see). This is on 2.2.6-RELEASE on a P6-200 with 128M ram. I was running as a normal user, not root. I issued the "run" command and GDB said that /usr/lib/libc.so.3.1 had changed and it was re-loading it. That was followed immediately by X freezing, and then a spontaneous re-boot. After the system re-booted, sure enough the date on /usr/lib/libc.so.3.1 had been changed! Now, with this program, GDB generally says that the *program* has changed *every* time I issue the "run" command, but I thought that was just a GDB problem. But I don't understand how GDB can override protections on /usr/lib/libc.so.3.1 in order to change its date. This seems like an OS bug. Any fixes around? -- Robert Withrow -- (+1 978 916 8256) BWithrow@BayNetworks.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message