Monday, September 30, 2019

Re: Vim crashes when executing system()

Probably, I figure out this bug. Could you pleaes try this? (if possible)

diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 9d58ab41a..2db573a4f 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -1791,8 +1791,11 @@ make_filter_cmd(
      if (p != NULL)
  *p = NUL;
  }
- STRCAT(buf, " <"); /* " < " causes problems on Amiga */
- STRCAT(buf, itmp);
+ if (itmp != NULL)
+ {
+     STRCAT(buf, " <"); /* " < " causes problems on Amiga */
+     STRCAT(buf, itmp);
+ }
  if (*p_shq == NUL)
  {
      p = find_pipe(cmd);


On Tuesday, October 1, 2019 at 10:14:03 AM UTC+9, Salman Halim wrote:
It didn't matter. I tried "ls", "diff", "svn", etc. 

--

Salman

On Mon, Sep 30, 2019, 21:03 Yasuhiro Matsumoto <mat...@gmail.com> wrote:
Could you please find out what command string is passed to system()?

On Monday, September 30, 2019 at 10:57:49 PM UTC+9, Salman Halim wrote:
Hello,

I upgraded my GVim on Windows 10 to 8.1-2102 yesterday and now every call to system() crashed Vim. The command line just says,"Segmentation Fault" with no other details. 

This is new and happens even when started with -u NONE -U NONE.

Thank you in advance and best regards,

--

Salman

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/c1c46e07-97b2-410d-83b1-cf6987d3241f%40googlegroups.com.

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/a3b8d785-f7ca-475e-95cf-95ce629eb713%40googlegroups.com.

No comments: