From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 56041385142A; Wed, 8 Mar 2023 16:17:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 56041385142A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678292268; bh=PVTZ8HCFataNgfHXbeVcoWglKKTyy7QECLOLEP4LtsA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RPsmxEbsDLLyQpuPC1b21uSexIt/1UK6D03rrwAKpMqWn9LFDEXomXedV1nlcVxk+ J3aiFmHOOJrpPfuuVe9ibolZM4yuNju0lfIl6524NRlWR7Y6XhB28d5xv3JJVci2yE czxelkXFwDv/i/LbTZafVluqB/h/jxU0mAfXbTao= From: "ks1322 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/109064] Maximum recursion depth exceeded in std::shared_ptr xmethod Date: Wed, 08 Mar 2023 16:17:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ks1322 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109064 --- Comment #1 from ks1322 at gmail dot com --- Looks like infinite recursion is here, SharedPtrUseCountWorker.__init__ cal= ls itself ``` class SharedPtrUseCountWorker(gdb.xmethod.XMethodWorker): "Implements std::shared_ptr::use_count()" def __init__(self, elem_type): SharedPtrUseCountWorker.__init__(self, elem_type) ```=