Skip to content

getroutes with source==destination crashes CLN v26.06 #9216

@daywalker90

Description

@daywalker90

I know it is a wrong input but it should not crash the node:

l1-cli getroutes "021106348d91ff3240964ca8b70c5ae80dc5ad84f0f58659f76584b684c1524ed2" "021106348d91ff3240964ca8b70c5ae80dc5ad84f0f58659f76584b684c1524ed2" 50000000 '[]' 30000 30

cln-askrene: plugins/askrene/child/algorithm.c:198: get_augmenting_flow: Assertion `flow < INFINITE && flow > 0' failed.
cln-askrene: FATAL SIGNAL 6 (version v26.06-22-gddcbf68-modded)
0x55a6b72a4902 send_backtrace
        common/daemon.c:38
0x55a6b72a498c crashdump
        common/daemon.c:83
0x7f1e077b3def ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7f1e0780895c __pthread_kill_implementation
        ./nptl/pthread_kill.c:44
0x7f1e077b3cc1 __GI_raise
        ../sysdeps/posix/raise.c:26
0x7f1e0779c4ab __GI_abort
        ./stdlib/abort.c:77
0x7f1e0779c41f __assert_fail_base
        ./assert/assert.c:118
0x55a6b729e11b get_augmenting_flow
        plugins/askrene/child/algorithm.c:198
0x55a6b729ef72 simple_feasibleflow
        plugins/askrene/child/algorithm.c:293
0x55a6b7298a8a minflow
        plugins/askrene/child/mcf.c:1017
0x55a6b729999b linear_routes
        plugins/askrene/child/mcf.c:1398
0x55a6b729a1fe default_routes
        plugins/askrene/child/mcf.c:1640
0x55a6b7296fcd run_child
        plugins/askrene/child/child.c:248
0x55a6b7291caa do_getroutes
        plugins/askrene/askrene.c:711
0x55a6b7291d28 begin_request
        plugins/askrene/askrene.c:887
0x55a6b72920a2 json_getroutes
        plugins/askrene/askrene.c:968
0x55a6b72a35ec ld_command_handle
        plugins/libplugin.c:2206
0x55a6b72a37f6 ld_read_json
        plugins/libplugin.c:2282
0x55a6b72b4261 next_plan
        ccan/ccan/io/io.c:60
0x55a6b72b4580 do_plan
        ccan/ccan/io/io.c:422
0x55a6b72b4639 io_ready
        ccan/ccan/io/io.c:439
0x55a6b72b55fc io_loop
        ccan/ccan/io/poll.c:470
0x55a6b72a3bc4 plugin_main
        plugins/libplugin.c:2481
0x55a6b7292491 main
        plugins/askrene/askrene.c:1551
0x7f1e0779dca7 __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x7f1e0779dd64 __libc_start_main_impl
        ../csu/libc-start.c:360
0x55a6b728e920 ???
        _start+0x20:0
0xffffffffffffffff ???
        ???:0
{
   "code": -1,
   "message": "child died with signal 6"
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions