Skip to content

Conversation

@Lagrang3
Copy link
Collaborator

Fix a plugin crash triggered during single path payments when a channel fees doesn't fit u32.
Addresses one of the assertions mentioned in #8823.

@Lagrang3 Lagrang3 requested a review from rustyrussell January 12, 2026 12:07
cln-askrene: plugins/askrene/mcf.c:474: combine_cost_function: Assertion `fcost != INFINITE' failed.
cln-askrene: FATAL SIGNAL 6 (version v25.12-131-gb15f386-modded)
0x55703f242fd1 send_backtrace
	common/daemon.c:38
0x55703f24305b crashdump
	common/daemon.c:83
0x7f548b421def ???
	./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7f548b47695c __pthread_kill_implementation
	./nptl/pthread_kill.c:44
0x7f548b421cc1 __GI_raise
	../sysdeps/posix/raise.c:26
0x7f548b40a4ab __GI_abort
	./stdlib/abort.c:73
0x7f548b40a41f __assert_fail_base
	./assert/assert.c:118
0x55703f234491 combine_cost_function
	plugins/askrene/mcf.c:474
0x55703f2358b6 single_path_flow
	plugins/askrene/mcf.c:1213
0x55703f235fa2 linear_routes
	plugins/askrene/mcf.c:1411
0x55703f236804 single_path_routes
	plugins/askrene/mcf.c:1656
0x55703f22edad do_getroutes
	plugins/askrene/askrene.c:689
0x55703f22f269 json_getroutes
	plugins/askrene/askrene.c:910
0x55703f2411a7 ld_command_handle
	plugins/libplugin.c:2155
0x55703f2413b1 ld_read_json
	plugins/libplugin.c:2231
0x55703f271a4d next_plan
	ccan/ccan/io/io.c:60
0x55703f271ed8 do_plan
	ccan/ccan/io/io.c:422
0x55703f271f91 io_ready
	ccan/ccan/io/io.c:439
0x55703f27391b io_loop
	ccan/ccan/io/poll.c:470
0x55703f2417fd plugin_main
	plugins/libplugin.c:2429
0x55703f22f753 main
	plugins/askrene/askrene.c:1452
0x7f548b40bca7 __libc_start_call_main
	../sysdeps/nptl/libc_start_call_main.h:58
0x7f548b40bd64 __libc_start_main_impl
	../csu/libc-start.c:360
0x55703f22baa0 ???
	_start+0x20:0
0xffffffffffffffff ???
	???:0

Changelog-None

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
Changelog-Fixed: askrene: fix a plugin crash triggered during single path payments when a channel fees doesn't fit u32.

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
@Lagrang3 Lagrang3 force-pushed the askrene-prune-infinite-costs branch from f417a7b to 6415d29 Compare January 12, 2026 13:22
Copy link
Contributor

@rustyrussell rustyrussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch!

@rustyrussell rustyrussell added the 25.12.1 Point release for 25.12 label Jan 13, 2026
@rustyrussell rustyrussell enabled auto-merge (rebase) January 13, 2026 03:21
@rustyrussell rustyrussell merged commit 118e474 into ElementsProject:master Jan 13, 2026
83 of 85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

25.12.1 Point release for 25.12

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants