-
Notifications
You must be signed in to change notification settings - Fork 648
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
cli_wallet throws erorr and crashes #1127
Comments
i just tried it on linux and when tab is pressed i get a list of all commands available. should be something regarding the editline in macos, probably @jmjatlanta can reproduce and confirm. |
Further I observed that if a TAB is pressed after say, |
thanks for the report, we need our mac guy to check it out, i don't have a mac to test this. he is on vacation but will be back in around 1 week if i remember correctly. issue will remain open until we can confirm and submit a solution. |
Ok, @oxarbitrage and I compiled a version which works fine. |
with macOS or with another OS? |
same OS and exactly same environment |
did you made changes to make it work ? want to submit a pull request with the fix ? if so please just make sure you do it against the |
@oxarbitrage - I didn't make any code changes. I had downloaded the pre-compiled version first which didn't work. I went ahead and compiled from source (same version) and it worked |
Thanks for confirming @bobinson how you were able to work around this bug. I too was able to reproduce the error from the binaries. However, when I compiled from source, the same error resulted as in OP. My environment:
I performed some additional tests (key strokes : result):
I feel we have a bug in the source code, not limited to the binaries. @jmjatlanta May I request you to test within your environment if possible? |
Yes, I am getting the same thing. I am investigating. |
@ryanRfox that's weird! Let me see how I compiled. I have too many versions of boost on my system. Will share the environment once I figure this out. |
Valgrind reports a SIGSEV within pthread. Each time I move code around (i.e. add debugging stuff) the program fails at a different place. That's a sign of a segmentation violation as well. I am still trying to chase down where the problem lies. If you can figure out how you compiled @bobinson that may give us an indication as to what is causing it. Thanks for the help. |
It seems there is a segmentation violation in editline.c. I believe the realloc should happen before the passed in char is added. I modified it on my machine and it seems to fix the issue. I created an issue with the maintainer. troglobit/editline#18 |
!!Wow!! That is some serious sleuthing. I see your fix is now merged to the editline master. I'm not sure how that change will propagate down to my build environment. I tried |
Environment: Steps of Trying with the above environment is given below Also tried this without doing brew update and will try to reproduce the same with the original libboost version too and report.
[07:58 PM] bobinson@air 🖖 [~/hack/bitshares-core/programs/cli_wallet]./cli_wallet --server-rpc-endpoint wss://eu.openledger.info/ws
|
Thank you @bobinson for providing the build details. I notice the Boost version you compiled with is outside of the currently support range of [1.57 - 1.65]. @jmjatlanta I'm somewhat surprised the FindBoost routine did not return an error. I am fairly confident cmake fails if boost is >= 1.56 but that's a separate issue perhaps. Do let me know how to update/check my build environment to ensure I've picked up the editline update you fixed above. |
@ryanRfox - yes, aware of that. Will try to compile with one of the supporting versions too. |
It is a submodule of the fc submodule (see libraries/fc/vendor/editline). We need to test the other changes in the latest version of Editline. If it works well, we can update the submodule to use their latest version.
We check that the appropriate boost modules are available. We do not check to make sure the version of those modules are within a range. Such a change has advantages and disadvantages. We should discuss. |
@jmjatlanta thank you for clarifying how editline is included within this project. Yes, let's discuss all things FindBoost in a new Issue. Again, thanks for making these updates. |
Still need to bump FC. |
Fixed with #1104. |
OS: macOS 10.13.5
2. run cli_wallet and connect to localhost
The text was updated successfully, but these errors were encountered: