Mark Wielaard
cf9ebf8313
coregrind: Don't call final_tidyup (__libc_freeres) on FatalSignal
...
When a program gets a fatal signal (one it doesn't handle) valgrind
terminates the program. Before termination it will try to call
final_tidyup which tries to run __libc_freeres and
__gnu_cxx::__freeres to get rid of some memory glibc or libstdc++
don't normally release.
But when the program got the fatal signal in a critical section inside
glibc it might leave the datastructures in a bad state and cause
__libc_freeres to crash. This makes valgrind itself crash just before
producing its own error summary, making the valgrind run unusable.
A reproducer can found at
https://bugzilla.redhat.com/show_bug.cgi?id=1952836 and
https://bugzilla.redhat.com/show_bug.cgi?id=1225994#c7
This reproducer is really a worse case scenario with multiple threads
racing to get into the critical section that when interrupted will
make __libc_freeres unable to cleanup. But it seems a good policy in
general. If a program is terminated by a fatal signal instead of
normal termination, it seems not having some of the glibc/libstdc++
resource cleaned up is an expected thing.
https://bugs.kde.org/show_bug.cgi?id=443605
2021-10-12 22:48:02 +02:00
..
2020-05-14 19:11:26 +02:00
2021-10-09 15:01:08 +02:00
2021-10-09 15:13:50 +02:00
2021-10-09 15:01:08 +02:00
2021-09-26 14:47:17 +02:00
2021-10-09 14:11:48 +02:00
2021-10-10 21:56:49 +02:00
2021-10-09 14:11:48 +02:00
2019-05-26 20:07:51 +02:00
2021-10-09 15:01:08 +02:00
2021-10-09 15:01:08 +02:00
2021-10-09 15:01:08 +02:00
2021-10-09 15:01:08 +02:00
2021-10-09 15:01:08 +02:00
2017-10-01 19:45:10 -04:00
2019-05-26 20:07:51 +02:00
2021-10-09 14:11:48 +02:00
2021-02-04 16:44:24 +01:00
2017-05-16 08:22:51 +00:00
2021-10-09 14:11:48 +02:00
2017-05-05 22:13:20 +00:00
2017-05-05 22:13:20 +00:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-09-03 12:10:23 +00:00
2019-05-26 20:07:51 +02:00
2020-01-23 10:53:36 +01:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2021-10-09 15:01:08 +02:00
2019-05-26 20:07:51 +02:00
2019-08-31 14:41:10 +02:00
2019-05-26 20:07:51 +02:00
2020-01-23 10:53:36 +01:00
2021-10-09 15:01:08 +02:00
2019-05-26 20:07:51 +02:00
2021-10-09 15:01:08 +02:00
2021-10-09 15:01:08 +02:00
2021-10-09 15:01:08 +02:00
2021-10-09 15:01:08 +02:00
2021-10-09 15:01:08 +02:00
2020-11-05 15:58:23 +01:00
2021-10-09 15:01:08 +02:00
2021-10-12 22:48:02 +02:00
2021-10-09 15:13:50 +02:00
2021-02-10 19:37:08 +01:00
2019-05-26 20:07:51 +02:00
2021-02-26 01:38:42 +01:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2021-10-09 15:01:08 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2021-10-09 15:01:08 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2021-10-09 15:01:08 +02:00
2021-10-09 15:01:08 +02:00
2019-05-26 20:07:51 +02:00
2021-03-02 13:32:22 +01:00
2021-10-09 15:01:08 +02:00
2021-10-09 15:01:08 +02:00
2019-09-03 12:10:23 +00:00
2021-10-09 15:01:08 +02:00
2021-10-09 15:01:08 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2020-01-23 10:53:36 +01:00
2021-10-09 15:13:50 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2021-10-09 15:01:08 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2021-10-09 15:01:08 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-08-31 14:41:10 +02:00
2019-05-26 20:07:51 +02:00
2021-10-09 15:01:08 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2021-10-09 15:01:08 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-08-31 14:41:10 +02:00
2021-10-09 15:01:08 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2021-10-09 15:01:08 +02:00
2021-10-09 15:01:08 +02:00
2021-02-10 19:37:08 +01:00
2019-05-26 20:07:51 +02:00
2021-02-26 01:38:42 +01:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2021-03-02 13:32:22 +01:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2021-10-09 15:01:08 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2021-10-09 15:01:08 +02:00
2021-10-09 15:01:08 +02:00
2019-05-26 20:07:51 +02:00
2021-03-02 13:32:22 +01:00
2021-10-09 15:01:08 +02:00
2019-05-26 20:07:51 +02:00
2019-11-14 12:33:36 +00:00
2019-09-03 12:10:23 +00:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2019-05-26 20:07:51 +02:00
2021-10-09 15:01:08 +02:00
2020-02-08 13:01:24 +01:00
2021-03-09 18:51:57 +01:00
2019-05-26 20:07:51 +02:00
2021-10-09 15:01:08 +02:00
2020-02-08 13:01:24 +01:00