From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from pb-smtp21.pobox.com (pb-smtp21.pobox.com [173.228.157.53]) by sourceware.org (Postfix) with ESMTPS id D8BCA383F403 for ; Wed, 7 Jul 2021 18:34:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D8BCA383F403 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kichwacoders.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=kichwacoders.com Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 7116B134319 for ; Wed, 7 Jul 2021 14:34:47 -0400 (EDT) (envelope-from jonah@kichwacoders.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h= mime-version:from:date:message-id:subject:to:content-type; s= sasl; bh=b7P6MfbFoNATB6HSdLl/agcCwax5Pxc/vv3nIt9cxRQ=; b=pTZMT+8 AduvKJJ5oYbT/pmqxnxVcRFloJO2ihxbRrkZzW1GFCXfzquOuIKZINzQDDoO3wo9 K5bUZwqokqGOyjQxPgNT0oo1Hf3iZC+jcNbDozWaWchrpBUqqe7oFkCdvmSkcKHw AJPP1EtiQlavtccvLSAUQeetXXbLh4a7jBFk= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 695DC134318 for ; Wed, 7 Jul 2021 14:34:47 -0400 (EDT) (envelope-from jonah@kichwacoders.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kichwacoders.com; h=mime-version:from:date:message-id:subject:to:content-type; s=mesmtp; bh=b7P6MfbFoNATB6HSdLl/agcCwax5Pxc/vv3nIt9cxRQ=; b=bo162opk5gGXNKu3/3b9rvMJlA9FhHWptd6uZn5RgsDTF4AX71emvh/fKpKq50F9i+3uwgMEgRPBs787BtBZ7HCQRq6I9K6bpOJzpKIxxRsj8B/DPrOGgIU+EmG6F/Ixnm9S7h7mslotbLVNnK8fYCbTkJE1dKFp2yDAOpRXgLM= Received: from mail-wm1-f41.google.com (unknown [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id 42235134317 for ; Wed, 7 Jul 2021 14:34:44 -0400 (EDT) (envelope-from jonah@kichwacoders.com) Received: by mail-wm1-f41.google.com with SMTP id g8-20020a1c9d080000b02901f13dd1672aso3684393wme.0 for ; Wed, 07 Jul 2021 11:34:44 -0700 (PDT) X-Gm-Message-State: AOAM532V1VyadfDTRmvMwHkKx0P7Tc3dfI0pqauLpJn267O1tBGqR4BU A48Gh9tJRBH7mtYyaPRQmrEyc/3NpIp/xFsSTSM= X-Google-Smtp-Source: ABdhPJwfSCsCAVc2Rr2evx3/LWFOlQldzXn/Zo4fmNTQdZbtxItGI9O3E5CyP3PB2NrVQWKH2IMXN8puG1o2puH01u4= X-Received: by 2002:a7b:c449:: with SMTP id l9mr494192wmi.98.1625682882372; Wed, 07 Jul 2021 11:34:42 -0700 (PDT) MIME-Version: 1.0 From: Jonah Graham Date: Wed, 7 Jul 2021 14:34:06 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: assertion error in pretty printing To: GDB Development X-Pobox-Relay-ID: FFDB513C-DF51-11EB-9D13-FA9E2DDBB1FC-18936988!pb-smtp21.pobox.com X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, HTML_MESSAGE, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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, 07 Jul 2021 18:34:52 -0000 Hi folks. I have an internal error in GDB that AFAICT is down to the python pretty printers. This is being hit by CDT (reported in https://bugs.eclipse.org/bugs/show_bug.cgi?id=574645) Doing a -var-update I get this internal error: ~"/scratch/gdb/binutils-gdb/gdb/c-varobj.c:516: internal-error: std::string c_value_of_variable(const varobj*, varobj_display_formats): Assertion `!value_lazy (var->value.get ())' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.\nQuit this debugging session? (y or n) " Steps to reproduce: Get source from https://bugzillaattachments.eclipsecontent.org/bugs/attachment.cgi?id=286726 curl https://bugzillaattachments.eclipsecontent.org/bugs/attachment.cgi?id=286726 > bug574645.cpp g++ -std=c++2a -O0 -g3 bug574645.cpp -o bug574645 gdb --interpreter=mi2 then use these commands: 6-enable-pretty-printing 8-gdb-set print object on 19-file-exec-and-symbols --thread-group i1 bug574645 26-break-insert -f bug574645.cpp:31 27-break-insert -t -f main 29-exec-run --thread-group i1 41-var-create --thread 1 --frame 0 - * data2 44-var-list-children var1 0 1 48-exec-continue --thread 1 51-var-update 1 var1 If running with a locally built GDB the python pretty printers need to be pointed at (e.g. add --data-directory=/usr/share/gdb to gdb command line) Where do I start debugging this? I have reproduced with latest HEAD of gdb + the data directory on my Ubuntu 20.04 machine. Jonah ~~~ Jonah Graham Kichwa Coders www.kichwacoders.com