Hi there,
After upgrading to readline 8.3.0, I noticed that iwctl crashes in
interactive move (under Arch Linux, x86_64). A downstream bug report can
be found at [1].
This small program seems to reproduce the issue (segfault with 8.3.0 and
no segfault with 8.2.013):
-- 8< --
#include <stdio.h>
#include <readline/readline.h>
static void readline_callback(char *prompt)
{
return;
}
int main(void) {
rl_callback_handler_install("Test...", readline_callback);
rl_set_prompt("Test...");
rl_save_prompt();
rl_redisplay();
rl_restore_prompt();
}
-- >8 --
As I'm not a readline expert: In case this is not a readline bug but
improper use of the library, please let me know too, so we can report to
iwd. Thanks!
Best,
Lukas
[1]
https://gitlab.archlinux.org/archlinux/packaging/packages/readline/-/issues/1