mirror of
https://github.com/MariaDB/server.git
synced 2025-05-28 13:01:41 +03:00
ut0mem.c:
Flush stderr if we run out of memory, so that the error message more probably finds its way to the error log innobase/ut/ut0mem.c: Flush stderr if we run out of memory, so that the error message more probably finds its way to the error log
This commit is contained in:
parent
76ea57bc76
commit
fa76afe6ed
@ -90,6 +90,12 @@ ut_malloc_low(
|
|||||||
"InnoDB: on Linux we get a stack trace.\n",
|
"InnoDB: on Linux we get a stack trace.\n",
|
||||||
n, ut_total_allocated_memory, errno);
|
n, ut_total_allocated_memory, errno);
|
||||||
|
|
||||||
|
/* Flush stderr to make more probable that the error
|
||||||
|
message gets in the error file before we generate a seg
|
||||||
|
fault */
|
||||||
|
|
||||||
|
fflush(stderr);
|
||||||
|
|
||||||
os_fast_mutex_unlock(&ut_list_mutex);
|
os_fast_mutex_unlock(&ut_list_mutex);
|
||||||
|
|
||||||
/* Make an intentional seg fault so that we get a stack
|
/* Make an intentional seg fault so that we get a stack
|
||||||
|
Loading…
x
Reference in New Issue
Block a user