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

Python 64 bit problems on Mac OS X

Expand Messages
  • björn
    Hi, The Python interface on Mac OS X 10.7 Lion crashes Vim reliably when issuing (see backtrace below) ... The crash happens inside Python and it only happens
    Message 1 of 1 , Nov 5, 2011
    • 0 Attachment
      Hi,

      The Python interface on Mac OS X 10.7 Lion crashes Vim reliably when
      issuing (see backtrace below)

      :python import sys; sys.stdout.write("Anything");

      The crash happens inside Python and it only happens when compiling a
      64 bit binary of Vim. That is, if I compile Vim 32 bit the problem
      goes away.

      Is there anybody on this list who is familiar with Vim's Python
      interface and could guess what causes this? I'm guessing some part of
      the Python interface calls into a 32 bit library even if Vim itself
      compiles 64 bit. Is there some way to control this? A quick Google
      search did not reveal anything useful.

      Thanks,
      Björn

      ----------
      Here's a sample gdb backtrace:

      Program received signal EXC_BAD_ACCESS, Could not access memory.
      Reason: KERN_PROTECTION_FAILURE at address: 0x0000000100000000
      0x0000000100324c58 in PyEval_EvalFrameEx ()
      (gdb) bt
      #0 0x0000000100324c58 in PyEval_EvalFrameEx ()
      #1 0x0000000100327cd8 in PyEval_EvalCodeEx ()
      #2 0x0000000100327d4d in PyEval_EvalCode ()
      #3 0x000000010033f08f in Py_CompileString ()
      #4 0x000000010033f21b in PyRun_StringFlags ()
      #5 0x00000001003400d0 in PyRun_SimpleStringFlags ()
      #6 0x0000000100178405 in Python_SaveThread [inlined] () at src/if_python.c:666
      #7 0x0000000100178405 in DoPythonCommand (eap=0x0, cmd=0x1013084c7
      "import sys; sys.stdout.write(\"Anything\");") at if_python.c:668
      #8 0x0000000100178546 in ex_python (eap=0x7fff5fbff530) at if_python.c:705
      #9 0x000000010005efc3 in do_cmdline (cmdline=0x7fff5fbff630 "`??_?",
      fgetline=0x7fff5fbff630, cookie=0x7fff5fbff630, flags=1606415920) at
      ex_docmd.c:2675
      #10 0x00000001000c1ef5 in nv_colon (cap=0x7fff5fbff6a0) at normal.c:5412
      #11 0x00000001000cd0b0 in normal_cmd (oap=0x1ffffffff,
      toplevel=1606416144) at normal.c:1193
      #12 0x0000000100187f50 in main_loop (cmdwin=1606416352,
      noexmode=1606416352) at main.c:1336
      #13 0x000000010018bcc2 in main (argc=6391760, argv=0x1001a7558) at main.c:1025

      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    Your message has been successfully submitted and would be delivered to recipients shortly.