Skip to content

Crash on 25.02 #8181

Closed
Closed
@daywalker90

Description

@daywalker90

So i wrote a plugin to hook into rpc_command for pay and since only one plugin can do that i disable xpay-handle-pay and wrote it myself. I encountered a crash on my mainnet node that i tried to replicate with some tests on regtest but was unable to.

Mar 28 10:37:18  lightningd[3568263]: cln-askrene: FATAL SIGNAL 11 (version v25.02)
Mar 28 10:37:18  lightningd[3568263]: 0x564650aa6fa6 send_backtrace
Mar 28 10:37:18  lightningd[3568263]:         common/daemon.c:33
Mar 28 10:37:18  lightningd[3568263]: 0x564650aa7033 crashdump
Mar 28 10:37:18  lightningd[3568263]:         common/daemon.c:78
Mar 28 10:37:18  lightningd[3568263]: 0x7fe85f9c104f ???
Mar 28 10:37:18  lightningd[3568263]:         ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
Mar 28 10:37:18  lightningd[3568263]: 0x0 ???
Mar 28 10:37:18  lightningd[3568263]:         ???:0
Mar 28 10:37:18  lightningd[3568246]: INFO    plugin-cln-askrene: Killing plugin: exited during normal operation
Mar 28 10:37:18  lightningd[3568246]: **BROKEN** plugin-cln-askrene: Plugin marked as important, shutting down lightningd!

When my plugin was done with the pay->xpay conversion it returned:

{"replace":{"id":"cli:pay#3568741","jsonrpc":"2.0","method":"xpay","params":{"invstring":"lnbc182[...]","layers":["6f0da531ec03f6cd1d3dcf0e0df001ebb7133ddbb7a3a219162a49e3ccc4b89f"],"maxfee":0,"retry_for":180}}}

These are the only logs between the replace response issued and the crash:

Mar 28 10:37:18  lightningd[3568246]: DEBUG   hsmd: Client: Received message 51 from client
Mar 28 10:37:18  lightningd[3568246]: DEBUG   hsmd: preapprove_invoice: check_only=0
Mar 28 10:37:18  lightningd[3568246]: DEBUG   plugin-cln-xpay: notify msg debug: getroutes from 0380ef0209ff1b46c38a37cd40f613d1dae3eba481a909459d6c1434a0e56e5d8c to 0385262f7e9e2eeeba1e7d6182a0efec98e79d01154b76189f3e0b88bcee>
Mar 28 10:37:18  lightningd[3568246]: DEBUG   plugin-cln-xpay: 0: getroutes from 0380ef0209ff1b46c38a37cd40f613d1dae3eba481a909459d6c1434a0e56e5d8c to 0385262f7e9e2eeeba1e7d6182a0efec98e79d01154b76189f3e0b88bcee279dd0
Mar 28 10:37:18  lightningd[3568246]: DEBUG   plugin-sling: Peerchannels refreshed in 3ms
Mar 28 10:37:18  lightningd[3568246]: DEBUG   0380ef0209ff1b46c38a37cd40f613d1dae3eba481a909459d6c1434a0e56e5d8c-hsmd: Got WIRE_HSMD_ECDH_REQ
Mar 28 10:37:18  lightningd[3568246]: DEBUG   hsmd: Client: Received message 1 from client
Mar 28 10:37:18  lightningd[3568246]: DEBUG   0282ccffe2f7fd63b0d68528dab9cd6cff8f64733d2d730c3eb8fa81e011da930e-connectd: Connect IN
Mar 28 10:37:18  lightningd[3568246]: DEBUG   0282ccffe2f7fd63b0d68528dab9cd6cff8f64733d2d730c3eb8fa81e011da930e-connectd: peer_out WIRE_INIT

When testing this on regtest with the exact same arguments used and a similar network setup and exclude it works. But on mainnet i crashed my node everytime i tried it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions