From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16713 invoked by alias); 9 Jan 2014 23:12:07 -0000 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 Received: (qmail 16700 invoked by uid 89); 9 Jan 2014 23:12:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oa0-f42.google.com Received: from mail-oa0-f42.google.com (HELO mail-oa0-f42.google.com) (209.85.219.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 09 Jan 2014 23:12:05 +0000 Received: by mail-oa0-f42.google.com with SMTP id n16so4160895oag.15 for ; Thu, 09 Jan 2014 15:12:03 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.182.28.35 with SMTP id y3mr3566306obg.55.1389309123678; Thu, 09 Jan 2014 15:12:03 -0800 (PST) Received: by 10.60.144.67 with HTTP; Thu, 9 Jan 2014 15:12:03 -0800 (PST) Date: Thu, 09 Jan 2014 23:12:00 -0000 Message-ID: Subject: sendmail function probe registration error with systemtap From: Xiaokui Shu To: systemtap@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-q1/txt/msg00013.txt.bz2 Hello everyone, I am using systemtap to trace function calls of a running process. It works well with small programs, e.g., grep. However, I run into an issue with "sendmail". When I start systemtap with a simple probe (shown below), I get two warnings in Pass 5. While running systemtap, I can send emails to the monitored host, but my mailbox on the host does not receive them. Only after I shutdown systemtap, the emails are coming to /var/mail/xxx. When running systemtap, after sending several emails, sendmail seems to be blocked, and all TCP connections to 25 port is rejected. After I shutdown systemtap, sendmail works again, and the port is open. Can anyone help me to figure out what is the problem brought by the tracing? Thank you very much! ######## systemtap running log ######## Pass 1: parsed user script and 102 library script(s) using 32296virt/18852res/2588shr/16968data kb, in 280usr/10sys/297real ms. Pass 2: analyzed script: 947 probe(s), 12 function(s), 3 embed(s), 0 global(s) using 41316virt/27460res/4520shr/23536data kb, in 210usr/160sys/369real ms. Pass 3: using cached /root/.systemtap/cache/56/stap_560093aa0c2089c2c95856502772a700_258364.c Pass 4: using cached /root/.systemtap/cache/56/stap_560093aa0c2089c2c95856502772a700_258364.ko Pass 5: starting run. WARNING: probe process("/usr/sbin/sendmail.sendmail").function("mime_getchar_crlf.part.1") inode-offset 0005e620 registration error (rc -524) WARNING: probe process("/usr/sbin/sendmail.sendmail").function("frame_dummy") inode-offset 0001cc80 registration error (rc -524) ######## trace.stp ######## probe process(@1).function("*") { printf ("%s:0x%x\n", probefunc (), ustack (1)) } Best, Xiaokui