From owner-svn-src-head@freebsd.org Sat Feb 13 06:42:24 2021 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EEDEB542782; Sat, 13 Feb 2021 06:42:24 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dd14w6JJ5z3M65; Sat, 13 Feb 2021 06:42:24 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (pool-100-8-53-238.nwrknj.fios.verizon.net [100.8.53.238]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jkim/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id BBF24A895; Sat, 13 Feb 2021 06:42:24 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Subject: Re: svn commit: r362333 - in head: contrib/flex contrib/flex/src usr.bin/lex usr.bin/lex/lib To: Mark Johnston Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <202006181809.05II9G8p054025@repo.freebsd.org> From: Jung-uk Kim Organization: FreeBSD.org Message-ID: <0a0ac901-c1d2-54d7-d585-2856ae4fe6ea@FreeBSD.org> Date: Sat, 13 Feb 2021 01:42:23 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rO8sMfinX2yxVlpQHj6O53yYEJYoqiXxU" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Feb 2021 06:42:25 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rO8sMfinX2yxVlpQHj6O53yYEJYoqiXxU Content-Type: multipart/mixed; boundary="gcR0VLLRQ6Xng2BPSLXSVdA4bAoIlUWwz"; protected-headers="v1" From: Jung-uk Kim To: Mark Johnston Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-ID: <0a0ac901-c1d2-54d7-d585-2856ae4fe6ea@FreeBSD.org> Subject: Re: svn commit: r362333 - in head: contrib/flex contrib/flex/src usr.bin/lex usr.bin/lex/lib References: <202006181809.05II9G8p054025@repo.freebsd.org> In-Reply-To: --gcR0VLLRQ6Xng2BPSLXSVdA4bAoIlUWwz Content-Type: multipart/mixed; boundary="------------E339EDF0812F96CD3F2582EB" Content-Language: en-US This is a multi-part message in MIME format. --------------E339EDF0812F96CD3F2582EB Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 21. 2. 12., Mark Johnston wrote: > On Thu, Jun 18, 2020 at 06:09:16PM +0000, Jung-uk Kim wrote: >> Author: jkim >> Date: Thu Jun 18 18:09:16 2020 >> New Revision: 362333 >> URL: https://svnweb.freebsd.org/changeset/base/362333 >> >> Log: >> MFV: r362286 >> =20 >> Merge flex 2.6.4. >=20 > This seems to have introduced a regression: input() now returns 0 > instead of EOF to indicate that the end of input was reached. This has= > been reported in a few places: >=20 > https://github.com/westes/flex/issues/448 > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D911415 >=20 > It breaks the scanner used by libdtrace, and as a result dtrace is > unable to resolve some probe argument types: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253440 >=20 > I have a small patch to libdtrace which works around this. The upstrea= m > commit that introduced the change is fairly old at this point, and > upstream seems somewhat unresponsive, so I'm not sure it'll get > reverted. Some other scanners in the tree look like they'd be affected= , > like crypto/heimdal/lib/asn1/lex.l or > sys/contrib/dev/acpica/compiler/aslsupport.l, so I'm wondering if we > should revert this particular change for 13.0. Certainly we should fix= > the DTrace bug one way or another for 13.0. I think it does not make much sense and we should revert the upstream change. Does the attached patch work for you? Jung-uk Kim --------------E339EDF0812F96CD3F2582EB Content-Type: text/x-patch; charset=UTF-8; name="flex.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="flex.diff" diff --git a/contrib/flex/src/flex.skl b/contrib/flex/src/flex.skl index 242645f53245..b0f1b2ad297c 100644 --- a/contrib/flex/src/flex.skl +++ b/contrib/flex/src/flex.skl @@ -1863,7 +1863,7 @@ m4_ifdef( [[M4_YY_USE_LINENO]], case EOB_ACT_END_OF_FILE: { if ( yywrap( M4_YY_CALL_ONLY_ARG ) ) - return 0; + return EOF; =20 if ( ! YY_G(yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; --------------E339EDF0812F96CD3F2582EB-- --gcR0VLLRQ6Xng2BPSLXSVdA4bAoIlUWwz-- --rO8sMfinX2yxVlpQHj6O53yYEJYoqiXxU Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEl1bqgKaRyqfWXu/CfJ+WJvzb8UYFAmAndM8FAwAAAAAACgkQfJ+WJvzb8Uab Lgf/Q0Dgl1iZ1RTUkoK4wPXmpkzZg54f1QgWg5wgNkRJGCUK3iY//y7ZWeaE1JvSB7aUVNn/i+t2 Ys3yUS50dD6cnC5/c/wfuJNLX81Nl3NF3V/ErU0OsGzc4/v83hlMo3GjlHP56gL1FY4iou+DKhCh fz+mhg9lYsEQEtb25mfoXkWTXXoXJIqziLnQDk336e99o5W5CDDDyQ97bcO3Qz45bkgOUW7qzox8 Yoaz76xztgwZRdABpkGS4V2u9R0ytPqWyccYyYTV2K5gRYXyG82Kb7sEGwD1bcztRFPx7oMj+3ru qLtK+tj6jekKEoCoF4byodzpJGcSbcZ0ANb0ZSWMqA== =dnZq -----END PGP SIGNATURE----- --rO8sMfinX2yxVlpQHj6O53yYEJYoqiXxU--