Skip to content

lightningd crashes when non-important plugin misbehaves #7838

Closed
@JssDWt

Description

@JssDWt

Issue and Steps to Reproduce

  • plugin returns a non-result value
  • lightningd crashes
Plugin trampoline for htlc_accepted returned non-result response {"error":{"code":-32700,"data":null,"message":"missing field `forward_msat`"},"id":"cln:htlc_accepted#1","jsonrpc":"2.0"}
lightningd: FATAL SIGNAL 6 (version v24.08.1-17-ga780ad4-modded)
0x5639b61b0dc7 send_backtrace
        common/daemon.c:33
0x5639b61b0e4f crashdump
        common/daemon.c:75
0x7fbe5a5ccfcf ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7fbe5a61bd3c __pthread_kill_implementation
        ./nptl/pthread_kill.c:44
0x7fbe5a5ccf31 __GI_raise
        ../sysdeps/posix/raise.c:26
0x7fbe5a5b7471 __GI_abort
        ./stdlib/abort.c:79
0x5639b615f606 fatal_vfmt
        lightningd/log.c:1038
0x5639b615f69f fatal
        lightningd/log.c:1048
0x5639b618585e plugin_hook_callback
        lightningd/plugin_hook.c:167
0x5639b617fd4f plugin_response_handle
        lightningd/plugin.c:663
0x5639b618349a plugin_read_json_one
        lightningd/plugin.c:775
0x5639b6183736 plugin_read_json
        lightningd/plugin.c:826
0x5639b631d6d7 next_plan
        ccan/ccan/io/io.c:60
0x5639b631db62 do_plan
        ccan/ccan/io/io.c:422
0x5639b631dc1b io_ready
        ccan/ccan/io/io.c:439
0x5639b631f4d6 io_loop
        ccan/ccan/io/poll.c:455
0x5639b61576a2 io_loop_with_timers
        lightningd/io_loop_with_timers.c:22
0x5639b615ce88 main
        lightningd/lightningd.c:1470
0x7fbe5a5b81c9 __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x7fbe5a5b8284 __libc_start_main_impl
        ../csu/libc-start.c:360
0x5639b6131f10 ???
        ???:0
0xffffffffffffffff ???
        ???:0

getinfo output

v24.08

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions