title: python.net import clr throws invalid pointer error
body: <p>When i am trying to import clr in my python code i get the following error:</p>
  
  <pre><code>*** Error in `python': free(): invalid pointer: 0xb0f1a120 ***
  Stacktrace:
  
    at &lt;unknown&gt; &lt;0xffffffff&gt;
    at (wrapper managed-to-native) Python.Runtime.Runtime.Py_Initialize () &lt;0xffffffff&gt;
    at Python.Runtime.Runtime.Initialize () &lt;0x00023&gt;
    at Python.Runtime.PythonEngine.Initialize () &lt;0x00047&gt;
    at Python.Runtime.PythonEngine.InitExt () &lt;0x0000b&gt;
    at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) &lt;0xffffffff&gt;
  
  Native stacktrace:
  
      /usr/lib/libmonoboehm-2.0.so.1(+0xcb5f4) [0xb1b5e5f4]
      [0xb7745d14]
      [0xb7745d1e]
      /lib/i386-linux-gnu/libc.so.6(gsignal+0x47) [0xb7592607]
      /lib/i386-linux-gnu/libc.so.6(abort+0x143) [0xb7595a33]
      /lib/i386-linux-gnu/libc.so.6(+0x68e53) [0xb75cce53]
      /lib/i386-linux-gnu/libc.so.6(+0x7333a) [0xb75d733a]
      /lib/i386-linux-gnu/libc.so.6(+0x73fad) [0xb75d7fad]
      /usr/lib/i386-linux-gnu/libpython2.7.so(PyString_InternInPlace+0x97) [0xb0b3a157]
      /usr/lib/i386-linux-gnu/libpython2.7.so(PyString_InternFromString+0x2f) [0xb0ad78ef]
      /usr/lib/i386-linux-gnu/libpython2.7.so(PyType_Ready+0xb50) [0xb0b356e0]
      /usr/lib/i386-linux-gnu/libpython2.7.so(_Py_ReadyTypes+0xcd) [0xb0b3d47d]
      /usr/lib/i386-linux-gnu/libpython2.7.so(Py_InitializeEx+0x6d) [0xb0b5d5dd]
      /usr/lib/i386-linux-gnu/libpython2.7.so(Py_Initialize+0x1b) [0xb0b5df7b]
      [0xb481553c]
      [0xb4814f2c]
      [0xb480af98]
      [0xb480ae84]
      [0xb480af0d]
      /usr/lib/libmonoboehm-2.0.so.1(+0x29723) [0xb1abc723]
  
  Debug info from gdb:
  
  Could not attach to process.  If your uid matches the uid of the target
  process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
  again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
  ptrace: Operation not permitted.
  No threads.
  
  =================================================================
  Got a SIGABRT while executing native code. This usually indicates
  a fatal error in the mono runtime or one of the native libraries 
  used by your application.
  =================================================================
  </code></pre>
  
  <p>I found a reference to a similar problem (<a href="https://mail.python.org/pipermail/pythondotnet/2014-October/001598.html" rel="nofollow">https://mail.python.org/pipermail/pythondotnet/2014-October/001598.html</a>) but i can not figure out how to use the npython binary for example and i do not wish to rebuild python with shared-library enabled.</p>
  
  <p>Any hints or help will be greatly appreciated.</p>