From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7390C384F011; Fri, 30 Apr 2021 14:00:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7390C384F011 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/27806] free(): invalid pointer during gdb.ada/fixed_cmp.exp Date: Fri, 30 Apr 2021 14:00:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb 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: Fri, 30 Apr 2021 14:00:08 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27806 --- Comment #5 from Tom de Vries --- (In reply to Tom de Vries from comment #4) > So, the sequence of events seems to be: >=20 > 1. Gdb sets gmp memory functions during _initialize_gmp_utils: > ... > #1 0x00000000007498ba in _initialize_gmp_utils () > at /data/gdb_versions/devel/src/gdb/gmp-utils.c:242 > 242 mp_set_memory_functions (xmalloc, xrealloc_for_gmp, xfree_for_g= mp); > ... >=20 > 2. libguille overwrites those memory functions during > gdbscm_finish_initialization: > ... > #1 0x00007ffff7e8bfb2 in scm_init_numbers () at numbers.c:10393 > 10393 mp_set_memory_functions (custom_gmp_malloc, > ... >=20 Before the commit, the order of 1 and 2 was reversed. --=20 You are receiving this mail because: You are on the CC list for the bug.=