[vim/vim] Segmentation fault on Mac after `set window&` (Issue #15233)

15 views
Skip to first unread message

Matthew Malcomson

unread,
Jul 12, 2024, 4:20:35 PM7/12/24
to vim/vim, Subscribed

Steps to reproduce

On Mac m1 air.
Using default installed vim.

  • Open via the symbolic link named vi, with no user config.
  • :set window&
  • :echo system('ls')
    Segmentation fault.

Alternatively, open using the name vim, run :set window&, then either insert the character § into a buffer or resize the window -- both these actions also trigger a segmentation fault.

Expected behaviour

Does not crash.

Version of Vim

VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Mar 4 2023 14:02:05) macOS version - arm64 Included patches: 1-1313 Compiled by ro...@apple.com Normal version without GUI.

Environment

macOS Ventura 13.3.1 (22E261)
Apple M1
Stock terminal app with $TERM = xterm-256color

asoneth@Matthews-MacBook-Air ~ % /bin/zsh --version
zsh 5.9 (x86_64-apple-darwin22.0)

Default installed vim.

Logs and stack traces

N.b. various interesting things:
- crash does not happen when save and restore `&window` around the `set &window`.
- When opening vim I see very large values for `set window?`.  These values are different each time I start vim -- e.g. recent values I've seen are 5765073715964411904 and 6341455303430635520.


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/15233@github.com>

Christian Brabandt

unread,
Jul 12, 2024, 5:13:17 PM7/12/24
to vim...@googlegroups.com, vim/vim, Subscribed
Please verify using latest master.

Thanks
Chris

Christian Brabandt

unread,
Jul 12, 2024, 5:20:24 PM7/12/24
to vim/vim, Subscribed

please verify using latest master and if you can, please create a stack trace


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/15233/2226368279@github.com>

Matthew Malcomson

unread,
Jul 13, 2024, 4:12:18 AM7/13/24
to vim/vim, Subscribed

It's not latest master -- I should have been clear I couldn't reproduce with anything other than the provided vim on the system.
Am not sure whether that means the bug has gone or some particular build options were necessary.
Can't provide meaningful stack trace on the system vim because the binary is stripped.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/15233/2226817292@github.com>

Christian Brabandt

unread,
Jul 13, 2024, 12:21:44 PM7/13/24
to vim/vim, Subscribed

I see. I think it should probably report to Apple then. At the very least they should be made aware of the issue and they should then in the optimal case analyze it (or at least update their Vim). So let me close it then as not actionable for us.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/15233/2226983471@github.com>

Christian Brabandt

unread,
Jul 13, 2024, 12:21:48 PM7/13/24
to vim/vim, Subscribed

Closed #15233 as not planned.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/15233/issue_event/13495773090@github.com>

Reply all
Reply to author
Forward
0 new messages