-
Notifications
You must be signed in to change notification settings - Fork 3
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
Cores names in /tmp #31
Comments
Thanks for the issue! When exactly does this occur? During normal operation or when you execute a subcommand? |
This appears to occur when a corefile is collected and under certain additional conditions that I do not fully understand yet. I think this happens when corecollector can not collect another crashing program at the same time, but I don't understand this entirely. The empty file is owned by the current user and the file is in the same timestamp format as in I'm not sure how to debug corecollector during runtime. |
Ah okay, I'll look into that, thanks for the additional information :)
You could set a logPath in |
I tried this, but there is no output in the log file. The file is owned by root and it is empty. I deleted the file and restarted to double check this behavior. |
Sorry that it took so long for me to reply!
Oh huh, apparently it only writes to that file (with debugging info) if enableDebug is I don't really know how a corefile would end up in
As unsatisfiying as it is, the only ways to debug are:
|
We accidentally logged with debugging (trace) enabled if debugging was disabled and logged with warnings only if debugging was enabled. ref #31
We accidentally logged with debugging (trace) enabled if debugging was disabled and logged with warnings only if debugging was enabled. ref #31
Ah no, the logic about enabling debugging was the wrong way around: If debugging was enabled it logged only warnings, if it was disabled it went into debug mode. |
We accidentally logged with debugging (trace) enabled if debugging was disabled and logged with warnings only if debugging was enabled. ref #31
We accidentally logged with debugging (trace) enabled if debugging was disabled and logged with warnings only if debugging was enabled. ref #31
Sorry for the delay, too :)
The corefile doesn't end up in /tmp, but an emtpy file owned by the current user shows up there, e.g Here's the log |
Hm, weird, I can't reproduce this 🤔 . The only time corecollector accesses a temporary directory is when a core is compressed and it generates a backtrace for a core/goes into debug mode via gdb or dumps the core. And for the former two subcommands it should clean up after itself. To clarify: This happens during normal operation when corecollector collects cores and not after invoking some subcommand?
Hm, that seems to be for dinit and not for sway though. Did a file for dinit show up as well? |
This happens after multiple programs get a crash signal (happens with sway a lot for example). Not everything that crashes gets collected, but this happens without corecollector, too. (example
No, it seems like some core files are not generated. I wonder if this problem is related to corecollector, the kernel's corefile collection, or something weird with sway? BTW this doesn't happen with |
I think this is on corecollector, it'd surprise me if another application used the exact same naming scheme as corecollector does |
I can reproduce this too.
Indeed, for me this happens on |
I don't know if this is an issue per se, but I noticed that the name of core files will show up in /tmp as empty files and stay there indefinitely.
I did not have time to investigate this, unfortunately.
The text was updated successfully, but these errors were encountered: