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

Re: stl function crashes vim

Expand Messages
  • Johannes Zellner
    ... well, I ve something like ~50 option settings I guess and it crashes only every ~10 - 20 time or so. This is really weird. Maybe I ll just work on with a
    Message 1 of 5 , Oct 1, 2000
    • 0 Attachment
      On Sun, Oct 01, 2000 at 03:33:06PM +0200, Bram Moolenaar wrote:
      >
      > Johannes Zellner wrote:
      >
      > > I've
      > >
      > > fun! KeyPressedHandler()
      > > if strpart(getline('.'), 0, col('.')) =~ '^\s*$'
      > > if '' != mapcheck('<tab>', 'i')
      > > iunmap <tab>
      > > endif
      > > elseif '' == mapcheck('<tab>', 'i')
      > > imap <tab> <c-p>
      > > endif
      > > return ''
      > > endfun
      > > set statusline=%{KeyPressedHandler()}%<[%n]%f%y%r%1*%m%*%w%=%(C\ %c%V%)%4(%)%-10(L\ %l(%L)%)%4(%)%p%%
      > >
      > > this crashes from time to time vim if I enter insert mode with 'i'.
      > > Unfortunately I cannot reproduce it with a debugging version, even
      > > if linked against efence :-(
      > >
      > > Maybe someone can reproduce it ? (vim-6.0h)
      >
      > A quick test didn't make it crash for me. Any special conditions (one or two
      > windows, option settings...)?

      well, I've something like ~50 option settings I guess and it
      crashes only every ~10 - 20 time or so. This is really weird.
      Maybe I'll just work on with a debugging version, wait, until
      it crashes, and then examine the core.

      --
      Johannes
    • Johannes Zellner
      ... it seems to happen only if I compile with gcc -fomit-frame-pointer it crashes then in misc2.c:1110 (vim_free). Unfortunately, debugging is not possible
      Message 2 of 5 , Oct 1, 2000
      • 0 Attachment
        On Sun, Oct 01, 2000 at 04:03:05PM +0200, Johannes Zellner wrote:
        > On Sun, Oct 01, 2000 at 03:33:06PM +0200, Bram Moolenaar wrote:
        > >
        > > Johannes Zellner wrote:
        > >
        > > > I've
        > > >
        > > > fun! KeyPressedHandler()
        > > > if strpart(getline('.'), 0, col('.')) =~ '^\s*$'
        > > > if '' != mapcheck('<tab>', 'i')
        > > > iunmap <tab>
        > > > endif
        > > > elseif '' == mapcheck('<tab>', 'i')
        > > > imap <tab> <c-p>
        > > > endif
        > > > return ''
        > > > endfun
        > > > set statusline=%{KeyPressedHandler()}%<[%n]%f%y%r%1*%m%*%w%=%(C\ %c%V%)%4(%)%-10(L\ %l(%L)%)%4(%)%p%%
        > > >
        > > > this crashes from time to time vim if I enter insert mode with 'i'.
        > > > Unfortunately I cannot reproduce it with a debugging version, even
        > > > if linked against efence :-(
        > > >
        > > > Maybe someone can reproduce it ? (vim-6.0h)
        > >
        > > A quick test didn't make it crash for me. Any special conditions (one or two
        > > windows, option settings...)?
        >
        > well, I've something like ~50 option settings I guess and it
        > crashes only every ~10 - 20 time or so. This is really weird.
        > Maybe I'll just work on with a debugging version, wait, until
        > it crashes, and then examine the core.

        it seems to happen only if I compile with
        gcc -fomit-frame-pointer
        it crashes then in misc2.c:1110 (vim_free). Unfortunately,
        debugging is not possible when compiled with -fomit-frame-pointer.

        --
        Johannes
      • Bram Moolenaar
        ... Isn t that -vomit-frame-pointer? Sorry... -- hundred-and-one symptoms of being an internet addict: 118. You are on a first-name basis with your ISP s
        Message 3 of 5 , Oct 2, 2000
        • 0 Attachment
          Johannes Zellner wrote:

          > > well, I've something like ~50 option settings I guess and it
          > > crashes only every ~10 - 20 time or so. This is really weird.
          > > Maybe I'll just work on with a debugging version, wait, until
          > > it crashes, and then examine the core.
          >
          > it seems to happen only if I compile with
          > gcc -fomit-frame-pointer
          > it crashes then in misc2.c:1110 (vim_free). Unfortunately,
          > debugging is not possible when compiled with -fomit-frame-pointer.

          Isn't that -vomit-frame-pointer?

          Sorry...

          --
          hundred-and-one symptoms of being an internet addict:
          118. You are on a first-name basis with your ISP's staff.

          /// Bram Moolenaar Bram@... http://www.moolenaar.net \\\
          \\\ Vim: http://www.vim.org ICCF Holland: http://iccf-holland.org ///
        Your message has been successfully submitted and would be delivered to recipients shortly.