-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
Weird test failures related to tracebacks #95818
Comments
Are you able to provide a standalone test case that reproduces the issue? Still inside pytest is probably fine, but it would be helpful to disentangle it from the rest of your test suite. What version of pytest are you using? |
Sorry, no the failure only seems to have when everything runs isolating
openpyxl/tests doesn't help.
Package Version Editable project location
---------- ------- ---------------------------------
attrs 22.1.0
et-xmlfile 1.1.0
iniconfig 1.1.1
lxml 4.9.1
openpyxl 3.1.0b1 /Users/charlieclark/temp/openpyxl
packaging 21.3
Pillow 9.2.0
pip 22.2
pluggy 1.0.0
py 1.11.0
pyparsing 3.0.9
pytest 7.1.2
setuptools 63.2.0
tomli 2.0.1
Pandas/numpy also failed to build in this temporary install.
FWIW here is Apple's almighty dump
***
Process: Python [93938]
Path:
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 3.11.0b5 (3.11.0b5)
Code Type: X86-64 (Native)
Parent Process: zsh [92750]
Responsible: iTerm2 [675]
User ID: 501
Date/Time: 2022-08-09 19:08:39.008 +0200
OS Version: Mac OS X 10.15.7 (19H2026)
Report Version: 12
Bridge OS Version: 6.6 (19P6064)
Anonymous UUID: 5846515E-E076-A276-63F1-B5646934545F
Sleep/Wake UUID: 11D8DFBC-CE2C-4CF2-9B30-DC629630C8B8
Time Awake Since Boot: 950000 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
Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0:
-->
__TEXT 000000010e85f000-000000010e861000 [ 8K]
r-x/r-x SM=COW
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/Resources/Python.app/Contents/MacOS/Python
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff6887232a __pthread_kill +
10
1 libsystem_pthread.dylib 0x00007fff6892ee60 pthread_kill + 430
2 libsystem_c.dylib 0x00007fff6878993e raise + 26
3 libsystem_platform.dylib 0x00007fff689235fd _sigtramp + 29
4 ??? 0x00000001122396b0 0 + 4599289520
5 org.python.python 0x000000010e94285f
_PyObject_GenericGetAttrWithDict + 364
6 org.python.python 0x000000010e9e5c1c
_PyEval_EvalFrameDefault + 27991
7 org.python.python 0x000000010e90573a gen_send_ex2 + 209
8 org.python.python 0x000000010e904413 gen_iternext + 25
9 org.python.python 0x000000010e9eb3be
_PyEval_EvalFrameDefault + 50425
10 org.python.python 0x000000010e9f3df3 _PyEval_Vector +
92
11 org.python.python 0x000000010e8edd8a
_PyObject_FastCallDictTstate + 217
12 org.python.python 0x000000010e9609c1 slot_tp_init + 180
13 org.python.python 0x000000010e957b33 type_call + 130
14 org.python.python 0x000000010e8edabc
_PyObject_MakeTpCall + 126
15 org.python.python 0x000000010e9ed33d
_PyEval_EvalFrameDefault + 58488
16 org.python.python 0x000000010e90573a gen_send_ex2 + 209
17 org.python.python 0x000000010e9e24ee
_PyEval_EvalFrameDefault + 13865
18 org.python.python 0x000000010e90573a gen_send_ex2 + 209
19 org.python.python 0x000000010e904aaa gen_send_ex + 28
20 org.python.python 0x000000010e9f04b8
_PyEval_EvalFrameDefault + 71155
21 org.python.python 0x000000010e9f3df3 _PyEval_Vector +
92
22 org.python.python 0x000000010e8edd8a
_PyObject_FastCallDictTstate + 217
23 org.python.python 0x000000010e95f09e slot_tp_call + 176
24 org.python.python 0x000000010e8ee826 _PyObject_Call +
122
25 org.python.python 0x000000010e9f0e5d
_PyEval_EvalFrameDefault + 73624
26 org.python.python 0x000000010e9f3df3 _PyEval_Vector +
92
27 org.python.python 0x000000010e9f0e5d
_PyEval_EvalFrameDefault + 73624
28 org.python.python 0x000000010e9f3df3 _PyEval_Vector +
92
29 org.python.python 0x000000010e9f0e5d
_PyEval_EvalFrameDefault + 73624
30 org.python.python 0x000000010e9f3df3 _PyEval_Vector +
92
31 org.python.python 0x000000010e8edd8a
_PyObject_FastCallDictTstate + 217
32 org.python.python 0x000000010e95f09e slot_tp_call + 176
33 org.python.python 0x000000010e8edabc
_PyObject_MakeTpCall + 126
34 org.python.python 0x000000010e9ed33d
_PyEval_EvalFrameDefault + 58488
35 org.python.python 0x000000010e9f3df3 _PyEval_Vector +
92
36 org.python.python 0x000000010e9f0e5d
_PyEval_EvalFrameDefault + 73624
37 org.python.python 0x000000010e9f3df3 _PyEval_Vector +
92
38 org.python.python 0x000000010e8edd8a
_PyObject_FastCallDictTstate + 217
39 org.python.python 0x000000010e95f09e slot_tp_call + 176
40 org.python.python 0x000000010e8edabc
_PyObject_MakeTpCall + 126
41 org.python.python 0x000000010e9ed33d
_PyEval_EvalFrameDefault + 58488
42 org.python.python 0x000000010e9f3df3 _PyEval_Vector +
92
43 org.python.python 0x000000010e9f0e5d
_PyEval_EvalFrameDefault + 73624
44 org.python.python 0x000000010e9f3df3 _PyEval_Vector +
92
45 org.python.python 0x000000010e8edd8a
_PyObject_FastCallDictTstate + 217
46 org.python.python 0x000000010e95f09e slot_tp_call + 176
47 org.python.python 0x000000010e8edabc
_PyObject_MakeTpCall + 126
48 org.python.python 0x000000010e9ed33d
_PyEval_EvalFrameDefault + 58488
49 org.python.python 0x000000010e9de169 PyEval_EvalCode +
278
50 org.python.python 0x000000010ea4d96c run_eval_code_obj
+ 72
51 org.python.python 0x000000010ea4d8f2 run_mod + 96
52 org.python.python 0x000000010ea4d5d7 pyrun_file + 133
53 org.python.python 0x000000010ea4cff9
_PyRun_SimpleFileObject + 286
54 org.python.python 0x000000010ea4c6dd
_PyRun_AnyFileObject + 138
55 org.python.python 0x000000010ea6eb80
pymain_run_file_obj + 234
56 org.python.python 0x000000010ea6e357 pymain_run_file +
85
57 org.python.python 0x000000010ea6dd0b Py_RunMain + 1071
58 org.python.python 0x000000010ea6ece8 pymain_main + 35
59 org.python.python 0x000000010ea6efac Py_BytesMain + 42
60 libdyld.dylib 0x00007fff6872acc9 start + 1
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x000000011477cdc0 rcx:
0x00007fbebdda5a58 rdx: 0x0000000000000000
rdi: 0x0000000000000307 rsi: 0x000000000000000b rbp:
0x00007fbebdda5a80 rsp: 0x00007fbebdda5a58
r8: 0x0000000000000001 r9: 0xcccccccccccccccd r10:
0x000000011477cdc0 r11: 0x0000000000000246
r12: 0x0000000000000307 r13: 0x000000010ec0b360 r14:
0x000000000000000b r15: 0x0000000000000016
rip: 0x00007fff6887232a rfl: 0x0000000000000246 cr2:
0x000000010ea47017
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133
Binary Images:
0x10e85f000 - 0x10e860fff +org.python.python (3.11.0b5 -
3.11.0b5) <B9391E52-F692-3971-ADBB-ECE3FC3FCFC3>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/Resources/Python.app/Contents/MacOS/Python
0x10e864000 - 0x10ebcdff7 +org.python.python (3.11.0b5,
[c] 2001-2021 Python Software Foundation. - 3.11.0b5)
<3AB626AD-90AA-3280-908E-E557E0A5926B>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/Python
0x10eef4000 - 0x10eefdfff +libintl.8.dylib (0)
<236BF583-AB3B-3369-88F7-8CAB3CF59F98> /opt/local/lib/libintl.8.dylib
0x10ef04000 - 0x10f004ffb +libiconv.2.dylib (0)
<D6D77891-C450-39DB-A41A-5E92B58E9B38> /opt/local/lib/libiconv.2.dylib
0x10f32f000 - 0x10f32fff7 +_opcode.cpython-311-darwin.so
(0) <32F669C4-D950-33D0-81BC-7A5B4E12BE34>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_opcode.cpython-311-darwin.so
0x10f433000 - 0x10f433ff3 +_typing.cpython-311-darwin.so
(0) <4E05C206-E8A6-3FB6-86AE-5911B1108FB3>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_typing.cpython-311-darwin.so
0x10f537000 - 0x10f53bffb +_csv.cpython-311-darwin.so (0)
<8FAC5FC0-C0A7-37F0-A5B4-FAC77A8BD191>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_csv.cpython-311-darwin.so
0x10f542000 - 0x10f545ffb +binascii.cpython-311-darwin.so
(0) <F7E9947E-2A59-38CE-B06C-007500881F14>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/binascii.cpython-311-darwin.so
0x10f54a000 - 0x10f55aff3 +libz.1.dylib (0)
<76BBBEA6-78BE-3F45-A52F-C729CDAC6FD7> /opt/local/lib/libz.1.dylib
0x10f55f000 - 0x10f564ff3 +zlib.cpython-311-darwin.so (0)
<B83CEA96-FE93-36C9-8D07-6D78EEA2045D>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/zlib.cpython-311-darwin.so
0x10f56b000 - 0x10f56dff7 +_bz2.cpython-311-darwin.so (0)
<2DF1A764-10F8-340C-A5E8-2E5766D4842A>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_bz2.cpython-311-darwin.so
0x10f572000 - 0x10f581ff3 +libbz2.1.0.dylib (0)
<51D64A7C-E68A-313C-8AA2-5D175A1FCBBD> /opt/local/lib/libbz2.1.0.dylib
0x10f587000 - 0x10f58cff7 +_lzma.cpython-311-darwin.so
(0) <C955C514-A5BF-3688-B56D-5559B317B223>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_lzma.cpython-311-darwin.so
0x10f593000 - 0x10f5aeffb +liblzma.5.dylib (0)
<26A6467F-672F-3FF0-9057-143CEB4D0C54> /opt/local/lib/liblzma.5.dylib
0x10f5b5000 - 0x10f5bafff +_struct.cpython-311-darwin.so
(0) <CB6E1E24-4BFD-3CF7-8A1E-9451638DB792>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_struct.cpython-311-darwin.so
0x10f6c2000 - 0x10f6ccff7 +math.cpython-311-darwin.so (0)
<43D58C44-75C5-3816-BB20-A1CDE5ED2D6D>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/math.cpython-311-darwin.so
0x10f6d4000 - 0x10f6d5ff3 +_bisect.cpython-311-darwin.so
(0) <3E150164-8808-3D64-B085-E38F713023E3>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_bisect.cpython-311-darwin.so
0x10f6da000 - 0x10f6dbffb +_random.cpython-311-darwin.so
(0) <7CC460C6-B96E-3486-8325-A442533A4908>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_random.cpython-311-darwin.so
0x10f6e0000 - 0x10f6e4ff7 +_sha512.cpython-311-darwin.so
(0) <152F1040-D964-3B3B-ACB4-5940A51823C2>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_sha512.cpython-311-darwin.so
0x10f6e9000 - 0x10f6f6fff +_socket.cpython-311-darwin.so
(0) <1E202825-0279-308C-8974-9C4D24701F09>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_socket.cpython-311-darwin.so
0x10f700000 - 0x10f704fff +select.cpython-311-darwin.so
(0) <0F228810-9D03-3FA9-B815-E5DB279C2BF8>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/select.cpython-311-darwin.so
0x10f70a000 - 0x10f711ff7 +array.cpython-311-darwin.so
(0) <7BBB382E-5E77-323E-9E0B-FD497D41771D>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/array.cpython-311-darwin.so
0x10f71a000 - 0x10f727ff3
+_datetime.cpython-311-darwin.so (0)
<E6562B55-3F2E-341F-AD78-FEB48AC0FA41>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_datetime.cpython-311-darwin.so
0x10f835000 - 0x10f944ff7
+unicodedata.cpython-311-darwin.so (0)
<10464E98-9BF8-351C-8419-F32FFCA9A428>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/unicodedata.cpython-311-darwin.so
0x10f94b000 - 0x10f94bfff +_uuid.cpython-311-darwin.so
(0) <F6A082A8-A80E-37FD-946A-C9EA373F34EC>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_uuid.cpython-311-darwin.so
0x10fb4f000 - 0x10fb54ff3 +_json.cpython-311-darwin.so
(0) <ABA35B65-CE61-3548-B1A4-CAA694A9D699>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_json.cpython-311-darwin.so
0x10fb5a000 - 0x10fb5cffb +fcntl.cpython-311-darwin.so
(0) <16B7FEB8-FE88-35A4-9CDB-8B3BFDBF880A>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/fcntl.cpython-311-darwin.so
0x10fb61000 - 0x10fb63fff
+_posixsubprocess.cpython-311-darwin.so (0)
<65DCFC2D-72C7-3463-93C2-55DBCB9613A6>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_posixsubprocess.cpython-311-darwin.so
0x10fc68000 - 0x10fc99ff7 +_decimal.cpython-311-darwin.so
(0) <41FC8DD8-3CFA-3E87-8131-78940E022E42>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_decimal.cpython-311-darwin.so
0x10fdaf000 - 0x10fdb7ff7
+_elementtree.cpython-311-darwin.so (0)
<E3220446-2AD3-3FDC-B0DA-229770CFE41A>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_elementtree.cpython-311-darwin.so
0x10fdc3000 - 0x10fdcafff +pyexpat.cpython-311-darwin.so
(0) <878E52F9-7036-3B3F-A568-C0CEDD152687>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/pyexpat.cpython-311-darwin.so
0x10fdd5000 - 0x10fdf0ffb +libexpat.1.dylib (0)
<17A563AB-69A0-381D-937B-4AD1941DB7EF> /opt/local/lib/libexpat.1.dylib
0x10fdfa000 - 0x10ff2dff3 +etree.cpython-311-darwin.so
(0) <C5533AFC-AAA8-32EE-B2A8-61AAF84FE0D9>
/Users/USER/*/etree.cpython-311-darwin.so
0x110036000 - 0x110061ff7 +libxslt.1.dylib (0)
<5AD24BE4-FC49-395E-8E5F-0138F4F0CDB7> /opt/local/lib/libxslt.1.dylib
0x11006d000 - 0x11007bfff +libexslt.0.dylib (0)
<36ADE947-5D76-3094-A0A8-B151E62FED2F> /opt/local/lib/libexslt.0.dylib
0x110082000 - 0x110163fff +libxml2.2.dylib (0)
<69F57FAC-B19B-33F3-BCA4-8E6D6EBADEFB> /opt/local/lib/libxml2.2.dylib
0x110196000 - 0x11030bfff +libicui18n.67.dylib (0)
<5039463E-ACA3-3154-A0BB-8D49B25D1854>
/opt/local/lib/libicui18n.67.dylib
0x110413000 - 0x11052aff3 +libicuuc.67.dylib (0)
<FF7DCF3D-F0D6-33D9-A4DC-2B62808A6B4A> /opt/local/lib/libicuuc.67.dylib
0x1105a0000 - 0x1120b5fff +libicudata.67.dylib (0)
<1E22CDA4-5B7F-3301-915E-4DBBF12FD98C>
/opt/local/lib/libicudata.67.dylib
0x1121b7000 - 0x1121d2ffb
+_elementpath.cpython-311-darwin.so (0)
<5D7F6F61-308E-3C8A-A769-1474BEE1CD31>
/Users/USER/*/_elementpath.cpython-311-darwin.so
0x1124f3000 - 0x1125baff7 +_imaging.cpython-311-darwin.so
(0) <767725FA-67D9-30C2-8AB7-1B6227E10366>
/Users/USER/*/_imaging.cpython-311-darwin.so
0x1125f3000 - 0x11267afff +libopenjp2.2.5.0.dylib (0)
<91766682-E5AF-36DE-8E46-40AAE99E8EBC>
/Users/USER/*/libopenjp2.2.5.0.dylib
0x11268f000 - 0x1126aefff +libz.1.2.12.dylib (0)
<EC5EE9E5-62F2-30C7-81BF-3CC21F535CA1> /Users/USER/*/libz.1.2.12.dylib
0x1126bb000 - 0x1127c2ffb +libtiff.5.dylib (0)
<4B1926FB-F45D-3E14-9B20-F59D66CA7D97> /Users/USER/*/libtiff.5.dylib
0x1127eb000 - 0x112812fff +libxcb.1.1.0.dylib (0)
<FBC4D3AC-D5BD-34C4-A505-34579B35238D> /Users/USER/*/libxcb.1.1.0.dylib
0x11282f000 - 0x11285efff +liblzma.5.dylib (0)
<58C7D1A4-1FEC-316C-B897-43F18ADC5DD5> /Users/USER/*/liblzma.5.dylib
0x11286f000 - 0x112872ff7 +libXau.6.dylib (0)
<5F107B7E-E6F0-3211-88EA-D68D1A4FF4A2> /Users/USER/*/libXau.6.dylib
0x11287f000 - 0x112882fff +libXdmcp.6.dylib (0)
<C019AD02-BD14-398D-A4FD-E9E4AFB4B6E0> /Users/USER/*/libXdmcp.6.dylib
0x112a93000 - 0x112a99ff7 +_hashlib.cpython-311-darwin.so
(0) <2B4D5365-3FE8-372F-978D-623557A2D2FC>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_hashlib.cpython-311-darwin.so
0x112aa3000 - 0x112d00e37 +libcrypto.3.dylib (0)
<AD68A2F5-4312-32AF-88DC-FDCE7C337183>
/opt/local/libexec/*/libcrypto.3.dylib
0x112e0c000 - 0x112e1afff +legacy.dylib (0)
<6D1D1692-7938-3AA0-AE94-4CBD9FB4F0BD> /opt/local/libexec/*/legacy.dylib
0x112e27000 - 0x112e2dfff +_blake2.cpython-311-darwin.so
(0) <03B904AE-FA67-3170-B5DD-301F045F52E7>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_blake2.cpython-311-darwin.so
0x113033000 - 0x113036ff7 +_heapq.cpython-311-darwin.so
(0) <9C8E3161-EFA1-32F4-8FBB-4DD9897A71E8>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_heapq.cpython-311-darwin.so
0x113f3b000 - 0x113f3eff3 +mmap.cpython-311-darwin.so (0)
<DF182C6F-3A0F-3812-AD56-612A655ED52E>
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/mmap.cpython-311-darwin.so
0x113f44000 - 0x113f47ffb +_webp.cpython-311-darwin.so
(0) <5089828F-6EF3-36C0-8DF7-A2AE73FB4CAF>
/Users/USER/*/_webp.cpython-311-darwin.so
0x113f54000 - 0x113fdbffb +libwebp.7.dylib (0)
<FD33750A-1586-31F9-A220-CBC00F45B121> /Users/USER/*/libwebp.7.dylib
0x113ff4000 - 0x113fffff7 +libwebpmux.3.dylib (0)
<AA50AB8C-D13C-3B47-8AE8-4E219152EE78> /Users/USER/*/libwebpmux.3.dylib
0x11400c000 - 0x11400fffb +libwebpdemux.2.dylib (0)
<118DD760-5E69-3074-BE33-B142B9C9BE8A>
/Users/USER/*/libwebpdemux.2.dylib
0x1146b1000 - 0x114743267 dyld (750.7)
<9F48F7F8-94D0-3793-99B7-DDEF657EF956> /usr/lib/dyld
0x7fff2ea22000 - 0x7fff2eea2ff9 com.apple.CoreFoundation (6.9
- 1678.104) <DFD82191-CCB6-3664-B803-5717036927AC>
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff65237000 - 0x7fff65239ff7
libDiagnosticMessagesClient.dylib (112)
<C94F3B7B-1854-38EB-9778-834501C53B3F>
/usr/lib/libDiagnosticMessagesClient.dylib
0x7fff6570d000 - 0x7fff6570efff libSystem.B.dylib (1281.100.1)
<5A20AE6C-BF4D-3689-B7D2-19F0721F6375> /usr/lib/libSystem.B.dylib
0x7fff659f3000 - 0x7fff65a45fff libc++.1.dylib (902.1)
<59A8239F-C28A-3B59-B8FA-11340DC85EDC> /usr/lib/libc++.1.dylib
0x7fff65a46000 - 0x7fff65a5bffb libc++abi.dylib (902)
<E692F14F-C65E-303B-9921-BB7E97D77855> /usr/lib/libc++abi.dylib
0x7fff664c7000 - 0x7fff664c9fff libfakelink.dylib (149.1)
<36146CB2-E6A5-37BB-9EE8-1B4034D8F3AD> /usr/lib/libfakelink.dylib
0x7fff665d9000 - 0x7fff66830fff libicucore.A.dylib (64261.1.1)
<66CDEADD-1B4A-3AEA-951F-EA4DBF0BEB09> /usr/lib/libicucore.A.dylib
0x7fff6756f000 - 0x7fff675a2fde libobjc.A.dylib (787.1)
<6DF81160-5E7F-3E31-AA1E-C875E3B98AF6> /usr/lib/libobjc.A.dylib
0x7fff67c4b000 - 0x7fff67c5dff3 libz.1.dylib (76.0.1)
<E3495313-4CFF-34C4-AD9F-5DE24F66E15D> /usr/lib/libz.1.dylib
0x7fff6850c000 - 0x7fff68511ff3 libcache.dylib (83)
<AF488D13-9E89-35E0-B078-BE37CC5B8586> /usr/lib/system/libcache.dylib
0x7fff68512000 - 0x7fff6851dfff libcommonCrypto.dylib
(60165.120.1) <C7912BE5-993E-3581-B2A0-6AABDC8C5562>
/usr/lib/system/libcommonCrypto.dylib
0x7fff6851e000 - 0x7fff68525fff libcompiler_rt.dylib (101.2)
<49B8F644-5705-3F16-BBE0-6FFF9B17C36E>
/usr/lib/system/libcompiler_rt.dylib
0x7fff68526000 - 0x7fff6852fff7 libcopyfile.dylib (166.40.1)
<3C481225-21E7-370A-A30E-0CCFDD64A92C> /usr/lib/system/libcopyfile.dylib
0x7fff68530000 - 0x7fff685c2fdb libcorecrypto.dylib
(866.140.2) <E9AAA2A6-D0D4-328A-BEA2-4DC5E513BA30>
/usr/lib/system/libcorecrypto.dylib
0x7fff686cf000 - 0x7fff6870fff0 libdispatch.dylib (1173.100.2)
<CD9C059C-91D9-30E8-8926-5B9CD0D5D4F5> /usr/lib/system/libdispatch.dylib
0x7fff68710000 - 0x7fff68746fff libdyld.dylib (750.7)
<AB99C9EE-7127-3451-89AB-339F8F2CEE61> /usr/lib/system/libdyld.dylib
0x7fff68747000 - 0x7fff68747ffb libkeymgr.dylib (30)
<DB3337BE-01CA-3425-BD0C-87774FC0CDC0> /usr/lib/system/libkeymgr.dylib
0x7fff68755000 - 0x7fff68755ff7 liblaunch.dylib (1738.140.3)
<E2CFD17D-F36C-3734-8F37-16798799EF9E> /usr/lib/system/liblaunch.dylib
0x7fff68756000 - 0x7fff6875bff7 libmacho.dylib (959.0.1)
<AA613A9C-961A-3B67-B696-4622FA59FC4E> /usr/lib/system/libmacho.dylib
0x7fff6875c000 - 0x7fff6875eff3 libquarantine.dylib (110.40.6)
<6CADF28C-2F20-3FA5-9FB9-49EAB0FD2489>
/usr/lib/system/libquarantine.dylib
0x7fff6875f000 - 0x7fff68760ff7 libremovefile.dylib (48)
<7C7EFC79-BD24-33EF-B073-06AED234593E>
/usr/lib/system/libremovefile.dylib
0x7fff68761000 - 0x7fff68778ff3 libsystem_asl.dylib (377.60.4)
<BDE4E1E6-BB8F-3EAC-A9CD-53B9FBD96554>
/usr/lib/system/libsystem_asl.dylib
0x7fff68779000 - 0x7fff68779ff7 libsystem_blocks.dylib (74)
<0D53847E-AF5F-3ACF-B51F-A15DEA4DEC58>
/usr/lib/system/libsystem_blocks.dylib
0x7fff6877a000 - 0x7fff68801fff libsystem_c.dylib (1353.100.4)
<BCD3F031-4A3F-32CF-AB9A-D6EE7A7499D4> /usr/lib/system/libsystem_c.dylib
0x7fff68802000 - 0x7fff68805ffb libsystem_configuration.dylib
(1061.141.2) <393137B7-3631-3450-B6F4-95EECD3ADDFF>
/usr/lib/system/libsystem_configuration.dylib
0x7fff68806000 - 0x7fff68809fff libsystem_coreservices.dylib
(114.1) <72857ADA-AA97-398B-B089-F50B2E89064B>
/usr/lib/system/libsystem_coreservices.dylib
0x7fff6880a000 - 0x7fff68812fff libsystem_darwin.dylib
(1353.100.4) <19242BF1-BAF6-3DF0-AAD3-93E3E0870DBE>
/usr/lib/system/libsystem_darwin.dylib
0x7fff68813000 - 0x7fff6881afff libsystem_dnssd.dylib
(1096.100.3) <EBB4C2C2-E031-3094-B40A-E67BF261D295>
/usr/lib/system/libsystem_dnssd.dylib
0x7fff6881b000 - 0x7fff6881cffb libsystem_featureflags.dylib
(17) <29FD922A-EC2C-3F25-BCCC-B58D716E60EC>
/usr/lib/system/libsystem_featureflags.dylib
0x7fff6881d000 - 0x7fff6886aff7 libsystem_info.dylib (538.1)
<D057695A-F11C-3863-971C-EA1EBF8662B1>
/usr/lib/system/libsystem_info.dylib
0x7fff6886b000 - 0x7fff68897ff7 libsystem_kernel.dylib
(6153.141.66) <FF081F3A-F653-3F8F-9E64-9F34792EEDB3>
/usr/lib/system/libsystem_kernel.dylib
0x7fff68898000 - 0x7fff688dffff libsystem_m.dylib (3178)
<00F331F1-0D09-39B3-8736-1FE90E64E903> /usr/lib/system/libsystem_m.dylib
0x7fff688e0000 - 0x7fff68907fff libsystem_malloc.dylib
(283.100.6) <8549294E-4C53-36EB-99F3-584A7393D8D5>
/usr/lib/system/libsystem_malloc.dylib
0x7fff68908000 - 0x7fff68915ffb
libsystem_networkextension.dylib (1095.140.2)
<F06C65C5-2CBE-313C-96E1-A09240F9FE57>
/usr/lib/system/libsystem_networkextension.dylib
0x7fff68916000 - 0x7fff6891fff7 libsystem_notify.dylib
(241.100.2) <FA22F928-D91B-3AA5-96BB-3186AC0FB264>
/usr/lib/system/libsystem_notify.dylib
0x7fff68920000 - 0x7fff68928fef libsystem_platform.dylib
(220.100.1) <009A7C1F-313A-318E-B9F2-30F4C06FEA5C>
/usr/lib/system/libsystem_platform.dylib
0x7fff68929000 - 0x7fff68933fff libsystem_pthread.dylib
(416.100.3) <62CB1A98-0B8F-31E7-A02B-A1139927F61D>
/usr/lib/system/libsystem_pthread.dylib
0x7fff68934000 - 0x7fff68938ff3 libsystem_sandbox.dylib
(1217.141.9) <75C7915D-19C4-3F32-B320-394BA4B18655>
/usr/lib/system/libsystem_sandbox.dylib
0x7fff68939000 - 0x7fff6893bfff libsystem_secinit.dylib
(62.100.2) <F80872AA-E1FD-3D7E-8729-467656EC6561>
/usr/lib/system/libsystem_secinit.dylib
0x7fff6893c000 - 0x7fff68943ffb libsystem_symptoms.dylib
(1238.120.2) <702D0910-5C34-3D43-9631-8BD215DE4FE1>
/usr/lib/system/libsystem_symptoms.dylib
0x7fff68944000 - 0x7fff6895aff2 libsystem_trace.dylib
(1147.120.1) <BC141783-66D9-3137-A783-211B38E49ADB>
/usr/lib/system/libsystem_trace.dylib
0x7fff6895c000 - 0x7fff68961ff7 libunwind.dylib (35.4)
<42B7B509-BAFE-365B-893A-72414C92F5BF> /usr/lib/system/libunwind.dylib
0x7fff68962000 - 0x7fff68997ffe libxpc.dylib (1738.140.3)
<8DA7D88F-AE2F-3BCF-8426-8D041E57A9AA> /usr/lib/system/libxpc.dylib
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 1
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: 148810856
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=450.8M resident=0K(0%)
swapped_out_or_unallocated=450.8M(100%)
Writable regions: Total=139.7M written=0K(0%) resident=0K(0%)
swapped_out=0K(0%) unallocated=139.7M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Kernel Alloc Once 8K 1
MALLOC 85.7M 57
MALLOC guard page 16K 4
MALLOC_LARGE (reserved) 384K 3 reserved VM
address space (unallocated)
Stack 16.0M 1
Stack Guard 4K 1
VM_ALLOCATE 37.0M 38
__DATA 4121K 109
__DATA_CONST 996K 47
__LINKEDIT 394.8M 73
__OBJC_RO 32.3M 1
__OBJC_RW 1908K 2
__TEXT 56.2M 102
__UNICODE 564K 1
shared memory 12K 3
=========== ======= =======
TOTAL 629.7M 443
TOTAL, minus reserved VM space 629.3M 443
Model: MacBookPro16,2, BootROM 1731.140.2.0.0 (iBridge:
19.16.16064.0.0,0), 4 processors, Quad-Core Intel Core i5, 2 GHz, 16 GB,
SMC
Graphics: kHW_IntelIrisPlusGraphicsItem, Intel Iris Plus Graphics,
spdisplays_builtin
Memory Module: BANK 0/ChannelA-DIMM0, 8 GB, LPDDR4X, 3733 MHz, SK Hynix,
-
Memory Module: BANK 2/ChannelB-DIMM0, 8 GB, LPDDR4X, 3733 MHz, SK Hynix,
-
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x7BF),
wl0: Oct 28 2020 14:13:29 version 9.30.357.42.32.5.48 FWID 01-767f6cce
Bluetooth: Version 7.0.6f8, 3 services, 27 devices, 1 incoming serial
ports
Network Service: USB 10/100/1000 LAN, Ethernet, en7
Network Service: Wi-Fi, AirPort, en0
USB Device: USB 3.1 Bus
USB Device: USB3.0 Hub
USB Device: NS1081
USB Device: USB3.0 Hub
USB Device: USB3.0 Hub
USB Device: USB 10/100/1000 LAN
USB Device: USB 3.1 Bus
USB Device: USB2.0 Hub
USB Device: USB Billboard Device
USB Device: USB 2.0 Hub
USB Device: CHERRY Wired Keyboard
USB Device: cyberJack Secoder
USB Device: USB2.0 Hub
USB Device: Magic Trackpad 2
USB Device: USB2.0 Hub
USB Device: Miscellaneous Device
USB Device: Apple T2 Bus
USB Device: Touch Bar Backlight
USB Device: Touch Bar Display
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Headset
USB Device: Ambient Light Sensor
USB Device: FaceTime HD Camera (Built-in)
USB Device: Apple T2 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 86.0
Thunderbolt Bus: MacBook Pro, Apple Inc., 86.0
|
Any idea how you ended up with
|
What is "everything" exactly? |
Since I can't reproduce on my end, could you try debugging with a monkey-patch of the traceback display code, along these lines?
|
pytest -rf openpyxl or tox -e py311 openpyxl |
No. This is obviously a bug, which is why I'm reporting it but it's not in any of my code. I suspect this is coming from some kind of interaction between pytest and Python 3.11 in a race condition when lots of tests are run, which is the only way I can reproduce it. |
It could be a bug in pytest, openpyxl, tox or python. Please report it to the other projects so that they can investigate and, if the bug is in python, narrow it down to a small reproducer that we can look into. |
It's obviously not a bug in openpyxl. The same code relevant to the test hasn't been touched for years and the seg fault only appeared on CI last week and only with Python 3.11 which is why I submitted the bug. We1 test against Python ≥ 3.6, including PyPy, and the problem only occurs with Python 3.11 but can be reliably reproduced. |
It's not a segfault, it's an exception. If you can't reduce this to something that doesn't involve 3 third-party programs, or debug it like I suggested, then the next option is to report it to pytest and see if they can. (they seem to be using frozensets for paths, so maybe they will know what happened). |
As the problem does not stem directly from the code being tested, or even from an individual test, see the extensive multiversion test history, I'm limited in what I can debug directly. I will report the problem to pytest but there's definitely some kind of combination with Python 3.11 and this is recent. I've been running CI against 3.11 since before the first beta. I do this so that the library can be used with Python 3.11 as soon as this is released but with failures like this I'll have to mark openpyxl as not suitable for use with Python 3.11. From a relevant segfault
|
Your original report was about an exception being raised, and you twice referred to it as a segfault in followup comments. Is there a segfault? I'm finding this bug report very confusing.
I believe everything you say (I believed you the first time), but none of this is helping me fix anything. |
Were all the loaded extension modules built against the same (beta) version of Python that you ran when the failure happened? |
|
Are you able to provide such a link for the last version of this testrun that does not fail? |
I think I found it: https://foss.heptapod.net/openpyxl/openpyxl/-/jobs/618303 Were there no ResourceWarnings then about 'sample.xlsx' not being closed? |
I'm getting a different crash when attempting to reproduce:
This reproduces consistently for me, but only if I run the entire suite (not any subset of the test files that I've tried). |
That resource warning is new: f40bc7f |
Let me try running with a non-debug build... |
Okay, with a non-debug build I can reproduce this reliably too (but it's a
___________ test_read_single_cell_formula[False-='Sheet2 - Numbers'!D5] ___________
exc = <class 'ResourceWarning'>
value = ResourceWarning("unclosed file <_io.BufferedReader name='sample.xlsx'>")
tb = <traceback object at 0x7f3a89f47000>, limit = None, chain = True
def format_exception(exc, /, value=_sentinel, tb=_sentinel, limit=None, \
chain=True):
"""Format a stack trace and the exception information.
The arguments have the same meaning as the corresponding arguments
to print_exception(). The return value is a list of strings, each
ending in a newline and some containing internal newlines. When
these lines are concatenated and printed, exactly the same text is
printed as does print_exception().
"""
value, tb = _parse_value_tb(exc, value, tb)
> te = TracebackException(type(value), value, tb, limit=limit, compact=True)
chain = True
exc = <class 'ResourceWarning'>
limit = None
tb = <traceback object at 0x7f3a89f47000>
value = ResourceWarning("unclosed file <_io.BufferedReader name='sample.xlsx'>")
/home/brandtbucher/cpython/Lib/traceback.py:139:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/brandtbucher/cpython/Lib/traceback.py:688: in __init__
self.stack = StackSummary._extract_from_extended_frame_gen(
_seen = {139889394044544}
capture_locals = False
compact = True
exc_traceback = <traceback object at 0x7f3a89f47000>
exc_type = <class 'ResourceWarning'>
exc_value = ResourceWarning("unclosed file <_io.BufferedReader name='sample.xlsx'>")
is_recursive_call = False
limit = None
lookup_lines = True
max_group_depth = 10
max_group_width = 15
self = <traceback.TracebackException object at 0x7f3a89c03ed0>
/home/brandtbucher/cpython/Lib/traceback.py:416: in _extract_from_extended_frame_gen
for f, (lineno, end_lineno, colno, end_colno) in frame_gen:
capture_locals = False
fnames = set()
frame_gen = <generator object _walk_tb_with_full_positions at 0x7f3a89f312a0>
klass = <class 'traceback.StackSummary'>
limit = None
lookup_lines = True
result = []
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tb = <traceback object at 0x7f3a89f47000>
def _walk_tb_with_full_positions(tb):
# Internal version of walk_tb that yields full code positions including
# end line and column information.
while tb is not None:
> positions = _get_code_position(tb.tb_frame.f_code, tb.tb_lasti)
E AttributeError: 'set' object has no attribute 'f_code'
tb = <traceback object at 0x7f3a89f47000>
/home/brandtbucher/cpython/Lib/traceback.py:353: AttributeError |
@pablogsal, smells like poorly-behaved GC objects to me? |
If you can reproduce, could you bisect? |
Okay, I'm able to reproduce without any third-party extension modules loaded. Trying to remove pure-Python dependencies now. |
There's still a pile of Python dependencies I'd like out of the way first. |
It's not just frames:
|
@brandtbucher does this make a difference by any chance?
|
This are the values that makes it fail:
|
Ah, so the warning is what makes the bug start breaking stuff more visibly. Got it. |
Wait, but those values wouldn't make |
0 |
I don't see how |
Let me check then what's going on, I may be miscopied the values |
Oh, wait, we're inverting the condition in the assert. That makes sense now. |
Somehow the problem seems to be that the gc is triggering at the start of the generator, before it has actually even started |
The framer is running
that coroutine creation triggers the GC, that deallocates one of these IO objects that warns and that wants a frame, but the frame that is running is not even started (that _PyMakeCoro is in |
This is the bytecode for that thing:
the gc is triggering in opcode 0: RETURN_GENERATOR |
Ok, here is a sort-of-minimal reproducer (not everything here is essential): import gc
gc.set_threshold(1,1,1)
class GCHello:
def __del__(self):
print("Destroyed from gc")
def foo():
yield
del l
gc.collect()
yield
x = open("my_file")
l = [x, GCHello()]
l.append(l)
del x
del l
f = foo()
next(f)
next(f) Running this:
|
Is 2AM in London, I'm going to sleep 😴 Good hunt! |
Nice debugging! I'm still not sure how this new bug relates to the weird |
I think there is some ownership problems with they frame and it gets deleted while someone is holding to it and then you get garbage. |
@markshannon, looks like |
@pablogsal Thanks for the reproducer. In theory, incomplete frames should be skipped in tracebacks and the like. But it looks like we don't do that in |
…ythonGH-95886) (cherry picked from commit 1b46d11) Co-authored-by: Mark Shannon <mark@hotpy.org>
Is this fixed now? |
I haven't seen a new build for MacPorts or Docker image. So, I'm still getting segfaults on MacOS and failures in CI with rc1
|
I'm closing this as the underlying issue seems to be fixed. Please reopen if we are missing something. |
The added test case looks delicate, so I don't want to disrupt it too much, but it looks like it's emitting the following warning on some buildbots:
Should this be run in a separate process or have the warnings suppressed or something? |
I opened #96696 |
Bug report
I've recently been getting test failures, including segmentation faults, on different arcs (MacOS, Docker images) with Python 3.11 beta. The test itself is not at fault so I guess it's some kind of runtime issue.
And an example from the Docker image at https://foss.heptapod.net/openpyxl/openpyxl/-/jobs/618571
Your environment
MacOS 10.15, official docker image (slim)
Python 3.11 beta 4 & 5
I suspect the issue is somewhere between pytest and Python3.11
The text was updated successfully, but these errors were encountered: