Advertisement
ff19

Untitled

Oct 10th, 2019
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. # MrX @ harukanomacbook-pro in ~/src/cpython on git:master x [19:52:39] C:130
  2. $ DYLD_FRAMEWORK_PATH=/Users/MrX/src/cpython lldb -- ./python.exe -E -S -m sysconfig --generate-posix-vars --help
  3. (lldb) target create "./python.exe"
  4. Current executable set to '/Users/MrX/src/cpython/python.exe' (x86_64).
  5. (lldb) settings set -- target.run-args "-E" "-S" "-m" "sysconfig" "--generate-posix-vars" "--help"
  6. (lldb) r
  7. Process 60114 launched: '/Users/MrX/src/cpython/python.exe' (x86_64)
  8. Process 60114 stopped
  9. * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x27)
  10. frame #0: 0x00000001001cd2f8 Python`_PyMem_DebugCheckAddress(api='r', p=0x000000000000002f) at obmalloc.c:2376:16
  11. 2373 }
  12. 2374
  13. 2375 /* Check the API id */
  14. -> 2376 id = (char)q[-SST];
  15. 2377 if (id != api) {
  16. 2378 msg = msgbuf;
  17. 2379 snprintf(msgbuf, sizeof(msgbuf), "bad ID: Allocated using API '%c', verified using API '%c'", id, api);
  18. (lldb) bt
  19. * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x27)
  20. * frame #0: 0x00000001001cd2f8 Python`_PyMem_DebugCheckAddress(api='r', p=0x000000000000002f) at obmalloc.c:2376:16
  21. frame #1: 0x00000001001c9b78 Python`_PyMem_DebugRawFree(ctx=0x0000000100509a28, p=0x000000000000002f) at obmalloc.c:2208:5
  22. frame #2: 0x00000001001ca0f0 Python`PyMem_RawFree(ptr=0x000000000000002f) at obmalloc.c:595:5
  23. frame #3: 0x00000001003a33d6 Python`calculate_argv0_path_framework(calculate=0x00007ffeefbfe938, pathconfig=0x00007ffeefbfeb18) at getpath.c:1147:9
  24. frame #4: 0x00000001003a13e1 Python`calculate_argv0_path(calculate=0x00007ffeefbfe938, pathconfig=0x00007ffeefbfeb18) at getpath.c:1182:14
  25. frame #5: 0x00000001003a0d2e Python`calculate_path(calculate=0x00007ffeefbfe938, pathconfig=0x00007ffeefbfeb18) at getpath.c:1478:14
  26. frame #6: 0x00000001003a079f Python`_PyPathConfig_Calculate(pathconfig=0x00007ffeefbfeb18, config=0x00007ffeefbfef10) at getpath.c:1578:14
  27. frame #7: 0x0000000100362006 Python`pathconfig_calculate(pathconfig=0x00007ffeefbfeb18, config=0x00007ffeefbfef10) at pathconfig.c:317:18
  28. frame #8: 0x0000000100360e77 Python`config_calculate_pathconfig(config=0x00007ffeefbfef10) at pathconfig.c:335:14
  29. frame #9: 0x0000000100360c9b Python`_PyConfig_InitPathConfig(config=0x00007ffeefbfef10) at pathconfig.c:402:27
  30. frame #10: 0x0000000100350a4e Python`config_read(config=0x00007ffeefbfef10) at initconfig.c:1686:18
  31. frame #11: 0x000000010034f29d Python`PyConfig_Read(config=0x00007ffeefbfef10) at initconfig.c:2463:14
  32. frame #12: 0x000000010036945b Python`pyinit_core(runtime=0x0000000100549b98, src_config=0x00007ffeefbff218, tstate_p=0x00007ffeefbff118) at pylifecycle.c:857:14
  33. frame #13: 0x0000000100369240 Python`Py_InitializeFromConfig(config=0x00007ffeefbff218) at pylifecycle.c:1038:14
  34. frame #14: 0x00000001003a678d Python`pymain_init(args=0x00007ffeefbff460) at main.c:66:14
  35. frame #15: 0x00000001003a51d9 Python`pymain_main(args=0x00007ffeefbff460) at main.c:653:23
  36. frame #16: 0x00000001003a5277 Python`Py_BytesMain(argc=7, argv=0x00007ffeefbff4d8) at main.c:686:12
  37. frame #17: 0x0000000100000f82 python.exe`main(argc=7, argv=0x00007ffeefbff4d8) at python.c:16:12
  38. frame #18: 0x00007fff67e9a405 libdyld.dylib`start + 1
  39. frame #19: 0x00007fff67e9a405 libdyld.dylib`start + 1
  40. (lldb) f 3
  41. frame #3: 0x00000001003a33d6 Python`calculate_argv0_path_framework(calculate=0x00007ffeefbfe938, pathconfig=0x00007ffeefbfeb18) at getpath.c:1147:9
  42. 1144 if (!module) {
  43. 1145 /* We are in the build directory so use the name of the
  44. 1146 executable - we know that the absolute path is passed */
  45. -> 1147 PyMem_RawFree(*calculate->argv0_path);
  46. 1148 calculate->argv0_path = _PyMem_RawWcsdup(pathconfig->program_full_path);
  47. 1149 if (calculate->argv0_path == NULL) {
  48. 1150 status = _PyStatus_NO_MEMORY();
  49. (lldb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement