mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 15:15:34 +02: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
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue