Details
Description
As reported by Elena: mysqld.exe crashes on shutdown on Windows Server 2012. Maybe, only the debug build is affected.
The stacktrace looks like this:
mysqld.exe!_db_enter_(const char * _func_, const char * _file_, unsigned int _line_, _db_stack_frame_ * _stack_frame_) Line 1101 + 0x5 bytes C > mysqld.exe!my_free(void * ptr) Line 209 C mysqld.exe!delete_dynamic(st_dynamic_array * array) Line 302 C mysqld.exe!cleanup_instrument_config() Line 238 C++ mysqld.exe!cleanup_performance_schema() Line 165 C++ mysqld.exe!shutdown_performance_schema() Line 209 C++ mysqld.exe!mysqld_exit(int exit_code) Line 1968 C++ mysqld.exe!unireg_abort(int exit_code) Line 1948 C++ mysqld.exe!win_main(int argc, char * * argv) Line 5441 C++ mysqld.exe!mysql_service(void * p) Line 5560 C++ mysqld.exe!mysqld_main(int argc, char * * argv) Line 5753 C++ mysqld.exe!main(int argc, char * * argv) Line 26 C++ mysqld.exe!__tmainCRTStartup() Line 278 + 0x19 bytes C mysqld.exe!mainCRTStartup() Line 189 C
CORRECTION: forgot the first frames in the stack. They are like this:
vrfcore.dll!000007fdca3537ed() [Frames below may be incorrect and/or missing, no symbols loaded for vrfcore.dll] vfbasics.dll!000007fdca2ea777() > mysqld.exe!code_state() Line 345 C mysqld.exe!_db_enter_(const char * _func_, const char * _file_, unsigned int _line_, _db_stack_frame_ * _stack_frame_) Line 1101 + 0x5 bytes C mysqld.exe!my_free(void * ptr) Line 209 C
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Debugging, I see that the crash happens inside this call:
pthread_mutex_init(&THR_LOCK_dbug, NULL);
pthread_mutex_init translates to InitializeCriticalSection on Windows. InitializeCriticalSection only requires that valid memory is passed to it (which is true).