Closed thestick613 closed 5 years ago
lightningd: FATAL SIGNAL 11 (version v0.6.1-1310-ge902d9a)
Maybe you should update to the latest stable release ;) ? https://github.com/ElementsProject/lightning/releases
I'm actually running latest from git master.
Your logs tell otherwise. Is there any chance you start an old lightningd
binary on your system?
It's this problem.
Okay, sorry. your right e902d9a is more or less current master, at least after 0.7
So I agree we may have an issue here. The correct syntax for pay
is
pay bolt11 [msatoshi] [label] [riskfactor] [maxfeepercent] [retry_for] [maxdelay] [exemptfee]
This means you are passing "help"
as msatoshi. It shouldn't crash but print an error...
Cannot reproduce the crash on master, but the invalid JSON seems to be generated from here : https://github.com/ElementsProject/lightning/blob/bbedd3819d0eb0047c0c3cb4e8f74b9ab6763e4a/plugins/libplugin.c#L203-L220
~Can reproduce (on non-dev build), seems to go wrong when write to stdout
, here:
https://github.com/ElementsProject/lightning/blob/bbedd3819d0eb0047c0c3cb4e8f74b9ab6763e4a/plugins/libplugin.c#L170~
When unknown extra argument is given to pay
, the plugin is killed because:
plugin-pay Killing plugin: Failed to parse JSON response '??{ "jsonrpc": "2.0", "id": 4, "error" : { "code" : -32602, "message" : ""msatoshi" should be a millisatoshi amount, not "pipo""'
Looks like too many quotes "
in json response?
There is being worked on in #2705, which at least doesn't crash it anymore.
I just hope there are no attack surfaces enabled by this.
Hmmm ... since a few rebuilds, I am not able anymore to reproduce a crash (now just a descent Abandoning command pay
). And the one time it did crash, it actually showed a different backtrace then the OP's, which got lost in my terminal history :disappointed: .
So not sure if this needs high prio.
Fixed in #2705 thanks!
I've ran
lightning-rpc pay SOME_INVOICE_XXX help
(notice the extra help). I pressed Ctrl+C after a second, but lightningd crashed with this log. There seems to be an issue with quoting strings inside JSON.