Liststreams causes stack smashing and disconnection from server/termination

+1 vote
Hello,

I set up 2 nodes on one machine following the above instructions, on a VirtualBox instance using Ubuntu 18.04. I was following the Multichain getting started guide, and everything worked correctly until I got to the step where I ran liststreams into the command client/interactive mode. This caused the following error:

*** stack smashing detected ***: <unknown terminated>

error: no response from server

After this, any other commands in the interactive mode will result in no response from the server, until I restart the chain (using -daemon.)

The way I'm going through the tutorial is by having the "first server" on one open terminal, and the "second server" (the .multichain-other node) on a second open terminal. Is there any way around this issue? Any help would be much appreciated! Thanks!
related to an answer for: how to run datadir in multichain
asked Jun 27 by aklyuev

1 Answer

+1 vote
We are aware of this issue and have already fixed it in internal builds. But we believe it only occurs if you compile MultiChain yourself on Ubuntu 18.04. Can you please confirm if this is the case, or if you saw the problem in the standard distributed executables?
answered Jun 28 by MultiChain
Yes, it is a version I compiled myself. It looks like none of the other commands related to streams on the getting started guide present any problems, however.
OK, so you can retrieve the fixes from Github.

For 1.0.x:
https://github.com/MultiChain/multichain/commit/ca22771a444c41925b6a94bbc1f4afa8b1501e97

For 2.0 alpha 3:
https://github.com/MultiChain/multichain/commit/b179bd3707ee90931d363e26e4a6498f57e6eed9

If you use the precompiled binaries you also won't see this problem since it only appears on binaries compiled on Ubuntu 18.04.
...