From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id D7EB83858CDA for ; Fri, 28 Jul 2023 19:23:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D7EB83858CDA Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1690572207; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=zT7MZ6oFIuRz3a3VAbh4Z4ZNjrAQN7eSOT6QmnwKzIE=; b=YLvMEzKBBBRh8pW1Cfl1MMItA0/k8u5Xji535NrQCfWklihuZ/Ub5sYizdEMGA+ABvGgB1 afLrQEy5SSD8n1dzfoiffPbtiBzDOh6lmDaq/0oaszPMHBz7Du6qrVguYVV+2kgZJV1iOo l5mTvx3AE4fOUWceNlpdQBMo34CeV3w= Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-65-vKRMFeVSN8KwhRJD_dhzww-1; Fri, 28 Jul 2023 15:23:25 -0400 X-MC-Unique: vKRMFeVSN8KwhRJD_dhzww-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F0ED3281BDC2; Fri, 28 Jul 2023 19:23:24 +0000 (UTC) Received: from redhat.com (unknown [10.22.8.5]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E1865201EC58; Fri, 28 Jul 2023 19:23:24 +0000 (UTC) Received: from [127.0.0.1] (helo=vm-rhel7) by redhat.com with esmtp (Exim 4.94.2) (envelope-from ) id 1qPT3b-0001WI-9n; Fri, 28 Jul 2023 15:23:24 -0400 From: fche@redhat.com (Frank Ch. Eigler) To: wei gong Cc: systemtap@sourceware.org Subject: Re: Using systemtap in an Environment with Multiple Versions of glibc Date: Fri, 28 Jul 2023 15:21:07 -0400 References: Message-ID: <87cz0bu9g4.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: wei gong writes: > [...] > I am currently experiencing challenges using SystemTap in an environment > that includes multiple versions of glibc. I am hoping someone here may have > encountered a similar issue and might be able to provide guidance. > [...] > Currently, my environment has glibc-2.17-326.el7_9.x86_64. Because I want > to use a newer version of GCC, I installed an additional version of GCC and > matched it with glibc 2.21, which I placed in the /opt/compiler/gcc-8.2/ > directory. My software is compiled using this newly installed version of > gcc-8.2. > [...] > ./stap -d /path/myapp-DDEBUG_UNWIND -e 'probe > process("/path/myapp").function("funtion_name").call {print_ubacktrace()}' > WARNING: Missing unwind data for a module, rerun with 'stap -d (unknown; > retry with -DDEBUG_UNWIND)' One possibility is that this program, being compiled with your other gcc/glibc toolchain, is not getting identified to systemtap for purpose of extracting unwind/symbol data. > WARNING: Missing unwind data for a module, rerun with 'stap -d /usr/lib64/ > libc-2.17.so' > WARNING: too many pending (warning) messages Yeah, that's a hint. The "-d FILE" and "--ldd" options should let you give systemtap enough hints to find the alternate toolchain shared libraries. Try: # stap --ldd -d /opt/compiler/gcc-8.2/usr/lib/libc.so.6 -e 'probe ("myapp").......' If more missing library names come up as runtime warnings, rerun, and add them as -d PATHs too. - FChE