[Pkg-mc-devel] [Bug 713630] Re: mc crashes on saving after editing at EOF in hex mode

Vladimir Rutsky 713630 at bugs.launchpad.net
Mon Feb 14 18:57:20 UTC 2011

For last test I used mc from ppa:zyv/ppa with version:
$ mc --version
GNU Midnight Commander
Virtual File System: tarfs, extfs, cpiofs, ftpfs, fish, undelfs
With builtin Editor
Using system-installed S-Lang library with terminfo database
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
Data types: char 8 int 32 long 64 void * 64 off_t 64 ecs_char 8

You received this bug notification because you are a member of Debian MC
Packaging Group, which is subscribed to mc in ubuntu.

  mc crashes on saving after editing at EOF in hex mode

Status in “mc” package in Ubuntu:

Bug description:
  Binary package hint: mc

  Steps to reproduce:
   1. Create new file with single byte in it:
    $ echo -n 'a' > test
   2. Open file:
    $ mcedit -v test
   3. Press <F4> to switch in hex mode.
   4. Press <F2> to start editing.
   5. Press <b>, <c>, <d> to substitute current character with new hexadecimal value.
   6. Press <F10> and select "Yes" to exit with saving.

  Observed behavior - mc crashes outputting:
  > mcedit: datasource.c:229: mcview_set_byte: Assertion `offset < mcview_get_filesize (view)' failed.
  > Aborted (core dumped)

  Expected behaviour - normal exit.

  When reproducing in gdb session following stack trace observed:
  (gdb) bt
  #0  0x00007ffff7244a75 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
  #1  0x00007ffff72485c0 in *__GI_abort () at abort.c:92
  #2  0x00007ffff723d941 in *__GI___assert_fail (assertion=0x497fa8 "offset < mcview_get_filesize (view)", file=<value optimized out>, line=229, 
      function=0x497ee0 "mcview_set_byte") at assert.c:81
  #3  0x0000000000481f81 in ?? ()
  #4  0x00000000004836ad in ?? ()
  #5  0x000000000047ffbe in ?? ()
  #6  0x000000000048094b in mcview_callback ()
  #7  0x0000000000415811 in ?? ()
  #8  0x000000000040bcc0 in ?? ()
  #9  0x000000000040bea7 in ?? ()
  #10 0x000000000047ecc0 in ?? ()
  #11 0x000000000042f4ac in ?? ()
  #12 0x0000000000447099 in ?? ()
  #13 0x00007ffff722fc4d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, 
      fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fffffffe158) at libc-start.c:226
  #14 0x000000000040a2a9 in ?? ()
  #15 0x00007fffffffe158 in ?? ()
  #16 0x000000000000001c in ?? ()
  #17 0x0000000000000003 in ?? ()
  #18 0x00007fffffffe495 in ?? ()
  #19 0x0000000000000000 in ?? ()

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: mc 3:4.7.0-1ubuntu2
  ProcVersionSignature: Ubuntu 2.6.32-28.55-generic
  Uname: Linux 2.6.32-28-generic x86_64
  NonfreeKernelModules: nvidia
  Architecture: amd64
  Date: Sat Feb  5 15:44:31 2011
  SourcePackage: mc

More information about the Pkg-mc-devel mailing list