Tarantool development patches archive
 help / color / mirror / Atom feed
From: Igor Munkin via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: "Максим Корякшин" <m.kokryashkin@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org,
	Maxim Kokryashkin <max.kokryashkin@gmail.com>
Subject: Re: [Tarantool-patches] [PATCH luajit] test: adapt test checking reversed function
Date: Fri, 18 Feb 2022 22:04:53 +0300	[thread overview]
Message-ID: <Yg/t1ZQCzfK5Xdkm@tarantool.org> (raw)
In-Reply-To: <1633983560.725061406@f460.i.mail.ru>

Max,

Thanks for the patch!

On 11.10.21, Максим Корякшин wrote:
> 
> Hi! Thanks for the comments. 
>  
> I agree that it is strange to add this test, as long as it does not test
> anything, so I propose to remove it.

Why do you think this test checks nothing? It checks <string.gsub> with
recursive handler. If author wanted to check deep recursion exception,
he would add <pcall> at least (if Lua successfully handles this).

I propose to apply the original fix[1], but adjust the comment
considering Sergey review: it provides the description, why we can't use
the original test, or at least add <pcall> to avoid the crash.

>  
> Best regards,
> Maxim Kokryashkin
>  
> > 
> >>Hi, Maxim!
> >>
> >>Thanks for the patch!
> >>
> >>Please consider my comments below.
> >>
> >>On 30.09.21, Maxim Kokryashkin wrote:
> >>> The first fiber in Tarantool has only 512Kb of the stack which is not enough to
> >>> handle such a deep call chain.
> >>> The test is adapted to Tarantool by decreasing the string length.
> >>>
> >>> Closes tarantool/tarantool#5782

Typo: s/Closes/Resolves/.

> >>> Part of tarantool/tarantool#5845
> >>> Part of tarantool/tarantool#4473

Minor: Replace both tags above with "Part of tarantool/tarantool/5870".

> >>
> >>Looks like it should be 5870 instead 4473. Also, 5845 is already
> >>closed.
> >>
> >>> ---
> >>
> >>Please show the Tarantool branch as well, to show that problem is gone.
> >>
> >>> GitHub branch:  https://github.com/tarantool/luajit/tree/fckxorg/gh-5782-adapt-deep-nest-gsub-PUC-Rio
> >>> Issue:  https://github.com/tarantool/tarantool/issues/5782
> >>>
> >>> test/PUC-Rio-Lua-5.1-tests/pm.lua | 9 ++++-----
> >>> 1 file changed, 4 insertions(+), 5 deletions(-)
> >>>

<snipped>

> >>> --
> >>> 2.33.0
> >>>
> >>
> >>--
> >>Best regards,
> >>Sergey Kaplun
> > 

[1]: https://lists.tarantool.org/tarantool-patches/20210930114337.1575120-1-m.kokryashkin@tarantool.org/

-- 
Best regards,
IM

      parent reply	other threads:[~2022-02-18 19:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-30 11:43 Maxim Kokryashkin via Tarantool-patches
2021-10-11 15:28 ` Sergey Kaplun via Tarantool-patches
2021-10-11 20:19   ` Максим Корякшин via Tarantool-patches
2021-10-12  8:16     ` Sergey Kaplun via Tarantool-patches
2022-02-18 19:04     ` Igor Munkin via Tarantool-patches [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Yg/t1ZQCzfK5Xdkm@tarantool.org \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=imun@tarantool.org \
    --cc=m.kokryashkin@tarantool.org \
    --cc=max.kokryashkin@gmail.com \
    --subject='Re: [Tarantool-patches] [PATCH luajit] test: adapt test checking reversed function' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox