#39 segmentation fault ; scite 1.42

Bug
closed-fixed
Neil Hodgson
SciTE (623)
7
2002-01-19
2002-01-08
Anonymous
No

hi !

my config :
linux redhat7.0 (i686)
gtk-config --version -> 1.2.8

using the last scite (1.42) downloaded in binary
format, i get :

>SciTE
Erreur de segmentation (=segmentation fault in french)

i tried to compile scite from the sources, the
compilation is OK, the install is OK, but i get always
the segmentation fault

The version 1.41 works fine.

Thanks for your help !

Discussion

  • Neil Hodgson
    Neil Hodgson
    2002-01-09

    • labels: --> SciTE
    • assigned_to: nobody --> nyamatongwe
    • milestone: --> Bug
    • priority: 5 --> 7
     
  • Neil Hodgson
    Neil Hodgson
    2002-01-15

    Logged In: YES
    user_id=12579

    I cannot reproduce this on RedHat 7.1 GTK+ 1.2.9. You may be
    able to help by running SciTE under a debugger and reporting
    the stack trace:
    gdb SciTE
    (gdb) run
    (gdb) bt

     
  • Neil Hodgson
    Neil Hodgson
    2002-01-15

    • status: open --> open-works-for-me
     
  • Logged In: NO

    the backtrace :

    Program received signal SIGSEGV, Segmentation fault.
    0x40120f63 in gtk_widget_set_sensitive () from
    /usr/lib/libgtk-1.2.so.0
    (gdb) bt
    #0 0x40120f63 in gtk_widget_set_sensitive () from
    /usr/lib/libgtk-1.2.so.0
    #1 0x806004c in SciTEGTK::CheckMenus ()
    #2 0x805f7d5 in SciTEGTK::Command ()
    #3 0x8066c5f in SciTEGTK::CommandSignal ()
    #4 0x400b6aae in gtk_marshal_NONE__INT_POINTER ()
    from /usr/lib/libgtk-1.2.so.0
    #5 0x400e8c0a in gtk_handlers_run () from
    /usr/lib/libgtk-1.2.so.0
    #6 0x400e7f4d in gtk_signal_real_emit () from
    /usr/lib/libgtk-1.2.so.0
    #7 0x400e5cf5 in gtk_signal_emit () from
    /usr/lib/libgtk-1.2.so.0
    #8 0x80a6855 in ScintillaGTK::NotifyFocus ()
    #9 0x80bc43e in Editor::SetFocusState ()
    #10 0x80a52f9 in ScintillaGTK::FocusIn ()
    #11 0x400b657e in gtk_marshal_BOOL__POINTER () from
    /usr/lib/libgtk-1.2.so.0
    #12 0x400e7f8c in gtk_signal_real_emit () from
    /usr/lib/libgtk-1.2.so.0
    #13 0x400e5cf5 in gtk_signal_emit () from
    /usr/lib/libgtk-1.2.so.0
    #14 0x4011fc39 in gtk_widget_event () from
    /usr/lib/libgtk-1.2.so.0
    #15 0x40128cf7 in gtk_window_real_set_focus () from
    /usr/lib/libgtk-1.2.so.0
    #16 0x400b675a in gtk_marshal_NONE__POINTER () from
    /usr/lib/libgtk-1.2.so.0
    #17 0x400e7f8c in gtk_signal_real_emit () from
    /usr/lib/libgtk-1.2.so.0
    #18 0x400e5cf5 in gtk_signal_emit () from
    /usr/lib/libgtk-1.2.so.0
    #19 0x40125d9a in gtk_window_set_focus () from
    /usr/lib/libgtk-1.2.so.0
    #20 0x4012084d in gtk_widget_real_grab_focus () from
    /usr/lib/libgtk-1.2.so.0
    #21 0x400b68b3 in gtk_marshal_NONE__NONE () from
    /usr/lib/libgtk-1.2.so.0

     
  • Neil Hodgson
    Neil Hodgson
    2002-01-15

    Logged In: YES
    user_id=12579

    Can you try building the version located in CVS or at
    http://www.scintilla.org/scite.zip
    There may be a problem with tool bar buttons. If that
    doesn't help, try commenting out lines 682 to 684:
    // gtk_widget_set_sensitive(build_btn, !executing);
    // gtk_widget_set_sensitive(compile_btn, !executing);
    // gtk_widget_set_sensitive(stop_btn, executing);

    Neil

     
  • Logged In: NO

    BTW, a bug during the compilation of scintilla (downloaded
    from http://www.scintilla.org/scite.zip\):
    g++ `gtk-config --cflags` -DNDEBUG -W -Wall -DGTK
    -DSCI_LEXER -I ../include -I ../src -c ScintillaGTK.cxx
    ScintillaGTK.cxx: In method `void ScintillaGTK::SetTicking
    (bool)':
    ScintillaGTK.cxx:577: cannot convert `guint' to `void *' in
    assignment
    ScintillaGTK.cxx:579: cannot convert `void *' to `unsigned
    int' for
    argument `1' to `gtk_timeout_remove (unsigned int)'
    make: *** [ScintillaGTK.o] Erreur 1

     
  • Neil Hodgson
    Neil Hodgson
    2002-01-15

    Logged In: YES
    user_id=12579

    I don't see the same compile problems but I have tried to
    fix it anyway. Try downloading and compiling again.

     
  • Logged In: NO

    That works !
    without commenting the 3 lines, i get the following warnings
    after launching SciTE :
    Gtk-CRITICAL **: file gtkwidget.c: line 3306
    (gtk_widget_set_sensitive): assertion `widget != NULL' failed.

    Gtk-CRITICAL **: file gtkwidget.c: line 3306
    (gtk_widget_set_sensitive): assertion `widget != NULL' failed.

    Gtk-CRITICAL **: file gtkwidget.c: line 3306
    (gtk_widget_set_sensitive): assertion `widget != NULL' failed.

    without the three lines, no warning.

    Thx

     
  • Neil Hodgson
    Neil Hodgson
    2002-01-19

    Logged In: YES
    user_id=12579

    Fixed in 1.43.

     
  • Neil Hodgson
    Neil Hodgson
    2002-01-19

    • status: open-works-for-me --> closed-fixed