1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Crash when doing ":python print" and compiled with gcc and
12 the optimizer enabled.
13 Solution: Avoid the crash, doesn't really fix the problem. (Christian
15 Files: src/if_py_both.h
18 *** ../vim-7.3.496/src/if_py_both.h 2012-02-04 20:17:21.000000000 +0100
19 --- src/if_py_both.h 2012-04-20 13:24:31.000000000 +0200
23 if (!PyArg_ParseTuple(args, "et#", ENC_OPT, &str, &len))
26 + /* TODO: This works around a gcc optimizer problem and avoids Vim
27 + * from crashing. Should find a real solution. */
31 Py_BEGIN_ALLOW_THREADS
33 writer((writefn)(error ? emsg : msg), (char_u *)str, len);
34 *** ../vim-7.3.496/src/version.c 2012-04-13 19:11:16.000000000 +0200
35 --- src/version.c 2012-04-20 13:26:22.000000000 +0200
39 { /* Add new patch number below this line */
45 There can't be a crisis today, my schedule is already full.
47 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
48 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
49 \\\ an exciting new programming language -- http://www.Zimbu.org ///
50 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///