Open phellarv opened 10 months ago
Replied in wee-most-discuss mailing list
I don't use wee-most, but I'm guessing the issue is that it doesn't unset the buffer pointer when a buffer is closed. Most functions in WeeChat that take a buffer pointer don't verify that it's valid (for performance reasons for instance). So it's the plugin/scripts responsibility to not call a function with an invalid pointer. When a buffer is closed, the pointer to it is not valid anymore.
So try adding a buffer closed callback to the buffer creation in ChannelBase
, and in that callback do self.buffer = None
.
Script / WeeChat
This bug has been reported to the script author? No Response or reason: Registration is currently closed on Sourcehut.
Bug summary
Whenever I try to close the DM buffers, the first couple of them closes with no error. But at a random interval, but always before I can close them all, weechat sigsegv.
Steps to reproduce
1. Connect to a mattermost server 2. Close more than 1 DM buffer
Current behavior
Weechat sigsegv
Expected behavior
Buffer closed
Suggested solutions
N/A
Additional information
I've attached the crash dump. weechat_crash_20240116_37532.log
Error message right after the sigsegv: