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

Re: [BUG] VIM exits when do profiling

Expand Messages
  • Bram Moolenaar
    ... I tried disabling SIGPROF on FreeBSD, doesn t seem to make a difference. Did you try that -D in the Makefile, as I suggested? -- ... /// Bram Moolenaar --
    Message 1 of 5 , Mar 5, 2008
    • 0 Attachment
      Liu Yubao wrote:

      > >> I found VIM(https://vim.svn.sourceforge.net/svnroot/vim/vim7@929)
      > >> exits when I enable profiling flags in src/Makefile:
      > >
      > >> I compile and test the code on Debian Etch.
      > >
      > > I'm running on FreeBSD, it works just fine without disabling that
      > > SIGPROF line. Is there something about Debian that works differently
      > > with signals?
      > >
      >
      > I test the program below on Debian Etch, Debian Lenny, Ubuntu Gusty,
      > Fedora Core and FreeBSD, strangely it doesn't trigger func_deadly()
      > only on FreeBSD. I'm not sure whether it's a bug or a feature in Linux
      > kernel.
      >
      > Here are some version information:
      > Debian Etch: linux kernel 2.6.18-4-686, gcc 4.1.2, libc 2.3.6
      > Debian Lenny: linux kernel 2.6.22-3-686, gcc 4.2.3, libc 2.7
      > Ubuntu Gusty: linux kernel 2.6.22-14-generic(x86_64), gcc 4.1.3, libc 2.6.1
      > Fedora Core 6: linux kernel 2.6.20(x86_64), gcc 4.1.2, libc 2.5
      > Fedora Core 7: linux kernel 2.6.23.8-34(x86_64), gcc 4.1.2
      > FreeBSD 6.2: gcc 3.4.6
      > FreeBSD 7.0: gcc 4.2.1

      I tried disabling SIGPROF on FreeBSD, doesn't seem to make a difference.
      Did you try that -D in the Makefile, as I suggested?

      --
      From "know your smileys":
      :'-D Laughing so much that they're crying

      /// 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
      -~----------~----~----~----~------~----~------~--~---
    • Liu Yubao
      ... Yes, I tried, it works on Linux. It seems it s a problem specific to Linux. Best regards, Liu Yubao --~--~---------~--~----~------------~-------~--~----~
      Message 2 of 5 , Mar 5, 2008
      • 0 Attachment
        Bram Moolenaar wrote:
        > Liu Yubao wrote:
        >
        >> I test the program below on Debian Etch, Debian Lenny, Ubuntu Gusty,
        >> Fedora Core and FreeBSD, strangely it doesn't trigger func_deadly()
        >> only on FreeBSD. I'm not sure whether it's a bug or a feature in Linux
        >> kernel.
        >>
        >> Here are some version information:
        >> Debian Etch: linux kernel 2.6.18-4-686, gcc 4.1.2, libc 2.3.6
        >> Debian Lenny: linux kernel 2.6.22-3-686, gcc 4.2.3, libc 2.7
        >> Ubuntu Gusty: linux kernel 2.6.22-14-generic(x86_64), gcc 4.1.3, libc 2.6.1
        >> Fedora Core 6: linux kernel 2.6.20(x86_64), gcc 4.1.2, libc 2.5
        >> Fedora Core 7: linux kernel 2.6.23.8-34(x86_64), gcc 4.1.2
        >> FreeBSD 6.2: gcc 3.4.6
        >> FreeBSD 7.0: gcc 4.2.1
        >
        > I tried disabling SIGPROF on FreeBSD, doesn't seem to make a difference.
        > Did you try that -D in the Makefile, as I suggested?
        >

        Yes, I tried, it works on Linux. It seems it's a problem specific to Linux.


        Best regards,

        Liu Yubao

        --~--~---------~--~----~------------~-------~--~----~
        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.