Re: vim 7.2 compiles fine on MSYS but it doesn't execute

2009-06-07 Fir de Conversatie Dominique Pellé
Cesar Romani wrote: Dominique Pellé wrote: ... When putting a breakpoint at line term.c:1615, what is the value of 'term' variable? (output of gdb command: print term) Ex: (gdb) p term $1 = (char_u *) 0x946e25c xterm-256color $1 = (char_u *) 0xa0158c0 msys What is also the value of

Re: vim 7.2 compiles fine on MSYS but it doesn't execute

2009-06-07 Fir de Conversatie Cesar Romani
Dominique Pellé wrote: Cesar Romani wrote: Dominique Pellé wrote: ... When putting a breakpoint at line term.c:1615, what is the value of 'term' variable? (output of gdb command: print term) Ex: (gdb) p term $1 = (char_u *) 0x946e25c xterm-256color $1 = (char_u *) 0xa0158c0 msys

Re: vim 7.2 compiles fine on MSYS but it doesn't execute

2009-06-07 Fir de Conversatie Cesar Romani
Dominique Pellé wrote: Cesar Romani wrote: Dominique Pellé wrote: ... When putting a breakpoint at line term.c:1615, what is the value of 'term' variable? (output of gdb command: print term) Ex: (gdb) p term $1 = (char_u *) 0x946e25c xterm-256color $1 = (char_u *)

Re: vim 7.2 compiles fine on MSYS but it doesn't execute

2009-06-07 Fir de Conversatie Bram Moolenaar
Cesar Romani wrote: Dominique Pellé wrote: ... When putting a breakpoint at line term.c:1615, what is the value of 'term' variable? (output of gdb command: print term) Ex: (gdb) p term $1 = (char_u *) 0x946e25c xterm-256color $1 = (char_u *) 0xa0158c0 msys What is also

Re: vim 7.2 compiles fine on MSYS but it doesn't execute

2009-06-07 Fir de Conversatie Dominique Pellé
Cesar Romani wrote: 1675                if ((error_msg = tgetent_error(tbuf, term)) == NULL) (gdb) p term $11 = (char_u *) 0xa0158c0 msys (gdb) n 1677                    tp = tstrbuf; (gdb) p term $12 = (char_u *) 0x5b455c3d Address 0x5b455c3d out of bounds 1/ OK, so the corruption

Re: vim 7.2 compiles fine on MSYS but it doesn't execute

2009-06-07 Fir de Conversatie Cesar Romani
Dominique Pellé wrote: Cesar Romani wrote: 1675if ((error_msg = tgetent_error(tbuf, term)) == NULL) (gdb) p term $11 = (char_u *) 0xa0158c0 msys (gdb) n 1677tp = tstrbuf; (gdb) p term $12 = (char_u *) 0x5b455c3d Address 0x5b455c3d out of bounds 1/

Re: vim 7.2 compiles fine on MSYS but it doesn't execute

2009-06-07 Fir de Conversatie Dominique Pellé
Cesar Romani wrote: Dominique Pellé wrote: I suspect that on your system (mingw), it's using 1024 instead of 2048. If so, the attached patch might fix it.  It adds defined(__MINGW32__)  (__MINGW32__ is already used in several places in Vim's code): 1348 #if defined(AMIGA) ||

Re: vim 7.2 compiles fine on MSYS but it doesn't execute

2009-06-07 Fir de Conversatie Dasn
Breakpoint 1, set_termname (term=0xa0158c0 msys) at term.c:1615 1615if (term_is_builtin(term)) (gdb) p term $1 = (char_u *) 0xa0158c0 msys (gdb) n 1634for (try = builtin_first ? 0 : 1; try 3; ++try) (gdb) p term $2 = (char_u *) 0xa0158c0 msys (gdb) n 1639if

Re: vim 7.2 compiles fine on MSYS but it doesn't execute

2009-06-07 Fir de Conversatie Cesar Romani
Dominique Pellé wrote: Cesar Romani wrote: Dominique Pellé wrote: I suspect that on your system (mingw), it's using 1024 instead of 2048. If so, the attached patch might fix it. It adds defined(__MINGW32__) (__MINGW32__ is already used in several places in Vim's code): 1348 #if

Re: vim 7.2 compiles fine on MSYS but it doesn't execute

2009-06-07 Fir de Conversatie Matt Wozniski
On Sun, Jun 7, 2009 at 10:07 PM, Cesar Romani wrote: Thanks a lot for your help. Actually when I press backspace, it behaves like the cursor left and when I press escape the characters left behind are deleted. CTRL-h cannot delete either, neither :fixdel can fix the backspace. But When I

Re: vim 7.2 compiles fine on MSYS but it doesn't execute

2009-06-06 Fir de Conversatie Bram Moolenaar
Cesar Romani wrote: I tried compiling vim 7.2 with termcap on MSYS, and it compiles fine. However, when I execute it, I get: $ vim Vim: Caught deadly signal SEGV Vim: Finished. If I run gdb on it, I get: $ gdb vim.exe

Re: vim 7.2 compiles fine on MSYS but it doesn't execute

2009-06-06 Fir de Conversatie Cesar Romani
Bram Moolenaar wrote: Cesar Romani wrote: I tried compiling vim 7.2 with termcap on MSYS, and it compiles fine. However, when I execute it, I get: $ vim Vim: Caught deadly signal SEGV Vim: Finished. If I run gdb on it, I get:

Re: vim 7.2 compiles fine on MSYS but it doesn't execute

2009-06-06 Fir de Conversatie Dominique Pellé
Cesar Romani wrote: Bram Moolenaar wrote: Cesar Romani wrote: I tried compiling vim 7.2 with termcap on MSYS, and it compiles fine. However, when I execute it, I get: $ vim Vim: Caught deadly signal SEGV Vim: Finished. If I run gdb on it, I

Re: vim 7.2 compiles fine on MSYS but it doesn't execute

2009-06-06 Fir de Conversatie Cesar Romani
Dominique Pellé wrote: Cesar Romani wrote: Bram Moolenaar wrote: Cesar Romani wrote: I tried compiling vim 7.2 with termcap on MSYS, and it compiles fine. However, when I execute it, I get: $ vim Vim: Caught deadly signal SEGV Vim: Finished.

vim 7.2 compiles fine on MSYS but it doesn't execute

2009-06-05 Fir de Conversatie Cesar Romani
I tried compiling vim 7.2 with termcap on MSYS, and it compiles fine. However, when I execute it, I get: $ vim Vim: Caught deadly signal SEGV Vim: Finished. If I run gdb on it, I get: $ gdb vim.exe GNU gdb 6.8 Copyright (C) 2008 Free