-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error PMDK "Segmentation fault (core dumped)" when reopen the pool has already data!!! #12
Comments
This bug could be fixed by adding |
Hi All,
The segmentation fault occurs when the first key is inserted.
The solution @Chris-NaN proposed can indeed make the program run without this error. However, the function 'constructor' will recreate the B+tree and make existed data lost. In this way, the program will of course run correctly just like the first time. By the way, some 'break;'s are missed in |
Not sure how useful this response is after 1 year but: The issue is that the locks are being persisted, but if you open a pool from a previous execution, the locks should be reinitialized since pthread's internal data is not persisted. One solution is to reinitialize all locks after reopening a pool. Indeed running the constructor after reopening the pool will remove this bug but you will also lose the previous data, aka the point of a persistent application. |
Hi All,
For PMDK environment when I first run the pool initialization and data generation everything is ok. When you turn off the program and run again, read data from the pool that already has data, it will be dumped by the system with the error "Segmentation fault (core dumped)".
Thank you very much.
The text was updated successfully, but these errors were encountered: