- indirecting.setupWitness creates a Reger for the witness hab, then instantiates QueryEnd
- QueryEnd.init allocates another Reger with the same name/path
LMDB only allows one open environment per path per process. The older bindings didn’t fully enforce this, but LMDB 2.x with current py-lmdb raises lmdb.Error: The environment '…' is already open in this process, so kli witness demo and any other path using setupWitness will crash at startup.
This issue is not specific to shell scripts; it will happen in any environment using setupwitness with lmdb 2