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

Yury V. Zaytsev yury at shurup.com
Sat Feb 5 16:31:21 UTC 2011


Try the packages from my PPA. I can no longer reproduce this segfault.
If it works I will mark this bug as fixed since 4.7.0.9 was auto-synced
in Natty.

-- 
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/713630

Title:
  mc crashes on saving after editing at EOF in hex mode

Status in “mc” package in Ubuntu:
  New

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 ?? ()
  (gdb)

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: mc 3:4.7.0-1ubuntu2
  ProcVersionSignature: Ubuntu 2.6.32-28.55-generic 2.6.32.27+drm33.12
  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