id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,blockedby,blocking,branch_state,votes 3937,mc crashes right after it tries to open an SFTP link,szotsaki,andrew_b,"When I try to open an SFTP connection to a specific address (root@192.168.1.21) mc crashes immediately. I start mc with ""mc -d"" all the time. Version info: {{{ GNU Midnight Commander 4.8.21 Built with GLib 2.56.1 Using the S-Lang library with terminfo database With builtin Editor With subshell support as default With support for background operations With mouse support on xterm and Linux console With support for X11 events With internationalization support With multiple codepages support Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, smbfs Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64; }}} GDB tells this: {{{ #0 __strstr_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S:40 #1 0x00005555556179d0 in sftpfs_recognize_auth_types (super=0x555555801ba0, super=0x555555801ba0) at connection.c:181 #2 sftpfs_open_connection (super=super@entry=0x555555801ba0, mcerror=mcerror@entry=0x7fffffffd890) at connection.c:474 #3 0x000055555560d9af in sftpfs_cb_open_connection (super=0x555555801ba0, vpath=, vpath_element=0x5555557fcc70) at vfs_subclass.c:124 #4 0x00005555555c6fd2 in vfs_s_get_path (vpath=vpath@entry=0x5555557f8660, archive=archive@entry=0x7fffffffd910, flags=flags@entry=0) at direntry.c:1157 #5 0x00005555555c744a in vfs_s_inode_from_path (vpath=vpath@entry=0x5555557f8660, flags=flags@entry=5) at direntry.c:378 #6 0x00005555555c7653 in vfs_s_opendir (vpath=0x5555557f8660) at direntry.c:408 #7 0x00005555555c76b9 in vfs_s_chdir (vpath=) at direntry.c:475 #8 0x0000555555591157 in mc_chdir (vpath=vpath@entry=0x55555580ab50) at interface.c:703 #9 0x000055555559e784 in _do_panel_cd (panel=0x5555557ebcb0, new_dir_vpath=0x55555580ab50, cd_type=) at panel.c:3289 #10 0x000055555559f4bd in do_panel_cd (panel=0x5555557ebcb0, new_dir_vpath=new_dir_vpath@entry=0x55555580ab50, cd_type=cd_type@entry=cd_parse_command) at panel.c:4614 #11 0x00005555555fa0b8 in nice_cd (text=, xtext=0x7ffff7fe1082 ""Gépnév (részletek: F1 billentyű):"", help=help@entry=0x555555641d38 ""[SFTP (SSH File Transfer Protocol) filesystem]"", history_name=history_name@entry=0x555555641d18 "":sftplink_cmd: SFTP to machine "", prefix=prefix@entry=0x555555641b54 ""sftp://"", to_home=1, strip_password=1) at cmd.c:463 #12 0x00005555555fbe7b in sftplink_cmd () at cmd.c:1335 #13 0x000055555559a025 in midnight_execute_cmd (sender=0x5555557c6970, command=122) at midnight.c:1223 #14 0x00005555555cbefd in send_message (data=0x0, parm=, msg=MSG_ACTION, sender=0x5555557c6970, w=) at ../../lib/widget/widget-common.h:210 #15 menubar_execute (menubar=0x5555557c6970) at menu.c:345 #16 0x00005555555cca2d in menubar_handle_key (key=, menubar=0x5555557c6970) at menu.c:543 #17 menubar_callback (w=0x5555557c6970, sender=, msg=, parm=, data=) at menu.c:627 #18 0x000055555558272b in send_message (data=0x0, parm=10, msg=MSG_HOTKEY, sender=0x0, w=0x5555557c6970) at ../../lib/widget/widget-common.h:210 #19 dlg_try_hotkey (h=0x5555557d4840, h=0x5555557d4840, d_key=10) at dialog.c:419 #20 dlg_key_event (d_key=10, h=0x5555557d4840) at dialog.c:479 #21 dlg_process_event (h=0x5555557d4840, key=10, event=) at dialog.c:1168 #22 0x0000555555582911 in frontend_dlg_run (h=0x5555557d4840) at dialog.c:541 #23 dlg_run (h=0x5555557d4840) at dialog.c:1199 #24 0x000055555559b7ec in do_nc () at midnight.c:1791 #25 0x000055555557673b in main (argc=, argv=) at main.c:409 }}} Full backtrace: {{{ #0 __strstr_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S:40 No locals. #1 0x00005555556179d0 in sftpfs_recognize_auth_types (super=0x555555801ba0, super=0x555555801ba0) at connection.c:181 userauthlist = 0x0 super_data = 0x5555556f3fb0 userauthlist = super_data = #2 sftpfs_open_connection (super=super@entry=0x555555801ba0, mcerror=mcerror@entry=0x7fffffffd890) at connection.c:474 rc = 0 super_data = 0x5555556f3fb0 #3 0x000055555560d9af in sftpfs_cb_open_connection (super=0x555555801ba0, vpath=, vpath_element=0x5555557fcc70) at vfs_subclass.c:124 mcerror = 0x0 sftpfs_super_data = ret_value = 21845 #4 0x00005555555c6fd2 in vfs_s_get_path (vpath=vpath@entry=0x5555557f8660, archive=archive@entry=0x7fffffffd910, flags=flags@entry=0) at direntry.c:1157 vpath_archive = 0x5555557fb460 retval = 0x55555580b010 """" result = -1 super = 0x555555801ba0 path_element = 0x5555557fcc70 subclass = 0x5555556b9560 #5 0x00005555555c744a in vfs_s_inode_from_path (vpath=vpath@entry=0x5555557f8660, flags=flags@entry=5) at direntry.c:378 super = 0x555555801040 ino = q = path_element = #6 0x00005555555c7653 in vfs_s_opendir (vpath=0x5555557f8660) at direntry.c:408 dir = info = path_element = 0x5555557fcc70 #7 0x00005555555c76b9 in vfs_s_chdir (vpath=) at direntry.c:475 data = #8 0x0000555555591157 in mc_chdir (vpath=vpath@entry=0x55555580ab50) at interface.c:703 old_vfs = old_vfsid = result = path_element = 0x5555557fcc70 cd_vpath = 0x5555557f8660 #9 0x000055555559e784 in _do_panel_cd (panel=0x5555557ebcb0, new_dir_vpath=0x55555580ab50, cd_type=) at panel.c:3289 olddir_vpath = element = #10 0x000055555559f4bd in do_panel_cd (panel=0x5555557ebcb0, new_dir_vpath=new_dir_vpath@entry=0x55555580ab50, cd_type=cd_type@entry=cd_parse_command) at panel.c:4614 r = #11 0x00005555555fa0b8 in nice_cd (text=, xtext=0x7ffff7fe1082 ""Gépnév (részletek: F1 billentyű):"", help=help@entry=0x555555641d38 ""[SFTP (SSH File Transfer Protocol) filesystem]"", history_name=history_name@entry=0x555555641d18 "":sftplink_cmd: SFTP to machine "", prefix=prefix@entry=0x555555641b54 ""sftp://"", to_home=1, strip_password=1) at cmd.c:463 cd_vpath = 0x55555580ab50 machine = cd_path = 0x5555558088f0 ""/sftp://root@192.168.1.21"" history_name = 0x555555641d18 "":sftplink_cmd: SFTP to machine "" machine = prefix = 0x555555641b54 ""sftp://"" help = 0x555555641d38 ""[SFTP (SSH File Transfer Protocol) filesystem]"" text = cd_path = tmp = to_home = xtext = 0x7ffff7fe1082 ""Gépnév (részletek: F1 billentyű):"" cd_vpath = machine = cd_path = tmp = cd_vpath = #12 0x00005555555fbe7b in sftplink_cmd () at cmd.c:1335 No locals. #13 0x000055555559a025 in midnight_execute_cmd (sender=0x5555557c6970, command=122) at midnight.c:1223 res = MSG_HANDLED #14 0x00005555555cbefd in send_message (data=0x0, parm=, msg=MSG_ACTION, sender=0x5555557c6970, w=) at ../../lib/widget/widget-common.h:210 ret = MSG_NOT_HANDLED ret = #15 menubar_execute (menubar=0x5555557c6970) at menu.c:345 w = 0x5555557c6970 menu = entry = 0x5555557ca810 #16 0x00005555555cca2d in menubar_handle_key (key=, menubar=0x5555557c6970) at menu.c:543 menu = 0x5555557eb620 i = #17 menubar_callback (w=0x5555557c6970, sender=, msg=, parm=, data=) at menu.c:627 menubar = 0x5555557c6970 #18 0x000055555558272b in send_message (data=0x0, parm=10, msg=MSG_HOTKEY, sender=0x0, w=0x5555557c6970) at ../../lib/widget/widget-common.h:210 ret = MSG_NOT_HANDLED ret = #19 dlg_try_hotkey (h=0x5555557d4840, h=0x5555557d4840, d_key=10) at dialog.c:419 hot_cur = current = 0x5555557c6970 handled = MSG_NOT_HANDLED c = hot_cur = current = handled = c = #20 dlg_key_event (d_key=10, h=0x5555557d4840) at dialog.c:479 handled = handled = #21 dlg_process_event (h=0x5555557d4840, key=10, event=) at dialog.c:1168 No locals. #22 0x0000555555582911 in frontend_dlg_run (h=0x5555557d4840) at dialog.c:541 d_key = wh = 0x5555557d4840 event = {buttons = 0 '\000', modifiers = 0 '\000', vc = 0, dx = 0, dy = 0, x = -1, y = 21847, type = (GPM_MOVE | GPM_DOWN | GPM_SINGLE | GPM_TRIPLE | GPM_HARD | GPM_LEAVE | unknown: 20480), clicks = 1434279888, margin = (GPM_TOP | GPM_LFT | unknown: 21840), wdx = 3712, wdy = 21864} wh = event = d_key = #23 dlg_run (h=0x5555557d4840) at dialog.c:1199 No locals. #24 0x000055555559b7ec in do_nc () at midnight.c:1791 ret = #25 0x000055555557673b in main (argc=, argv=) at main.c:409 mcerror = 0x0 config_migrated = config_migrate_msg = 0x0 exit_code = 1 }}} ",defect,closed,major,4.8.22,mc-vfs,4.8.21,fixed,,,,,merged,committed-master