Segfault on OSX / python (via pip and source)

Help
kaos
2013-04-16
2013-05-18
  • kaos

    kaos - 2013-04-16

    Get the error: Python quit unexpectedly while using the zbar.so plug-in. Any ideas where to start looking? Installed via SimpleCV, but have fully functional python used for a pile of different django apps.

    Python 2.7.2, OSX 10.8.3.

    `Crashed Thread: 0 Dispatch queue: com.apple.main-thread

    Exception Type: EXC_BAD_ACCESS (SIGABRT)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

    VM Regions Near 0:
    -->
    __TEXT 000000010273d000-000000010273e000 [ 4K] r-x/rwx SM=COW /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

    Application Specific Information:
    abort() called

    --snip--

    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0 libsystem_kernel.dylib 0x00007fff98b21212 __pthread_kill + 10
    1 libsystem_c.dylib 0x00007fff90362b54 pthread_kill + 90
    2 libsystem_c.dylib 0x00007fff903a6dce abort + 143
    3 org.python.python 0x0000000102794eaa Py_FatalError + 49
    4 libsystem_c.dylib 0x00007fff9034f94a _sigtramp + 26
    5 libsystem_c.dylib 0x00007fff9034f6b0 strlen + 16
    6 org.python.python 0x00000001027c6da9 PyString_FromString + 26
    7 org.python.python 0x00000001027ae6ff PyDict_GetItemString + 21
    8 org.python.python 0x00000001027dbd29 PyType_Ready + 974
    9 zbar.so 0x00000001078cf3a4 initzbar + 268
    10 org.python.python 0x0000000102788e0d _PyImport_LoadDynamicModule + 183
    11 org.python.python 0x0000000102784af2 0x102743000 + 269042
    12 org.python.python 0x0000000102784692 0x102743000 + 267922
    13 org.python.python 0x00000001027827db PyImport_ImportModuleLevel + 1162
    14 org.python.python 0x0000000102753b1e 0x102743000 + 68382
    15 org.python.python 0x00000001027526c6 PyObject_Call + 97
    16 org.python.python 0x0000000102760018 PyEval_CallObjectWithKeywords + 177
    17 org.python.python 0x000000010275df70 PyEval_EvalFrameEx + 15843
    18 org.python.python 0x0000000102760869 0x102743000 + 120937
    19 org.python.python 0x000000010275c63a PyEval_EvalFrameEx + 9389
    20 org.python.python 0x000000010275a147 PyEval_EvalCodeEx + 1934
    21 org.python.python 0x00000001027599b3 PyEval_EvalCode + 54
    22 org.python.python 0x0000000102795c70 0x102743000 + 339056
    23 org.python.python 0x0000000102795d3c PyRun_FileExFlags + 165
    24 org.python.python 0x0000000102795726 PyRun_SimpleFileExFlags + 410
    25 org.python.python 0x00000001027b9e27 Py_Main + 2715
    26 libdyld.dylib 0x00007fff94f1b7e1 start + 1`

     
    • Andres

      Andres - 2013-05-18

      kaos, ran into this exact problem. After installing zbar through homebrew
      and then pip install it in python, I get a segfault when I try to import.
      Did you figure it out?

      On Mon, Apr 15, 2013 at 10:26 PM, kaos kaos1409@users.sf.net wrote:

      Get the error: Python quit unexpectedly while using the zbar.so plug-in.
      Any ideas where to start looking? Installed via SimpleCV, but have fully
      functional python used for a pile of different django apps.

      Python 2.7.2, OSX 10.8.3.

      `Crashed Thread: 0 Dispatch queue: com.apple.main-thread

      Exception Type: EXC_BAD_ACCESS (SIGABRT)
      Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

      VM Regions Near 0:
      -->
      __TEXT 000000010273d000-000000010273e000 [ 4K] r-x/rwx SM=COW
      /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

      Application Specific Information:
      abort() called

      --snip--

      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0 libsystem_kernel.dylib 0x00007fff98b21212 __pthread_kill + 10
      1 libsystem_c.dylib 0x00007fff90362b54 pthread_kill + 90
      2 libsystem_c.dylib 0x00007fff903a6dce abort + 143
      3 org.python.python 0x0000000102794eaa Py_FatalError + 49
      4 libsystem_c.dylib 0x00007fff9034f94a _sigtramp + 26
      5 libsystem_c.dylib 0x00007fff9034f6b0 strlen + 16
      6 org.python.python 0x00000001027c6da9 PyString_FromString + 26
      7 org.python.python 0x00000001027ae6ff PyDict_GetItemString + 21
      8 org.python.python 0x00000001027dbd29 PyType_Ready + 974
      9 zbar.so 0x00000001078cf3a4 initzbar + 268
      10 org.python.python 0x0000000102788e0d _PyImport_LoadDynamicModule + 183
      11 org.python.python 0x0000000102784af2 0x102743000 + 269042
      12 org.python.python 0x0000000102784692 0x102743000 + 267922
      13 org.python.python 0x00000001027827db PyImport_ImportModuleLevel + 1162
      14 org.python.python 0x0000000102753b1e 0x102743000 + 68382
      15 org.python.python 0x00000001027526c6 PyObject_Call + 97
      16 org.python.python 0x0000000102760018 PyEval_CallObjectWithKeywords + 177
      17 org.python.python 0x000000010275df70 PyEval_EvalFrameEx + 15843
      18 org.python.python 0x0000000102760869 0x102743000 + 120937
      19 org.python.python 0x000000010275c63a PyEval_EvalFrameEx + 9389
      20 org.python.python 0x000000010275a147 PyEval_EvalCodeEx + 1934
      21 org.python.python 0x00000001027599b3 PyEval_EvalCode + 54
      22 org.python.python 0x0000000102795c70 0x102743000 + 339056
      23 org.python.python 0x0000000102795d3c PyRun_FileExFlags + 165
      24 org.python.python 0x0000000102795726 PyRun_SimpleFileExFlags + 410
      25 org.python.python 0x00000001027b9e27 Py_Main + 2715
      26 libdyld.dylib 0x00007fff94f1b7e1 start + 1`


      Segfault on OSX / python (via pip and source)
      https://sourceforge.net/p/zbar/discussion/664596/thread/3a7486d4/?limit=50#e079


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/zbar/discussion/664596/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

Log in to post a comment.