From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EEF4E389365D; Tue, 6 Apr 2021 14:03:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EEF4E389365D From: "matz at suse dot de" To: gdb-prs@sourceware.org Subject: [Bug gdb/27681] FAIL: gdb.base/help.exp: apropos \(print[^[ bsiedf\".-]\) (timeout) Date: Tue, 06 Apr 2021 14:03:38 +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: matz at suse dot de 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: cc 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: Tue, 06 Apr 2021 14:03:39 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27681 Michael Matz changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matz at suse dot de --- Comment #15 from Michael Matz --- To use re_search (or the other GNU extensions of regex.h) you need to use re_compile_pattern, not regcomp. This is the non-conforming mixture Andreas meant. (Sidenote: I think there's no conforming possiblity to use the GNU extension correctly without leaks, because there's no GNU extension equivalent of regfree, ala re_free or somesuch). The games with -lc are brittle at best and don't really solve the underlying non-conformance. I don't know a good solution except avoiding the GNU extensions alltogether :-/ (Certainly forcing everyone to implicitely use libpcre2-po= six by linking against ncurses is a bad idea, but it would be unnoticable with conforming use) --=20 You are receiving this mail because: You are on the CC list for the bug.=