From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15034 invoked by alias); 6 Feb 2020 04:37:04 -0000 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 Received: (qmail 14993 invoked by uid 89); 6 Feb 2020 04:37:04 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*Ad:U*gdb, HTo:U*gdb X-HELO: mail-lj1-f173.google.com Received: from mail-lj1-f173.google.com (HELO mail-lj1-f173.google.com) (209.85.208.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 06 Feb 2020 04:37:02 +0000 Received: by mail-lj1-f173.google.com with SMTP id a13so4601068ljm.10 for ; Wed, 05 Feb 2020 20:37:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=kh1+wutrkA+cZoRJ45j6tZCCqTW8yinSowxNjrbdTQs=; b=jHmh2t8hO7+urv5GMegeIseHcw9sMoFPCrjYBmDS0HdC7JvWJ4GAuSuUqbV8ftIPQq yJOQSOCB+RGmZgfsDKKTgOsHc5+QaaY5tr9dYKkxG9/+v93jl75EW9aIndEK2ZYXGHTF HQVJuaniLHZMM91jPHasea5ed0VsfNMP1J5/1L7b7JUJRbc2VqUeDUp1Xg4sBvDuadTA v/tY9gg/+DiU8ew3lHnHiRthPmdCi36i1H4SAhvEwF0mahNXcQFxo7MiZfNcce2r+CT3 rSkYb44n04clNX4vIPQn9Cb35ZgSGtPKCHcTXwNZiE0UAFBA1KRXRfQdIdgxYLt0IFuq zvfw== MIME-Version: 1.0 From: William Tambe Date: Thu, 06 Feb 2020 04:37:00 -0000 Message-ID: Subject: Incorrect symbol name displayed in backtrace To: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2020-02/txt/msg00020.txt.bz2 Below is an example of backtrace where I find that GDB printed a symbol name that is not found at the address shown in the backtrace. In the example below, GDB says that __kprobes_text_start() is at 0x0039f000, however when I used p (void *)0x0039f000, it prints the correct symbol name at 0x0039f000. (gdb) bt #0 0x05000100 in _start () #1 0x0039f000 in __kprobes_text_start () Backtrace stopped: frame did not save the PC (gdb) p (void *)0x0039f000 $6 = (void *) 0x39f000 <__tramp_exit> Any idea what is the difference in the way symbol names are printed in the backtrace and by the command "p" ?