Kronuz/SublimeCodeIntel — Issue #40: Autocomplete crashes program
Author: raklet
Created: 2011-10-09 16:27:17+00:00
State: open

I was having the same problem as in issue 14 (display hangs until pressing "alt" key), but I removed and reinstalled the plugin and that problem seems to have gone away.

However, sublime text still crashes when I try to autocomplete certain items.

Here are two things I have found that will do it every time without fail. Create a new file of any type (txt, rb, py, sql, etc) doesn't matter which.

Example 1
----------------------------------
type the following

:belongs_to

go to a new line and start to type it again. Press ctrl+space before typing it all out. Instant crash for Sublime Text.

Example 2
-----------------------------------
type the following

def happy_day
puts x+y
end

now go to a new line and start to time in the method name

hap.....

press ctrl+space to autocomplete. Sublime Text crashes.

I'm programming in ruby, but as said before it doesn't seem to matter whether I am in an .rb file or otherwise. I can type the same text in a plain text file and get the crash.

Here is the output from Sublime at the time of the crash

*** glibc detected *** sublime_text: corrupted double-linked list: 0xb2f1ea60 ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x6b961)[0xb6c1b961]
/lib/i386-linux-gnu/libc.so.6(+0x6d308)[0xb6c1d308]
/lib/i386-linux-gnu/libc.so.6(cfree+0x6d)[0xb6c2041d]
/usr/lib/i386-linux-gnu/libstdc++.so.6(_ZdlPv+0x21)[0xb6dd74d1]
sublime_text(_ZN13filter_sourceD0Ev+0x7b)[0x82a825b]
sublime_text(_ZN21auto_complete_handler4initEbbb+0x1935)[0x83e1195]
sublime_text(_ZN20skyline_text_control25show_auto_complete_windowEb+0x83)[0x83c67e3]
sublime_text(_ZN21auto_complete_command3runERK5value+0x78)[0x83bd978]
sublime_text(_ZN15message_handler14handle_messageE15ui_message_typePv+0x1b2)[0x82835a2]
sublime_text(_Z31route_message_using_input_focus15ui_message_typePvP7control+0x50)[0x82b4720]
sublime_text(_ZN6window12handle_eventEP10px_event_t+0xb05)[0x8275f55]
sublime_text[0x84c87a6]
sublime_text(_Z8on_eventP10_GtkWidgetP9_GdkEventPv+0x754)[0x84cf9b4]
/usr/lib/libgtk-x11-2.0.so.0(+0x135a14)[0xb75d6a14]
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x17a)[0xb707976a]
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(+0x202be)[0xb708d2be]
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x54f)[0xb709553f]
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x32)[0xb70958e2]
/usr/lib/libgtk-x11-2.0.so.0(+0x26a7be)[0xb770b7be]
/usr/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0x1a3)[0xb75d4c73]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x27f)[0xb75d4eff]
/usr/lib/libgdk-x11-2.0.so.0(+0x56a0a)[0xb745ea0a]
/lib/i386-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x1c8)[0xb6fbe6a8]
/lib/i386-linux-gnu/libglib-2.0.so.0(+0x42e58)[0xb6fbee58]
/lib/i386-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0x15b)[0xb6fbf40b]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xb9)[0xb75d3c49]
sublime_text(_Z17px_run_event_loopv+0xe)[0x84ca25e]
sublime_text(main+0x427)[0x8384bc7]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0xb6bc6e37]
sublime_text[0x82316e1]
======= Memory map: ========
08048000-08935000 r-xp 00000000 08:05 1061325 /home/raklet/Sublime-Text-2/sublime_text
08935000-08936000 r--p 008ec000 08:05 1061325 /home/raklet/Sublime-Text-2/sublime_text
08936000-08996000 rw-p 008ed000 08:05 1061325 /home/raklet/Sublime-Text-2/sublime_text
08996000-089a5000 rw-p 00000000 00:00 0
09e41000-0c0a5000 rw-p 00000000 00:00 0 [heap]
aec00000-aec24000 rw-p 00000000 00:00 0
aec24000-aed00000 ---p 00000000 00:00 0
aedfe000-aedff000 ---p 00000000 00:00 0
aedff000-af5ff000 rw-p 00000000 00:00 0
af5ff000-af600000 ---p 00000000 00:00 0
af600000-afe00000 rw-p 00000000 00:00 0
afe00000-afeff000 rw-p 00000000 00:00 0
afeff000-aff00000 ---p 00000000 00:00 0
afff9000-afffa000 ---p 00000000 00:00 0
afffa000-b07fa000 rw-p 00000000 00:00 0
b07fa000-b07fe000 r-xp 00000000 08:05 2230135 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
b07fe000-b07ff000 r--p 00003000 08:05 2230135 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
b07ff000-b0800000 rw-p 00004000 08:05 2230135 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
b0800000-b09e5000 rw-p 00000000 00:00 0
b09e5000-b0a00000 ---p 00000000 00:00 0
b0a00000-b0c00000 rw-p 00000000 00:00 0
b0c00000-b0cfe000 rw-p 00000000 00:00 0
b0cfe000-b0d00000 ---p 00000000 00:00 0
b0d5a000-b1100000 rw-p 00000000 00:00 0
b1100000-b11ff000 rw-p 00000000 00:00 0
b11ff000-b1200000 ---p 00000000 00:00 0
b1200000-b1300000 rw-p 00000000 00:00 0
b1300000-b1400000 rw-p 00000000 00:00 0
b1489000-b148b000 r-xp 00000000 08:05 2363132 /usr/lib/i386-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
b148b000-b148c000 r--p 00001000 08:05 2363132 /usr/lib/i386-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
b148c000-b148d000 rw-p 00002000 08:05 2363132 /usr/lib/i386-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
b14ce000-b14d9000 r-xp 00000000 08:05 2753422 /lib/i386-linux-gnu/libudev.so.0.11.1
b14d9000-b14da000 r--p 0000a000 08:05 2753422 /lib/i386-linux-gnu/libudev.so.0.11.1
b14da000-b14db000 rw-p 0000b000 08:05 2753422 /lib/i386-linux-gnu/libudev.so.0.11.1
b14ea000-b14ee000 r-xp 00000000 08:05 1707407 /home/raklet/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86/sgmlop.so
b14ee000-b14ef000 r--p 00003000 08:05 1707407 /home/raklet/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86/sgmlop.so
b14ef000-b14f0000 rw-p 00004000 08:05 1707407 /home/raklet/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86/sgmlop.so
b14f0000-b1513000 r-xp 00000000 08:05 2237655 /usr/lib/gio/modules/libgvfsdbus.so
b1513000-b1514000 r--p 00023000 08:05 2237655 /usr/lib/gio/modules/libgvfsdbus.so
b1514000-b1515000 rw-p 00024000 08:05 2237655 /usr/lib/gio/modules/libgvfsdbus.so
b1515000-b154f000 r-xp 00000000 08:05 2231221 /usr/lib/libibus.so.2.0.0
b154f000-b1550000 r--p 00039000 08:05 2231221 /usr/lib/libibus.so.2.0.0
b1550000-b1551000 rw-p 0003a000 08:05 2231221 /usr/lib/libibus.so.2.0.0
b1551000-b158c000 r-xp 00000000 08:05 2754209 /lib/i386-linux-gnu/libdbus-1.so.3.5.4
b158c000-b158d000 r--p 0003a000 08:05 2754209 /lib/i386-linux-gnu/libdbus-1.so.3.5.4
b158d000-b158e000 rw-p 0003b000 08:05 2754209 /lib/i386-linux-gnu/libdbus-1.so.3.5.4
b158e000-b158f000 ---p 00000000 00:00 0
b158f000-b1d8f000 rw-p 00000000 00:00 0
b1d8f000-b1d90000 ---p 00000000 00:00 0
b1d90000-b2590000 rw-p 00000000 00:00 0
b2590000-b2591000 ---p 00000000 00:00 0
b2591000-b2d91000 rw-p 00000000 00:00 0
b2d91000-b2d95000 r-xp 00000000 08:05 2768713 /lib/i386-linux-gnu/libnss_dns-2.13.so
b2d95000-b2d96000 r--p 00004000 08:05 2768713 /lib/i386-linux-gnu/libnss_dns-2.13.so
b2d96000-b2d97000 rw-p 00005000 08:05 2768713 /lib/i386-linux-gnu/libnss_dns-2.13.so
b2d97000-b2d99000 r-xp 00000000 08:05 2754742 /lib/libnss_mdns4_minimal.so.2
b2d99000-b2d9a000 r--p 00001000 08:05 2754742 /lib/libnss_mdns4_minimal.so.2
b2d9a000-b2d9b000 rw-p 00002000 08:05 2754742 /lib/libnss_mdns4_minimal.so.2
b2d9b000-b2dae000 r-xp 00000000 08:05 2237305 /usr/lib/gvfs/libgvfscommon.so
b2dae000-b2daf000 r--p 00012000 08:05 2237305 /usr/lib/gvfs/libgvfscommon.so
b2daf000-b2db0000 rw-p 00013000 08:05 2237305 /usr/lib/gvfs/libgvfscommon.so
b2db0000-b2e10000 rw-s 00000000 00:04 24444933 /SYSV00000000 (deleted)
b2e10000-b2e5a000 r--p 00000000 08:05 2098374 /usr/share/fonts/truetype/msttcorefonts/Courier_New.ttf
b2e5a000-b2ee9000 r--p 00000000 08:05 3018788 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
b2ee9000-b2efe000 r-xp 00000000 08:05 2231678 /usr/lib/libdbusmenu-glib.so.3.0.14
b2efe000-b2eff000 r--p 00014000 08:05 2231678 /usr/lib/libdbusmenu-glib.so.3.0.14
b2eff000-b2f00000 rw-p 00015000 08:05 2231678 /usr/lib/libdbusmenu-glib.so.3.0.14
b2f00000-b2fe0000 rw-p 00000000 00:00 0
b2fe0000-b3000000 ---p 00000000 00:00 0
b3000000-b3004000 r-xp 00000000 08:05 2238919 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
b3004000-b3005000 r--p 00003000 08:05 2238919 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
b3005000-b3006000 rw-p 00004000 08:05 2238919 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
b3006000-b3014000 r-xp 00000000 08:05 2237841 /usr/lib/libdbusmenu-gtk.so.3.0.14
b3014000-b3015000 r--p 0000d000 08:05 2237841 /usr/lib/libdbusmenu-gtk.so.3.0.14
b3015000-b3016000 rw-p 0000e000 08:05 2237841 /usr/lib/libdbusmenu-gtk.so.3.0.14
b3016000-b30b1000 r--p 00000000 08:05 3018789 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
b30b1000-b3100000 r--p 00000000 08:05 3018791 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
b3100000-b31ff000 rw-p 00000000 00:00 0
b31ff000-b3200000 ---p 00000000 00:00 0
b3204000-b321e000 r--s 00000000 08:05 2624405 /usr/share/mime/mime.cache
b321e000-b321f000 r--s 00000000 08:05 1050794 /home/raklet/.local/share/mime/mime.cache
b3220000-b3224000 r-xp 00000000 08:05 2230219 /usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so
b3224000-b3225000 r--p 00003000 08:05 2230219 /usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so
b3225000-b3226000 rw-p 00004000 08:05 2230219 /usr/lib/gtk-2.0/2.10.0/menuproxies/libappmenu.so
b3226000-b3227000 r--s 00000000 08:05 1463274 /var/cache/fontconfig/26de28bc8622bbc1fb67fd234c21975f-le32d4.cache-3
b3227000-b3228000 r--s 00000000 08:05 1452707 /var/cache/fontconfig/c05880de57d1f5e948fdfacc138775d9-le32d4.cache-3
b3228000-b322e000 r--s 00000000 08:05 1441861 /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-le32d4.cache-3
b322e000-b3230000 r--s 00000000 08:05 1452688 /var/cache/fontconfig/99e8ed0e538f840c565b6ed5dad60d56-le32d4.cache-3Aborted