From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24793 invoked by alias); 29 Jun 2007 20:24:50 -0000 Received: (qmail 24773 invoked by uid 22791); 29 Jun 2007 20:24:49 -0000 X-Spam-Check-By: sourceware.org Received: from a.mail.sonic.net (HELO a.mail.sonic.net) (64.142.16.245) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 29 Jun 2007 20:24:46 +0000 Received: from snyder (209-204-172-156.dsl.dynamic.sonic.net [209.204.172.156]) by a.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with SMTP id l5TKOffb021010; Fri, 29 Jun 2007 13:24:42 -0700 Message-ID: <002001c7ba8b$8f87a340$677ba8c0@sonic.net> Reply-To: "Michael Snyder" From: "Michael Snyder" To: "Jim Ingham" Cc: "Daniel Jacobowitz" , References: <003c01c7ba81$2abc9ce0$677ba8c0@sonic.net> <20070629191522.GA2715@caradoc.them.org> <000501c7ba87$0e543760$677ba8c0@sonic.net> <20070629200000.GA6453@caradoc.them.org> <05236501-9101-47AB-A677-C9D27635BDD4@apple.com> Subject: Re: libSegFault and just in time debugging Date: Fri, 29 Jun 2007 20:24:00 -0000 X-Mailer: Microsoft Outlook Express 6.00.2800.1437 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00352.txt.bz2 > Oops, hit send too soon... > > Meant to say if you are automatically attaching to everything on the > system, you have to be careful about auto-launched daemons, because > they won't die all the way while waiting for the connection to the > debugger, and that can cause them not to get restarted. Not a problem > in general with released systems, where hopefully the daemons aren't > crashing all that often. But with development systems it could cause > a problem... Right. But there's considerable flexibility in, eg. at what point in your boot scripts do you introduce the LD_PRELOAD variable or the /etc/ld.so.preload file. You could start your system daemons first, for instance, and then they wouldn't get the preload library. And the env variable would only apply to children of a specific shell. Could even be turned on by a user, thus not affecting any root or other-user processes. Or, you could introduce the /etc file before boot, and get everything, thus enabling you to debug crashing system daemons etc.