From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24805 invoked by alias); 4 Apr 2008 11:46:43 -0000 Received: (qmail 24793 invoked by uid 22791); 4 Apr 2008 11:46:42 -0000 X-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from e31.co.us.ibm.com (HELO e31.co.us.ibm.com) (32.97.110.149) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 04 Apr 2008 11:46:12 +0000 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e31.co.us.ibm.com (8.13.8/8.13.8) with ESMTP id m34BkAox018004 for ; Fri, 4 Apr 2008 07:46:10 -0400 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m34BkAB7214790 for ; Fri, 4 Apr 2008 05:46:10 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m34BkApV011589 for ; Fri, 4 Apr 2008 05:46:10 -0600 Received: from thinktux.in.ibm.com ([9.124.31.96]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m34Bk9LA011538; Fri, 4 Apr 2008 05:46:10 -0600 Received: from thinktux.in.ibm.com (localhost.localdomain [127.0.0.1]) by thinktux.in.ibm.com (Postfix) with ESMTP id 509ACE7920; Fri, 4 Apr 2008 17:16:55 +0530 (IST) Received: (from ananth@localhost) by thinktux.in.ibm.com (8.13.1/8.13.1/Submit) id m34BksRH015823; Fri, 4 Apr 2008 17:16:54 +0530 Date: Fri, 04 Apr 2008 11:47:00 -0000 From: Ananth N Mavinakayanahalli To: sourceware-bugzilla@sourceware.org Cc: systemtap@sources.redhat.com Subject: [Bug runtime/6030] stap, staprun, stapio interaction quirks: stale module left unloaded Message-ID: <20080404114654.GB6885@in.ibm.com> Reply-To: ananth@in.ibm.com References: <20080404085514.6030.ananth@in.ibm.com> <20080404111840.11550.qmail@sourceware.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080404111840.11550.qmail@sourceware.org> User-Agent: Mutt/1.5.17 (2007-11-01) X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2008-q2/txt/msg00024.txt.bz2 > We cannot reasonably recover from a kill -9 on staprun. That is the only > privileged process that can unload the module. It may have been hand-started, > leaving none of our code available to watch over it and restart it. Teaching > stap to re-fork staprun another time is perhaps possible, but in your > "kill -9 stap staprun" scenario, that wouldn't help either. Agreed. SIGKILL is a box case. SIGINT/SIGHUP can be handled though. > Perhaps it's time to reconsider including a script such as > http://sourceware.org/ml/systemtap/2008-q1/msg00051.html > in the distribution. Or a cron-driven systemtap module cleaner/unloader. Yeah. That'd work too.