Skip to content

Keep problem dirs locked while (core) backtrace is being generated - #1481

Merged
mgrabovsky merged 3 commits into
abrt:masterfrom
michalfabik:problem-dir-size
May 15, 2020
Merged

mgrabovsky merged 3 commits into
abrt:masterfrom
michalfabik:problem-dir-size

Conversation

@michalfabik

@michalfabik michalfabik commented May 4, 2020 •

Copy link
Copy Markdown
Contributor

See commits.

Resolves #1357

See also abrt/libreport#629

Comment thread src/include/libabrt.h Resolved
Comment thread src/daemon/abrtd.c Resolved
@mgrabovsky

Copy link
Copy Markdown
Contributor

The "Resolves" should probably point to #1357 instead.

Open (and lock) dump dir before calling abrt_get_backtrace and only
close it afer exiting to make sure it stays .lock'd throughout
abrt-action-generate-backtrace and abrt-action-generate-core-backtrace.
Pass struct dump_dir to abrt_get_backtrace.

Signed-off-by: Michal Fabik <[email protected]>
Pass proc->dirname to libreport_get_dirsize_find_largest_dir to have
it check not to delete a directory of a problem that was just caught.

Signed-off-by: Michal Fabik <[email protected]>
@michalfabik

Copy link
Copy Markdown
Contributor Author

The "Resolves" should probably point to #1357 instead.

Ah, yes, those were duplicates and one was closed in the meantime.

@mgrabovsky mgrabovsky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to go.

@mgrabovsky
mgrabovsky merged commit a32df10 into abrt:master May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ABRT deletes core dumps far too aggressively, even while user is trying to report the crash

2 participants