Segfault on session switch

Christoph Cullmann (cullmann.io) christoph at cullmann.io
Tue Jun 28 10:55:53 BST 2022


On 2022-06-28 11:18, Christoph Cullmann (cullmann.io) wrote:
> On 2022-06-28 08:54, Waqar Ahmed wrote:
>> can confirm it's crashing.
>> 
>> Also, not entirely sure about that change. It doesn't crash if the old
>> filter is reinstalled in the destructor
>> 
>> On Tue, Jun 28, 2022 at 11:07 AM Alain Laporte
>> <alain.laporte12345 at gmail.com> wrote:
>>> 
>>> Segfault happens in a code added by this commit => 
>>> https://invent.kde.org/utilities/kate/-/commit/d6d831d5e2394a57207054660b504c5be7a29343
>>> 
>>> No more information for now.
>>> 
>>> Alain.
> 
> Good catch :(
> 
> The problem was that the old env var setting has zero effect.
> 
> But yeah, I guess the plugin load/unload leads to this issue.

Hi,
could you retry with

https://invent.kde.org/utilities/kate/commit/600a996b9abe677bfe34b8f8b14ca593fcf543da

Thanks!

> 
> Greetings
> Christoph
> 
>>> 
>>> 
>>> Le mar. 28 juin 2022 à 07:53, Alain Laporte 
>>> <alain.laporte12345 at gmail.com> a écrit :
>>>> 
>>>> I have found how to load symbols. Crash happens in the 
>>>> LSPClientPlugin =>
>>>> 
>>>> (gdb) bt
>>>> #0  0x00007f68ff441a28 in QLoggingCategory::categoryName 
>>>> (this=<error reading variable: Cannot access memory at address 
>>>> 0x7ffd9d1ffff8>) at 
>>>> /usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h:71
>>>> #1  0x00007f68ff458f91 in myCategoryFilter (category=0x7f6932d37d90 
>>>> <LOG_KWINDOWSYSTEM()::category>) at 
>>>> /home/alaporte/projects/kde/src/kde/applications/kate/addons/lspclient/lspclientplugin.cpp:60
>>>> #2  0x00007f68ff459003 in myCategoryFilter (category=0x7f6932d37d90 
>>>> <LOG_KWINDOWSYSTEM()::category>) at 
>>>> /home/alaporte/projects/kde/src/kde/applications/kate/addons/lspclient/lspclientplugin.cpp:64
>>>> #3  0x00007f68ff459003 in myCategoryFilter (category=0x7f6932d37d90 
>>>> <LOG_KWINDOWSYSTEM()::category>) at 
>>>> /home/alaporte/projects/kde/src/kde/applications/kate/addons/lspclient/lspclientplugin.cpp:64
>>>> #4  0x00007f68ff459003 in myCategoryFilter (category=0x7f6932d37d90 
>>>> <LOG_KWINDOWSYSTEM()::category>) at 
>>>> /home/alaporte/projects/kde/src/kde/applications/kate/addons/lspclient/lspclientplugin.cpp:64
>>>> #5  0x00007f68ff459003 in myCategoryFilter (category=0x7f6932d37d90 
>>>> <LOG_KWINDOWSYSTEM()::category>) at 
>>>> /home/alaporte/projects/kde/src/kde/applications/kate/addons/lspclient/lspclientplugin.cpp:64
>>>> #6  0x00007f68ff459003 in myCategoryFilter (category=0x7f6932d37d90 
>>>> <LOG_KWINDOWSYSTEM()::category>) at 
>>>> /home/alaporte/projects/kde/src/kde/applications/kate/addons/lspclient/lspclientplugin.cpp:64
>>>> #7  0x00007f68ff459003 in myCategoryFilter (category=0x7f6932d37d90 
>>>> <LOG_KWINDOWSYSTEM()::category>) at 
>>>> /home/alaporte/projects/kde/src/kde/applications/kate/addons/lspclient/lspclientplugin.cpp:64
>>>> #8  0x00007f68ff459003 in myCategoryFilter (category=0x7f6932d37d90 
>>>> <LOG_KWINDOWSYSTEM()::category>) at 
>>>> /home/alaporte/projects/kde/src/kde/applications/kate/addons/lspclient/lspclientplugin.cpp:64
>>>> #9  0x00007f68ff459003 in myCategoryFilter (category=0x7f6932d37d90 
>>>> <LOG_KWINDOWSYSTEM()::category>) at 
>>>> /home/alaporte/projects/kde/src/kde/applications/kate/addons/lspclient/lspclientplugin.cpp:64
>>>> #10 0x00007f68ff459003 in myCategoryFilter (category=0x7f6932d37d90 
>>>> <LOG_KWINDOWSYSTEM()::category>) at 
>>>> /home/alaporte/projects/kde/src/kde/applications/kate/addons/lspclient/lspclientplugin.cpp:64
>>>> #11 0x00007f68ff459003 in myCategoryFilter (category=0x7f6932d37d90 
>>>> <LOG_KWINDOWSYSTEM()::category>) at 
>>>> /home/alaporte/projects/kde/src/kde/applications/kate/addons/lspclient/lspclientplugin.cpp:64
>>>> #12 0x00007f68ff459003 in myCategoryFilter (category=0x7f6932d37d90 
>>>> <LOG_KWINDOWSYSTEM()::category>) at 
>>>> /home/alaporte/projects/kde/src/kde/applications/kate/addons/lspclient/lspclientplugin.cpp:64
>>>> #13 0x00007f68ff459003 in myCategoryFilter (category=0x7f6932d37d90 
>>>> <LOG_KWINDOWSYSTEM()::category>) at 
>>>> /home/alaporte/projects/kde/src/kde/applications/kate/addons/lspclient/lspclientplugin.cpp:64
>>>> #14 0x00007f68ff459003 in myCategoryFilter (category=0x7f6932d37d90 
>>>> <LOG_KWINDOWSYSTEM()::category>) at 
>>>> /home/alaporte/projects/kde/src/kde/applications/kate/addons/lspclient/lspclientplugin.cpp:64
>>>> #15 0x00007f68ff459003 in myCategoryFilter (category=0x7f6932d37d90 
>>>> <LOG_KWINDOWSYSTEM()::category>) at 
>>>> /home/alaporte/projects/kde/src/kde/applications/kate/addons/lspclient/lspclientplugin.cpp:64
>>>> #16 0x00007f68ff459003 in myCategoryFilter (category=0x7f6932d37d90 
>>>> <LOG_KWINDOWSYSTEM()::category>) at 
>>>> /home/alaporte/projects/kde/src/kde/applications/kate/addons/lspclient/lspclientplugin.cpp:64
>>>> 
>>>> Alain.
>>>> 
>>>> 
>>>> Le lun. 27 juin 2022 à 23:07, Alain Laporte 
>>>> <alain.laporte12345 at gmail.com> a écrit :
>>>>> 
>>>>> Hi,
>>>>> 
>>>>> On the master (all dependencies are also on the master), Kate 
>>>>> segfault on session switch:
>>>>> * start Kate
>>>>> * open a session
>>>>> * go in Sessions/All Sessions to choose a new session
>>>>> 
>>>>> I have generated a core dump, but GDB can't find symbols...  Where 
>>>>> symbols are located?
>>>>> 
>>>>> Do you reproduce the segfault?
>>>>> 
>>>>> Alain.

-- 
Ignorance is bliss...
https://cullmann.io | https://kate-editor.org


More information about the KWrite-Devel mailing list