1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-25 21:57:45 +03:00
Peter Rajnoha cd14d3fcc0
toollib: fix segfault if using -S|--select with log/report_command_log=1 setting
When we are using -S|--select for non-reporting tools while using command log
reporting (log/report_command_log=1 setting), we need to create an internal
processing handle to handle the selection itself. In this case, the internal
processing handle to execute the selection (to process the -S|--select) has
a parent handle (that is processing the actual non-reporting command).

When this parent handle exists, we can't destroy the command log report
in destroy_processing_handle as there's still the parent processing to
finish. The parent processing may still generate logs which need to be
reported in the command log report. If the command log report was
destroyed prematurely together with destroying the internal processing
handle for -S|--select, then any subsequent log request from processing
the actual command (and hence an attermpt to access the command log report)
ended up with a segfault.

See also: https://bugzilla.redhat.com/show_bug.cgi?id=2175220
2023-03-07 15:29:54 +01:00
..
2023-02-10 17:50:27 +01:00
2016-01-21 12:11:37 +01:00
2022-09-27 09:06:06 -05:00
2016-01-21 12:11:37 +01:00
2023-02-10 17:50:27 +01:00
2023-02-17 00:00:12 +01:00
2022-09-09 16:18:55 -05:00
2020-10-20 22:22:52 +02:00
2020-10-20 22:22:52 +02:00
2020-10-20 22:22:52 +02:00
2020-10-20 22:22:52 +02:00
2016-01-21 12:11:37 +01:00
2022-09-09 16:18:55 -05:00
2018-12-04 14:06:46 -06:00
2022-09-09 16:18:55 -05:00
2018-07-11 11:26:42 -05:00
2021-08-16 11:31:15 -05:00
2016-01-21 12:11:37 +01:00
2021-06-09 14:56:13 +02:00
2019-06-25 15:39:08 -05:00
2016-01-21 12:11:37 +01:00
2018-06-13 14:14:03 -05:00
2016-01-21 12:11:37 +01:00
2022-05-03 19:09:52 +02:00
2022-09-09 16:18:55 -05:00
2023-02-13 13:41:59 +01:00
2023-02-22 16:19:48 -06:00
2021-08-16 11:31:15 -05:00