From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by sourceware.org (Postfix) with ESMTPS id 6F89D3858D38 for ; Tue, 28 Nov 2023 07:36:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6F89D3858D38 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6F89D3858D38 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::534 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701156985; cv=none; b=e5s5ko6hO8qfoGI9f345sr5SBH81QlypYzMRl9rBEjRYYKXlPzRG1tWa8nEsXhBjHhOb+FDYKBs6e/vL5Lsdzcs22piQHOD56kLVTuyHBJxQhDYy4q8/tXrMyf3kiSLaFP87q3hc0Pj+bJQoKQIC43K/9f05AQp8QuKUO5HFQU8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701156985; c=relaxed/simple; bh=RkYeX8x6kIF3cdUD5qF6t2DF8Zwy4bJickLumcGoLKA=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=kBVYpYXC26paDKaSlstGQI43cC1T+dvj88d5aZAjOdXUvBYt21ak5psnAla6rgn5dsDJ3iP8mWykOAzOFSmmayd05JvwdhsoC3w4xxu3UsyvO7O9erZ+fwkAHhBv63tVhskMJFjQOAGd3v4VIfy1rO+DQnUiO6uwk+k270isF4s= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-549070a04baso6910380a12.3 for ; Mon, 27 Nov 2023 23:36:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701156982; x=1701761782; darn=sourceware.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=sDlLLspQq6Pva4FGZtBB/tJG3UJ4cSj6uHZPjcIskf0=; b=RvVdV4FeVDa26pMhPMbDI1W4vEI+IEKkCCd04+KRMVHWfnP9G/ofIN+AR0roheR4aA xaJLIGHdeTX6CBVZKBNdyCHs7a+PmTjPiW01hyKE8s1PtjxcK+HLPBpwKsxbTYmT2LNJ A7/yWEirb/0mSTQ8s1c+EorHLHx+xxqoS488A4OMhqWBvF3vox9Tmih/QHvsbGcE38Vv 10mBVRjxEAzBzm+8PQLyg4cpfFqD8tNAKWQXKhCn56LM1Z/WKxZddKo232ud+MQk7Dna 200xxN1sPoR9CZnjOefn5BL5M82B9piZV37MITp2HF8KeqsCnlOQjLL1fh7vazXOh5Y3 ZG5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701156982; x=1701761782; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sDlLLspQq6Pva4FGZtBB/tJG3UJ4cSj6uHZPjcIskf0=; b=abJxsV8kiM7pD+k3tx47oofFbi0cC7TutUNyCNOiKPbLnqz7X80r06RPLUquwf+fgZ myl/MqvzeNmnFXO4ePbYj/gfLCxy2D+Ow0mc1J/jdMpmcctbm1KqR+sr6t4gVap6HI+f jJcFidPDCzEVWnU6plnpAEC5A8mCM16rGSdDtCijtWIDsL9KLFN4RNT3BB1ZPfl7TFX9 YRi4i/7Y7/xFVPKOGd9EEZmjtt8sCDQwR+buY4mZCccxW8Upoj1gp37izHY5iDB4c+RT J/YXya7iqffsAPLUxJ4aMYy4BerpIBt91Z9nNUum3kTLl4QwRiSVksxPbzrry6JKrIo6 tfcw== X-Gm-Message-State: AOJu0Yy1ddjHfyNpChXGS62LCR6fMETKNEgglf9NXOuKPl8ZfL/hCyrc sRIuWAELZyDO/wAuf45ipLY3qDiQV5mt+sxZF2A6gkxS X-Google-Smtp-Source: AGHT+IEkhXHrvnr4yFunvcwN2gRsBF5K59l5emaZWCdBfevjN0QV5rjxngHi/Xb7XO4QoYWaS7tAIa/h+PATrW2o0eA= X-Received: by 2002:a17:906:80d7:b0:a00:773c:3f09 with SMTP id a23-20020a17090680d700b00a00773c3f09mr9850941ejx.17.1701156981775; Mon, 27 Nov 2023 23:36:21 -0800 (PST) MIME-Version: 1.0 References: <87o7ffpn7h.fsf@oldenburg.str.redhat.com> In-Reply-To: <87o7ffpn7h.fsf@oldenburg.str.redhat.com> From: Abhijit Ray Chaudhury Date: Tue, 28 Nov 2023 13:05:46 +0530 Message-ID: Subject: Re: Does glibc support remote process backtracing To: Florian Weimer Cc: Abhijit Ray Chaudhury via Libc-help Content-Type: multipart/alternative; boundary="0000000000009b228d060b31799f" X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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: --0000000000009b228d060b31799f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Florian, Thanks a lot for replying. I need to do remote stack tracing , for which I am using libunwind-ptrace . The problem is it does not work on VDSOs . It treats VDSO memory mapping entry in /proc//maps as a file and tries to open it and subsequently fails. I tried mailing in libunwind-dev, but it seemed dormant . I need a library which works on both arm and x86_64 , do you think elfutils would be a good option ? Thanks in Advance, -Abhijit On Mon, Nov 27, 2023 at 2:50=E2=80=AFPM Florian Weimer = wrote: > * Abhijit Ray Chaudhury via Libc-help: > > > Hi, > > Libunwind supports remote process backtracing through libunwind-ptrace ( > > https://www.nongnu.org/libunwind/man/libunwind-ptrace(3).html ). Does > glibc > > also support remote process backtracing ? > > For current architectures, glibc does not supply an implementation of > stack unwinding/backtrace generatio. We use libgcc_s for that (via the > unwind-link facility in glibc). There's no remote backtracing support > in libgcc_s. > > There's a remote backtrace implementation in elfutils, which probably > has a greater affinity with the GNU toolchain on Linux (compared to > libunwind). > > Thanks, > Florian > > --0000000000009b228d060b31799f--