Loading ...
Sorry, an error occurred while loading the content.
 

bug: swp recovery

Expand Messages
  • Suresh Govindachar
    Hello, Given below is information (uname -a, cat /proc/cpuinfo, vim version) on two machines named crash_machine and recover_machine. Bug: On recover_machine,
    Message 1 of 2 , Nov 1, 2007
      Hello,

      Given below is information (uname -a, cat /proc/cpuinfo, vim
      version) on two machines named crash_machine and recover_machine.

      Bug: On recover_machine, vim refuses to read a swp file created
      on crash_machine.

      crash_machine>uname -a

      Linux 2.6.18-1.2257.fc5 #1 SMP Fri Dec 15 16:07:14 EST 2006 x86_64
      x86_64 x86_64 GNU/Linux

      crash_machine>cat /proc/cpuinfo
      processor : 0
      vendor_id : GenuineIntel
      cpu family : 15
      model : 4
      model name : Intel(R) Xeon(TM) CPU 3.20GHz
      stepping : 3
      cpu MHz : 3200.194
      cache size : 2048 KB
      physical id : 0
      siblings : 2
      core id : 0
      cpu cores : 1
      fpu : yes
      fpu_exception : yes
      cpuid level : 5
      wp : yes
      flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr
      pge mca cmov pat pse36 clflush dts acpi mmx fxsr
      sse sse2 ss ht tm syscall lm constant_tsc pni
      monitor ds_cpl cid cx16 xtpr
      bogomips : 6403.81
      clflush size : 64
      cache_alignment : 128
      address sizes : 36 bits physical, 48 bits virtual
      power management:
      processor : 1
      vendor_id : GenuineIntel
      cpu family : 15
      model : 4
      model name : Intel(R) Xeon(TM) CPU 3.20GHz
      stepping : 3
      cpu MHz : 3200.194
      cache size : 2048 KB
      physical id : 0
      siblings : 2
      core id : 0
      cpu cores : 1
      fpu : yes
      fpu_exception : yes
      cpuid level : 5
      wp : yes
      flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr
      pge mca cmov pat pse36 clflush dts acpi mmx fxsr
      sse sse2 ss ht tm syscall lm constant_tsc pni
      monitor ds_cpl cid cx16 xtpr
      bogomips : 6399.39
      clflush size : 64
      cache_alignment : 128
      address sizes : 36 bits physical, 48 bits virtual
      power management:

      crash_machine> vim --version
      VIM - Vi IMproved 7.0 (2006 May 7, compiled Jul 25 2006 10:55:29)
      Included patches: 1-4, 7-17, 19-26, 29-31, 33-42
      Modified by <bugzilla@...>
      Compiled by <bugzilla@...>
      Huge version without GUI. Features included (+) or not (

      recover_machine>uname -a

      Linux 2.6.18-1.2869.fc6 #1 SMP Wed Dec 20 14:51:46 EST 2006 i686
      i686 i386 GNU/Linux

      recover_machine>cat /proc/cpuinfo

      processor : 0
      vendor_id : GenuineIntel
      cpu family : 15
      model : 4
      model name : Intel(R) Pentium(R) 4 CPU 3.00GHz
      stepping : 3
      cpu MHz : 2992.859
      cache size : 2048 KB
      physical id : 0
      siblings : 1
      core id : 0
      cpu cores : 1
      fdiv_bug : no
      hlt_bug : no
      f00f_bug : no
      coma_bug : no
      fpu : yes
      fpu_exception : yes
      cpuid level : 5
      wp : yes
      flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge
      mca cmov pat pse36 clflush dts acpi mmx fxsr sse
      sse2 ss ht tm pbe lm constant_tsc up pni monitor
      ds_cpl est cid cx16 xtpr
      bogomips : 5989.43

      recover_machine> vim
      VIM - Vi IMproved 7.0 (2006 May 7, compiled Sep 28 2006 23:02:04)
      Included patches: 1, 3-4, 7-9, 11, 13-17, 19-26, 29-31, 34-44, 47,
      50-56, 58-64, 66-73, 75, 77-92, 94-107, 109
      Modified by <bugzilla@...>
      Compiled by <bugzilla@...>
      Huge version without GUI. Features included (+) or not (-):

      Thanks,

      --Suresh


      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • Bram Moolenaar
      ... [...] ... One machine is 32 bit, the other 64 bit. That is different enough for Vim not to be able to read the .swp file. For performance reasons Vim
      Message 2 of 2 , Nov 4, 2007
        Suresh Govindachar wrote:

        > Given below is information (uname -a, cat /proc/cpuinfo, vim
        > version) on two machines named crash_machine and recover_machine.
        >
        > Bug: On recover_machine, vim refuses to read a swp file created
        > on crash_machine.
        >
        > crash_machine>uname -a
        >
        > Linux 2.6.18-1.2257.fc5 #1 SMP Fri Dec 15 16:07:14 EST 2006 x86_64
        > x86_64 x86_64 GNU/Linux

        [...]

        > recover_machine>uname -a
        >
        > Linux 2.6.18-1.2869.fc6 #1 SMP Wed Dec 20 14:51:46 EST 2006 i686
        > i686 i386 GNU/Linux

        One machine is 32 bit, the other 64 bit. That is different enough for
        Vim not to be able to read the .swp file. For performance reasons Vim
        stores "int" and "long" values directly in the .swp file. Thus byte
        order and sizeof() matters.

        You might be able to compile a 32 bit Vim on the 64 bit machine and read
        the .swp files on both machines.

        --
        From "know your smileys":
        ;-0 Can't find shift key
        ,-9 Kann Umschalttaste nicht finden

        /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
        /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
        \\\ download, build and distribute -- http://www.A-A-P.org ///
        \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

        --~--~---------~--~----~------------~-------~--~----~
        You received this message from the "vim_dev" maillist.
        For more information, visit http://www.vim.org/maillist.php
        -~----------~----~----~----~------~----~------~--~---
      Your message has been successfully submitted and would be delivered to recipients shortly.