Guest User

Untitled

a guest
Jul 17th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. MATLAB crash file:/Users/robince/matlab_crash_dump.40224
  2. ------------------------------------------------------------------------
  3. Bus error detected at Fri Nov 13 13:36:42 2009
  4. ------------------------------------------------------------------------
  5.  
  6. Configuration:
  7. MATLAB Version: 7.8.0.347 (R2009a)
  8. MATLAB License: 161051
  9. Operating System: Darwin 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31 22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386
  10. Window System: The X.Org Foundation (10402000), display /tmp/launch-2p1ZWg/:0
  11. Current Visual: 0x24 (class 4, depth 24)
  12. Processor ID: x86 Family 6 Model 15 Stepping 10, GenuineIntel
  13. Virtual Machine: Java 1.6.0_15-b03-219 with Apple Inc. Java HotSpot(TM) Client VM mixed mode
  14. Default Encoding: ISO-8859-1
  15.  
  16. Fault Count: 1
  17.  
  18. Register State:
  19. eax = 00000000 ebx = 3323d9be
  20. ecx = 33868710 edx = 00000000
  21. esi = 33011dc0 edi = 0000001a
  22. ebp = b0902938 esp = b0902920
  23. eip = 3325559f flg = 00010282
  24.  
  25. Stack Trace:
  26. [0] Python:type_dealloc~(0x33011dc0, 0x337e1818, 0x33254f0b, 0x33244410) + 26 bytes
  27. [1] Python:dict_dealloc~(0x33860ae0, 0x332e4b40 "__builtin__", 0xb09029bc, 0xb09029b8) + 142 bytes
  28. [2] Python:dict_dealloc~(0x337b39c0, 0x332ee58c "exitfunc", 0xb09029d8, 0x332b96b0) + 142 bytes
  29. [3] Python:_PyImport_Fini~(0x332ee58c "exitfunc", 0, 0, 0) + 82 bytes
  30. [4] Python:Py_Finalize~(673024, 1, 0, 0x00ab4700) + 207 bytes
  31.  
  32.  
  33. #include <mex.h>
  34. #include <Python/Python.h>
  35.  
  36. static int PYRUNNING = 0;
  37.  
  38. static void Cleanup(void)
  39. {
  40. mexPrintf("Finalising Python...\n");
  41. Py_Finalize();
  42. }
  43.  
  44. void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray*prhs[])
  45. {
  46. mexPrintf("hello from mex\n");
  47.  
  48. if (!PYRUNNING) {
  49. Py_Initialize();
  50. PYRUNNING = 1;
  51. mexAtExit(Cleanup);
  52. // add current dir to path for development
  53. PyRun_SimpleString("import sys,os; sys.path.append(os.getcwd())");
  54. PyRun_SimpleString("import mexpywrap");
  55. PyRun_SimpleString("rdr=mexpywrap.MexRedirector();sys.stdin,sys.stdout = rdr,rdr");
  56. }
  57.  
  58. PyRun_SimpleString("print 'hello from python'");
  59.  
  60. }
Add Comment
Please, Sign In to add comment