Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

mysqld crash at Dir_Walker::is_directory for debug builds

未关闭
#129 4 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@p1p1bear 已经在做这个了。

开始于 2026年3月25日。

评估

这个 Issue 还没有评估数据。

描述

Seems to be a problem with debug builds. Release builds work fine, also crashes with mysql 8.0.44 debug builds.

If a directory contains file extension .traineddata which indicates a Trained Data Archive used by Tesseract OCR, an open-source optical character recognition engine, then specifying the directory as --innodb_directories in the startup command crashes the server.

Download the data from https://github.com/tesseract-ocr/tessdata_fast
Initialize the datadir and then try to use the startup command for starting the mysqld server as shown below

./bin/mysqld --datadir=~/data5 --lower_case_table_names=1 --initialize-insecure --default-authentication-plugin=mysql_native_password

./bin/mysqld --datadir=~/data5 --socket=/tmp/mysql.sock --port=3306 --core-file --lower_case_table_names=1 --innodb_directories='~/tessdata_fast-main'

#0 pthread_kill () from /lib64/libpthread.so.0
#1 my_write_core (sig=6) at mysql1/mysys/stacktrace.cc:344
#2 handle_fatal_signal (sig=6) at mysql1/sql/signal_handler.cc:232
#3
#4 raise () from /lib64/libc.so.6
#5 abort () from /lib64/libc.so.6
#6 my_server_abort () at mysql1/sql/signal_handler.cc:288
#7 my_abort () at mysql1/mysys/my_init.cc:264
#8 ut_dbg_assertion_failed (expr="exists", file="mysql1/storage/innobase/os/os0file.cc", line=7772) at mysql1/storage/innobase/ut/ut0dbg.cc:100
#9 Dir_Walker::is_directory (path="/tessdata_fast-main/configs") at mysql1/storage/innobase/os/os0file.cc:7772
#10 Dir_Walker::walk_posix(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool, std::function<void (std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned long)>&&) (
basedir="
/tessdata_fast-main/", recursive=true, f=...) at mysql1/storage/innobase/os/os0file.cc:3663

主要语言
C++
星标
6k
派生
902
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

alibaba/AliSQL 的其他 Issue

查看 alibaba/AliSQL 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。