From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 12157E86BE6; Fri, 20 Dec 2024 15:21:55 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 12157E86BE6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1734697315; bh=62gU+ap5Owl5A/ZuXwkdgyJEZHnbt+3TsNdV+6Nl5bQ=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=wx4QhRMmx4ctfV4Uk9XEF9Tq1iM34A0Ko7cI1eOq98yrsF37FrNJzY6S7GgEYBt2h TLjN4rZ7B9VDik0DyFnfuXjAkx5VrecM+7PyNGJAKBmhJ5NoLSrU9TzrwQa8dhRM4Y OOhOX+4qWyVqJ+DvnAJeTazfRhhEI2SBXFp1RJOU= Received: from send218.i.mail.ru (send218.i.mail.ru [95.163.59.57]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 40F23E86BE1 for ; Fri, 20 Dec 2024 15:21:53 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 40F23E86BE1 Received: by exim-smtp-cc4f974bf-tcvps with esmtpa (envelope-from ) id 1tOc0t-00000000WI5-3sdO; Fri, 20 Dec 2024 15:21:52 +0300 Content-Type: multipart/alternative; boundary="------------AT6oMLu8E2XEqjlEGT98s7Rw" Message-ID: <29798df5-8591-48eb-8797-ff6e3aa4d29d@tarantool.org> Date: Fri, 20 Dec 2024 15:21:51 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Sergey Kaplun References: <20241219093041.14681-1-skaplun@tarantool.org> <2730f6cc-ed1e-415b-9871-e1ac10dcd9c3@tarantool.org> In-Reply-To: X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: EEAE043A70213CC8 X-77F55803: 4F1203BC0FB41BD927BF2C9B6389F95E798FA003F3AC4E174E81B70A339AA402182A05F5380850404C228DA9ACA6FE2755DF26DE55E87B5F3DE06ABAFEAF6705E29657E7E14D89A09CAB118109082E81B6A098A45AF874EE X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE72F22E6DC541F75D9EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637204D59D994DFFAD78638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8601F8E3CE8517A8EB014906FACB3C5A5947B512E60DD2B5DCC7F00164DA146DAFE8445B8C89999728AA50765F79006372A3B24BF85B2E607389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC81D471462564A2E19F6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA73AA81AA40904B5D9A18204E546F3947C2A336C65186350916136E347CC761E074AD6D5ED66289B523666184CF4C3C14F6136E347CC761E07725E5C173C3A84C30D7879B950AD227EBA3038C0950A5D36B5C8C57E37DE458B330BD67F2E7D9AF16D1867E19FE14079C09775C1D3CA48CF17B107DEF921CE791DD303D21008E298D5E8D9A59859A8B6957A4DEDD2346B4275ECD9A6C639B01B78DA827A17800CE79E6B27D82EEA174F731C566533BA786AA5CC5B56E945C8DA X-C1DE0DAB: 0D63561A33F958A534C9D997DC2BB85E5002B1117B3ED6964171ECEB5BF5B245E20DC3F561CE4150823CB91A9FED034534781492E4B8EEADD0953842B444AAC3BDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0ADBF74143AD284FC7177DD89D51EBB7742424CF958EAFF5D571004E42C50DC4CA955A7F0CF078B5EC49A30900B95165D34ADE558D2B396DA7C6CE09F911A74DF25704A5F029C384CAB472D5B90E18CC3A240DD29EE306C04021D7E09C32AA3244C6A0D4DEF4FA1DA4077DD89D51EBB7742A74666C090978E6DEA455F16B58544A2557BDE0DD54B3590A5AE236DF995FB59978A700BF655EAEEED6A17656DB59BCAD427812AF56FC65B X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojfZ9BPZgVRhp/4Z8lAD2HeA== X-Mailru-Sender: 0A26D9779F8DDEABFCA39D68568FDFDBCDBA268F5C36AD54EA62B7A476541487434D1DCFB5028DD6815F5854ED3BC250645D15D82EE4B272BD6E4642A116CA93524AA66B5ACBE6721EF430B9A63E2A504198E0F3ECE9B5443453F38A29522196 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit] test: harden skipcond for libc in LuaJIT-tests X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Bronnikov via Tarantool-patches Reply-To: Sergey Bronnikov Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" This is a multi-part message in MIME format. --------------AT6oMLu8E2XEqjlEGT98s7Rw Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, Sergey, On 20.12.2024 15:15, Sergey Kaplun wrote: > Hi, Sergey! > Thanks for the review! > See my answers below. > > On 20.12.24, Sergey Bronnikov wrote: >> Hello, Sergey, >> >> thanks for the patch! See comments below. >> >> >> On 19.12.2024 12:30, Sergey Kaplun wrote: >>> The `strtod parsing` subtest in the checks >>> the results yielded by the `strtod()` via FFI call. In glibc versions >>> before 2.28 it returns an incorrect result (NaN instead of inf) for >>> "0x3p1023" [1]. This patch hardens the skipcond for this test for a >>> smaller version of the libc installed. >>> >>> [1]:https://sourceware.org/bugzilla/show_bug.cgi?id=23279 >>> --- >>> >>> Branch:https://github.com/tarantool/luajit/tree/skaplun/gh-noticket-fix-glibc-versions >>> >>> The CI failure for libc 2.23 (ubuntu 16): >>> https://github.com/tarantool/tarantool/actions/runs/12376159316/job/34542626889?pr=10949#step:5:13916 >> Ubuntu 16.04 EOL and EOS are reached [1] >>> The CI failure for libc 2.24 (debian 9): >>> https://github.com/tarantool/tarantool/actions/runs/12376159307/job/34542633454?pr=10949#step:5:13859 >> Debian 9 EOL is reached 4 years ago [2] >>> The CI failure for libc 2.27 (ubuntu 18): >>> https://github.com/tarantool/tarantool/actions/runs/12376159278/job/34542625496?pr=10949#step:5:11743 >>> The CI pass for libc 2.31 (ubuntu 20): >>> https://github.com/tarantool/tarantool/actions/runs/12376159289/job/34542630993?pr=10949 >> Ubuntu 20.04 support ends in 3 months and 2 week [1]. > Yes, unfortunately we should keep (AFAICS) these runners to check the > installations for our customers. > I believe we will clarify a list of Linux distros in a separate activity. >> >>> test/LuaJIT-tests/lib/base/tonumber_scan.lua | 8 +++++--- >>> 1 file changed, 5 insertions(+), 3 deletions(-) >>> >>> diff --git a/test/LuaJIT-tests/lib/base/tonumber_scan.lua b/test/LuaJIT-tests/lib/base/tonumber_scan.lua >>> index ac7d68a4..800c57b0 100644 >>> --- a/test/LuaJIT-tests/lib/base/tonumber_scan.lua >>> +++ b/test/LuaJIT-tests/lib/base/tonumber_scan.lua >>> @@ -186,9 +186,11 @@ do --- tonumber parsing >>> test_conv(tonumber) >>> end >>> >>> --- Skip for the old libc version with the bug in the `strtod()`. >>> --- See alsohttps://sourceware.org/bugzilla/show_bug.cgi?id=16151. >>> -do --- strtod parsing -libc<2.19 >>> +-- Skip for the old libc version with the bugs in the `strtod()`. >>> +-- Affected versions: >>> +-- * <2.19:https://sourceware.org/bugzilla/show_bug.cgi?id=16151. >>> +-- * <2.28:https://sourceware.org/bugzilla/show_bug.cgi?id=23279. >> I propose to skip strtod test when Glibc is older than say 2.30 [3] and >> avoid testing >> >> with ancient Glibc versions because Glibc implementation is buggy [4] and >> >> a there are lot of bugs in old and more or less new versions: >> >> v2.41 [5], v2.22 [6], v2.27 [7], v2.15 [8], v2.33 [9] etc [10]. >> >> >> I don't think we should waste our time with issues like this. >> >> >> 1.https://endoflife.date/ubuntu >> >> 2.https://endoflife.date/debian >> >> 3.https://sourceware.org/glibc/wiki/Release >> >> 4. >> https://github.com/tarantool/luajit/blob/cd5ab5da9b56bf560407554c0377cfa8567d4430/src/lj_strscan.c#L20-L27 >> >> 5.https://sourceware.org/bugzilla/show_bug.cgi?id=30220 >> >> 6.https://sourceware.org/bugzilla/show_bug.cgi?id=19380 >> >> 7.https://sourceware.org/bugzilla/show_bug.cgi?id=15744 >> >> 8.https://sourceware.org/bugzilla/show_bug.cgi?id=14049 >> >> 9.https://sourceware.org/bugzilla/show_bug.cgi?id=26137 >> >> 10. >> https://sourceware.org/bugzilla/buglist.cgi?bug_status=__all__&content=strtod&no_redirect=1&order=bug_id%20DESC&product=glibc&query_format=specific > Yes, I agree that this should be the last red line for us. If the test > will fail again due to glibc, it will be easier just to drop it. For > now, I see no failures for versions 2.31 -- 2.40, and find no bugs > related to our tests that affected versions 2.28 -- 2.30, so let's skip > it for versions less than 2.28 for now. Okay, LGTM then. Also discussed it and decided to remove the test if the same issue will happen next time. > >>> +do --- strtod parsing -libc<2.28 >>> test_conv(function(s) >>> local d = ffi.C.strtod(s, e) >>> return (e[0][0] == 0 and #s ~= 0) and d or nil --------------AT6oMLu8E2XEqjlEGT98s7Rw Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Hi, Sergey,


On 20.12.2024 15:15, Sergey Kaplun wrote:
Hi, Sergey!
Thanks for the review!
See my answers below.

On 20.12.24, Sergey Bronnikov wrote:
Hello, Sergey,

thanks for the patch! See comments below.


On 19.12.2024 12:30, Sergey Kaplun wrote:
The `strtod parsing` subtest in the <lib/base/tonumber_scan.lua> checks
the results yielded by the `strtod()` via FFI call. In glibc versions
before 2.28 it returns an incorrect result (NaN instead of inf) for
"0x3p1023" [1]. This patch hardens the skipcond for this test for a
smaller version of the libc installed.

[1]:https://sourceware.org/bugzilla/show_bug.cgi?id=23279
---

Branch:https://github.com/tarantool/luajit/tree/skaplun/gh-noticket-fix-glibc-versions

The CI failure for libc 2.23 (ubuntu 16):
https://github.com/tarantool/tarantool/actions/runs/12376159316/job/34542626889?pr=10949#step:5:13916
Ubuntu 16.04 EOL and EOS are reached [1]
The CI failure for libc 2.24 (debian 9):
https://github.com/tarantool/tarantool/actions/runs/12376159307/job/34542633454?pr=10949#step:5:13859
Debian 9 EOL is reached 4 years ago [2]
The CI failure for libc 2.27 (ubuntu 18):
https://github.com/tarantool/tarantool/actions/runs/12376159278/job/34542625496?pr=10949#step:5:11743
The CI pass for libc 2.31 (ubuntu 20):
https://github.com/tarantool/tarantool/actions/runs/12376159289/job/34542630993?pr=10949
Ubuntu 20.04 support ends in 3 months and 2 week [1].
Yes, unfortunately we should keep (AFAICS) these runners to check the
installations for our customers.

