From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id AAB9E38319D4 for ; Wed, 14 Dec 2022 10:28:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AAB9E38319D4 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671013728; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HhYu+tTbbcbHehul6Q1qiKn3re2JDTlZn1snO18rH2c=; b=VqEdOWpuV6oHnM52o5QyuRxeEVEycEZHGP6t5LZ+wUFlyX0Wcoqt2jPhfHs9nr9KPGE/Rl 6YVj4zS5r2kLl+AJ6hpbK6mdgqSBO1dUudI41f654yT7SOQBTf5sPBOE7AceHg5Q41Z6ur Sn9VBuYxolj+huOceU/AnNrCkAb1ZrQ= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-310-o-lMmCgqOPyLs5p9M7QM-Q-1; Wed, 14 Dec 2022 05:28:39 -0500 X-MC-Unique: o-lMmCgqOPyLs5p9M7QM-Q-1 Received: by mail-wr1-f69.google.com with SMTP id m24-20020adfa3d8000000b00242168ce9d1so3460788wrb.15 for ; Wed, 14 Dec 2022 02:28:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HhYu+tTbbcbHehul6Q1qiKn3re2JDTlZn1snO18rH2c=; b=zgzap49KpGzG24y7rarJAhrG16TdUWE0b0c96NIfYiOgMYqkcG7M2tQB2/FR7Yk9r5 CNudQ1KmgX9PV2kl74rWtdolQbDRuNPVlVEhH8KKvag+B3dq77NHsXdD9jyaDwW4hkgA y8nkEClqd381V3kHRgNHlsigTZPdwJa1P3COPA6K8Vp5Plqtv3gQ6lLeKgvLdHQ7zElH c89PqMf+mX1DOheSSrqFKGOeMJrRvvUp2WcCxixjYn7spzMK+81UNEi0WLfzxwg43cRb HBJ+4qGNstr5GUu8mPLtEqQ0zpxYpEq7neoM1qN4NZbP4tmew2CbHyxOJ0JelcALUME0 qdCQ== X-Gm-Message-State: ANoB5pksLRZ1zyrsRSshTnzOIATN8YwOg5feFQXCbV52pMXKqTMfiy/M Z1s/ajeP7VZXLB1llv8hEqi7UqUb5QYWSYvGcC5x5osudOzQIPpLusdmeqbBJG7u5ZIMEbNyw12 WBYSpTFmft/sjOtse1oS+Y7ef6yvu9oUU8nxqy5eOhFWrtnW3GVqHyF+m0gwYrcnBBfOgXlz1+w == X-Received: by 2002:a05:600c:1e88:b0:3d1:efa1:3689 with SMTP id be8-20020a05600c1e8800b003d1efa13689mr17753164wmb.24.1671013718523; Wed, 14 Dec 2022 02:28:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Wvnx2GcBuFdrEuW1Joi+dOkodj7uVUxM87kTPbZfKRjOCEv9I5YTTmzNFSETL+XImfdZKUg== X-Received: by 2002:a05:600c:1e88:b0:3d1:efa1:3689 with SMTP id be8-20020a05600c1e8800b003d1efa13689mr17753151wmb.24.1671013718245; Wed, 14 Dec 2022 02:28:38 -0800 (PST) Received: from localhost ([31.111.84.238]) by smtp.gmail.com with ESMTPSA id e5-20020a05600c448500b003c6bd91caa5sm1855180wmo.17.2022.12.14.02.28.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Dec 2022 02:28:37 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH 0/2] Fix crash when accessing symbol value from Python API Date: Wed, 14 Dec 2022 10:28:31 +0000 Message-Id: X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP 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: Found a case where using Symbol.value method from the Python API can cause GDB to crash. --- Andrew Burgess (2): gdb: use gdb_assert not internal_error gdb: fix crash when getting the value of a label symbol gdb/findvar.c | 18 +++------ .../gdb.python/py-label-symbol-value.c | 38 +++++++++++++++++++ .../gdb.python/py-label-symbol-value.exp | 38 +++++++++++++++++++ 3 files changed, 82 insertions(+), 12 deletions(-) create mode 100644 gdb/testsuite/gdb.python/py-label-symbol-value.c create mode 100644 gdb/testsuite/gdb.python/py-label-symbol-value.exp base-commit: fa59ab98685e4b5431d2be423f449df5069a454e -- 2.25.4