macvim-dev / macvim-dev/macvim
VIM crashes after executing xelatex and colorscheme
オープン
まだ誰も着手していません。
- 主要言語
- Vim Script
- スター
- 7.9k
- フォーク
- 691
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Describe the bug
When there is an autocommand to change the colorscheme Vim crashes after executing xelatex.
To Reproduce
Detailed steps to reproduce the behavior:
- Include the code below in the
.vimrcfile:
let g:colors = "lucius"
augroup color
au!
au WinEnter * exe "colorscheme ".g:colors
augroup END
set makeprg=xelatex\ \-file\-line\-error\ \-interaction=nonstopmode
nmap <leader>k :exec "silent make ".shellescape(expand('%'))<cr>
- Load a
latexfile - Compile with
<leader>k - Navigate to another
latexfile - Vim crashes
See report below:
Process: MacVim [33498]
Path: /Applications/MacVim.app/Contents/MacOS/MacVim
Identifier: org.vim.MacVim
Version: 8.2.2164 (169)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: MacVim [33498]
User ID: 502
Date/Time: 2021-07-21 18:42:43.350 -0700
OS Version: Mac OS X 10.15.7 (19H2)
Report Version: 12
Bridge OS Version: 4.6 (17P6610)
Anonymous UUID: 35483298-412C-44A4-AED8-52EE10686945
Sleep/Wake UUID: A07E24BD-D769-40DF-B2B1-77023F65444C
Time Awake Since Boot: 14000 seconds
Time Since Wake: 4400 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000076141ecb4d88
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [33498]
VM Regions Near 0x76141ecb4d88:
Stack 00007000021fc000-000070000227e000 [ 520K] rw-/rwx SM=COW thread 6
-->
MALLOC_TINY 00007f84c8400000-00007f84c8500000 [ 1024K] rw-/rwx SM=PRV
Application Specific Information:
objc_msgSend() selector name: retain
Expected behavior
Vim should load new file without crashing.
Environment (please complete the following information):
- Vim version: 8.2 (Dec 19 2020)
- OS: MacOS 10.15.7
- Terminal: GUI
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提供された .vimrc、WinEnter colorscheme autocommand、および xelatex makeprg mapping を使って、まず MacVim でクラッシュを再現します。LaTeX ファイルを 1 つ読み込み、k を実行し、別のファイルへ移動したときの動作を macOS のクラッシュレポートと比較します。このシナリオでファイル間を移動しても MacVim がクラッシュしなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- macos, vim
- 領域
- desktop
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100