SEGV in Test_syntax_colortest()

13 views
Skip to first unread message

Ernie Rael

unread,
Mar 31, 2022, 8:18:07 PM3/31/22
to vim...@googlegroups.com
Is this a known issue? Intermittent.

-ernie

On ubuntuL

vim/src/testdir $ make test_gui
...
Executing Test_shell_command()
Executing Test_syntax_colortest()
Vim: Caught deadly signal SEGV
Vim: Finished.
<
"test.log"
"test.log" [New] 6L, 112B written
^[[1mExecuted 37 tests                        in   5.839113 seconds^[[m
1 FAILED:
"messages" [New]
"messages"
"messages" [New] 47L, 3010B writtenSegmentation fault (core dumped)
make[1]: *** [Makefile:143: test_gui.res] Error 139
make: *** [Makefile:64: test_gui] Error 2

Dominique Pellé

unread,
Apr 1, 2022, 1:23:35 AM4/1/22
to vim_dev
Can you post the output of `:version`?

It's maybe related to a ticket I created a long time
ago: https://github.com/vim/vim/issues/8681
where I sometimes saw a crash and I could see:

Executing Test_syntax_colortest()
Executing Test_windowid_variable()
free(): invalid pointer

Vim: Caught deadly signal ABRT

Vim: Finished.
Aborted (core dumped)

I don't recall a fix for this bug. I just tried the command
that I gave in https://github.com/vim/vim/issues/8681
and sure enough, I still got 1 crash in 100 iterations
(at iteration 80/100). So it's not frequent for me:

$ for i in $(seq 1 100); do echo "=== $i"; make test_gui; done 2>&1 | tee log
...snip...
Executing Test_syntax_colortest()<0d>
Executing Test_windowid_variable()
free(): invalid pointer
Vim: Caught deadly signal ABRT

Vim: Finished.
Aborted (core dumped)

This crash was with vim-8.2.4650 gtk3 GUI on
xubuntu-18.04.6. I'll update the ticket with that
info.


Dominique

Bram Moolenaar

unread,
Apr 1, 2022, 7:07:19 AM4/1/22
to vim...@googlegroups.com, Ernie Rael
I haven't seen this. How did you build? It may also depend on your
window manager.

--
ARTHUR: Go on, Bors, chop its head off.
BORS: Right. Silly little bleeder. One rabbit stew coming up.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Ernie Rael

unread,
Apr 1, 2022, 10:40:45 AM4/1/22
to vim...@googlegroups.com
On 4/1/22 4:07 AM, Bram Moolenaar wrote:
> Ernie Rael wrote:
>
>> Is this a known issue? Intermittent.
>>
>> -ernie
>>
>> On ubuntuL
>>
>> vim/src/testdir $ make test_gui
>> ...
>> Executing Test_shell_command()
>> Executing Test_syntax_colortest()
>> Vim: Caught deadly signal SEGV
>> Vim: Finished.
>> <
>> "test.log"
>> "test.log" [New] 6L, 112B written
>> ^[[1mExecuted 37 tests                        in   5.839113 seconds^[[m
>> 1 FAILED:
>> "messages" [New]
>> "messages"
>> "messages" [New] 47L, 3010B writtenSegmentation fault (core dumped)
>> make[1]: *** [Makefile:143: test_gui.res] Error 139
> I haven't seen this. How did you build? It may also depend on your
> window manager.

Using gcc

The only Makefile change:

-#CFLAGS = -g
+CFLAGS = -g

$ apt-cache policy libgtk-3-0
libgtk-3-0:
  Installed: 3.24.30-1ubuntu1

|$ printf 'Desktop: %s\nSession: %s\n' "$XDG_CURRENT_DESKTOP"
"$GDMSESSION" Desktop: pop:GNOME Session: pop |


Ernie Rael

unread,
Apr 1, 2022, 11:16:42 AM4/1/22
to vim...@googlegroups.com
On 4/1/22 7:40 AM, Ernie Rael wrote:
> On 4/1/22 4:07 AM, Bram Moolenaar wrote:
>> Ernie Rael wrote:
>>
>>> Is this a known issue? Intermittent.
>>>
>>> -ernie
>>>
>>> On ubuntuL
>>>
>>> vim/src/testdir $ make test_gui
>>> ...
>>> Executing Test_shell_command()
>>> Executing Test_syntax_colortest()
>>> Vim: Caught deadly signal SEGV
>>> Vim: Finished.
>>> <
>>> "test.log"
>>> "test.log" [New] 6L, 112B written
>>> ^[[1mExecuted 37 tests                        in   5.839113 seconds^[[m
>>> 1 FAILED:
>>> "messages" [New]
>>> "messages"
>>> "messages" [New] 47L, 3010B writtenSegmentation fault (core dumped)
>>> make[1]: *** [Makefile:143: test_gui.res] Error 139
>> I haven't seen this.  How did you build?  It may also depend on your
>> window manager.


Add ASAN output to https://github.com/vim/vim/issues/8681
Reply all
Reply to author
Forward
0 new messages