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