(In reply to Andreas Schwab from comment #12) > I'm not going to debug your program. IMHO bash does nothing wrong with its list used for completion if (varlist) free (varlist); varlist = all_visible_functions (); the only thing which could trigger anything is that there is beside systemctl also a systemct in ~/bin/ .. and ~/bin/ is listed several times in PATH but even with this I can not trigger an abort(). #13 0x000055ff5a68dc6a in command_word_completion_function (hint_text=0x55ff5c85cd30 "systemct", state=0) at /usr/src/debug/bash-5.2/bashline.c:2099 temp = <optimized out> cval = <optimized out> inner = <optimized out> dequoted_hint = 0x55ff5c7de7d0 "\360:\202\\\377U" hint = 0x55ff5c7de7d0 "\360:\202\\\377U" searching_path = 0 mapping_over = 0 hint_is_dir = 0 val = 0x0 igncase = 0 old_glob_ignore_case = 0 glob_matches = 0x0 globpat = 0 directory_part = 0x0 hint_len = 8 filename_hint = 0x55ff5c6baee0 "/home/cb/bin/systemct" fnhint = 0x55ff5c6baee0 "/home/cb/bin/systemct" istate = 0 path = 0x55ff5c6090d0 "/home/cb/bin:/usr/local/bin:/usr/bin:/bin:/home/cb/bin:/home/cb/bin" path_index = 0 local_index = 0 varlist = 0x55ff5c859150 alias_list = 0x55ff5c933e50