[Geany-Devel] Strange segfault while replacing autoclose.so plugin library
Lex Trotman
elextr at xxxxx
Fri May 2 12:46:22 UTC 2014
On 2 May 2014 12:49, Lex Trotman <elextr at gmail.com> wrote:
> On 2 May 2014 05:26, Pavel Roschin <roshin at scriptumplus.ru> wrote:
>> I often rebuild my plugin to test it and replace old version of library with
>> just compiled library object. But Geany crashes after that in first touch.
>>
>> Steps to reproduce:
>>
>> 1. Copy autoclose.so into ~/.config/geany/plugins
>> 2. Open Geany
>> 3. Copy autoclose.so into ~/.config/geany/plugins again
>> 4. Focus on Geany
>> 5. You're gonna the crash!
>
> Hi Pavel,
>
> I think it must be to do with whatever autoclose does internally. For
> me it doesn't happen on Linux with other plugins (unless I add a bug
> to the plugin between the copies :).
I missed your answer post, makes sense, I "copy" the .so using
filemanager which does the equivalent of rm then copy, it doesn't just
overwrite the old file contents.
Cheers
Lex
>
> Cheers
> Lex
>
>
>>
>> Note you *shouldn't* even re-compile plugin or something.
>>
>> This is a backtrace:
>> https://gist.github.com/scriptum/657dd4057c8de2d86fb1
>>
>> As you see, a crash comes from my plugin. I don't check variables against NULL
>> and I'm doint it intentionally assuming that Geany never sends NULL in events.
>> But actually it crashes at static variable access:
>> if (!ac_info->jump_on_tab)
>> return;
>>
>> Here strace report, not very interesting:
>> https://gist.github.com/scriptum/e24388dd676e5717bb42
>>
>> --
>> Best regards,
>> Pavel Roschin aka RPG
>> _______________________________________________
>> Devel mailing list
>> Devel at lists.geany.org
>> https://lists.geany.org/cgi-bin/mailman/listinfo/devel
More information about the Devel
mailing list