From nobody Sun Sep 10 04:51:09 2023 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rjy9D079cz4scbd for ; Sun, 10 Sep 2023 04:51:12 +0000 (UTC) (envelope-from fuz@fuz.su) Received: from fuz.su (fuz.su [IPv6:2001:41d0:8:e508::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "fuz.su", Issuer "fuz.su" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rjy9C1svnz3f7X for ; Sun, 10 Sep 2023 04:51:11 +0000 (UTC) (envelope-from fuz@fuz.su) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of fuz@fuz.su designates 2001:41d0:8:e508::1 as permitted sender) smtp.mailfrom=fuz@fuz.su; dmarc=none Received: from fuz.su (localhost [127.0.0.1]) by fuz.su (8.16.1/8.16.1) with ESMTPS id 38A4p9vQ018206 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Sun, 10 Sep 2023 06:51:10 +0200 (CEST) (envelope-from fuz@fuz.su) Received: (from fuz@localhost) by fuz.su (8.16.1/8.16.1/Submit) id 38A4p9Fc018205 for current@freebsd.org; Sun, 10 Sep 2023 06:51:09 +0200 (CEST) (envelope-from fuz) Date: Sun, 10 Sep 2023 06:51:09 +0200 From: Robert Clausecker To: current@freebsd.org Subject: Re: sed in CURRENT fails in textproc/jq Message-ID: References: <30a59ac0-28fd-f6ed-505c-9ef6d8e84fc3@tsoft.com> <86edj7qnia.fsf@ltc.des.no> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86edj7qnia.fsf@ltc.des.no> X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; R_SPF_ALLOW(-0.20)[+a:c]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[current@freebsd.org]; DMARC_NA(0.00)[fuz.su]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR]; MIME_TRACE(0.00)[0:+]; BLOCKLISTDE_FAIL(0.00)[2001:41d0:8:e508::1:server fail]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[fuz]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4Rjy9C1svnz3f7X Greetings, I apologise for the inconvenience. The issue seems to boil down to various places calling memchr(buf, c, SIZE_MAX); which causes an overflow when my newly written memchr() computes buf + len to find the end of the buffer. A patch to alleviate this issue can be found here: http://fuz.su/~fuz/freebsd/0001-lib-libc-amd64-string-memchr.S-fix-behaviour-with-ov.patch Please check if it does the trick for you. If yes, I'll go ahead and push it tomorrow-ish. Yours, Robert Clausecker Am Sat, Sep 09, 2023 at 07:12:29PM +0200 schrieb Dag-Erling Smørgrav: > Antoine Brodin writes: > > Yuri writes: > > > Either something has changed in sed(1) in CURRENT, or sed just fails > > > during the configure stage of textproc/jq: > > > > > > sed: No error: 0 > > > checking for sys/cygwin.h... eval: ${+...}: Bad substitution > > This seems to be a recent issue (less than 5 days). > > Hundreds of configure scripts now fail to run on 15-current due to > > this sed failure: [...] > > Try adding ARCHLEVEL=scalar to CONFIGURE_ENV on one of these. If that > helps, yell at fuz@ :) > > DES > -- > Dag-Erling Smørgrav - des@FreeBSD.org > -- () ascii ribbon campaign - for an 8-bit clean world /\ - against html email - against proprietary attachments