5555#endif
5656#include < signal.h>
5757#include < my_stacktrace.h>
58+ #include < my_attribute.h>
5859
5960#include < welcome_copyright_notice.h> // ORACLE_WELCOME_COPYRIGHT_NOTICE
6061
@@ -78,7 +79,7 @@ static my_bool non_blocking_api_enabled= 0;
7879#define MAX_DELIMITER_LENGTH 16
7980#define DEFAULT_MAX_CONN 64
8081
81- #define DIE_BUFF_SIZE 15 *1024
82+ #define DIE_BUFF_SIZE 64 *1024
8283
8384#define RESULT_STRING_INIT_MEM 2048
8485#define RESULT_STRING_INCREMENT_MEM 2048
@@ -1619,6 +1620,8 @@ static void make_error_message(char *buf, size_t len, const char *fmt, va_list a
16191620 s+= my_snprintf (s, end -s, " \n " );
16201621}
16211622
1623+ PRAGMA_DISABLE_CHECK_STACK_FRAME
1624+
16221625static void die (const char *fmt, ...)
16231626{
16241627 char buff[DIE_BUFF_SIZE];
@@ -1630,6 +1633,8 @@ static void die(const char *fmt, ...)
16301633 really_die (buff);
16311634}
16321635
1636+ PRAGMA_REENABLE_CHECK_STACK_FRAME
1637+
16331638static void really_die (const char *msg)
16341639{
16351640 static int dying= 0 ;
@@ -1658,6 +1663,8 @@ static void really_die(const char *msg)
16581663 cleanup_and_exit (1 , 1 );
16591664}
16601665
1666+ PRAGMA_DISABLE_CHECK_STACK_FRAME
1667+
16611668void report_or_die (const char *fmt, ...)
16621669{
16631670 va_list args;
@@ -1712,6 +1719,7 @@ void abort_not_supported_test(const char *fmt, ...)
17121719 cleanup_and_exit (62 , 0 );
17131720}
17141721
1722+ PRAGMA_REENABLE_CHECK_STACK_FRAME
17151723
17161724void abort_not_in_this_version ()
17171725{
0 commit comments