https://bugzilla.suse.com/show_bug.cgi?id=1229028 https://bugzilla.suse.com/show_bug.cgi?id=1229028#c17 --- Comment #17 from Antonio Feijoo <antonio.feijoo@suse.com> --- FTR, the backtrace shows what the problem is:
(gdb) bt #0 0x00007f5220c944ac in __pthread_kill_implementation () from /lib64/libc.so.6 #1 0x00007f5220c428c2 in raise () from /lib64/libc.so.6 #2 0x00007f5220c2a6d9 in abort () from /lib64/libc.so.6 #3 0x00007f5220c2b517 in __libc_message.cold () from /lib64/libc.so.6 #4 0x00007f5220c9eb67 in malloc_printerr () from /lib64/libc.so.6 #5 0x00007f5220c9ee8c in munmap_chunk () from /lib64/libc.so.6 #6 0x00007f5220ca38da in free () from /lib64/libc.so.6 #7 0x00007f52210d937c in really_free_termtype (ptr=0x5624b20e8420, freeStrings=<optimized out>) at ../ncurses/./tinfo/free_ttype.c:55 #8 0x00007f52210d940a in _nc_free_termtype2 (ptr=<optimized out>) at ../ncurses/./tinfo/free_ttype.c:81 #9 0x00007f52210d9e5f in del_curterm_sp (sp=sp@entry=0x0, termp=termp@entry=0x5624b20e8350) at ../ncurses/./tinfo/lib_cur_term.c:150 #10 0x00007f52210dc922 in tgetent_sp (sp=0x0, bufp=0x5624b20e7350 "", name=name@entry=0x5624b20f7a40 "vt220") at ../ncurses/./tinfo/lib_termcap.c:136 #11 0x00007f52210dd115 in tgetent (bufp=<optimized out>, name=name@entry=0x5624b20f7a40 "vt220") at ../ncurses/./tinfo/lib_termcap.c:211 #12 0x00007f5220e3296c in _rl_init_terminal_io (terminal_name=<optimized out>) at ../terminal.c:488 #13 0x00007f5220e32d53 in rl_reset_terminal (terminal_name=<optimized out>) at ../terminal.c:631 #14 0x00005624b0e9a0f9 in do_assignment_internal (word=word@entry=0x7ffce5c99a70, expand=expand@entry=0) at subst.c:3183 #15 0x00005624b0ec490a in do_assignment_no_expand (string=string@entry=0x5624b20f8040 "TERM=vt220") at subst.c:3236 #16 0x00005624b0eab59e in set_or_show_attributes (nodefs=0, attribute=1, list=0x5624b20f80a0) at ./setattr.def:274 #17 export_builtin (list=<optimized out>) at ./setattr.def:81 #18 0x00005624b0e84c2b in execute_builtin (words=0x5624b20f80e0, subshell=0, flags=0, builtin=0x5624b0eab3c0 <export_builtin>) at execute_cmd.c:4539 #19 execute_builtin_or_function (flags=<optimized out>, fds_to_close=0x5624b0e84c2b <execute_simple_command+1243>, redirects=<optimized out>, var=<optimized out>, builtin=<optimized out>, words=0x5624b20f80e0) at execute_cmd.c:5032 #20 execute_simple_command (simple_command=<optimized out>, pipe_in=pipe_in@entry=-1, pipe_out=pipe_out@entry=-1, async=async@entry=0, fds_to_close=fds_to_close@entry=0x5624b20f7a80) at execute_cmd.c:4334 #21 0x00005624b0e8355d in execute_command_internal (command=0x5624b20f8360, asynchronous=0, pipe_in=-1, pipe_out=-1, fds_to_close=0x5624b20f7a80) at execute_cmd.c:811 #22 0x00005624b0e846d1 in execute_command (command=0x5624b20f8360) at execute_cmd.c:405 #23 0x00005624b0e84506 in execute_if_command (if_command=<optimized out>) at execute_cmd.c:3561 #24 execute_command_internal (command=0x5624b20f8390, asynchronous=asynchronous@entry=0, pipe_in=pipe_in@entry=-1, pipe_out=pipe_out@entry=-1, fds_to_close=fds_to_close@entry=0x5624b20f7c20) at execute_cmd.c:932 #25 0x00005624b0ea9896 in parse_and_execute (string=<optimized out>, from_file=from_file@entry=0x5624b20f7120 "/root/.profile", flags=flags@entry=20) at evalstring.c:421 #26 0x00005624b0ecad7c in _evalfile (filename=filename@entry=0x5624b20f7120 "/root/.profile", flags=flags@entry=9) at evalfile.c:289 #27 0x00005624b0e5f946 in maybe_execute_file (fname=fname@entry=0x5624b0eceeaa "~/.profile", force_noninteractive=1) at evalfile.c:334 #28 0x00005624b0e22370 in run_startup_files () at shell.c:1134 #29 main (argc=1, argv=0x7ffce5c9a4e8, env=0x7ffce5c9a4f8) at shell.c:684
I can reproduce your issue if I manually export a terminal _not_ available on the initrd:
initramfs-ssh:/root# cat .profile if [ -n "$SSH_TTY" ]; then export PS1='initramfs-ssh:${PWD}# ' fi
if [ -n "$TERM" ]; then export TERM=vt220 fi initramfs-ssh:/root# echo $TERM vt220 initramfs-ssh:/root# ls -l /usr/share/terminfo/v total 12 -rw-r--r-- 1 root root 1190 Feb 19 2024 vt100 -rw-r--r-- 1 root root 1184 Feb 19 2024 vt102 -rw-r--r-- 1 root root 1377 Feb 19 2024 vt220 initramfs-ssh:/root# export TERM=vt100 initramfs-ssh:/root# export TERM=dumb initramfs-ssh:/root# export TERM=xterm munmap_chunk(): invalid pointer Connection to 192.168.122.80 closed. -- You are receiving this mail because: You are on the CC list for the bug.