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

Launchpad Bug Tracker 713630 at bugs.launchpad.net
Sat Mar 10 20:10:18 UTC 2012


This bug was fixed in the package mc - 3:4.8.1-2ubuntu1

---------------
mc (3:4.8.1-2ubuntu1) precise; urgency=low

  * Sync from debian testing (LP: #905610, LP: #314614, LP: #410031,
      LP: #562361, LP: #632816, LP: #713630, LP: #770673, LP: #837163)
  * Added Pre-Depends for dpkg-maintscript-helper availability

mc (3:4.8.1-2) unstable; urgency=low

  * Build-Depends are updated: 'bison' moved to build-deps;
    architecture wildcard replaced silly "type-handling | not+linux-gnu"
    (Closes: #587875 N:"Please remove type-handling dependency")
  * new patch to increase maximum file size for mcedit to 128 MiB
    (Closes: #369565 W:"mcedit: wishing a bigger file size limit")
    Thanks to Daniele Giacomini.
  * new patch to disable "Return does autoindent" by default in mcedit
    (Closes: #570502 N:"mcedit: adding extra spaces when pasting a text
     preceded by spaces")
    (Closes: #575711 N:"pasting extra tabs, AGAIN")
  * added mc.NEWS file with notes about important changes in this release
    (Closes: #661435 W:"lynx-like motion is lost during upgrade to 4.8.1")
  * added symlinks to all scripts in /usr/lib/mc for backward compatibility
  * new patch to correct path to scripts in man page
    (Closes: #661481 N:"Acknowledgement mc: /usr/share/mc/bin/mc.sh missing")
  * 'unzip' added to build-deps to set proper zip mode at build-time;
    'unzip' moved to Recommends from Suggests.
    (Closes: #661467 N:"mc: zip file browsing broken")
  * Recommends 'perl' and 'unzip' instead of Suggests
  * dropped old 20_wrong_path_to_wrappers.patch, which was breaking
    correct path to wrappers (note the precisely chosen file name ;)
  * corrected and properly annotated 09_uzip_broken_528239.patch

mc (3:4.8.1-1) unstable; urgency=low

  * New upstream release [December 2011]
    (Closes: #618542 N:"please follow upstream progress")
    (Closes: #528331 N:"[VFS] utar is unable to open .tar files")
    (Closes: #626287 N:"SHIFT+F6 should open rename dialog")
    (Closes: #609489 I:"If <F4> is pressed ~/.mc/cedit/Syntax is missing")
    (Closes: #606331 I:"regression: panel configuration on startup;
     view search configuration")
    (Closes: #567119 I:"mcedit ignores editnormal in MC_COLOR_TABLE")
    (Closes: #587372 N:"fish does not preserve modification time when
     copying files to remote host")
    (Closes: #592396 N:"file rename (F6) with non-usual characters failed")
    (Closes: #525146 N:"mc hangs when copying multiple files from ftp")
    (Closes: #574761 N:" [VFS] internal tar considers files containig
     '@' as directories.")
    (Closes: #584687 N:"mc/fish segfaults when remote copy/move appends
     to existing file")
    (Closes: #619092 W:"Wishlist: mc to open ISO files")
    (Closes: #602857 M:"use 7zr for generic .7z archives if available")
    (Closes: #61987 W:"total ETA wanted")
  * debian/watch
    • fixed and updated to fetch latest .tar.xz
  * dropped CDBS, now using debhelper only
  * debhelper & compat to version 9
  * dh-autoreconf to update toolchain
  * intltoolize to refresh Makefile.in.in
  * debian/control
    • standards to 3.9.3 (thanks to Andreas Tille)
    • added to build-deps:
      + 'type-handling' as alternative to 'libgpm-dev'
      + 'libpam0g-dev' optional, used by build system
      + 'check' to enable post-build unit tests
      + 'autopoint' (used by autoreconf)
    • 'bison' added to Build-Depends-Indep
       if available, it is used by upstream build system
       to regenerate some files
    • added myself to Uploaders
  * debian/copyright:
    • updated and converted to DEP-5
    • added copyrights of debian contributors
    • audit of upstream licenses/copyrights - all information is included
  * configure options
    + --disable-static
    + --enable-tests
    - --without-samba (obsolete)
  * patchworks:
    • relocated to debian/patches from subdir
    • new patches:
      + new man_spelling.patch (lintianisation)
      + new ext_libreoffice.patch to replace 'ooffice' command
        with 'libreoffice' - thanks to Osamu Aoki
        (Closes: #641926 N:"mc.ext updates (xz, libreoffice)")
      + new ext_cpio-xz.patch to improve .xz support,
        (thanks to Osamu Aoki)
    • updated:
      * 04_add_gem_extension.patch
      * 05_disable_internal_editor.patch
      * 08_use_sensible-editor.patch
      * 99_detect_alt_editor.patch
    • disabled, to drop later:
      * 09_uzip_broken_528239.patch
    • dropped (obsolete)
      - 03_use_awk.patch
      - pending/99_enable_reading_debs.patch (applied upstream)
      - debian/patches/README
  * updated lintian overrides
    + added lintian-overrides for executable-not-elf-or-script
      for files in /usr/lib/mc/fish
  * install correct ChangeLog
  * install scripts to /usr/lib/mc
    (previously was installed to /usr/share/mc)
  * added symlink to missing mcdiff.1 man page
  * added symlink to relocated mc-wrapper.sh for backward compatibility
  * dropped man page for mcmfmt (binary is no longer shipped by upstream)
  * handle configuration files upgrades/removes with
    dpkg-maintscript-helper in preinst/postinst/postrm
  * architecture-independent files are separated to 'mc-data' package
    + added upgrade path with Breaks/Replaces
    + added symbolic links to link files from /usr/share/doc/mc-data/
      to /usr/share/doc/mc/
  * removed 'exit 0' from preinst/postinst/prerm/postrm files
  * VCS links updated to point at new collab-maint repository
 -- Maarten Bezemer <maarten.bezemer at gmail.com>   Sat, 10 Mar 2012 16:12:51 +0100

** Changed in: mc (Ubuntu)
       Status: In Progress => Fix Released

-- 
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:
  Fix Released

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

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



More information about the Pkg-mc-devel mailing list