-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Describe the bug
When I execute neoxp batch -i default -r setup.batch the process simply hangs forever or it outputs an ugly error (Segmentation fault (core dumped))
Example of a Segmentation fault:

Below you can find the case that most frequently happens: the neoxp batch command just hangs, forever. Never returns.

Sometimes, if the neoxp batch successfully completes, then, it simply outputs the following error when I start with the command neoxp run -i default: RocksDbSharp.RocksDbException: Corruption: bad WriteBatch Put.
To Reproduce
I can't reproduce the problem 100% of the time, since it might be a timing issue, race condition, or maybe rocksdb handlers are not properly closed. I'm not sure, but it certainly needs some investigation.
HOWEVER, I can provide you with a setup.batch and default.neo-express files that most likely can reproduce the problem:
Please use the following files:
Place them in a directory and then, within the same dir, run:
$ neoxp batch -i default -r setup.batch
Try to execute this command a couple of times in sequence.
Expected behavior
The neoxp batch command should successfully complete, 100% of the time.
Info about platform
- OS: Linux (with and without docker)
- Version: Ubuntu 24.04 and 22.04
- Platform: both arm64 and amd64
Additional context
- You might want to check this comment.
- Maybe this problem gets manifested in other commands that I haven't extensively tried yet.