-
Notifications
You must be signed in to change notification settings - Fork 906
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
memleak hook: find leaks in plugins #4737
memleak hook: find leaks in plugins #4737
Commits on Sep 6, 2021
-
ccan: update to get version where tal_dump goes to stderr.
This is useful for plugins which can't send junk to stdout. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 089a79e - Browse repository at this point
Copy the full SHA 089a79eView commit details -
common/memleak: take over dump_memleak(), allow print pointer.
This will let plugins use it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 21015b6 - Browse repository at this point
Copy the full SHA 21015b6View commit details -
common/memleak: hoist strmap helper from out of lightningd/memdump.c
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 2cc059b - Browse repository at this point
Copy the full SHA 2cc059bView commit details -
libplugin: allow stealing of feature sets, make keysend do that.
Otherwise the NULL parents look like a memleak. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 2eef60d - Browse repository at this point
Copy the full SHA 2eef60dView commit details -
libplugin: allow take() for commands, notif_subs, hook_subs, notif_to…
…pics. Useful for plugins which dynamically generate them. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 0e6ba57 - Browse repository at this point
Copy the full SHA 0e6ba57View commit details
Commits on Sep 7, 2021
-
libplugin: if DEVELOPER set, do memleak detection on shutdown.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 93521f4 - Browse repository at this point
Copy the full SHA 93521f4View commit details -
libplugin: let plugins add annotations to memleak.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> mar
Configuration menu - View commit details
-
Copy full SHA for d1aa052 - Browse repository at this point
Copy the full SHA d1aa052View commit details -
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 024a40f - Browse repository at this point
Copy the full SHA 024a40fView commit details -
plugins/funder: don't use global owner parent; mark policy for memleak.
And free the err string when policy turns out not to be a u64. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for a1953e2 - Browse repository at this point
Copy the full SHA a1953e2View commit details -
spender/openchannel.c: don't leave psbt parts owned by NULL.
They get grafted into clone, so have them parented there. Otherwise we get a small leak every time we RBF. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for a5a7dfb - Browse repository at this point
Copy the full SHA a5a7dfbView commit details -
plugins/spender: don't use global tal context, use take() instead.
Otherwise it looks like a leak. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for ca4ea96 - Browse repository at this point
Copy the full SHA ca4ea96View commit details -
plugins/bcli: keep a list of current bitcoind requests.
This lets memleak track them, but makes sure they don't leak; using notleak could cover up a leak here. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 26a9203 - Browse repository at this point
Copy the full SHA 26a9203View commit details -
plugins/txprepare: annotate unreleased_txs list against false memleaks.
And fix utx leak in the withdraw case. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 2055f10 - Browse repository at this point
Copy the full SHA 2055f10View commit details -
wire/tlvstream: don't leak in tlvstream_set_tu64/tu32/short_channel_id.
Another tiny leak, which happened in keysend which uses these routines. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for b1ddb17 - Browse repository at this point
Copy the full SHA b1ddb17View commit details -
pytest: annotate name_option against leak detection in test_libplugin
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for a6846bb - Browse repository at this point
Copy the full SHA a6846bbView commit details -
plugins/topology: use memleak annotation instead of global_gossmap ha…
…mmer. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 6db2fc0 - Browse repository at this point
Copy the full SHA 6db2fc0View commit details -
libplugin: fix leak of struct command when we don't read it all at once.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Fixed: Plugins: C plugins would could leak memory on every command (esp. seen when hammering topology's listchannels).
Configuration menu - View commit details
-
Copy full SHA for 465cd85 - Browse repository at this point
Copy the full SHA 465cd85View commit details -
plugins/libplugin: mark timers as not-a-leak.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 21e322e - Browse repository at this point
Copy the full SHA 21e322eView commit details -
libplugin: make leaks log at LOG_BROKEN so they break CI.
Now we've fixed them, this makes sure CI notices if new leaks appear. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 2d60cbe - Browse repository at this point
Copy the full SHA 2d60cbeView commit details
Commits on Sep 8, 2021
-
lightningd/chaintopology: stop callbacks rearming once topology stopped.
Otherwise we get very upset when the plugins go away. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 9315cee - Browse repository at this point
Copy the full SHA 9315ceeView commit details