Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault on OS X 10.11 with Python 3.10 #7170

Closed
1 task done
BLKSerene opened this issue Aug 17, 2023 · 6 comments
Closed
1 task done

Segmentation fault on OS X 10.11 with Python 3.10 #7170

BLKSerene opened this issue Aug 17, 2023 · 6 comments
Assignees
Labels
bug V2 Bug related to Pydantic V2 unconfirmed Bug not yet confirmed as valid/applicable

Comments

@BLKSerene
Copy link

BLKSerene commented Aug 17, 2023

Initial Checks

  • I confirm that I'm using Pydantic V2

Description

Hi, it seems that pydantic v2 does not work on old macOSes such as El Capitan 10.11 with Python 3.10.

I suspect that the problem is that pydantic v2 introduced pydantic_core which is writen in Rust, and the Rust version used to build pydantic_core does not target at old macOSes.

pydantic officially support Python 3.7+ which then officially support macOS 10.9+. If there are requirements on the minimum version of macOS, a note in README would be helpful.

A similar issue found in other projects: undertheseanlp/underthesea#677

Example Code

import pydantic # A simple import would fail, so nothing of v2 works on OS X 10.11

Error message:

Segmentation fault: 11

Python, Pydantic & OS Version

Python: 3.10.11
Pydantic: 2.2.0
OS: OS X El Capitan 10.11.6

Selected Assignee: @hramezani

@BLKSerene BLKSerene added bug V2 Bug related to Pydantic V2 unconfirmed Bug not yet confirmed as valid/applicable labels Aug 17, 2023
@hramezani
Copy link
Member

Thanks @BLKSerene for reporting this 🙏

@samuelcolvin , @davidhewitt do you have any idea?

@davidhewitt
Copy link
Contributor

@BLKSerene are you able to share any more details about the crash, maybe a detailed crash log?

@BLKSerene
Copy link
Author

@davidhewitt The only error message shown is (when simply importing pydantic on OS X 10.11):

Segmentation fault: 11

Is there any way in which I could get a more detailed crash log?

@davidhewitt
Copy link
Contributor

@BLKSerene
Copy link
Author

@davidhewitt I found that this issue only happens with pydantic 2.2.0. When upgrading to the latest pydantic 2.2.1, the problem goes away and everything seem to be ok now (but needs to add some tests to prevent regression in future releases I suppose?).

Here is the crash log (pydantic 2.2.0 on OS X 10.11.6):

Process:               Python [524]
Path:                  /Library/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python
Identifier:            Python
Version:               3.10.11 (3.10.11)
Code Type:             X86-64 (Native)
Parent Process:        bash [484]
Responsible:           Terminal [482]
User ID:               501

Date/Time:             2023-08-21 20:08:16.299 +0800
OS Version:            Mac OS X 10.11.6 (15G22010)
Report Version:        11
Anonymous UUID:        D1A03976-B238-A2F2-411D-7A6C04F7D178


Time Awake Since Boot: 240 seconds

System Integrity Protection: enabled

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

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

VM Regions Near 0:
--> 
    __TEXT                 000000010eb0f000-000000010eb13000 [   16K] r-x/r-x SM=COW  /Library/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python

Application Specific Information:
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pydantic_core/_pydantic_core.cpython-310-darwin.so

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   ???                           	000000000000000000 0 + 0
1   _pydantic_core.cpython-310-darwin.so	0x000000010f9e8501 0x10f761000 + 2651393
2   _pydantic_core.cpython-310-darwin.so	0x000000010f9e7f53 0x10f761000 + 2649939
3   _pydantic_core.cpython-310-darwin.so	0x000000010f9e8e36 0x10f761000 + 2653750
4   dyld                          	0x00007fff642be10b ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 265
5   dyld                          	0x00007fff642be284 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40
6   dyld                          	0x00007fff642ba8bd ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 305
7   dyld                          	0x00007fff642ba743 ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 127
8   dyld                          	0x00007fff642ba9b3 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 75
9   dyld                          	0x00007fff642afeb0 dyld::runInitializers(ImageLoader*) + 89
10  dyld                          	0x00007fff642b7308 dlopen + 555
11  libdyld.dylib                 	0x00007fff810f379c dlopen + 59
12  org.python.python             	0x000000010ed21e7f _imp_create_dynamic + 1375
13  org.python.python             	0x000000010ec0c706 cfunction_vectorcall_FASTCALL + 86
14  org.python.python             	0x000000010ecddabd _PyEval_EvalFrameDefault + 28829
15  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
16  org.python.python             	0x000000010ece64df call_function + 175
17  org.python.python             	0x000000010ecdc85a _PyEval_EvalFrameDefault + 24122
18  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
19  org.python.python             	0x000000010ece64df call_function + 175
20  org.python.python             	0x000000010ecdc7cd _PyEval_EvalFrameDefault + 23981
21  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
22  org.python.python             	0x000000010ece64df call_function + 175
23  org.python.python             	0x000000010ecdc8a1 _PyEval_EvalFrameDefault + 24193
24  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
25  org.python.python             	0x000000010ece64df call_function + 175
26  org.python.python             	0x000000010ecdc8a1 _PyEval_EvalFrameDefault + 24193
27  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
28  org.python.python             	0x000000010ece64df call_function + 175
29  org.python.python             	0x000000010ecdc8a1 _PyEval_EvalFrameDefault + 24193
30  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
31  org.python.python             	0x000000010eba700d object_vacall + 429
32  org.python.python             	0x000000010eba72b9 _PyObject_CallMethodIdObjArgs + 249
33  org.python.python             	0x000000010ed1d90d PyImport_ImportModuleLevelObject + 3101
34  org.python.python             	0x000000010ecdb384 _PyEval_EvalFrameDefault + 18788
35  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
36  org.python.python             	0x000000010eccf14d builtin_exec + 333
37  org.python.python             	0x000000010ec0c706 cfunction_vectorcall_FASTCALL + 86
38  org.python.python             	0x000000010ecddabd _PyEval_EvalFrameDefault + 28829
39  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
40  org.python.python             	0x000000010ece64df call_function + 175
41  org.python.python             	0x000000010ecdc85a _PyEval_EvalFrameDefault + 24122
42  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
43  org.python.python             	0x000000010ece64df call_function + 175
44  org.python.python             	0x000000010ecdc7cd _PyEval_EvalFrameDefault + 23981
45  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
46  org.python.python             	0x000000010ece64df call_function + 175
47  org.python.python             	0x000000010ecdc8a1 _PyEval_EvalFrameDefault + 24193
48  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
49  org.python.python             	0x000000010ece64df call_function + 175
50  org.python.python             	0x000000010ecdc8a1 _PyEval_EvalFrameDefault + 24193
51  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
52  org.python.python             	0x000000010eba700d object_vacall + 429
53  org.python.python             	0x000000010eba72b9 _PyObject_CallMethodIdObjArgs + 249
54  org.python.python             	0x000000010ed1d90d PyImport_ImportModuleLevelObject + 3101
55  org.python.python             	0x000000010ecdb384 _PyEval_EvalFrameDefault + 18788
56  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
57  org.python.python             	0x000000010eccf14d builtin_exec + 333
58  org.python.python             	0x000000010ec0c706 cfunction_vectorcall_FASTCALL + 86
59  org.python.python             	0x000000010ecddabd _PyEval_EvalFrameDefault + 28829
60  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
61  org.python.python             	0x000000010ece64df call_function + 175
62  org.python.python             	0x000000010ecdc85a _PyEval_EvalFrameDefault + 24122
63  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
64  org.python.python             	0x000000010ece64df call_function + 175
65  org.python.python             	0x000000010ecdc7cd _PyEval_EvalFrameDefault + 23981
66  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
67  org.python.python             	0x000000010ece64df call_function + 175
68  org.python.python             	0x000000010ecdc8a1 _PyEval_EvalFrameDefault + 24193
69  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
70  org.python.python             	0x000000010ece64df call_function + 175
71  org.python.python             	0x000000010ecdc8a1 _PyEval_EvalFrameDefault + 24193
72  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
73  org.python.python             	0x000000010eba700d object_vacall + 429
74  org.python.python             	0x000000010eba72b9 _PyObject_CallMethodIdObjArgs + 249
75  org.python.python             	0x000000010ed1d90d PyImport_ImportModuleLevelObject + 3101
76  org.python.python             	0x000000010ecdb384 _PyEval_EvalFrameDefault + 18788
77  org.python.python             	0x000000010ecd504f _PyEval_Vector + 383
78  org.python.python             	0x000000010ed4b17a PyRun_InteractiveOneObjectEx + 1002
79  org.python.python             	0x000000010ed49ed9 _PyRun_InteractiveLoopObject + 105
80  org.python.python             	0x000000010ed497bf _PyRun_AnyFileObject + 63
81  org.python.python             	0x000000010ed4da06 PyRun_AnyFileExFlags + 118
82  org.python.python             	0x000000010ed7520e pymain_run_stdin + 142
83  org.python.python             	0x000000010ed74920 pymain_run_python + 464
84  org.python.python             	0x000000010ed74707 Py_RunMain + 23
85  org.python.python             	0x000000010ed75ae2 pymain_main + 50
86  org.python.python             	0x000000010ed75d8a Py_BytesMain + 42
87  libdyld.dylib                 	0x00007fff810f45ad start + 1

