[MDEV-28889] Embedded server crashes when mysql_library_init called after mysql_library_end Created: 2022-06-19  Updated: 2022-07-05  Resolved: 2022-07-05

Status: Closed
Project: MariaDB Server
Component/s: Embedded Server
Affects Version/s: 10.6.8, 10.8.3
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Lucien Schreiber Assignee: Vladislav Vaintroub
Resolution: Duplicate Votes: 0
Labels: None
Environment:

OSX 12.4
Ubuntu focal 20.04


Issue Links:
Duplicate
duplicates MDEV-24071 embedded server crashes when mysql_li... Open

 Description   

Calling mysql_library_init after a call to mysql_library_end generates a crash.

The crash occurs in the function:
void one_thread_scheduler(scheduler_functions *func,...). On the second call of this function, func is NULL and this is the cause of the crash.

How to reproduce:

  • mysql_library_init(...)
  • mysql_library_end()
  • mysql_library_init(...) --> Crash

It is important to be able to initialize the library several times in order to change the data directory.



 Comments   
Comment by Vladislav Vaintroub [ 2022-07-05 ]

talucien, instead of creating a duplicate bug (even the title is identical), you could simply add yourself as watcher or comment on the original MDEV-24071

Generated at Thu Feb 08 10:04:15 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.