Binbin
62ac1ab007
Fix crash when overcommit_memory is inaccessible ( #10848 )
...
When `/proc/sys/vm/overcommit_memory` is inaccessible, fp is NULL.
`checkOvercommit` will return -1 without setting err_msg, and then
the err_msg is used to print the log, crash the server.
Set the err_msg variables to Null when declaring it, seems safer.
And the overcommit_memory error log will print two "WARNING",
like `WARNING WARNING overcommit_memory is set to 0!`, this PR
also removes the second WARNING in `checkOvercommit`.
Reported in #10846 . Fixes #10846 . Introduced in #10636 (7.0.1)
2022-06-11 22:27:44 +03:00
..
2022-06-07 13:26:47 +03:00
2022-04-05 17:08:27 +03:00
2022-06-03 09:30:28 -07:00
2021-05-03 13:39:07 +03:00
2020-04-08 12:55:57 +02:00
2021-04-26 15:52:06 +03:00
2022-01-30 19:43:37 +02:00
2021-09-02 11:07:51 +03:00
2022-06-07 14:47:09 +03:00
2022-01-18 13:10:07 +02:00
2022-01-18 13:10:07 +02:00
2022-05-02 09:37:14 +03:00
2022-04-20 09:29:37 +03:00
2022-06-01 14:09:40 +03:00
2021-03-10 19:11:16 +02:00
2020-12-13 17:09:54 +02:00
2021-10-10 08:17:54 +03:00
2021-04-29 08:25:10 +03:00
2022-04-25 17:59:39 +03:00
2022-03-25 10:45:40 +08:00
2022-06-01 13:04:22 +03:00
2022-03-22 14:13:28 +02:00
2021-10-06 16:08:13 +03:00
2022-04-12 18:55:11 +03:00
2022-03-05 21:25:52 +02:00
2022-06-06 08:17:18 +03:00
2022-04-17 15:43:22 +03:00
2022-06-07 13:26:47 +03:00
2022-06-02 14:03:47 +03:00
2022-04-20 09:29:37 +03:00
2022-02-22 14:00:37 +02:00
2022-02-22 14:00:37 +02:00
2021-06-10 15:39:33 +03:00
2019-03-01 17:53:14 +01:00
2021-11-16 08:55:10 +02:00
2021-11-16 08:55:10 +02:00
2021-06-10 15:39:33 +03:00
2020-04-24 17:11:21 -07:00
2022-06-01 13:04:22 +03:00
2022-06-06 11:39:23 +03:00
2022-02-06 20:13:34 -08:00
2022-03-09 13:58:23 +02:00
2021-12-19 17:52:23 +02:00
2021-12-13 21:16:25 +02:00
2021-11-16 08:55:10 +02:00
2021-11-16 08:55:10 +02:00
2022-06-01 14:09:40 +03:00
2022-06-01 13:04:22 +03:00
2022-04-28 08:13:04 +03:00
2021-02-23 12:57:45 +02:00
2022-04-27 00:37:40 +03:00
2022-06-01 14:09:40 +03:00
2022-04-05 10:27:24 +03:00
2021-12-19 17:52:23 +02:00
2022-02-21 08:06:58 +02:00
2021-04-29 08:25:10 +03:00
2022-04-04 15:35:49 +03:00
2022-02-08 16:49:47 +02:00
2022-06-07 10:15:39 +03:00
2022-05-27 12:58:00 +03:00
2021-11-16 08:55:10 +02:00
2021-11-16 08:55:10 +02:00
2022-05-22 17:10:31 +03:00
2022-05-22 17:10:31 +03:00
2022-01-06 13:39:38 +02:00
2021-02-16 16:17:38 +02:00
2022-04-17 17:16:46 +03:00
2022-04-17 17:16:46 +03:00
2022-03-09 13:58:23 +02:00
2021-06-10 15:39:33 +03:00
2021-06-10 15:39:33 +03:00
2021-06-10 15:39:33 +03:00
2020-05-05 23:35:08 -04:00
2021-11-16 13:12:25 +02:00
2021-11-16 13:12:25 +02:00
2021-11-16 13:12:25 +02:00
2021-11-16 13:12:25 +02:00
2022-05-22 17:10:31 +03:00
2021-11-11 13:51:33 +02:00
2019-11-19 17:23:47 +08:00
2022-06-03 15:36:35 -07:00
2022-04-20 14:00:30 +03:00
2022-04-20 14:00:30 +03:00
2020-12-23 15:52:07 +02:00
2020-12-23 15:52:07 +02:00
2022-06-01 14:09:40 +03:00
2022-06-01 13:04:22 +03:00
2022-04-17 15:43:22 +03:00
2022-05-22 12:27:54 +03:00
2022-04-04 18:38:18 +03:00
2022-05-31 08:55:25 +03:00
2022-05-29 08:51:33 +03:00
2022-04-28 08:36:40 +03:00
2022-03-09 13:58:23 +02:00
2020-09-10 13:43:38 +03:00
2022-06-07 17:38:31 +03:00
2022-04-05 10:27:24 +03:00
2022-03-08 13:10:24 +02:00
2022-02-22 10:09:34 +02:00
2022-04-05 10:27:24 +03:00
2022-05-22 10:55:26 +03:00
2018-07-13 10:51:58 +02:00
2021-11-11 13:51:33 +02:00
2020-12-06 14:54:34 +02:00
2022-05-31 10:29:17 +03:00
2019-10-02 11:30:20 +02:00
2022-05-31 08:07:33 +03:00
2021-08-04 16:28:07 +03:00
2022-04-10 09:29:50 +03:00
2022-05-31 08:07:33 +03:00
2022-05-31 08:07:33 +03:00
2022-05-03 10:24:05 +03:00
2022-04-27 00:37:40 +03:00
2022-06-01 14:09:40 +03:00
2022-06-01 14:09:40 +03:00
2022-01-18 12:52:27 +02:00
2022-01-18 12:52:27 +02:00
2020-12-06 14:54:34 +02:00
2022-05-13 17:55:49 +03:00
2022-06-11 22:27:44 +03:00
2022-06-06 08:29:24 +03:00
2020-10-25 14:14:05 +02:00
2021-02-23 12:57:45 +02:00
2021-11-16 08:55:10 +02:00
2021-11-16 08:55:10 +02:00
2021-11-11 13:51:33 +02:00
2021-07-10 10:04:54 -05:00
2021-11-11 13:51:33 +02:00
2021-06-14 16:46:45 +03:00
2021-12-15 21:23:15 +02:00
2022-03-15 17:14:53 +02:00
2020-09-10 13:43:38 +03:00
2022-02-23 22:34:58 +02:00
2022-06-11 22:27:44 +03:00
2022-05-22 17:10:31 +03:00
2022-04-24 10:21:04 +03:00
2022-05-13 17:55:49 +03:00
2022-05-13 17:55:49 +03:00
2022-06-09 10:16:56 +03:00
2022-04-24 10:19:46 +03:00
2022-05-27 22:34:00 +03:00
2021-11-16 08:55:10 +02:00
2022-04-20 11:11:21 +03:00
2022-02-22 14:00:37 +02:00
2022-05-31 08:03:59 +03:00
2022-05-10 14:55:09 +03:00
2022-04-17 17:16:46 +03:00
2020-12-06 14:54:34 +02:00
2020-10-11 17:21:58 +03:00
2022-05-02 12:46:48 +03:00
2021-11-16 08:55:10 +02:00
2021-11-16 08:55:10 +02:00
2021-11-16 08:55:10 +02:00
2022-05-22 17:10:31 +03:00
2022-05-22 17:10:31 +03:00