Thread 1:
0   libsystem_kernel.dylib        	0x00007fff972615e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff945a0578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib       	0x00007fff9459e341 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x000000010fbaa200  rbx: 0xcd2b017500000000  rcx: 0x0000000000000020  rdx: 0xffffffffffffffe0
  rdi: 0x0000000000000006  rsi: 0x00007fff510eb9e0  rbp: 0x00007fff510eba00  rsp: 0x00007fff510eb9d8
   r8: 0x0000000074aab00c   r9: 0x00007fff74aab06d  r10: 0x0000000000000000  r11: 0x0000000000000013
  r12: 0x000000010fb41760  r13: 0x00007fff642e45c8  r14: 0x000000010fb785a0  r15: 0x0000000000000005
  rip: 0x0000000000000000  rfl: 0x0000000000010246  cr2: 0x0000000000000000
  
Logical CPU:     1
Error Code:      0x00000014
Trap Number:     14


Binary Images:
       0x10eb0f000 -        0x10eb12ff3 +org.python.python (3.10.11 - 3.10.11) <1576DB14-80D9-3F38-9508-A3E460CFA8B0> /Library/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python
       0x10eb21000 -        0x10ee98fff +org.python.python (3.10.11, [c] 2001-2023 Python Software Foundation. - 3.10.11) <80874AD1-E33E-32FA-9FDE-51B4DA771420> /Library/Frameworks/Python.framework/Versions/3.10/Python
       0x10f58c000 -        0x10f58fff7 +readline.cpython-310-darwin.so (0) <2B9DD8A5-C900-3BD9-83C4-F53B9267F4FD> /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload/readline.cpython-310-darwin.so
       0x10f5a0000 -        0x10f5efffb +libncursesw.5.dylib (0) <D2FB1CAE-3E6E-3313-B7EC-B83B91294129> /Library/Frameworks/Python.framework/Versions/3.10/lib/libncursesw.5.dylib
       0x10f608000 -        0x10f60bfff +_opcode.cpython-310-darwin.so (0) <2CCB663A-BA21-3EE5-B6EA-11526BDA4384> /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload/_opcode.cpython-310-darwin.so
       0x10f761000 -        0x10fb40fd7 +_pydantic_core.cpython-310-darwin.so (0) <530CDDBD-9538-3539-A3F8-44A6B00A02FE> /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pydantic_core/_pydantic_core.cpython-310-darwin.so
    0x7fff642ab000 -     0x7fff642e2a47  dyld (360.22) <6B9CD3BA-2D60-3629-A0CB-AB810F55E8DD> /usr/lib/dyld
    0x7fff810f1000 -     0x7fff810f4ffb  libdyld.dylib (360.22) <E0CE4C3B-38DF-37FB-A74E-866938E1AF92> /usr/lib/system/libdyld.dylib
    0x7fff81751000 -     0x7fff81768ff7  libsystem_asl.dylib (323.50.1) <41F8E11F-1BD0-3F1D-BA3A-AA1577ED98A9> /usr/lib/system/libsystem_asl.dylib
    0x7fff81769000 -     0x7fff81769ff7  liblaunch.dylib (765.70.2) <4B800A8C-6C75-3279-92E0-FBA668812B55> /usr/lib/system/liblaunch.dylib
    0x7fff81a97000 -     0x7fff81ac1ff7  libc++abi.dylib (307.4) <D24E06BF-6522-3C4A-BD0C-11C42BA4D8E8> /usr/lib/libc++abi.dylib
    0x7fff81cb5000 -     0x7fff81cb6fff  libsystem_blocks.dylib (65) <1244D9D5-F6AA-35BB-B307-86851C24B8E5> /usr/lib/system/libsystem_blocks.dylib
    0x7fff81d40000 -     0x7fff81f4dfff  libicucore.A.dylib (551.51.6) <142B2AD5-0A50-3382-8213-096E925863F7> /usr/lib/libicucore.A.dylib
    0x7fff83cd2000 -     0x7fff83cd3ffb  libremovefile.dylib (41) <552EF39E-14D7-363E-9059-4565AC2F894E> /usr/lib/system/libremovefile.dylib
    0x7fff83d5c000 -     0x7fff83d60fff  libcache.dylib (75) <9548AAE9-2AB7-3525-9ECE-A2A7C4688447> /usr/lib/system/libcache.dylib
    0x7fff8480c000 -     0x7fff84814fff  libsystem_networkextension.dylib (385.40.36) <66095DC7-6539-38F2-95EE-458F15F6D014> /usr/lib/system/libsystem_networkextension.dylib
    0x7fff84e3a000 -     0x7fff84e3cff7  libsystem_configuration.dylib (802.40.13) <B815C622-96EF-388A-823B-B02618E7F190> /usr/lib/system/libsystem_configuration.dylib
    0x7fff872c9000 -     0x7fff872e7ffb  libedit.3.dylib (43) <1D3E3152-4001-3C19-B56A-7543F1BBA47C> /usr/lib/libedit.3.dylib
    0x7fff87426000 -     0x7fff87442ff7  libsystem_malloc.dylib (67.40.1) <5748E8B2-F81C-34C6-8B13-456213127678> /usr/lib/system/libsystem_malloc.dylib
    0x7fff889c9000 -     0x7fff889daff7  libsystem_trace.dylib (201.10.3) <0ED15BED-B1F8-3845-9EC1-CC0B54B6BF1B> /usr/lib/system/libsystem_trace.dylib
    0x7fff89343000 -     0x7fff89344ffb  libSystem.B.dylib (1226.10.1) <9A358336-F9EE-301B-A00D-D91C591BA684> /usr/lib/libSystem.B.dylib
    0x7fff89345000 -     0x7fff89346fff  libDiagnosticMessagesClient.dylib (100) <4243B6B4-21E9-355B-9C5A-95A216233B96> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff89bd1000 -     0x7fff8a047fff  com.apple.CoreFoundation (6.9 - 1259.22) <53EFA4A7-4614-383E-BEEE-B8B9D9D19FFA> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff8a88a000 -     0x7fff8a8d0ff7  libauto.dylib (186) <999E610F-41FC-32A3-ADCA-5EC049B65DFB> /usr/lib/libauto.dylib
    0x7fff8ac2e000 -     0x7fff8af90f3f  libobjc.A.dylib (680) <7489D2D6-1EFD-3414-B18D-2AECCCC90286> /usr/lib/libobjc.A.dylib
    0x7fff8bb78000 -     0x7fff8bb83ff7  libcommonCrypto.dylib (60075.50.1) <E48A81E7-56B0-37F5-9611-E896B8E16B4D> /usr/lib/system/libcommonCrypto.dylib
    0x7fff8bbdb000 -     0x7fff8bc04fff  libsystem_info.dylib (477.50.4) <FAA9226D-64DE-3769-A6D8-6CABA4B7FF4D> /usr/lib/system/libsystem_info.dylib
    0x7fff8bf3e000 -     0x7fff8bf91ff7  libc++.1.dylib (120.1) <8FC3D139-8055-3498-9AC5-6467CB7F4D14> /usr/lib/libc++.1.dylib
    0x7fff8c9d3000 -     0x7fff8c9dbffb  libsystem_dnssd.dylib (625.60.5) <8BE2BAFE-B2A3-38FA-A960-F6884217F54D> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff8d810000 -     0x7fff8d812fff  libsystem_coreservices.dylib (19.2) <1B3F5AFC-FFCD-3ECB-8B9A-5538366FB20D> /usr/lib/system/libsystem_coreservices.dylib
    0x7fff8ddef000 -     0x7fff8ddf7fef  libsystem_platform.dylib (74.40.2) <29A905EF-6777-3C33-82B0-6C3A88C4BA15> /usr/lib/system/libsystem_platform.dylib
    0x7fff8ded0000 -     0x7fff8ded9ff3  libsystem_notify.dylib (150.40.1) <D48BDE34-0F7E-34CA-A0FF-C578E39987CC> /usr/lib/system/libsystem_notify.dylib
    0x7fff8f1d5000 -     0x7fff8f206ff7  libncurses.5.4.dylib (46) <D4C10699-3E8F-3F42-A695-7490EA4B6B32> /usr/lib/libncurses.5.4.dylib
    0x7fff8f537000 -     0x7fff8f560ff7  libxpc.dylib (765.70.2) <7978B4D9-7970-3302-87FA-75709127DBD2> /usr/lib/system/libxpc.dylib
    0x7fff8ff2d000 -     0x7fff8ff2dff7  libkeymgr.dylib (28) <8371CE54-5FDD-3CE9-B3DF-E98C761B6FE0> /usr/lib/system/libkeymgr.dylib
    0x7fff90496000 -     0x7fff9049bff7  libmacho.dylib (875.1) <318264FA-58F1-39D8-8285-1F6254EE410E> /usr/lib/system/libmacho.dylib
    0x7fff90738000 -     0x7fff907affeb  libcorecrypto.dylib (335.50.2) <4E339108-3997-39D3-BB58-C5A0340E3651> /usr/lib/system/libcorecrypto.dylib
    0x7fff92fc2000 -     0x7fff92fc9ff7  libcompiler_rt.dylib (62) <A13ECF69-F59F-38AE-8609-7B731450FBCD> /usr/lib/system/libcompiler_rt.dylib
    0x7fff938f3000 -     0x7fff93980fef  libsystem_c.dylib (1082.60.1) <0F0C7ED5-3902-3427-9C1D-E2F130B528C5> /usr/lib/system/libsystem_c.dylib
    0x7fff9459d000 -     0x7fff945a6ff7  libsystem_pthread.dylib (138.10.4) <62FC23B9-1DEE-3918-A30D-A58EC95A0720> /usr/lib/system/libsystem_pthread.dylib
    0x7fff945a8000 -     0x7fff945d5fff  libdispatch.dylib (501.40.12) <C7499857-61A5-3D7D-A5EA-65DCC8C3DF92> /usr/lib/system/libdispatch.dylib
    0x7fff949ff000 -     0x7fff94a02fff  libsystem_sandbox.dylib (460.60.4) <71D697CA-7339-37C7-8DAF-3BAA1D57B56A> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff95361000 -     0x7fff95390fc3  libsystem_m.dylib (3105) <8A645D53-92DD-3C2E-8AFA-F28BC63E3657> /usr/lib/system/libsystem_m.dylib
    0x7fff9547e000 -     0x7fff95483ff3  libunwind.dylib (35.3) <F6EB48E5-4D12-359A-AB54-C937FBBE9043> /usr/lib/system/libunwind.dylib
    0x7fff95a4e000 -     0x7fff95a65ff7  libsystem_coretls.dylib (83.40.5) <C90DAE38-4082-381C-A185-2A6A8B677628> /usr/lib/system/libsystem_coretls.dylib
    0x7fff9609d000 -     0x7fff9618fff7  libiconv.2.dylib (44) <F05A0A5A-92A9-3668-8F20-F27CBDA26BE9> /usr/lib/libiconv.2.dylib
    0x7fff96977000 -     0x7fff9697ffff  libcopyfile.dylib (127) <A48637BC-F3F2-34F2-BB68-4C65FD012832> /usr/lib/system/libcopyfile.dylib
    0x7fff96dba000 -     0x7fff96dcbff7  libz.1.dylib (61.20.1) <B3EBB42F-48E3-3287-9F0D-308E04D407AC> /usr/lib/libz.1.dylib
    0x7fff96de8000 -     0x7fff96e4eff7  libsystem_network.dylib (583.50.1) <B52DAB73-92DC-3DA7-B9F4-B899D66445C1> /usr/lib/system/libsystem_network.dylib
    0x7fff96eae000 -     0x7fff96eaeff7  libunc.dylib (29) <DDB1E947-C775-33B8-B461-63E5EB698F0E> /usr/lib/system/libunc.dylib
    0x7fff96f5b000 -     0x7fff96f5dff7  libquarantine.dylib (80) <5B351BEC-27CC-3935-82F3-A065CC764255> /usr/lib/system/libquarantine.dylib
    0x7fff9724a000 -     0x7fff97268ff7  libsystem_kernel.dylib (3248.73.11) <4810EB90-DEEB-3E89-9ACA-BECC351E72F0> /usr/lib/system/libsystem_kernel.dylib
    0x7fff974ce000 -     0x7fff974cffff  libsystem_secinit.dylib (20) <32B1A8C6-DC84-3F4F-B8CE-9A52B47C3E6B> /usr/lib/system/libsystem_secinit.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 110
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=115.7M resident=0K(0%) swapped_out_or_unallocated=115.7M(100%)
Writable regions: Total=46.0M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=46.0M(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                  2048K        2 
Dispatch continuations            4096K        2 
Kernel Alloc Once                    8K        3 
MALLOC                            18.6M       11 
MALLOC guard page                   16K        4 
MALLOC_LARGE (reserved)            384K        3         reserved VM address space (unallocated)
STACK GUARD                          8K        3 
Stack                             16.5M        3 
VM_ALLOCATE                       4100K        5 
__DATA                            3652K       56 
__LINKEDIT                        92.7M       14 
__TEXT                            23.0M       54 
__UNICODE                          552K        2 
shared memory                       12K        4 
===========                     =======  ======= 
TOTAL                            165.4M      152 
TOTAL, minus reserved VM space   165.0M      152 

Model: VMware20,1, BootROM VMW201.00V.20904234.B64.2212051119, 2 processors, 2.48 GHz, 2 GB, SMC 1.16f8
Graphics: Display, PCI, 128 MB
Memory Module: RAM slot #0/RAM slot #0, 2 GB, DRAM, 0 MHz, VMware Virtual RAM, VMW-2048MB
Bluetooth: Version 4.4.6f4, 3 services, 26 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Serial ATA Device: VMware Virtual SATA Hard Drive, 42.95 GB
Serial ATA Device: VMware Virtual SATA CDRW Drive
USB Device: USB Bus
USB Device: VMware Virtual USB Hub
USB Device: Virtual Bluetooth Adapter
USB Device: VMware Virtual USB Keyboard
USB Device: VMware Virtual USB Mouse
USB Device: USB 2.0 Bus
Thunderbolt Bus: 

@davidhewitt
Copy link
Contributor

Thanks. Reading that doesn't give me any substantial clues unfortunately. Given that it's fixed in 2.2.1 I suspect this was resolved by the removal of mimalloc (pydantic/pydantic-core#900). Not much else was changed from 2.2.0.

I think realistically we would struggle to test this, because we use the Github runners and if we tried to test all arch/os/python combinations it would be extremely broad. I'm going to close this as it sounds like the fix has already landed.

(It's not expected that we will add mimalloc again, so please ping if this recurs.)

@davidhewitt davidhewitt closed this as not planned Won't fix, can't repro, duplicate, stale Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug V2 Bug related to Pydantic V2 unconfirmed Bug not yet confirmed as valid/applicable
Projects
None yet
Development

No branches or pull requests

3 participants