From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 789823850416; Wed, 12 Aug 2020 12:31:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 789823850416 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug tdep/26362] [aarch64] gdb/utils.c:671: internal-error: virtual memory exhausted: can't allocate 187647121162241 bytes Date: Wed, 12 Aug 2020 12:31:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tdep X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Aug 2020 12:31:45 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26362 --- Comment #8 from Tom de Vries --- So, we're allocating type length for: ... (gdb) up #9 allocate_value_contents(value*) [clone .part.0] [clone .lto_priv.0] (val=3D0xaaaaabdc46f0) at ../../gdb/value.c:1022 1022 ((gdb_byte *) xzalloc (TYPE_LENGTH (val->enclosing_type))); ... which is type: ... (gdb) p recursive_dump_type (val->enclosing_type, 0) type node 0xaaaaabe871b0 name '' (0x0) code 0x2 (TYPE_CODE_ARRAY) length 187647121162241 objfile 0xaaaaab96b910 target_type 0xaaaaaba9dc50 type node 0xaaaaaba9dc50 name 'character' (0xaaaaaba9dcd0) code 0x14 (TYPE_CODE_CHAR) length 1 gdbarch 0xaaaaab8f57e0 target_type 0x0 pointer_type 0x0 reference_type 0x0 type_chain 0xaaaaaba9dc50 instance_flags 0x0 flags nfields 0 0x0 pointer_type 0x0 reference_type 0x0 type_chain 0xaaaaabe871b0 instance_flags 0x0 flags nfields 1 0xaaaaabe872f0 [0] bitpos 0 bitsize 0 type 0xaaaaabe87230 name '' (0x0) type node 0xaaaaabe87230 name '' (0x0) code 0xc (TYPE_CODE_RANGE) length 4 objfile 0xaaaaab96b910 target_type 0xaaaaaba70980 type node 0xaaaaaba70980 name 'int' (0xaaaaab1bfee0) code 0x8 (TYPE_CODE_INT) length 4 objfile 0xaaaaab96b910 target_type 0x0 pointer_type 0x0 reference_type 0x0 type_chain 0xaaaaaba70980 instance_flags 0x0 flags nfields 0 0x0 pointer_type 0x0 reference_type 0x0 type_chain 0xaaaaabe87230 instance_flags 0x0 flags TYPE_UNSIGNED nfields 0 0xaaaaabe872b0 low 1 high 187647121162241 $3 =3D void ... --=20 You are receiving this mail because: You are on the CC list for the bug.=