[Geany-devel] Crash when using splitwindow plugin

Enrico Tröger enrico.troeger at xxxxx
Fri Feb 27 13:46:00 UTC 2009


On Thu, 26 Feb 2009 14:12:22 +0100, Wolfgang wrote:

>On Thu, 2009-02-26 at 12:40 +0100, Wolfgang Ocker wrote:
>> Sometimes my home built Geany crashes with a segfault when I use the
>> window split function.
>> 
>> Build info:
>> 
>>         Linux Fedora 10, updated,  uname -a:
>>         Linux goedel.recco.de 2.6.27.15-170.2.24.fc10.x86_64 #1 SMP
>> Wed Feb 11 23:14:31 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
>
>It might be a 32/64 bits problem. See splitwindow.c[167]:
>
>        scintilla_send_message(sci, SCI_SETDOCPOINTER, 0,
> GPOINTER_TO_INT(sdoc));
>
>The usage of GPOINTER_TO_INT() looks strange to me. So I'll apply the
>patch below and test ...

Thanks for reporting and for the patch (will be committed it later).

Just for your interest, I used the type "sptr_t" which is defined in
Scintilla and typically used for the fourth argument of
scintilla_send_message(). But it's simply a typedef for the long type,
so it does the same as your patch.


Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20090227/1d1316a9/attachment.pgp>


More information about the Devel mailing list