From owner-freebsd-hackers@freebsd.org Mon Apr 26 13:35:11 2021 Return-Path: Delivered-To: freebsd-hackers@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 A87955E07CD for ; Mon, 26 Apr 2021 13:35:11 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FTQqy6l0jz3P3p for ; Mon, 26 Apr 2021 13:35:10 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: by mail-qv1-f51.google.com with SMTP id i11so21663821qvu.10 for ; Mon, 26 Apr 2021 06:35:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=lPj/kCZR3bQpnDDY7xbEmrs9jtnEuo4zfi6i5d50D50=; b=LDBgQM9vrdzqoXQiSOG6kuVT+Ydc+Fo3v1kezPLNuEAt55aazQ7/NzdkFTWM5sadCz qB686vXG4dP5YEzDMzovt+rRWyEDsq+LkeM4LYBHMBnRZ6anvPwbIAf6WG2k59A40KOi OJHP/LVcRj0ngnp7vsIUTeKf3wC9L0KrhrEIvGAkF6mhtfQjeY2W6GMTmHmsZ8GVxYZz ixHmcaDEtgE32w7aN2Owb+fL6wVC6X7V/1fdrQfE+5LHCFwlciHCiOyC7CSg3rDbilrW V8MIH+0Txv8ynwraw12aw8F9E+NEoRCNUmyTsGJ3fhnHvXVVEkcijUmWnKbeU6YPA84u F/SA== X-Gm-Message-State: AOAM533Kn77GGqu69bah+mdA4m5EfpmsEb0N2RjhYSoBJB+d+uipQoJh QuwIQ2Fs+Z37BtDZDzrgZUUv5IXyzrrm1Q== X-Google-Smtp-Source: ABdhPJz90lZ0u7Ll6EUiouA8v4vdCwcfxsBa8SAZWu6nxLCsyNnK3Emp8VH6wpUi4C+idmNyjOm5RA== X-Received: by 2002:a0c:8c03:: with SMTP id n3mr10503689qvb.32.1619444110014; Mon, 26 Apr 2021 06:35:10 -0700 (PDT) Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com. [209.85.219.171]) by smtp.gmail.com with ESMTPSA id a187sm10951598qkd.69.2021.04.26.06.35.09 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Apr 2021 06:35:09 -0700 (PDT) Received: by mail-yb1-f171.google.com with SMTP id t94so11615549ybi.3 for ; Mon, 26 Apr 2021 06:35:09 -0700 (PDT) X-Received: by 2002:a05:6902:532:: with SMTP id y18mr25157851ybs.377.1619444109464; Mon, 26 Apr 2021 06:35:09 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= Date: Mon, 26 Apr 2021 15:31:38 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Regular expression compilation fail in current To: FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4FTQqy6l0jz3P3p X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of fernandoapesteguia@gmail.com designates 209.85.219.51 as permitted sender) smtp.mailfrom=fernandoapesteguia@gmail.com X-Spamd-Result: default: False [-2.38 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[fernape@freebsd.org,fernandoapesteguia@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; R_MIXED_CHARSET(0.62)[subject]; R_DKIM_NA(0.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[209.85.219.51:from]; TO_DOM_EQ_FROM_DOM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[fernape@freebsd.org,fernandoapesteguia@gmail.com]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[209.85.219.51:from:127.0.2.255]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[209.85.219.51:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.219.51:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2021 13:35:11 -0000 Hi there, I'm working with this port PR https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255182 and the problem seems to boil down to a regular expression that does not compile on current but it does in 12.2. The minimum repro is this one: #include #include int main() { regex_t regexp; int ret = regcomp(®exp, "\\s*", REG_EXTENDED | REG_ICASE | REG_NOSUB); if ( ret != 0) { printf("regexp compilation failed: %d\n", ret); } return 0; } This one works in 12.2 but fails to compile the regexp in FreeBSD 14.0-CURRENT #11 main-n245984-15221c552b3c with error 5 REG_EESCAPE `\' applied to unescapable character. Any help is appreciated. Thanks!