I believe we will clarify a list of Linux distros in a separate activity.



  test/LuaJIT-tests/lib/base/tonumber_scan.lua | 8 +++++---
  1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/test/LuaJIT-tests/lib/base/tonumber_scan.lua b/test/LuaJIT-tests/lib/base/tonumber_scan.lua
index ac7d68a4..800c57b0 100644
--- a/test/LuaJIT-tests/lib/base/tonumber_scan.lua
+++ b/test/LuaJIT-tests/lib/base/tonumber_scan.lua
@@ -186,9 +186,11 @@ do --- tonumber parsing
    test_conv(tonumber)
  end
  
--- Skip for the old libc version with the bug in the `strtod()`.
--- See alsohttps://sourceware.org/bugzilla/show_bug.cgi?id=16151.
-do --- strtod parsing -libc<2.19
+-- Skip for the old libc version with the bugs in the `strtod()`.
+-- Affected versions:
+-- * <2.19:https://sourceware.org/bugzilla/show_bug.cgi?id=16151.
+-- * <2.28:https://sourceware.org/bugzilla/show_bug.cgi?id=23279.
I propose to skip strtod test when Glibc is older than say 2.30 [3] and 
avoid testing

with ancient Glibc versions because Glibc implementation is buggy [4] and

a there are lot of bugs in old and more or less new versions:

v2.41 [5], v2.22 [6], v2.27 [7], v2.15 [8], v2.33 [9] etc [10].


I don't think we should waste our time with issues like this.


1. https://endoflife.date/ubuntu

2. https://endoflife.date/debian

3. https://sourceware.org/glibc/wiki/Release

4. 
https://github.com/tarantool/luajit/blob/cd5ab5da9b56bf560407554c0377cfa8567d4430/src/lj_strscan.c#L20-L27

5. https://sourceware.org/bugzilla/show_bug.cgi?id=30220

6. https://sourceware.org/bugzilla/show_bug.cgi?id=19380

7. https://sourceware.org/bugzilla/show_bug.cgi?id=15744

8. https://sourceware.org/bugzilla/show_bug.cgi?id=14049

9. https://sourceware.org/bugzilla/show_bug.cgi?id=26137

10. 
https://sourceware.org/bugzilla/buglist.cgi?bug_status=__all__&content=strtod&no_redirect=1&order=bug_id%20DESC&product=glibc&query_format=specific
Yes, I agree that this should be the last red line for us. If the test
will fail again due to glibc, it will be easier just to drop it. For
now, I see no failures for versions 2.31 -- 2.40, and find no bugs
related to our tests that affected versions 2.28 -- 2.30, so let's skip
it for versions less than 2.28 for now.

Okay, LGTM then.

Also discussed it and decided to remove the test if the same issue will happen next time.



        
+do --- strtod parsing -libc<2.28
    test_conv(function(s)
      local d = ffi.C.strtod(s, e)
      return (e[0][0] == 0 and #s ~= 0) and d or nil

    
--------------AT6oMLu8E2XEqjlEGT98s7Rw--