https://bugs.winehq.org/show_bug.cgi?id=57261
Bug ID: 57261 Summary: MongoDB crashes when launched from command line in Wine 9.0 Product: Wine Version: 9.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: Avasmd@yandex.ru Distribution: ---
When running MongoDB in Wine, the mongod.exe process terminates due to an Access violation error (when calling the _ctime64_s function from ucrtbase.dll, line 182 in the log).
The full text of the error is in the Mongo log: \mongod_test\mongod_log_error.txt.
The mongod_test.tar.gz is attached to the task, which contains mongod.exe (necessary for reproduction), as well as the MongoDB log.
OS configuration and software versions. RED OS 7.3.4 (MUROM) Linux kernel version = 6.1.94-1.e17.3.x86_64 Wine version = 9.0 Mate desktop environment version = 1.28.1 MongoDB version = 5.0.6
Reproduction steps. 1. Untar mongod_test.tar.gz and move the mongod_test folder to Wine (~/.wine …)
2. While in the Linux console, go to the mongod_test folder cd /path/to/mongod_test/
3. Create database test folder mkdir db_test
4. And run mongod.exe using the following command wine mongod.exe --port 27020 --dbpath ./db_test
Comments. A similar command (mongod.exe --port 27020 --dbpath ./db_test) is successfully run in powershell on the native Windows OS.