[Pkg-mc-devel] [Bug 770673] Re: mc crashes when trying to move file to nonexistent directory in FTP

Launchpad Bug Tracker 770673 at bugs.launchpad.net
Sat Mar 10 15:20:22 UTC 2012


** Branch linked: lp:~veger/ubuntu/precise/mc/fix-for-905610-v2

-- 
You received this bug notification because you are a member of Debian MC
Packaging Group, which is subscribed to mc in Ubuntu.
https://bugs.launchpad.net/bugs/770673

Title:
  mc crashes when trying to move file to nonexistent directory in FTP

Status in “mc” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: mc

  To reproduce follow these steps:
  1.  Start mc:
  $ mc
  2. Open ftp directory in mc by entering in command line:
  cd /#ftp:l33t at 1337ftp.co.cc:l33thackersFTW at 1337ftp.co.cc
  (any FTP server with write access should be acceptable, this is first address I found in Internet:
  http://www.l33thackers.com/Thread-Public-FTP-for-l33thackers so this is NOT private information.)
  3. Navigate to any file in FTP directory, press <F6> to start moving, enter target directory name that doesn't exists, like "test14323/"

  Expected behavior:
  mc should report that file can not be moved.

  Observed behavior:
  mc crashes with SIGSEGV:

  ftpfs: CWD failed.
  Program received signal SIGSEGV, Segmentation fault.                                                                                                                 [^]
  vfs_s_generate_entry (me=0x6e8cc0, name=0x7aa0b5 "mmmfrosty.exe", parent=0x0, mode=<value optimized out>) at direntry.c:192lete          9PullDn        10Quit
  192	direntry.c: No such file or directory.
  	in direntry.c

  
  Stack trace:
  #0  vfs_s_generate_entry (me=0x6e8cc0, name=0x7aa0b5 "mmmfrosty.exe", parent=0x0, mode=<value optimized out>) at direntry.c:192
  #1  0x000000000046e86e in vfs_s_open (me=0x6e8cc0, file=<value optimized out>, flags=193, mode=33188) at direntry.c:768
  #2  0x0000000000472674 in mc_open (filename=<value optimized out>, flags=193) at vfs.c:555
  #3  0x000000000043fc1a in copy_file_file (ctx=0x79d780, src_path=0x778300 "/#ftp:l33t at 1337ftp.co.cc:l33thackersFTW at 1337ftp.co.cc/mmmfrosty.exe", 
      dst_path=0x795d60 "test/mmmfrosty.exe", ask_overwrite=<value optimized out>, progress_count=<value optimized out>, progress_bytes=0x7fffffffda78, 
      is_toplevel_file=1) at file.c:585
  #4  0x000000000044013e in move_file_file (ctx=0x79d780, s=0x778300 "/#ftp:l33t at 1337ftp.co.cc:l33thackersFTW at 1337ftp.co.cc/mmmfrosty.exe", 
      d=0x795d60 "test/mmmfrosty.exe", progress_count=0x7fffffffda80, progress_bytes=0x7fffffffda78) at file.c:1094
  #5  0x000000000044147b in panel_operate (source_panel=0x78af50, operation=OP_MOVE, force_single=0) at file.c:2059
  #6  0x00000000004376dc in rename_cmd () at cmd.c:355
  #7  0x0000000000450ee5 in midnight_execute_cmd (sender=0x1175d5e2, command=52124) at main.c:1294
  #8  0x0000000000451776 in midnight_callback (h=<value optimized out>, sender=0x6ea0a0, msg=<value optimized out>, parm=52124, data=0xffffffff) at main.c:1685
  #9  0x00000000004271c9 in buttonbar_call (w=0x7a6e40, msg=<value optimized out>, parm=1006) at widget.c:2659
  #10 buttonbar_callback (w=0x7a6e40, msg=<value optimized out>, parm=1006) at widget.c:2687
  #11 0x000000000041d5d1 in send_message (h=0x798b90, key=1006, event=<value optimized out>) at ../src/dialog.h:235
  #12 dlg_try_hotkey (h=0x798b90, key=1006, event=<value optimized out>) at dialog.c:677
  #13 dlg_key_event (h=0x798b90, key=1006, event=<value optimized out>) at dialog.c:713
  #14 dlg_process_event (h=0x798b90, key=1006, event=<value optimized out>) at dialog.c:823
  #15 0x000000000041d7f7 in frontend_run_dlg (h=0x798b90) at dialog.c:855
  #16 run_dlg (h=0x798b90) at dialog.c:870
  #17 0x00000000004502f9 in create_panels_and_run_mc (argc=1, argv=0x7fffffffe118) at main.c:1783
  #18 do_nc (argc=1, argv=0x7fffffffe118) at main.c:1877
  #19 main (argc=1, argv=0x7fffffffe118) at main.c:2203

  ProblemType: Bug
  DistroRelease: Ubuntu 10.10
  Package: mc 3:4.7.0.6-1
  ProcVersionSignature: Ubuntu 2.6.35-28.50-generic 2.6.35.11
  Uname: Linux 2.6.35-28-generic x86_64
  NonfreeKernelModules: nvidia
  Architecture: amd64
  Date: Tue Apr 26 08:33:47 2011
  SourcePackage: mc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mc/+bug/770673/+subscriptions



More information about the Pkg-mc-devel mailing list