From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 72E923943540; Thu, 8 Apr 2021 08:57:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72E923943540 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/27681] FAIL: gdb.base/help.exp: apropos \(print[^[ bsiedf\".-]\) (timeout) Date: Thu, 08 Apr 2021 08:57:20 +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: Thu, 08 Apr 2021 08:57:20 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27681 --- Comment #20 from Tom de Vries --- (In reply to Michael Matz from comment #15) > (Sidenote: I think there's no conforming possiblity to use the GNU extens= ion > correctly without leaks, because there's no GNU extension equivalent of > regfree, > ala re_free or somesuch). I did some further investigation, and have started to suspect that the reas= on why the regex GNU extensions in glibc are so poorly documented, is because they're documented at gnulib. And at gnulib docs ( https://www.gnu.org/software/gnulib/manual/html_node/Freeing-GNU-Pattern-Bu= ffers.html#Freeing-GNU-Pattern-Buffers ) I read: ... To free any allocated fields of a pattern buffer, use the POSIX function regfree: void regfree (regex_t *preg) preg is the pattern buffer whose allocated fields you want freed; this works because since the type regex_t=E2=80=94the type for POSIX pattern buffers= =E2=80=94is equivalent to the type re_pattern_buffer.=20 ... --=20 You are receiving this mail because: You are on the CC list for the bug.=