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

swap files cause vim 6.3 crash

Expand Messages
  • Chris Fonnesbeck
    I am using the latest 6.3 binary for OSX on Tiger, and am experiencing regular crashes whenever vim encounters a file with an associated swap file. The crash
    Message 1 of 4 , Aug 31, 2005
    • 0 Attachment
      I am using the latest 6.3 binary for OSX on Tiger, and am experiencing
      regular crashes whenever vim encounters a file with an associated swap
      file. The crash occurs every time. Here is the crash report:

      Date/Time: 2005-08-31 12:05:14.866 -0400
      OS Version: 10.4.2 (Build 8C46)
      Report Version: 3

      Command: vim
      Path: /Applications/Vim.app/Contents/MacOS/vim
      Parent: WindowServer [64]

      Version: 6.3 (6.3)

      PID: 705
      Thread: 0

      Exception: EXC_BAD_ACCESS (0x0001)
      Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000004

      Thread 0 Crashed:
      0 com.apple.HIToolbox 0x93273e3c AutoSizeDialog + 52
      1 com.macvim.vim 0x00106178 gui_mch_dialog + 1336 (gui_mac.c:5273)
      2 com.macvim.vim 0x00082028 do_dialog + 152 (message.c:2661)
      3 com.macvim.vim 0x00078400 findswapname + 2156 (memline.c:3733)
      4 com.macvim.vim 0x000785c8 ml_open_file + 104 (memline.c:496)
      5 com.macvim.vim 0x00058bfc readfile + 1944 (fileio.c:637)
      6 com.macvim.vim 0x00008900 open_buffer + 312 (buffer.c:137)
      7 com.macvim.vim 0x0006b098 main + 6948 (main.c:1795)
      8 com.macvim.vim 0x00001ce0 _start + 348 (crt.c:272)
      9 com.macvim.vim 0x00001b80 start + 60

      Thread 1:
      0 libSystem.B.dylib 0x9001efec select + 12
      1 com.tcltk.tcllibrary 0x9b51f818 NotifierThreadProc + 432
      2 libSystem.B.dylib 0x9002c3d4 _pthread_body + 96

      Thread 0 crashed with PPC Thread State 64:
      srr0: 0x0000000093273e3c srr1: 0x000000000200f930
      vrsave: 0x0000000000000000
      cr: 0x22424424 xer: 0x0000000000000004 lr:
      0x0000000093273e3c ctr: 0x0000000090b04130
      r0: 0x0000000093273e3c r1: 0x00000000bfffe7a0 r2:
      0x00000000bfffe000 r3: 0x00000000011ab940
      r4: 0x0000000000000190 r5: 0x0000000000007ff1 r6:
      0x0000000000000001 r7: 0x00000000bfffe87c
      r8: 0x000000005e4e3e2c r9: 0x0000000000000000 r10:
      0x0000000000000044 r11: 0x00000000a169bccc
      r12: 0x0000000090b04130 r13: 0x0000000000000001 r14:
      0x00000000011bd840 r15: 0x0000000000000001
      r16: 0x00000000bfffe898 r17: 0x0000000000000000 r18:
      0x00000000bfffe870 r19: 0x00000000bfffe86c
      r20: 0x0000000000000000 r21: 0x00000000bfffe87c r22:
      0x000000000000008a r23: 0x000000000000024e
      r24: 0x00000000bfffe9ac r25: 0x0000000000000000 r26:
      0x00000000bfffe868 r27: 0x0000000000000006
      r28: 0x0000000000000000 r29: 0x0000000000000001 r30:
      0x0000000000000000 r31: 0x0000000000000007

      Binary Images Description:
      0x1000 - 0x127fff com.macvim.vim
      6.3 /Applications/Vim.app/Contents/MacOS/vim
      0x8fe00000 - 0x8fe51fff dyld 43.1 /usr/lib/dyld
      0x90000000 - 0x901a6fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
      0x901fe000 - 0x90202fff libmathCommon.A.dylib
      /usr/lib/system/libmathCommon.A.dylib
      0x90204000 - 0x90257fff com.apple.CoreText 1.0.0
      (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
      0x90284000 - 0x90335fff ATS
      /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
      0x90364000 - 0x9069dfff com.apple.CoreGraphics 1.256.14
      (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
      0x90728000 - 0x90801fff com.apple.CoreFoundation 6.4.3
      (368.12) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
      0x9084a000 - 0x9084afff com.apple.CoreServices 10.4
      (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
      0x9084c000 - 0x9094efff libicucore.A.dylib /usr/lib/libicucore.A.dylib
      0x909a8000 - 0x90a2cfff libobjc.A.dylib /usr/lib/libobjc.A.dylib
      0x90a56000 - 0x90acafff com.apple.framework.IOKit 1.4
      (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
      0x90ae4000 - 0x90af6fff libauto.dylib /usr/lib/libauto.dylib
      0x90afd000 - 0x90dc2fff com.apple.CoreServices.CarbonCore 10.4.1
      (611.1) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
      0x90e25000 - 0x90ea5fff com.apple.CoreServices.OSServices 4.0
      (4.0.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
      0x90eef000 - 0x90f2ffff com.apple.CFNetwork 10.4.2
      (80) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
      0x90f44000 - 0x90f5cfff com.apple.WebServices 1.1.2
      (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
      0x90f6c000 - 0x90feafff com.apple.SearchKit
      1.0.3 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
      0x9102f000 - 0x91056fff com.apple.Metadata 1.1
      (121.6) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
      0x91077000 - 0x91239fff com.apple.security 4.0.1
      (223) /System/Library/Frameworks/Security.framework/Versions/A/Security
      0x9133b000 - 0x91344fff com.apple.DiskArbitration
      2.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
      0x9134b000 - 0x91372fff com.apple.SystemConfiguration
      1.8.0 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
      0x91385000 - 0x9138dfff libbsm.dylib /usr/lib/libbsm.dylib
      0x91391000 - 0x9140ffff com.apple.audio.CoreAudio
      3.0.1 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
      0x9144d000 - 0x9144dfff com.apple.ApplicationServices 10.4
      (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
      0x9144f000 - 0x91487fff com.apple.AE 1.5
      (297) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
      0x914a2000 - 0x9156dfff com.apple.ColorSync
      4.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
      0x915c2000 - 0x91655fff com.apple.print.framework.PrintCore 4.0
      (172.1) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
      0x9169b000 - 0x91758fff com.apple.QD 3.8.6
      (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
      0x91796000 - 0x917f4fff com.apple.HIServices 1.5.0
      (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
      0x91822000 - 0x91845fff com.apple.LangAnalysis
      1.6 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
      0x91859000 - 0x9187efff com.apple.FindByContent
      1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
      0x91891000 - 0x918d2fff com.apple.LaunchServices 10.4.3
      (157) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
      0x918ed000 - 0x91901fff com.apple.speech.synthesis.framework
      3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
      0x9190f000 - 0x91945fff com.apple.ImageIO.framework
      1.0.2 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
      0x91959000 - 0x91a1ffff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
      0x91a6c000 - 0x91a81fff libcups.2.dylib /usr/lib/libcups.2.dylib
      0x91a86000 - 0x91aa2fff libJPEG.dylib
      /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
      0x91aa7000 - 0x91b16fff libJP2.dylib
      /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
      0x91b2d000 - 0x91b31fff libGIF.dylib
      /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
      0x91b33000 - 0x91b4bfff libRaw.dylib
      /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib
      0x91b4e000 - 0x91b91fff libTIFF.dylib
      /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
      0x91b98000 - 0x91bb1fff libPng.dylib
      /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
      0x91bb6000 - 0x91bb9fff libRadiance.dylib
      /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
      0x91bbb000 - 0x91bbbfff com.apple.Accelerate 1.1.1 (Accelerate
      1.1.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
      0x91bbd000 - 0x91ca7fff com.apple.vImage
      2.0 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
      0x91caf000 - 0x91ccefff com.apple.Accelerate.vecLib 3.1.1 (vecLib
      3.1.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
      0x91d3a000 - 0x91d5afff libmx.A.dylib /usr/lib/libmx.A.dylib
      0x91d60000 - 0x91dc5fff libvMisc.dylib
      /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
      0x91dcf000 - 0x91e61fff libvDSP.dylib
      /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
      0x91e7b000 - 0x9240bfff libBLAS.dylib
      /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
      0x92453000 - 0x92763fff libLAPACK.dylib
      /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
      0x92790000 - 0x9281bfff com.apple.DesktopServices
      1.3 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
      0x9285d000 - 0x92a86fff com.apple.Foundation 6.4.1
      (567.12) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
      0x92ba4000 - 0x92c82fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
      0x92ca2000 - 0x92d90fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
      0x92e43000 - 0x92e43fff com.apple.Carbon 10.4
      (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
      0x92e45000 - 0x92e59fff com.apple.ImageCapture
      3.0 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
      0x92e71000 - 0x92e81fff com.apple.speech.recognition.framework
      3.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
      0x92e8d000 - 0x92ea2fff com.apple.securityhi 2.0
      (203) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
      0x92eb4000 - 0x92f3bfff com.apple.ink.framework 101.2
      (69) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
      0x92f4f000 - 0x92f5afff com.apple.help 1.0.3
      (32) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
      0x92f64000 - 0x92f91fff com.apple.openscripting 1.2.2
      (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
      0x92fab000 - 0x92fbbfff com.apple.print.framework.Print 4.0
      (187) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
      0x92fc7000 - 0x9302dfff com.apple.htmlrendering
      1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
      0x9305e000 - 0x930b0fff com.apple.NavigationServices 3.4.1
      (3.4) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
      0x930dc000 - 0x930f9fff com.apple.audio.SoundManager
      3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
      0x9310b000 - 0x93118fff com.apple.CommonPanels 1.2.2
      (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
      0x93121000 - 0x93431fff com.apple.HIToolbox 1.4.3
      (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
      0x94581000 - 0x94590fff libCGATS.A.dylib
      /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
      0x94598000 - 0x945a4fff libCSync.A.dylib
      /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
      0x945e9000 - 0x945fdfff libRIP.A.dylib
      /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
      0x96885000 - 0x968b3fff libncurses.5.4.dylib /usr/lib/libncurses.5.4.dylib
      0x970ca000 - 0x971a5fff libperl.dylib
      /System/Library/Perl/lib/5.8/libperl.dylib
      0x987cf000 - 0x98899fff org.python.python
      2.3.3 /System/Library/Frameworks/Python.framework/Versions/2.3/Python
      0x9b4a7000 - 0x9b530fff com.tcltk.tcllibrary
      8.4.7 /System/Library/Frameworks/Tcl.framework/Versions/8.4/Tcl
      0x9cbba000 - 0x9cbc8fff libz.1.dylib /usr/lib/libz.1.dylib

      Model: PowerBook5,6, BootROM 4.9.1f1, 1 processors, PowerPC G4 (1.2),
      1.67 GHz, 1 GB
      Graphics: ATI Mobility Radeon 9700, ATY,RV360M11, AGP, 128 MB
      Memory Module: SODIMM0/J25LOWER, 512 MB, DDR SDRAM, PC2700U-25330
      Memory Module: SODIMM1/J25UPPER, 512 MB, DDR SDRAM, PC2700U-25330
      AirPort: AirPort Extreme, 400.17 (3.90.34.0.p11)
      Modem: Jump, , V.92, Version 1.0,
      Bluetooth: Version 1.6.0f2, 2 service, 0 devices, 0 incoming serial ports
      Network Service: AirPort, AirPort, en1
      PCI Card: TXN,PCIXXXX-00, cardbus, PC Card
      Parallel ATA Device: MATSHITADVD-R UJ-835E,
      Parallel ATA Device: FUJITSU MHT2080AH, 74.53 GB
      USB Device: Bluetooth HCI, , Up to 12 Mb/sec, 500 mA
      USB Device: Apple Internal Keyboard/Trackpad, Apple Computer, Up to 12
      Mb/sec, 500 mA
    • Jussi Hagman
      ... Well, this is almost identical to the crash you were experiencing before. Vim tries to show a dialog and there is a crash, intrestingly also this time not
      Message 2 of 4 , Sep 1, 2005
      • 0 Attachment
        On 31.8.2005, at 19.07, Chris Fonnesbeck wrote:
        > I am using the latest 6.3 binary for OSX on Tiger, and am experiencing
        > regular crashes whenever vim encounters a file with an associated swap
        > file. The crash occurs every time. Here is the crash report:

        Well, this is almost identical to the crash you were experiencing
        before. Vim tries to show a dialog and there is a crash, intrestingly
        also this time not inside actual vim code but inside Apple's
        HIToolbox code. Maybe we are calling it wrongly but there definitely
        should not be a crash. So there is also a bug from Apple's part.

        I'll try to look a bit into this, but I probably can't do much given
        that I can't reproduce the bug :(

        Greetings,
        Jussi

        --
        Jussi Hagman, jhagman@..., iChat/AIM: jussihagman, ICQ: 54004113
        Studentbyn 4 D 33, 20540 Åbo, Finland +358 50 56 51 170
      • Stephen Riehm
        ... Hi, definitely check the way vim calls apple s API. While I was at Uni I had a similar effect with an X11 library. It took me weeks to find, but in the end
        Message 3 of 4 , Sep 1, 2005
        • 0 Attachment
          On 01.09.2005, at 17:10, Jussi Hagman wrote:

          > Well, this is almost identical to the crash you were experiencing
          > before. Vim tries to show a dialog and there is a crash,
          > intrestingly also this time not inside actual vim code but inside
          > Apple's HIToolbox code. Maybe we are calling it wrongly but there
          > definitely should not be a crash. So there is also a bug from
          > Apple's part.

          Hi,

          definitely check the way vim calls apple's API.

          While I was at Uni I had a similar effect with an X11 library. It
          took me weeks to find, but in the end it was just a matter of swapped
          arguments. If I remember rightly, the API used one parameter to
          determine the structure of the other. Getting the parameters in the
          wrong order didn't cause an immediate error, but it blew up often
          enough that I knew something was going wrong. Once I swapped them
          over the problem was gone.

          I'm not suggesting that someone swapped parameters somewhere, but any
          data that gets past to an API does have to be Just Right™.
          It's tedious work, but that's where I would start, possibly using the
          checkin history to localise recent changes.

          Steve
        • Jussi Hagman
          ... I m gonna do that and search apple s carbon-dev list archives for possible similar issues ... Well, the thing that makes this hard is that I can t
          Message 4 of 4 , Sep 1, 2005
          • 0 Attachment
            On 1.9.2005, at 19.57, Stephen Riehm wrote:

            >
            > On 01.09.2005, at 17:10, Jussi Hagman wrote:
            >
            >
            >> Well, this is almost identical to the crash you were experiencing
            >> before. Vim tries to show a dialog and there is a crash,
            >> intrestingly also this time not inside actual vim code but inside
            >> Apple's HIToolbox code. Maybe we are calling it wrongly but there
            >> definitely should not be a crash. So there is also a bug from
            >> Apple's part.
            >>
            >
            > Hi,
            >
            > definitely check the way vim calls apple's API.

            I'm gonna do that and search apple's carbon-dev list archives for
            possible similar issues


            > I'm not suggesting that someone swapped parameters somewhere, but
            > any data that gets past to an API does have to be Just Right™.

            Well, the thing that makes this hard is that I can't reproduce the
            problem is there anyone else than Chris seeing this problem? Any
            additional info of affected machines could help finding this bug.

            > It's tedious work, but that's where I would start, possibly using
            > the checkin history to localise recent changes.

            In vim 6.3 there aren't really recent changes. AFAIK the last change
            is from last year.

            To me it seems that something in Chris' system is making the bug
            visible. But I'll start with reading the code.

            Greetings,
            Jussi

            --
            Jussi Hagman, jhagman@..., iChat/AIM: jussihagman, ICQ: 54004113
            Studentbyn 4 D 33, 20540 Åbo, Finland +358 50 56 51 170
          Your message has been successfully submitted and would be delivered to recipients shortly.