-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
MsdHousekeepingManager plugin: "free(): invalid pointer" crash #410
Comments
Sorry I got confused with other core dumps: This crash happened 2 days ago, but it was at the end of the day (on shutdown), and not every day. On this PC, Ubuntu's apport only stores the last crash per process, so I cannot say yet how often this happens. |
This could help (not that I ever seen this, but maybe I just don't have an auto-crash reported to tell me as it's in finalizing): diff --git a/plugins/housekeeping/msd-disk-space.c b/plugins/housekeeping/msd-disk-space.c
index 91738e0..e87cbb8 100644
--- a/plugins/housekeeping/msd-disk-space.c
+++ b/plugins/housekeeping/msd-disk-space.c
@@ -695,6 +695,7 @@ msd_ldsm_clean (void)
if (ignore_paths) {
g_slist_free_full (ignore_paths, g_free);
+ ignore_paths = NULL;
}
}
|
Thanks for all the extra information.
|
I didn't install any fix. You probably mean I should have patched it with the "ignore_paths = NULL;" suggestion about, right? If so, I am guessing that setting up a development environment, building it from source, replacing the mate-settings-daemon in my Ubuntu MATE distribution, and debugging something that happens on shutdown will probably take more than 5 minutes. Or is that really easy do to? Is this problem hard for you guys to reproduce? |
I did answer to that question of yours above. This is a bit of a contradiction. First you say "no" (I understand then that "it is not hard to reproduce"), but then you cannot reproduce it now. I have 2 other similar systems which do not crash mate-settings-daemon in that way. As far as I remember, I never configured anything special about the plug-in you mentioned, which is active on both of them:
I can't check on the PC where mate-settings-daemon is crashing until at least tuesday, but I suspect it will be the same. All my systems have sufficient disk space and I do not expect any disk full warnings. By the way, is there a GUI way to configure such warnings? I had a quick look in the "Control Center" but couldn't find anything related. The one difference with the crashing PC is that it is regularly connected to SMB network disk shares, and some of them are pretty full. Maybe the housekeeping plug-in behaves differently in such a scenario. I mean, even if it decides not to warn about a network share, maybe it is subscribed to them in some way when the system shuts down and the network connection is lost. If there is an easy way, I could try enabling some tracing in order to help pin-point where the problem lies. |
On Ubuntu MATE 22.04.3, with the standard package version 1.26.0-1ubuntu1, mate-settings-daemon seems to crash every day on start-up. The call stack is:
The text was updated successfully, but these errors were encountered: