From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 542D13858C62; Thu, 9 Feb 2023 13:59:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 542D13858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675951196; bh=8MdyO6HS1MksmiRzPYLv8YCWyGklQ5Z6P6dogI2TVRM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cZIZ3Rsb3zs9Pn9bWZXZmn2JuEyvFbFGH2GF7p/r1zCjSF02pHsItUGvV5EHWvRCb sJIVazcdOKHQWv38m1kjSZDd1yzdNhk6dPiQ1OSPbl5BPEx8QsMHfHF/YRxiTHjm/g V9U1XbgJE8RsTuTXZ3IY8MRL34MQJwJLzm3aveJM= From: "stsp at users dot sourceforge.net" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/30100] [patch] add dlmem() Date: Thu, 09 Feb 2023 13:59:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.38 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: stsp at users dot sourceforge.net X-Bugzilla-Status: UNCONFIRMED 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30100 --- Comment #5 from Stas Sergeev --- Thanks, getting closer! Now under "make check" I have this crash: 112 assert (ptr =3D=3D alloc_last_block); (gdb) bt #0 __minimal_realloc (ptr=3D0x7ffff7fc2000, n=3D1680) at dl-minimal-malloc= .c:112 #1 0x00007ffff7fcf3b1 in realloc (size=3D1680, ptr=3D) at ../include/rtld-malloc.h:62 #2 filebuf_ensure (size=3D848, fb=3D0x7fffffffd4e0) at dl-load.c:149 My code calls realloc(), but for some reason it ends up in __minimal_realloc(). Which is so minimal that it only supports the realloc of a last-allocated pointer. If some other allocation was in between, __minimal_realloc() asserts. How can I use the maximum realloc instead? --=20 You are receiving this mail because: You are on the CC list for the bug.=