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
[CRASH] Segfault starting up using flash and external module #821
Comments
Hi @lukepalmer I recall getting this error a while back, but cannot remember the exact fix I did on my local. In moduleLoadCallback() db.cpp, can you try replacing:
with
|
Thanks @keithchew! |
Ah, it might be thing one I was thinking about: Just looking at my notes, even though I found the cause and fix in the link above, it appears that I encountered subsequent problems with KeyDB and modules on startup. I ended up not using key_load_itr in the creation of the storage factory, but created a new method in server.cpp to perform key loading notification after everything has been initialised. |
Crash report
When using the RedisTimeSeries module, restoring data from flash results in a segmentation fault.
To reproduce:
The wildly large number of bytes attempting to be allocated is both impossible and changes every time, so there's probably garbage getting in there somehow.
Works fine with flash off. Same thing happens on the async branch.
Happy to help debug if you'd have suggestions.
Aditional information
The text was updated successfully, but these errors were encountered: