≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #2092

Bug #2092: Command-T causes segfault

Kind bug
Product Command-T
When Created 2013-05-18T05:00:05Z, updated 2014-03-22T20:35:57Z
Status closed
Reporter AncientPC
Tags no tags

Description

System

  • vim 7.3
  • Ruby 1.9.3
  • Ubuntu 12.04

Description

Compiled the plugin fine, but when I try to initiate it within vim it causes a segfault:

Vim: Caught deadly signal SEGV
Vim: Finished.
[1]    26638 segmentation fault (core dumped)  vim 

I attached gdb and here's the backtrace:

#0  0x00007ffff5e3cae3 in st_lookup () from /usr/lib/libruby1.8.so.1.8                                                                                                                            
#1  0x00007ffff30266c1 in rb_intern3 (name=0x7ffff33a81c8 "has_key?", len=8, enc=0xdde320) at parse.y:9827                                                                                        
#2  0x00007ffff33a71df in CommandT_option_from_hash (option=<optimized out>, hash=140737269511720) at ext.c:36                                                                                    
#3  0x00007ffff33a7a6b in CommandTMatcher_initialize (argc=<optimized out>, argv=<optimized out>, self=140737269511080) at matcher.c:88                                                           
#4  0x00007ffff5dde87f in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#5  0x00007ffff5ddeaff in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#6  0x00007ffff5ddee75 in rb_funcall2 () from /usr/lib/libruby1.8.so.1.8                                                                                                                          
#7  0x00007ffff5ddef16 in rb_obj_call_init () from /usr/lib/libruby1.8.so.1.8                                                                                                                     
#8  0x00007ffff5e0d4a0 in rb_class_new_instance () from /usr/lib/libruby1.8.so.1.8                                                                                                                
#9  0x00007ffff5dde87f in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#10 0x00007ffff5ddeaff in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#11 0x00007ffff5de3db9 in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#12 0x00007ffff5de5479 in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#13 0x00007ffff5dddeb3 in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#14 0x00007ffff5ddeaff in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#15 0x00007ffff5ddee75 in rb_funcall2 () from /usr/lib/libruby1.8.so.1.8                                                                                                                          
#16 0x00007ffff5ddef16 in rb_obj_call_init () from /usr/lib/libruby1.8.so.1.8                                                                                                                     
#17 0x00007ffff5e0d4a0 in rb_class_new_instance () from /usr/lib/libruby1.8.so.1.8                                                                                                                
#18 0x00007ffff5dde87f in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#19 0x00007ffff5ddeaff in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#20 0x00007ffff5de3db9 in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#21 0x00007ffff5de5479 in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#22 0x00007ffff5dddeb3 in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#23 0x00007ffff5ddeaff in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#24 0x00007ffff5de3f17 in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#25 0x00007ffff5de5479 in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#26 0x00007ffff5de6e1c in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#27 0x00007ffff5dddeb3 in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#28 0x00007ffff5ddeaff in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#29 0x00007ffff5de3db9 in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#30 0x00007ffff5de9c13 in ?? () from /usr/lib/libruby1.8.so.1.8                                                                                                                                   
#31 0x00007ffff5dea721 in rb_eval_string () from /usr/lib/libruby1.8.so.1.8                                                                                                                       
#32 0x00007ffff5dd8b99 in rb_protect () from /usr/lib/libruby1.8.so.1.8                                                                                                                           
#33 0x0000000000581058 in ex_ruby ()                                                                                                                                                              
#34 0x000000000047ffbd in do_cmdline ()                                                                                                                                                           
#35 0x0000000000458d92 in ?? ()                                                                                                                                                                   
#36 0x00000000004596f2 in ?? ()                                                                                                                                                                   
#37 0x000000000045d2e4 in ?? ()                                                                                                                                                                   
#38 0x00000000004605dc in ex_call ()                                                                                                                                                              
#39 0x000000000047ffbd in do_cmdline ()                                                                                                                                                           
#40 0x0000000000427ba1 in ?? ()                                                                                                                                                                   
#41 0x000000000048257e in do_cmdline ()                           
---Type <return> to continue, or q <return> to quit---                                                                                                                                            
#42 0x00000000004e30be in ?? ()
#43 0x00000000004e909c in normal_cmd ()
#44 0x000000000058804f in main_loop ()
#45 0x0000000000429c2a in main ()
(gdb) 

Comments

  1. anonymous 2013-05-21T08:40:21Z

    I have the same issue.

    VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 20 2013 02:44:00)
    MacOS X (unix) version
    Included patches: 1-646
  2. anonymous 2013-06-12T09:35:48Z

    Ditto. My head is spinning from which combination of gcc with which ruby. Screw this. I'm going with CtrlP.

  3. Greg Hurrell 2013-06-12T14:35:54Z

    There are always trade-offs. Command-T uses a C extension for speed, but the cost is the need to compile it against the same version of Ruby that Vim was linked against. Many people find this difficult.

    CtrlP will certainly be easier to install, albeit not as fast on large projects.

  4. Greg Hurrell 2014-03-22T20:35:54Z

    Closing due to lack of activity.

  5. Greg Hurrell 2014-03-22T20:35:57Z

    Status changed:

    • From: new
    • To: closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets