iis服务器助手广告
返回顶部
首页 > 资讯 > 数据库 >怎么解决MySQL中InnoDB: Failing assertion: format != 0错误
  • 752
分享到

怎么解决MySQL中InnoDB: Failing assertion: format != 0错误

2024-04-02 19:04:59 752人浏览 八月长安
摘要

本篇内容介绍了“怎么解决Mysql中InnoDB: Failing assertion: fORMat != 0错误”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习

本篇内容介绍了“怎么解决Mysql中InnoDB: Failing assertion: fORMat != 0错误”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

1、mysql版本5.7.19,OS是Mac OSX在删除表空间时,出现如下错误

[root@localhost][(none)]> drop tablespace ts1;
ERROR 2013 (HY000): Lost connection to Mysql server during query

2、查看error.log日志,看样子有点像是BUG

2018-04-09 16:00:21 0x700007f04000 InnoDB: Assertion failure in thread 123145435496448 in file ha_innodb.cc line 20927 InnoDB: Failing assertion: format != 0 InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to Http://bugs.mysql.com. InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html InnoDB: about forcing recovery. 08:00:21 UTC - mysqld Got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.

key_buffer_size=8388608 read_buffer_size=16777216 max_used_connections=1 max_threads=512 thread_count=2 connection_count=1 It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 25180932 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7f86b59eda00
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 700007f03e90 thread_stack 0x40000
0   mysqld                              0x000000010385b12a my_print_stacktrace + 58
1   mysqld                              0x00000001037b7e30 handle_fatal_signal + 688
2   libsystem_platform.dylib            0x00007fff7ab81f5a _sigtramp + 26
3   mysqld                              0x0000000104175c4b _ZZN10binary_log4Uuid9to_stringEPKhPcE11byte_to_hex + 78811
4   libsystem_c.dylib                   0x00007fff7a9ac312 abort + 127
5   mysqld                              0x0000000103ab1471 _Z23ut_dbg_assertion_failedPKcS0_m + 161
6   mysqld                              0x0000000103970147 _Z11ib_senderrfP3THD14ib_log_level_tjz + 359
7   mysqld                              0x0000000103982b27 _Z7ib_errfP3THD14ib_log_level_tjPKcz + 199
8   mysqld                              0x0000000103984f9c _ZL25innobase_alter_tablespaceP10handlertonP3THDP19st_alter_tablespace + 1260
9   mysqld                              0x00000001037353e4 _Z22mysql_alter_tablespaceP3THDP19st_alter_tablespace + 228
10  mysqld                              0x00000001036c6920 _Z21mysql_execute_commandP3THDb + 12816
11  mysqld                              0x00000001036c2d28 _Z11mysql_parseP3THDP12Parser_state + 872
12  mysqld                              0x00000001036c1b98 _Z16dispatch_commandP3THDPK8COM_DATA19enum_server_command + 4728
13  mysqld                              0x00000001036c2789 _Z10do_commandP3THD + 505
14  mysqld                              0x000000010379ba44 handle_connection + 436
15  mysqld                              0x0000000103b11756 pfs_spawn_thread + 310
16  libsystem_pthread.dylib             0x00007fff7ab8b6c1 _pthread_body + 340
17  libsystem_pthread.dylib             0x00007fff7ab8b56d _pthread_body + 0
18  libsystem_pthread.dylib             0x00007fff7ab8ac5d thread_start + 13

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f86b589dc30): drop tablespace ts1
Connection ID (thread ID): 4
Status: NOT_KILLED

The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.

3、查看ha_innodb.cc源码的20927行

 void ib_senderrf(  THD*    thd,  ib_log_level_t  level,  ib_uint32_t  code,  ...)  {
  va_list    args;
  char*    str = NULL; const char*  format = innobase_get_err_msg(code);  ut_a(thd != 0);  ut_a(format != 0);

  va_start(args, code);

#ifdef _WIN32
  int    size = _vscprintf(format, args) + 1; if (size > 0) {
    str = static_cast<char*>(malloc(size));
  } if (str == NULL) {
    va_end(args); return;  }
  str[size - 1] = 0x0;
  vsnprintf(str, size, format, args);
#elif HAVE_VASPRINTF
  int  ret;
  ret = vasprintf(&str, format, args); if (ret < 0) {
    va_end(args); return;  }
#else  str = static_cast<char*>(malloc(BUFSIZ)); if (str == NULL) {
    va_end(args); return;  }
  my_vsnprintf(str, BUFSIZ, format, args);
#endif  Sql_condition::enum_severity_level  l;

  l = Sql_condition::SL_NOTE; switch (level) { case IB_LOG_LEVEL_INFO: break; case IB_LOG_LEVEL_WARN:
    l = Sql_condition::SL_WARNING; break; case IB_LOG_LEVEL_ERROR:  my_printf_error(code, "%s", MYF(0), str); break; case IB_LOG_LEVEL_FATAL:
    l = Sql_condition::SEVERITY_END; break;
  } if (level != IB_LOG_LEVEL_ERROR) {
    push_warning_printf(thd, l, code, "InnoDB: %s", str);
  }

  va_end(args);
  free(str); if (level == IB_LOG_LEVEL_FATAL) {
    ut_error;
  }
}

“怎么解决MySQL中InnoDB: Failing assertion: format != 0错误”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注编程网网站,小编将为大家输出更多高质量的实用文章!

您可能感兴趣的文档:

--结束END--

本文标题: 怎么解决MySQL中InnoDB: Failing assertion: format != 0错误

本文链接: https://www.lsjlt.com/news/65306.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • 怎么解决MySQL中InnoDB: Failing assertion: format != 0错误
    本篇内容介绍了“怎么解决MySQL中InnoDB: Failing assertion: format != 0错误”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习...
    99+
    2024-04-02
  • win10电脑弹出assertion错误怎么解决
    当Windows 10电脑弹出assertion错误时,说明系统遇到了一个问题,以下是一些解决方法:1. 重新启动电脑:有时候,简单...
    99+
    2023-10-18
    win10
  • windows 0x00000bcb错误怎么解决
    今天小编给大家分享一下windows 0x00000bcb错误怎么解决的相关知识点,内容详细,逻辑清晰,相信大部分人都还太了解这方面的知识,所以分享这篇文章给大家参考一下,希望大家阅读完这篇文章后有所收获,下面我们一起来了解一下吧...
    99+
    2023-07-01
  • windows 0x80080005错误怎么解决
    这篇文章主要介绍了windows 0x80080005错误怎么解决的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇windows 0x80080005错误怎么解决文章都会有所收获,下面我们一起...
    99+
    2023-07-01
  • windows 0x80070422错误怎么解决
    这篇文章主要讲解了“windows 0x80070422错误怎么解决”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“windows 0x80070422错误怎么解决”吧!0...
    99+
    2023-07-01
  • win10错误0x80131500怎么解决
    错误代码0x80131500通常与Windows 10操作系统中的应用程序错误相关。以下是解决此错误的几种方法:1. 重新...
    99+
    2023-09-04
    win10
  • Windows11中0x80073701更新错误怎么解决
    本文小编为大家详细介绍“Windows11中0x80073701更新错误怎么解决”,内容详细,步骤清晰,细节处理妥当,希望这篇“Windows11中0x80073701更新错误怎么解决”...
    99+
    2023-04-27
    windows11
  • 0x80070002错误代码怎么解决
    0x80070002错误代码通常表示文件或文件夹在系统中找不到。以下是一些解决该错误代码的方法:1. 执行Windows更...
    99+
    2023-09-15
    错误代码
  • 电脑0x8007003A错误怎么解决
    本篇内容介绍了“电脑0x8007003A错误怎么解决”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!0x8007003A错...
    99+
    2023-06-30
  • win10错误代码0x80072EFD-0x20000怎么解决
    错误代码0x80072EFD-0x20000通常表示Windows 10系统中的网络连接问题。以下是一些可能的解...
    99+
    2023-09-17
    win10
  • windows 0xe8000015错误怎么解决
    本篇内容主要讲解“windows 0xe8000015错误怎么解决”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“windows 0xe8000015错误怎么解决”吧!0...
    99+
    2023-07-01
  • Windows11激活错误0x87e107f9怎么解决
    这篇文章主要介绍“Windows11激活错误0x87e107f9怎么解决”,在日常操作中,相信很多人在Windows11激活错误0x87e107f9怎么解决问题上存在疑惑,小编查阅了各式...
    99+
    2023-05-06
    windows11
  • win101909更新错误0x800f0986怎么解决
    本篇内容主要讲解“win101909更新错误0x800f0986怎么解决”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“win101909更新错误0x800f0986怎么解决”...
    99+
    2023-07-01
  • win101903更新错误0x800f081f怎么解决
    这篇“win101903更新错误0x800f081f怎么解决”文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇“win1...
    99+
    2023-07-01
  • win10错误代码0X80070035怎么解决
    错误代码0X80070035通常表示网络共享出现问题。要解决这个问题,你可以尝试以下几种方法:1. 检查网络设置:确保电脑和...
    99+
    2023-08-26
    win10
  • win10安装0x80070570错误怎么解决
    错误代码0x80070570通常表示在安装Windows 10时发生了文件损坏或不完整的情况。以下是一些可能的解决方案:1...
    99+
    2023-09-15
    win10
  • windows10错误代码0x80070490怎么解决
    这篇文章主要介绍“windows10错误代码0x80070490怎么解决”,在日常操作中,相信很多人在windows10错误代码0x80070490怎么解决问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希...
    99+
    2023-07-01
  • win11错误代码0x80070002怎么解决
    错误代码0x80070002通常表示系统文件丢失或损坏,导致无法执行某些操作。以下是一些可能的解决方法:1. 运行Wind...
    99+
    2023-08-21
    Win11
  • win10错误代码0x0000011b怎么解决
    错误代码0x0000011b是Windows 10系统中的一个蓝屏错误代码,通常表示系统遇到了一个内存管理错误。要解决这个...
    99+
    2023-08-25
    win10
  • win11错误代码0x80004005怎么解决
    错误代码0x80004005是Windows操作系统中常见的错误代码之一,它通常表示着与文件、驱动程序、注册表或其他系统组...
    99+
    2023-08-28
    win11
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作