From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by sourceware.org (Postfix) with ESMTPS id EE7FA384647C for ; Tue, 2 Feb 2021 02:15:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EE7FA384647C Received: by mail-ed1-x52b.google.com with SMTP id df22so5241673edb.1 for ; Mon, 01 Feb 2021 18:15:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=z9/fAhwrLpB8RYls9RajY+TtW3rTt4Cn5lv2iaK3l5U=; b=f8/z7rLR3xccLMiAP2H/gORZU/8IFUbQr8VD8tPp6HZ4uaLVT/A5GzoIVwp/kBUvGJ hCjC6aEYSHpmiCS7ovXitsmAGh9QZ7eOHTyRKcxP3Grba0+TSphNDj3yWtifdrbsUNM7 BgfEa6psiIEkt6MrtHFP93OiWsRgMqZHJROhMq6DTycKL075G7igLskUTSIC0esqs1/z 1VLwX8oS5wKMUYOnj3i/3By2v20G3g9iI4Qr9SQpnI2GYmGsA7lZxVxUDS54J6NJFjF7 80EogXAqGvsdXREAIRbIpQTri+/k9vm3hsHSmo5N5kSoQnaI8rSGckJIgtfPXhqSqHS9 W14Q== X-Gm-Message-State: AOAM530+6uQoaK256/YSmHSj1kvxXNOS/3gTBBCHgyRsAzKmNdESfpwJ /CAM8AW2F3470dORSV4b21K7P79Fho+CbgHcLh/c9tKSs9s= X-Google-Smtp-Source: ABdhPJwRYLkDtzmHkxiz/VtKzxbFlJDWbU+ia3YYU8rKlylXj06xQ96f5uPQsqk1Mr0AFrUzTiozFiC+QErnHH/1OoM= X-Received: by 2002:a50:cd8c:: with SMTP id p12mr9618507edi.114.1612232121877; Mon, 01 Feb 2021 18:15:21 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Andy Fan Date: Tue, 2 Feb 2021 10:15:10 +0800 Message-ID: Subject: Re: Get Different Result for the same core file with different versions of gdb. To: gdb@sourceware.org X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SCC_5_SHORT_WORD_LINES, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Feb 2021 02:15:25 -0000 On Mon, Feb 1, 2021 at 11:57 AM Andy Fan wrote: > Hi: > > You can pay attention to $2 and $3.They check the same addr in the same > core file. > I'm sure I am debugging the same file in the same machine. > > GDB 7.6: > > (gdb) up 3 > #3 ResetPlanCache () at plancache.c:1922 > 1922 plancache.c: No such file or directory. > (gdb) p ((AllocSet)plansource->query_context)->freelist > $1 = {0x0, *0x5bdd3b8*, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0} > (gdb) p *((AllocSet)plansource->query_context)->freelist[1] > *$2 = {size = 10649824, aset = 0xa283c0 }* > (gdb) p plansource->query_context->name > *$3 = 0xbfd929 "unnamed prepared statement"* > (gdb) x /10c plansource->query_context->name > 0xbfd929: 117 'u' 110 'n' 110 'n' 97 'a' 109 'm' 101 'e' 100 'd' 32 ' ' > 0xbfd931: 112 'p' 114 'r' > (gdb) quit > > > GDB 9.2: > (gdb) up 3 > #3 ResetPlanCache () at plancache.c:1922 > 1922 plancache.c: No such file or directory. > (gdb) p ((AllocSet)plansource->query_context)->freelist > $1 = {0x0, *0x5bdd3b8*, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0} > (gdb) p *((AllocSet)plansource->query_context)->freelist[1] > *$2 = {size = 16, aset = 0x0}* > (gdb) p plansource->query_context->name > *$3 = 0xbfd929 ""* > (gdb) x /10c plansource->query_context->name > 0xbfd929: 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 '\000' 0 > '\000' > 0xbfd931: 0 '\000' 0 '\000' > > > Any ideas? Thanks! > > -- > Best Regards > Andy Fan > Will it have something with compiler? The compiler I used to build the software (which generated the core file) is LLVM 6.0.0. -- Best Regards Andy Fan (https://www.aliyun.com/)