-
Notifications
You must be signed in to change notification settings - Fork 273
Geany segfaulting, maybe related to logging #1430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In case it helps, this is the full GDB logs. |
BTW, XUbuntu 22.04 installs Geany 1.38. I have the following plugins loaded at startup, and I haven't loaded any others:- File Browser |
Could you by any chance try building latest Geany and plugins? Otherwise, having debugging symbols for workbench and GLib would help. From the backtrace it looks like it's originating from the workbench plugin. |
From the log, I'd blame it on the file monitoring code, and passing an invalid string to the logger. |
@b4n b4n Yeah, I guessed something like that, but I'm afraid investigating is a bit of a side-quest from the FPGA which my work really want me to get running. :/ Thanks for transferring the issue to a better place. If someone from the workbench team really needs more info, let me know, and I'll line up a lunchbreak or something to look at it. |
Oh yes, more context on what might be relevant. The workbench top-level directory inevitably includes the working directory for my build, because it'd be hard to do anything else if I need to edit project files. So when things are compiling, intermediate files in the workbench path may be appearing, disappearing or changing. This could well be thrashing the log, which would give interesting issue if it's not fully thread-safe. Files could also appear and disappear again quickly. If anything schedules a "capture details of a new file" event, and assumes that the file will still be there when it gets round to handling the event, it could well be disappointed. Ditto if it thinks a file has been deleted and then finds that it's reappeared. No idea whether those are the cause, but I've fallen into both traps myself :) and it might tie in with what I'm doing in my build environment, even when I'm not actively using Geany at the time. |
All this could be relevant, I'd require investigating deeper. I haven't seen recent changes in the plugin so updating might not fix anything, but better debugging symbols could be useful. Also if you can afford it, you could try running under valgrind. |
When a monitored file or directory is removed, we call the handler for that event directly. However, this might lead to removing our own monitoring entry, which means we must not reference it any further after having called the handler. Fixes geany#1430.
I believe it was a simpler memory management bug in the plugin, see #1431. If you could give this a spin, that'd be grand! |
Brilliant, thank you! I'll try to get round to setting up a build for it next week if I can. |
Uh oh!
There was an error while loading. Please reload this page.
My apologies for the generic title - as a long-time software engineer, I wish I could be more specific about the chain of events! All I can say reliably is that Geany crashes regularly, sometimes when I'm using it, sometimes when it's just sat in the background whilst other things are happening.
My environment:
Using GDB to trace the segfault:-
The text was updated successfully, but these errors were encountered: