Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SublimeText2 segfaults due to SublimeCodeIntel #28

Closed
douglas opened this issue Sep 8, 2011 · 18 comments
Closed

SublimeText2 segfaults due to SublimeCodeIntel #28

douglas opened this issue Sep 8, 2011 · 18 comments
Labels

Comments

@douglas
Copy link
Contributor

douglas commented Sep 8, 2011

Hello German,

CodeIntel seems to be indexing ok, but when trying to autocomplete using ctrl+space it segfaults:

Example code:

import os

os.c<ctrl+space>

Here is my output:

(18:02:13) - douglas at shoryuken in ~
$ sublime-text-2 

This is perl, v5.10.1 (*) built for i686-linux-gnu-thread-multi
(with 53 registered patches, see perl -V for more detail)

Copyright 1987-2009, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

PHP 5.3.5-1ubuntu7.2 with Suhosin-Patch (cli) (built: May  2 2011 23:18:30) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
v0.4.11
*** glibc detected *** /usr/lib/sublime-text-2/sublime_text: corrupted double-linked list: 0xaa0294f0 ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x6b961)[0xb6c62961]
/lib/i386-linux-gnu/libc.so.6(+0x6e8c2)[0xb6c658c2]
/lib/i386-linux-gnu/libc.so.6(__libc_malloc+0x63)[0xb6c66f53]
/usr/lib/libcairo.so.2(+0x1bae4)[0xb7229ae4]
/usr/lib/libcairo.so.2(+0x1c28c)[0xb722a28c]
/usr/lib/libcairo.so.2(+0x2b060)[0xb7239060]
/usr/lib/libcairo.so.2(+0x4d34b)[0xb725b34b]
/usr/lib/libcairo.so.2(+0x2417a)[0xb723217a]
/usr/lib/libcairo.so.2(cairo_show_text+0x198)[0xb72284f8]
/usr/lib/sublime-text-2/sublime_text(_ZN20cairo_render_context9draw_textEP9px_font_t5point5colorPKc+0x22a)[0x84c5ada]
/usr/lib/sublime-text-2/sublime_text(_ZN17mini_texture_font17create_glyph_dataEj+0x204)[0x8293624]
/usr/lib/sublime-text-2/sublime_text(_ZN17mini_texture_font11draw_stringEP17px_render_contextdd5color15const_substring+0x28b)[0x829439b]
/usr/lib/sublime-text-2/sublime_text(_ZN9MultiFont4drawE5pointN5slate10usubstringE7vector3S3_b+0x16f)[0x84afa9f]
/usr/lib/sublime-text-2/sublime_text[0x8490592]
/usr/lib/sublime-text-2/sublime_text(_ZN20BufferedTextRenderer16drawBufferedTextEv+0x1ef)[0x84995ff]
/usr/lib/sublime-text-2/sublime_text(_ZN13TokenRenderer4drawEP6CanvasjRK10interval2dRKSt6vectorI15SelectionRegionSaIS6_EERS5_ISt4pairI11RegionStylePS9_ESaISE_EES6_S6_S6_RK9ViewStyleRKS5_IxSaIxEE+0x59a)[0x849393a]
/usr/lib/sublime-text-2/sublime_text(_ZN14TextBufferView4drawEP6CanvasbRKSt6vectorIxSaIxEE+0x7ef)[0x83db32f]
/usr/lib/sublime-text-2/sublime_text(_ZN23skyline_minimap_control4drawEP17px_render_context4rect+0x21d)[0x83cd60d]
/usr/lib/sublime-text-2/sublime_text(_Z13draw_controlsP17px_render_contextP7control4rect+0x5e)[0x82ac6ee]
/usr/lib/sublime-text-2/sublime_text(_Z13draw_controlsP17px_render_contextP7control4rect+0x302)[0x82ac992]
/usr/lib/sublime-text-2/sublime_text(_Z13draw_controlsP17px_render_contextP7control4rect+0x302)[0x82ac992]
/usr/lib/sublime-text-2/sublime_text(_Z13draw_controlsP17px_render_contextP7control4rect+0x302)[0x82ac992]
/usr/lib/sublime-text-2/sublime_text(_Z13draw_controlsP17px_render_contextP7control4rect+0x302)[0x82ac992]
/usr/lib/sublime-text-2/sublime_text(_Z13draw_controlsP17px_render_contextP7control4rect+0x302)[0x82ac992]
/usr/lib/sublime-text-2/sublime_text(_Z15on_expose_eventP10_GtkWidgetP15_GdkEventExposePv+0x528)[0x84bc408]
/usr/lib/libgtk-x11-2.0.so.0(+0x135a04)[0xb7601a04]
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x192)[0xb70b8372]
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(+0x1f048)[0xb70cb048]
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x557)[0xb70d38d7]
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x32)[0xb70d3cc2]
/usr/lib/libgtk-x11-2.0.so.0(+0x26a836)[0xb7736836]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x522)[0xb7600192]
/usr/lib/libgdk-x11-2.0.so.0(+0x3ba78)[0xb746ea78]
/usr/lib/libgdk-x11-2.0.so.0(+0x6e184)[0xb74a1184]
/usr/lib/libgdk-x11-2.0.so.0(+0x3698c)[0xb746998c]
/usr/lib/libgdk-x11-2.0.so.0(gdk_window_process_all_updates+0x137)[0xb746b937]
/usr/lib/libgdk-x11-2.0.so.0(+0x389bb)[0xb746b9bb]
/usr/lib/libgdk-x11-2.0.so.0(+0x14e48)[0xb7447e48]
/lib/i386-linux-gnu/libglib-2.0.so.0(+0x3c081)[0xb6fff081]
/lib/i386-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x1c8)[0xb7003848]
/lib/i386-linux-gnu/libglib-2.0.so.0(+0x41010)[0xb7004010]
/lib/i386-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0x17b)[0xb70046cb]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xb9)[0xb75fec39]
/usr/lib/sublime-text-2/sublime_text(_Z17px_run_event_loopv+0xe)[0x84bb8ee]
/usr/lib/sublime-text-2/sublime_text(main+0x427)[0x8378377]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0xb6c0de37]
/usr/lib/sublime-text-2/sublime_text[0x822c3b1]
======= Memory map: ========
08048000-08924000 r-xp 00000000 08:03 790136     /usr/lib/sublime-text-2/sublime_text
08924000-08925000 r--p 008db000 08:03 790136     /usr/lib/sublime-text-2/sublime_text
08925000-08985000 rw-p 008dc000 08:03 790136     /usr/lib/sublime-text-2/sublime_text
08985000-08994000 rw-p 00000000 00:00 0 
0a64e000-0b9ab000 rw-p 00000000 00:00 0          [heap]
a8ffe000-a8fff000 ---p 00000000 00:00 0 
a8fff000-a97ff000 rw-p 00000000 00:00 0 
a97ff000-a9800000 ---p 00000000 00:00 0 
a9800000-aa000000 rw-p 00000000 00:00 0 
aa000000-aa100000 rw-p 00000000 00:00 0 
aa7fe000-aa7ff000 ---p 00000000 00:00 0 
aa7ff000-aafff000 rw-p 00000000 00:00 0 
aafff000-ab000000 ---p 00000000 00:00 0 
ab000000-ab800000 rw-p 00000000 00:00 0 
ab800000-ab840000 rw-p 00000000 00:00 0 
ab840000-ab900000 ---p 00000000 00:00 0 
ab900000-ab9a2000 rw-p 00000000 00:00 0 
ab9a2000-aba00000 ---p 00000000 00:00 0 
aba00000-abb00000 rw-p 00000000 00:00 0 
abb00000-abc00000 rw-p 00000000 00:00 0 
abc00000-abe00000 rw-p 00000000 00:00 0 
abe00000-abfff000 rw-p 00000000 00:00 0 
abfff000-ac000000 ---p 00000000 00:00 0 
ac000000-ac100000 rw-p 00000000 00:00 0 
ac16b000-ac500000 rw-p 00000000 00:00 0 
ac500000-ac5f5000 rw-p 00000000 00:00 0 
ac5f5000-ac600000 ---p 00000000 00:00 0 
ac600000-ac700000 rw-p 00000000 00:00 0 
ac700000-ac800000 rw-p 00000000 00:00 0 
ac879000-ac87b000 r-xp 00000000 08:03 2621508    /lib/libnss_mdns4_minimal.so.2
ac87b000-ac87c000 r--p 00001000 08:03 2621508    /lib/libnss_mdns4_minimal.so.2
ac87c000-ac87d000 rw-p 00002000 08:03 2621508    /lib/libnss_mdns4_minimal.so.2
ac893000-ac894000 ---p 00000000 00:00 0 
ac894000-ad094000 rw-p 00000000 00:00 0 
ad094000-ad095000 ---p 00000000 00:00 0 
ad095000-ad895000 rw-p 00000000 00:00 0 
ad895000-ad8f5000 rw-s 00000000 00:04 13926406   /SYSV00000000 (deleted)
ad900000-ada00000 rw-p 00000000 00:00 0 
adaf7000-adaf8000 ---p 00000000 00:00 0 
adaf8000-ae2f8000 rw-p 00000000 00:00 0 
ae2f8000-ae2f9000 ---p 00000000 00:00 0 
ae2f9000-aeaf9000 rw-p 00000000 00:00 0 
aeaf9000-aeafa000 ---p 00000000 00:00 0 
aeafa000-af2fa000 rw-p 00000000 00:00 0 
af300000-af37e000 rw-p 00000000 00:00 0 
af37e000-af400000 ---p 00000000 00:00 0 
af4fc000-af4fd000 ---p 00000000 00:00 0 
af4fd000-afcfd000 rw-p 00000000 00:00 0 
afdfe000-afdff000 ---p 00000000 00:00 0 
afdff000-b05ff000 rw-p 00000000 00:00 0 
b05ff000-b0600000 ---p 00000000 00:00 0 
b0600000-b0e00000 rw-p 00000000 00:00 0 
b0e00000-b0f00000 rw-p 00000000 00:00 0 
b0ffd000-b0ffe000 ---p 00000000 00:00 0 
b0ffe000-b17fe000 rw-p 00000000 00:00 0 
b17fe000-b17ff000 ---p 00000000 00:00 0 
b17ff000-b1fff000 rw-p 00000000 00:00 0 
b1fff000-b2000000 ---p 00000000 00:00 0 
b2000000-b2800000 rw-p 00000000 00:00 0 
b2800000-b28fc000 rw-p 00000000 00:00 0 
b28fc000-b2900000 ---p 00000000 00:00 0 
b295d000-b29b5000 r--p 00000000 08:03 1582833    /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf
b2b00000-b2c00000 rw-p 00000000 00:00 0 
b2cb9000-b2cd4000 r--p 00000000 08:03 1576632    /usr/share/fonts/truetype/ttf-liberation/LiberationMono-Regular.ttf
b2cd4000-b2d63000 r--p 00000000 08:03 1576602    /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
b2d63000-b2dfe000 r--p 00000000 08:03 1576603    /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
b2dfe000-b2dff000 ---p 00000000 00:00 0 
b2dff000-b35ff000 rw-p 00000000 00:00 0 
b35ff000-b3600000 ---p 00000000 00:00 0 
b3600000-b3e00000 rw-p 00000000 00:00 0 
b3e00000-b3ef8000 rw-p 00000000 00:00 0 
b3ef8000-b3f00000 ---p 00000000 00:00 0 
b3f15000-b3f19000 r-xp 00000000 08:04 3294977    /home/douglas/work/config/sublimetext2_configs/SublimeCodeIntel/libs/_local_arch/sgmlop.so
b3f19000-b3f1a000 r--p 00003000 08:04 3294977    /home/douglas/work/config/sublimetext2_configs/SublimeCodeIntel/libs/_local_arch/sgmlop.so
b3f1a000-b3f1b000 rw-p 00004000 08:04 3294977    /home/douglas/work/config/sublimetext2_configs/SublimeCodeIntel/libs/_local_arch/sgmlop.so
b3f1b000-b3ffc000 r-xp 00000000 08:04 3294978    /home/douglas/work/config/sublimetext2_configs/SublimeCodeIntel/libs/_local_arch/_SilverCity.so
b3ffc000-b3ffd000 r--p 000e0000 08:04 3294978    /home/douglas/work/config/sublimetext2_configs/SublimeCodeIntel/libs/_local_arch/_SilverCity.so
b3ffd000-b3fff000 rw-p 000e1000 08:04 3294978    /home/douglas/work/config/sublimetext2_configs/SublimeCodeIntel/libs/_local_arch/_SilverCity.so
b3fff000-b4000000 rw-p 00000000 00:00 0 
b4000000-b40fc000 rw-p 00000000 00:00 0 
b40fc000-b4100000 ---p 00000000 00:00 0 
b4100000-b4200000 rw-p 00000000 00:00 0 
b4201000-b4203000 r-xp 00000000 08:03 807374     /usr/lib/i386-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
b4203000-b4204000 r--p 00001000 08:03 807374     /usr/lib/i386-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
b4204000-b4205000 rw-p 00002000 08:03 807374     /usr/lib/i386-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
b4205000-b4209000 r-xp 00000000 08:03 2622317    /lib/i386-linux-gnu/libnss_dns-2.13.so
b4209000-b420a000 r--p 00004000 08:03 2622317    /lib/i386-linux-gnu/libnss_dns-2.13.so
b420a000-b420b000 rw-p 00005000 08:03 2622317    /lib/i386-linux-gnu/libnss_dns-2.13.so
b420d000-b4213000 r--p 00000000 08:03 1579170    /usr/share/locale-langpack/pt/LC_MESSAGES/gdk-pixbuf.mo
b4213000-b4219000 r--p 00000000 08:03 1579444    /usr/share/locale-langpack/pt_BR/LC_MESSAGES/gdk-pixbuf.mo
b4219000-b4233000 r--s 00000000 08:03 1182556    /usr/share/mime/mime.cache
b4233000-b4248000 r-xp 00000000 08:03 790350     /usr/lib/libdbusmenu-glib.so.3.0.14
b4248000-b4249000 r--p 00014000 08:03 790350     /usr/lib/libdbusmenu-glib.so.3.0.14
b4249000-b424a000 rw-p 00015000 08:03 790350     /usr/lib/libdbusmenu-glib.so.3.0.14
b424a000-b4258000 r-xp 00000000 08:03 790227     /usr/lib/libdbusmenu-gtk.so.3.0.14
b4258000-b4259000 r--p 0000d000 08:03 790227     /usr/lib/libdbusmenu-gtk.so.3.0.14
b4259000-b425a000 rw-p 0000e000 08:03 790227     /usr/lib/libdbusmenu-gtk.so.3.0.14
b425b000-b425c000 r-xp 00000000 08:03 792727     /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
b425c000-b425d000 r--p 00000000 08:03 792727     /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so/usr/bin/sublime-text-2: linha 2: 20989 Abortado                /usr/lib/sublime-text-2/sublime_text $*

I rebuilt the libs, but it does not helped.

Thanks !

@douglas
Copy link
Contributor Author

douglas commented Sep 14, 2011

Seems it is running ok here... tried the same keystrokes to break sublime but it did not happened, so closing it for now.

@douglas douglas closed this as completed Sep 14, 2011
@ghost
Copy link

ghost commented Sep 14, 2011

This is still an issue -- I'm getting the same problem. Not positive how to replicate it. I had just deleted ~/.codeintel, and had it reindex everything. Then, I did "os.ch, ctrl+space" which borks the autocomplete for at least the next session for me.

@douglas
Copy link
Contributor Author

douglas commented Sep 15, 2011

Strange, lets reopen it then. Are you using the latest ST2 version ? Which platform ? Latest SublimeCodeIntel ?

@douglas douglas reopened this Sep 15, 2011
@ghost
Copy link

ghost commented Sep 15, 2011

Yep, latest SublimeCodeIntel and ST 2 v 2111.

@douglas
Copy link
Contributor Author

douglas commented Sep 15, 2011

Could you try with ST2-dev 2117 ? This is the version im using, and im not having these problems anymore (on osx, have to try in Linux)

@ghost
Copy link

ghost commented Sep 15, 2011

Just tried it, and got the same issue. I'm on Fedora Core 11 64-bit. About half the time it just kills the program, and the other half it seems to freeze it.

@nova77
Copy link

nova77 commented Sep 16, 2011

As posted on the forum I am having the same problem, even on 2117. I even tried to re-install SB2 from scratch after removing every settings I could find of (and even the default packages!), but no matter what I do it keeps crashing.

Interestingly this seems to happen mostly when auto-completing "private" functions, e.g.

def _bar():
    pass

def bar():
    pass

def foo():
    # start writing _b then autocomplete crashes
    # start writing b then autocomplete works.

@nova77
Copy link

nova77 commented Sep 20, 2011

I just updated to the last beta (2118) the the problem appears to be gone! I'll get back if I see it reappear.
EDIT: Nevermind, it crashed again :(

@tnajdek
Copy link

tnajdek commented Oct 3, 2011

same here, crashes at various occasions, simple example that will cause seg fault every time:

import logging
log<ctrl+space>

Using v 2126

@iurisilvio
Copy link
Contributor

Same here. First time I get this error is typing this:

import functools
functools.<ctrl+space>

I had a big stacktrace, like this one above.

I'm using v2126 too, with Ubuntu 11.04.

@douglas
Copy link
Contributor Author

douglas commented Oct 4, 2011

For some strange reason, it stops crashing here.

Try to compile the extensions using:

cd src
sh build.sh

Then close and open SublimeText2, also i try to avoid ctrl+space as much as i can.

It seems to solve my problems.

@nova77
Copy link

nova77 commented Oct 4, 2011

I tried to recompile (you need to have pcre, btw), but it did not help.

I try to avoid ctrl+space as much as i can

I am not sure this really adresses the issue. :p

@iurisilvio
Copy link
Contributor

I recompiled, but it didn't solved my problem.

@douglas
Copy link
Contributor Author

douglas commented Oct 4, 2011

I have been talking with Kronuz about this, he is very busy right now. I was talking to him about remove all that belongs to openkomodo codeintel, so we could focus in the indexer.

Lets see how it goes.

@raklet
Copy link

raklet commented Oct 9, 2011

I am having the same issue. See issue #40

@teejae
Copy link

teejae commented Oct 11, 2011

I believe I've found a workaround. See:

https://github.com/Kronuz/SublimeCodeIntel/pull/43

I believe the bug is in the Sublime binary, for the "hide_auto_complete" command, which is really unrelated to this extension.

@iurisilvio
Copy link
Contributor

@teejae, your workaround worked. Thanks!

@douglas
Copy link
Contributor Author

douglas commented Oct 14, 2011

Closing as the problem is fixed in the latest dev snapshot (2132).

Thanks @Kronuz and @teejae.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants