Hey,
@Frank and Yura, did you notice this issue?
Regards,
Enrico
Begin forwarded message:
Date: Tue, 24 Jun 2008 10:30:41 +0000
From: "SourceForge.net" <noreply(a)sourceforge.net>
To: noreply(a)sourceforge.net
Subject: [ geany-Bugs-2000175 ] Geany segfaults when using geanyvc
Bugs item #2000175, was opened at 2008-06-22 21:03
Message generated for change (Comment added) made by mibmib
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=787791&aid=2000175&group_…
Please note that this message will contain a full copy of the comment
thread, including the initial issue submission, for this request,
not just the latest update.
Category: Plugins
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Heine Andersen (mibmib)
Assigned to: Nobody/Anonymous (nobody)
Summary: Geany segfaults when using geanyvc
Initial Comment:
When I try to do a commit in geanyvc, geany segfaults,
here Is the stacktrace :
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html> This is free software: you are free
to change and redistribute it. There is NO WARRANTY, to the extent
permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) run
Starting program: /usr/bin/geany
** INFO: debug mode built in (can't be disabled)
** INFO: creating config directory /home/user/.geany
** INFO: Geany 0.15, GTK+ 2.12.10, GLib 2.16.3
** INFO: No config file found, try to use global configuration.
** INFO: Initializing plugin 'Auto Save'
** INFO: Initializing plugin 'Class Builder'
** INFO: Initializing plugin 'Export'
** INFO: Initializing plugin 'File Browser'
** INFO: Initializing plugin 'VC'
** INFO: Initializing plugin 'HTML Characters'
** INFO: Initializing plugin 'Version Diff'
** INFO: Unloaded: /usr/lib/geany/geanyvc.so
** INFO: Initializing plugin 'VC'
** INFO: Loaded: /usr/lib/geany/geanyvc.so (VC)
** INFO: Unloaded: /usr/lib/geany/autosave.so
** INFO: Unloaded: /usr/lib/geany/classbuilder.so
** INFO: Unloaded: /usr/lib/geany/export.so
** INFO: Unloaded: /usr/lib/geany/filebrowser.so
** INFO: Unloaded: /usr/lib/geany/htmlchars.so
** INFO: Unloaded: /usr/lib/geany/vcdiff.so
** INFO: /home/user/config/rc.local : Sh (UTF-8)
** INFO: /home/user/config/rc.local : Sh (UTF-8)
Program received signal SIGSEGV, Segmentation fault.
0xb79a9d7d in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
(gdb) bt
#0 0xb79a9d7d in g_main_context_prepare ()
#from /usr/lib/libglib-2.0.so.0 1 0xb79aa1da in g_main_context_iterate
#() from /usr/lib/libglib-2.0.so.0 2 0xb79aa9ba in g_main_loop_run ()
#from /usr/lib/libglib-2.0.so.0 3 0xb7d12ed9 in gtk_main ()
#from /usr/lib/libgtk-x11-2.0.so.0 4 0x080b8d4f in main (argc=1,
#argv=0xbfb6de64) at main.c:935
(gdb)
It doesn't matter if i use geany 0.14 or svn r2721,
or geanyvc 0.3 or latest git.
I'm running on archlinux, with a clean config (no customization )
----------------------------------------------------------------------
>Comment By: Heine Andersen (mibmib)
Date: 2008-06-24 12:30
Message:
Logged In: YES
user_id=2125552
Originator: YES
bzr and git.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-06-24 12:23
Message:
Logged In: NO
What you tried to commit? SVN, git, cvs?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=787791&aid=2000175&group_…
Hi,
I just added a new signal for plugins: "populate-edit-menu".
The intended use is to modify or extend the editing menu (right-click
popup menu) before it is shown. The current word under the cursor, the
cursor position and a reference to the current document is passed to the
signal handler. So plugins have many information to perform some
actions. Usage example: I added this signal for the spellcheck plugin
where a "Spellcheck" menu item is added to the edit menu when the
cursor is above a misspelled word to provide a sub menu with
suggestions.
The more important thing is while adding the new code, I noticed the
function editor_find_current_word() wasn't Unicde-safe, this means when
the cursor is above a word containing Unicode characters (i.e. any
non-Ascii characters) the resulting string is wrong.
For Goto tag definition/declaration this isn't a big problem as these
are mainly plain Ascii. But it is also used e.g. for the Find dialogs
when the current word below the cursor is used as search word. This
badly fails with the old code.
So, I tried to fix it by explicitly allowing non-Ascii characters
which seems to work (SVN r2732).
I'm still not very happy with the current code. It allows also any
punctuation characters defined in Unicode. This is probably only a
small issue at least I don't think such are used widely.
A possible clean solution could be to read g_unichar's when searching
the word boundaries and check each g_unichar against the passed
wordchars and with e.g. g_unichar_isalnum().
But this still needs to be implemented. If anyone feels to do it,
patches are welcome :).
Regards,
Enrico
--
Get my GPG key from http://www.uvena.de/pub.asc