jeromejj / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

Segfault when using omnicppcomplete/clang_complete #135

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use omnicppcomplete/clang_complete on a struct and C-n to skip to the next 
serveral alternatives

What is the expected output? What do you see instead?
When using gdb to debug vim, vim crashed here:
------
#5  0x0000000000442bc7 in ptr2cells (p=0x2b <Address 0x2b out of bounds>) at 
charset.c:764
764     if (enc_utf8 && *p >= 0x80)
(gdb) list
759 ptr2cells(p)
760     char_u  *p;
761 {
762 #ifdef FEAT_MBYTE
763     /* For UTF-8 we need to look at more bytes if the first byte is >= 
0x80. */
764     if (enc_utf8 && *p >= 0x80)
765     return utf_ptr2cells(p);
766     /* For DBCS we can tell the cell count from the first byte. */
767 #endif
768     return (chartab[*p] & CT_CELL_MASK);
------

What version of the product are you using? On what operating system?
Plase see the bugreport.txt
Using Arch and everything should be up-to-date.

Please provide any additional information below.
The output of my gdb and bugreport.txt
Since the rebuild my vim to add the debuginfo, the core file is not needed.

Since the same segfault happens using tag based omnicppcomplete or 
clang_complete, the bug may not be in the plugins.

Original issue reported on code.google.com by adam900...@gmail.com on 23 May 2013 at 5:49

Attachments:

GoogleCodeExporter commented 9 years ago
Is this still reproducable? Can you post an example file? Thanks.

Original comment by chrisbr...@googlemail.com on 9 Oct 2014 at 9:22

GoogleCodeExporter commented 9 years ago
Sorry for the late reply.
At the latest version, the segfault is already fixed.

Thanks.

2014-10-10 5:22 GMT+08:00  <vim@googlecode.com>:

Original comment by adam900...@gmail.com on 18 Oct 2014 at 9:10

GoogleCodeExporter commented 9 years ago
Fixed somehow ;)

Original comment by chrisbr...@googlemail.com on 21 Oct 2014 at 2:52