Skip to content

neoxp hangs forever when executing the batch command #455

@gsmachado

Description

@gsmachado

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:
image

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

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions