-
Notifications
You must be signed in to change notification settings - Fork 902
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
Fatal signal 11 received on Mac OS #840
Comments
Can you run with a debugger? |
@bitstein , @cdecker @yashbhutwala I'm getting the same problem. I managed to get this with lightning-cli help :
|
Is it possible to run a lightning node in a container but bitcoind on the host? I've tried but to no avail. |
@yashbhutwala yes, you just need to make sure that
That'll mount the hosts |
@cdecker I've already tried that but container is still not able to talk to the |
I get the same reader gdb --args lightningd/lightningd --network=testnet --port=9000 --log-level=debug
start
During startup program terminated with signal ?, Unknown signal. I'm not familiar with |
Note that Also, if |
@benharold have you encountered this error during your work on Voltage? Or do you always run c-lightning on a remote linux server? |
@Sjors I have always run on a remote linux server. |
I get similar backtraces in While running
While running
I'll try to debug, but I couldn't figure out quickly what this code was supposed to do in the first place. |
Possibly thanks to #922 I'm now getting a more useful crash log:
That FATAL SIGNAL 11 error happened when I did:
It did however return the help text. Not sure why it threw that error twice. |
In fact, it just keeps going. I was able to generate an address and it detects those funds. I did get a Fatal signal 11 when I tried to connect to another node, unfortunately nothing in crash.log this time.
|
Just to inform you, that finally I succeded running c-ligthning on macOS, creating a node "Folgore ⚡️macOS" having a channel connected to "Eternity Wall" on isghe (compile_macOS_isghe_debug)*$ ./lightning-cli listpeers | jq
{
"peers": [
{
"id": "0271d98f7dfe66198f045690f552a9126abb0aa1585f0061854e780b7e08e6dccd",
"connected": true,
"netaddr": [
"163.172.139.73:9735"
],
"channels": [
{
"state": "CHANNELD_NORMAL",
"owner": "lightning_channeld",
"short_channel_id": "508273:180:1",
"funding_txid": "55a5982344ccb0934989ffd39ec5dd3df529d4a714bf9c0023cabb9b2f4fe903",
"msatoshi_to_us": 50000000,
"msatoshi_total": 50000000,
"dust_limit_satoshis": 546,
"max_htlc_value_in_flight_msat": 18446744073709552000,
"channel_reserve_satoshis": 0,
"htlc_minimum_msat": 0,
"to_self_delay": 144,
"max_accepted_htlcs": 483
}
]
}
]
}
In few days, I'll make some tests, clean the code, and I will create a PR :-) |
I've looked somewhat closer at the In Linux it will parse Edit: |
Yep, |
@isghe any progress on your PR? |
Hi @Sjors
obviously, that is not a solution, but can make you running and debugging on macOS. |
I'm not a fan of ignoring crashes on mainnet, but I suppose I can spin up a testnet node on macOS. |
Yeah, definitely don't just ignore crashes, you might end up corrupting some persistent state and then you'll definitely lose your funds. |
SIGSEGV and SIGBUS signal happens whenever jsonrpc is called on mac. Strange thing is those signals do not happen if we do not register handlers with I think we can work around this issue by deactivating crashlog. |
Issue and Steps to Reproduce
I am running Mac OS X 10.13.2. With the new libwally update, I was able to build c-lightning just fine this morning. However, after I got my bitcoind testnet daemon synced and booted lightningd, upon making a command, I received this output in the lightningd log:
getinfo
outputgetinfo
hangs, no output.The text was updated successfully, but these errors were encountered: