2013Re: gvim crash when using UTF-8 locale and paste text from Windows clipboard
- Jul 28, 2005Rainux -
> Hi, I've used Cygwin's gcc to compiled a gvimd.exe, and tried toIt seems the stack was messed up.
> reproduce the crash in gdb, here is the conversation with gdb.
> M:\vim\vim63>gdb gvimd.exe -q
> (gdb) run
> Starting program: /cygdrive/m/vim/vim63/gvimd.exe
> (Here I switched to gVim and paste LITTLE LONG TEXT from Windows
> clipboard, then gdb caught the exception.)
> Program received signal SIGSEGV, Segmentation fault.
> 0x77c12a16 in wscanf () from /cygdrive/c/WINDOWS/system32/msvcrt.dll
> (gdb) info stack
> #0 0x77c12a16 in wscanf () from /cygdrive/c/WINDOWS/system32/msvcrt.dll
> #1 0x610e8987 in ?? ()
> #2 0x0054f020 in p_report ()
> #3 0x0022fde0 in ?? ()
> It seems the crash it not Vim's bug? And, I've viewed gvimd.exe andIt's possibly called somewhere inside a library function.
> libintl.dll 's import functions from msvcrt.dll, I havn't founded the
> function wscanf(), why?
> Do you need more infomation and more action? I'm just a newbie toTry setting breakpoints to further pinpoint where the crash occurs.
Perhaps clip_mch_request_selection() is a good one in this case:
Bad programs can be written in any language.
/// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///
- << Previous post in topic Next post in topic >>