$:~ > gdb /usr/bin/ssh GNU gdb (Gentoo 7.12.1 vanilla) 7.12.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/ssh...Reading symbols from /usr/lib64/debug//usr/bin/ssh.debug...done. done. (gdb) run hidden.tld Starting program: /usr/bin/ssh hidden.tld [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x0000555555590575 in record_hostkey (l=l@entry=0x7fffffff6bc0, _ctx=_ctx@entry=0x7fffffffad00) at hostfile.c:258 258 hostkeys->entries[hostkeys->num_entries].host = xstrdup(ctx->host); (gdb) bt #0 0x0000555555590575 in record_hostkey (l=l@entry=0x7fffffff6bc0, _ctx=_ctx@entry=0x7fffffffad00) at hostfile.c:258 #1 0x0000555555591364 in hostkeys_foreach (path=path@entry=0x5555558176b0 "/home/user/.ssh/known_hosts", callback=callback@entry=0x5555555904d0 , ctx=ctx@entry=0x7fffffffad00, host=host@entry=0x5555558177c0 "xx.xx.xx.xx", ip=ip@entry=0x0, options=options@entry=3) at hostfile.c:850 #2 0x00005555555918ce in load_hostkeys (hostkeys=hostkeys@entry=0x55555581d4d0, host=0x5555558177c0 "xx.xx.xx.xx", path=0x5555558176b0 "/home/jona/.ssh/known_hosts") at hostfile.c:280 #3 0x0000555555572f28 in order_hostkeyalgs (port=, hostaddr=, host=0x555555804630 "`\353\201UUU") at sshconnect2.c:123 #4 ssh_kex2 (host=host@entry=0x55555580aa90 "xx.xx.xx.xx", hostaddr=hostaddr@entry=0x555555806320 , port=port@entry=22) at sshconnect2.c:202 #5 0x00005555555704b3 in ssh_login (sensitive=0x5555558063a0 , orighost=, hostaddr=0x555555806320 , port=, pw=, timeout_ms=-1000) at sshconnect.c:1464 #6 0x000055555555f50c in main (ac=, av=) at ssh.c:1433