(Sorry for not replying directly, but I'm new on this list.)
Hi,
I probably can confirm this bug. I'm having reproduceable crashs when inserting "<" before the german Umlaut "ö" in UTF-8 files in HTML mode.
Example:
Writing this line works:
<a href="">This is a test with a german ö. foo bar.</a>
But now, imagine I'd like to <em>test</em>, Geany crashed when I press the "<"-key.
Below is the gdb output. The problematic file is about.legal.tpl. Note that I'm switching to HTML mode as .tpl isn't recognized as HTML although I configured geany to do so. But that's another issue :) But the crash happens after the <-keypress and *not* right after switching to HTML mode.
Hope this helps.
Fabian
----8<---------------------------------------------------------------- (gdb) run Starting program: /usr/local/bin/geany [Thread debugging using libthread_db enabled] [New Thread -1219139888 (LWP 22951)] ** INFO: debug mode built in (can't be disabled) ** INFO: GTK+ 2.10.11, GLib 2.12.11 ** INFO: /home/fabian/www/hmpf/app/tour.php : PHP (UTF-8) ** INFO: /home/fabian/www/hmpf/app/inc/helpers.php : PHP (UTF-8) ** INFO: Initializing plugin 'Class Builder' (Creates source files for new class types.) ** INFO: Loaded: /usr/local/share/../lib/geany/classbuilder.la (Class Builder) ** INFO: Plugin "/usr/local/share/../lib/geany/classbuilder.so" already loaded. ** INFO: Initializing plugin 'Demo' (Example plugin.) ** INFO: Loaded: /usr/local/share/../lib/geany/demoplugin.la (Demo) ** INFO: Plugin "/usr/local/share/../lib/geany/demoplugin.so" already loaded. ** INFO: /home/fabian/www/hmpf/app/tpl/about.legal.tpl : None (UTF-8) ** INFO: /home/fabian/www/hmpf/app/tpl/about.legal.tpl : None (UTF-8) ** INFO: /home/fabian/www/hmpf/app/tpl/about.legal.tpl : HTML (UTF-8) Assertion [val >= 0] failed at CharacterSet.h 55
Program received signal SIGABRT, Aborted. [Switching to Thread -1219139888 (LWP 22951)] 0xffffe410 in __kernel_vsyscall () (gdb) bt #0 0xffffe410 in __kernel_vsyscall () #1 0xb768fdf0 in raise () from /lib/tls/i686/cmov/libc.so.6 #2 0xb7691641 in abort () from /lib/tls/i686/cmov/libc.so.6 #3 0x08108bcf in Platform::Assert () #4 0x0811d282 in CharacterSet::Contains () #5 0x08127c4e in ColouriseHyperTextDoc () #6 0x0812ac7f in ColouriseHTMLDoc () #7 0x080feb15 in ScintillaBase::Colourise () #8 0x080fecd3 in ScintillaBase::NotifyStyleToNeeded () #9 0x080de06b in Editor::NotifyStyleNeeded () #10 0x080d763d in Document::EnsureStyledTo () #11 0x080e93b7 in Editor::Paint () #12 0x080cd795 in ScintillaGTK::ExposeTextThis (this=0x8678eb0, ose=0xbf9e4774) at ScintillaGTK.cxx:2254 #13 0xb7da16b0 in _gtk_marshal_BOOLEAN__BOXED () from /usr/lib/libgtk-x11-2.0.so.0 #14 0xb794462b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #15 0xb7955103 in ?? () from /usr/lib/libgobject-2.0.so.0 #16 0x08674390 in ?? () #17 0xbf9e43a0 in ?? () #18 0x00000002 in ?? () #19 0xbf9e447c in ?? () #20 0xbf9e438c in ?? () #21 0x00020000 in ?? () #22 0x03a10000 in ?? () #23 0x00020000 in ?? () #24 0x03a10000 in ?? () #25 0xbf9e4384 in ?? () #26 0x00000000 in ?? () (gdb) ---->8----------------------------------------------------------------
On Thu, 12 Jul 2007 00:47:52 +0200, Fabian Neumann fabian@pseudopost.org wrote:
(Sorry for not replying directly, but I'm new on this list.)
Hi,
I probably can confirm this bug. I'm having reproduceable crashs when inserting "<" before the german Umlaut "ö" in UTF-8 files in HTML mode.
Example:
Writing this line works:
<a href="">This is a test with a german ö. foo bar.</a>
But now, imagine I'd like to <em>test</em>, Geany crashed when I press the "<"-key.
Below is the gdb output. The problematic file is about.legal.tpl. Note that I'm switching to HTML mode as .tpl isn't recognized as HTML although I configured geany to do so. But that's another issue :) But the crash happens after the <-keypress and *not* right after switching to HTML mode.
Hope this helps.
It does. Thank you very much, I'll have a look at it soon.
Regards, Enrico
On Thu, 12 Jul 2007 16:16:05 +0200, Enrico Tröger enrico.troeger@uvena.de wrote:
On Thu, 12 Jul 2007 00:47:52 +0200, Fabian Neumann fabian@pseudopost.org wrote:
(Sorry for not replying directly, but I'm new on this list.)
Hi,
I probably can confirm this bug. I'm having reproduceable crashs when inserting "<" before the german Umlaut "ö" in UTF-8 files in HTML mode.
Example:
Writing this line works:
<a href="">This is a test with a german ö. foo bar.</a>
But now, imagine I'd like to <em>test</em>, Geany crashed when I press the "<"-key.
Below is the gdb output. The problematic file is about.legal.tpl. Note that I'm switching to HTML mode as .tpl isn't recognized as HTML although I configured geany to do so. But that's another issue :) But the crash happens after the <-keypress and *not* right after switching to HTML mode.
Hope this helps.
It does. Thank you very much, I'll have a look at it soon.
Fixed in SVN r1761.
Regards, Enrico