From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by sourceware.org (Postfix) with ESMTPS id BB6C1386F019 for ; Wed, 3 Feb 2021 02:56:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BB6C1386F019 Received: by mail-ej1-x62b.google.com with SMTP id b9so13663793ejy.12 for ; Tue, 02 Feb 2021 18:56:37 -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:cc; bh=gqcPtUN+lf7DuABPP8tqvszHtDH4JWT9viJ5u473R6M=; b=YY6JJShD7IC190IdhvPb9XkcmAhzQhUXHhF8CzQzGjni60dJKAuQF8GPitINZHGMMo xI5EL4nkOzA9LfvocPnltHyColyewL9cmAqP0AAZBO6uA3G4Dt3Pzpf8+iWbLZ53xCxi 7JDB7O9Lt8WnT8CvYRlwiNHltWYhi5VA6dVkIiG+DjVKKucKJEz+3c8BUaQlWstmqZF9 FD2z0U0Keof05OMpACqs/PjIHo6+YuXjMbb6+HEww/zFTTpaJ8KvpiOLTY/q6N4/zkyw tqWFbbKK2kpYgHVQcr2hT4amQhN6Fsbs7Z9uEvKERhyPeSmRT8frXOB+vx8/Rqrq63I1 ra3A== X-Gm-Message-State: AOAM533Ze/iraIqYJt/O7mEnsetoudJ0fi9yxjm3kkmLeuRluLReI3H0 QsYGHERuffTB7CfGbLg/tzLEhA2Z5L2PtSbomnJ0vXLsoi4uyg== X-Google-Smtp-Source: ABdhPJz4d7w/6AIAahQXLFZ18D8f2ohnoZVYXlMN59MB7/AJ7b176nNqWZUMF2Ehuz/NuHD2RESxLpNLg6LjhC+RQnE= X-Received: by 2002:a17:906:9bcd:: with SMTP id de13mr986029ejc.245.1612320996903; Tue, 02 Feb 2021 18:56:36 -0800 (PST) MIME-Version: 1.0 References: <86e716f4-8f2a-22df-efff-38fff1c7d408@polymtl.ca> In-Reply-To: <86e716f4-8f2a-22df-efff-38fff1c7d408@polymtl.ca> From: Andy Fan Date: Wed, 3 Feb 2021 10:56:25 +0800 Message-ID: Subject: Re: Get Different Result for the same core file with different versions of gdb. To: Simon Marchi Cc: 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, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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: Wed, 03 Feb 2021 02:56:39 -0000 On Tue, Feb 2, 2021 at 11:31 PM Simon Marchi wrote: > > > On 2021-02-01 9:15 p.m., Andy Fan via Gdb wrote: > > 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. > > At first glance, it sounds like a bug. Can you provide a reproducer? > > Simon > Hi Simon: Thanks for your reply! Actually I am debugging postgresql bug, however I can't reproduce the core at last, so the simple answer for your question is no, I can't provide the reproducer. I'm sorry about that. But if you want any further analysis on the current core file, I can try my best. -- Best Regards Andy Fan (https://www.aliyun.com/)