James McCoy wrote:

> On Sat, Feb 13, 2021 at 04:23:02PM -0500, James McCoy wrote:
> > On Sat, Feb 13, 2021 at 07:13:35PM +0100, Bram Moolenaar wrote:
> > > 
> > > Somehow the Travis tests run fail for s390:
> > > https://travis-ci.com/github/vim/vim/builds/217016917
> > > 
> > > I do not see this failure on other systems and valgrind and ASAN also do
> > > not report a problem.
> > > 
> > > Does anyone have an idea of how to pinpoint this problem?
> > 
> > I'll see if I can replace on Debian's s390x system.
> 
> It looks like the problematic test is Test_try_catch_throw.  I was able
> to whittle that down to
> 
> def Test_try_catch_throw()
>   var l = []
>   try # comment
>   finally # comment
>     add(l, '3')
>   endtry # comment
> 
>   if 1
>   else
>     try | finally | endtry
>   endif
> 
> enddef
> 
> and "make test_vim9_script.res TEST_FILTER=Test_try_catch_throw"
> consistently fails.  I've attached the resulting valgrind log.

This looks like the stack has been messed up.  The first error happens
when creating a new non-empty list, which doesn't happen in
Test_try_catch_throw().  Perhaps it's after it returns with a messed up
stack.

Unfortunately I don't get any valgrind errors when I try on my system.
Perhaps you can try change the code a bit to see what matters.  E.g.
change that "if 1" to "if 0".  I guess the comments don't really matter.

Can you add:
        disass Test_try_catch_throw
And show the output?

Otherwise it would require stepping through the function to see where it
goes wrong.

-- 
    f y cn rd ths thn y cn hv grt jb n cmptr prgrmmng

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202102141158.11EBw3ce1391419%40masaka.moolenaar.net.

Raspunde prin e-mail lui