-
Notifications
You must be signed in to change notification settings - Fork 137
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
Debugger crashes if running under CPython debug build (--with-pydebug) #152
Comments
Process: python3.6 [59748]
Path: /Users/USER/*/python3.6
Identifier: python3.6
Version: 0
Code Type: X86-64 (Native)
Parent Process: bash [24294]
Responsible: Terminal [18684]
User ID: 501
Date/Time: 2020-04-24 22:59:27.703 -0800
OS Version: Mac OS X 10.15.4 (19E287)
Report Version: 12
Bridge OS Version: 4.4 (17P4281)
Anonymous UUID: DE6007FC-8BDC-91D9-D093-77AE8648E82B
Sleep/Wake UUID: FD6DC031-C237-43FC-912C-FE77DB677041
Time Awake Since Boot: 130000 seconds
Time Since Wake: 660 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 0x0000000000000020
Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0x20:
-->
__TEXT 000000010ae9e000-000000010b200000 [ 3464K] r-x/r-x SM=COW /Users/USER//.6
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff72fc933a __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff73085e60 pthread_kill + 430
2 libsystem_c.dylib 0x00007fff72ee093e raise + 26
3 python3.6 0x000000010b1abf33 faulthandler_fatal_error + 307 (faulthandler.c:365)
4 libsystem_platform.dylib 0x00007fff7307a5fd _sigtramp + 29
5 ??? 0xcbcbcbcbcbcbcbcb 0 + 14685055086129564619
6 sip.so 0x000000011232e7a4 sip_api_get_pyobject + 36 (siplib.c:9132)
7 sip.so 0x000000011232e58a sip_api_convert_from_type + 362 (siplib.c:9619)
8 QtCore.so 0x000000010d668114 qtcore_do_find_children(QObject const*, _object*, QString const&, QFlagsQt::FindChildOption, _object*) + 132 (qobject.sip:136)
9 QtCore.so 0x000000010d667ca5 qtcore_FindChildren(QObject const*, _object*, QString const&, QFlagsQt::FindChildOption) + 101 (qobject.sip:179)
10 QtCore.so 0x000000010d664d0f meth_QObject_findChildren(_object*, _object*, _object*) + 399 (qobject.sip:480)
11 python3.6 0x000000010af5230a _PyCFunction_FastCallDict + 1290 (methodobject.c:231)
12 python3.6 0x000000010af526f5 _PyCFunction_FastCallKeywords + 501 (methodobject.c:294)
13 python3.6 0x000000010b09686d call_function + 637 (ceval.c:4824)
14 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
15 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
16 python3.6 0x000000010b099f72 _PyFunction_FastCall + 370 (ceval.c:4906)
17 python3.6 0x000000010b09954e fast_function + 574 (ceval.c:4941)
18 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
19 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
20 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
21 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
22 python3.6 0x000000010b099d27 _PyFunction_FastCallDict + 1431 (ceval.c:5057)
23 python3.6 0x000000010aeafc42 _PyObject_FastCallDict + 562 (abstract.c:2310)
24 python3.6 0x000000010aeaffc2 _PyObject_Call_Prepend + 370 (abstract.c:2373)
25 python3.6 0x000000010aee024a method_call + 106 (classobject.c:317)
26 python3.6 0x000000010aeaf89d PyObject_Call + 477 (abstract.c:2261)
27 python3.6 0x000000010af85640 slot_tp_init + 80 (typeobject.c:6407)
28 python3.6 0x000000010af7ba94 type_call + 468 (typeobject.c:915)
29 python3.6 0x000000010aeafcfc _PyObject_FastCallDict + 748 (abstract.c:2331)
30 python3.6 0x000000010aeb06c1 _PyObject_FastCallKeywords + 529 (abstract.c:2496)
31 python3.6 0x000000010b096a14 call_function + 1060 (ceval.c:4848)
32 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
33 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
34 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
35 python3.6 0x000000010b099d27 _PyFunction_FastCallDict + 1431 (ceval.c:5057)
36 python3.6 0x000000010aeafc42 _PyObject_FastCallDict + 562 (abstract.c:2310)
37 python3.6 0x000000010aeaffc2 _PyObject_Call_Prepend + 370 (abstract.c:2373)
38 python3.6 0x000000010aee024a method_call + 106 (classobject.c:317)
39 python3.6 0x000000010aeaf89d PyObject_Call + 477 (abstract.c:2261)
40 python3.6 0x000000010af85640 slot_tp_init + 80 (typeobject.c:6407)
41 python3.6 0x000000010af7ba94 type_call + 468 (typeobject.c:915)
42 python3.6 0x000000010aeafcfc _PyObject_FastCallDict + 748 (abstract.c:2331)
43 python3.6 0x000000010aeb06c1 _PyObject_FastCallKeywords + 529 (abstract.c:2496)
44 python3.6 0x000000010b096a14 call_function + 1060 (ceval.c:4848)
45 python3.6 0x000000010b08fa49 _PyEval_EvalFrameDefault + 79993 (ceval.c:3338)
46 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
47 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
48 python3.6 0x000000010b07c140 PyEval_EvalCodeEx + 400 (ceval.c:4174)
49 python3.6 0x000000010af0f12f function_call + 575 (funcobject.c:604)
50 python3.6 0x000000010aeaf89d PyObject_Call + 477 (abstract.c:2261)
51 python3.6 0x000000010b096e0c do_call_core + 508 (ceval.c:5093)
52 python3.6 0x000000010b09019e _PyEval_EvalFrameDefault + 81870 (ceval.c:3391)
53 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
54 python3.6 0x000000010b099f72 _PyFunction_FastCall + 370 (ceval.c:4906)
55 python3.6 0x000000010b09954e fast_function + 574 (ceval.c:4941)
56 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
57 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
58 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
59 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
60 python3.6 0x000000010b07c140 PyEval_EvalCodeEx + 400 (ceval.c:4174)
61 python3.6 0x000000010af0f12f function_call + 575 (funcobject.c:604)
62 python3.6 0x000000010aeaf89d PyObject_Call + 477 (abstract.c:2261)
63 python3.6 0x000000010b096e0c do_call_core + 508 (ceval.c:5093)
64 python3.6 0x000000010b09019e _PyEval_EvalFrameDefault + 81870 (ceval.c:3391)
65 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
66 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
67 python3.6 0x000000010b09976c fast_function + 1116 (ceval.c:4965)
68 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
69 python3.6 0x000000010b08fa49 _PyEval_EvalFrameDefault + 79993 (ceval.c:3338)
70 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
71 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
72 python3.6 0x000000010b09976c fast_function + 1116 (ceval.c:4965)
73 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
74 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
75 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
76 python3.6 0x000000010b099f72 _PyFunction_FastCall + 370 (ceval.c:4906)
77 python3.6 0x000000010b09954e fast_function + 574 (ceval.c:4941)
78 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
79 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
80 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
81 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
82 python3.6 0x000000010b099d27 _PyFunction_FastCallDict + 1431 (ceval.c:5057)
83 python3.6 0x000000010aeafc42 _PyObject_FastCallDict + 562 (abstract.c:2310)
84 python3.6 0x000000010aeaffc2 _PyObject_Call_Prepend + 370 (abstract.c:2373)
85 python3.6 0x000000010aee024a method_call + 106 (classobject.c:317)
86 python3.6 0x000000010aeaf89d PyObject_Call + 477 (abstract.c:2261)
87 python3.6 0x000000010af84531 slot_tp_call + 81 (typeobject.c:6194)
88 python3.6 0x000000010aeafcfc _PyObject_FastCallDict + 748 (abstract.c:2331)
89 python3.6 0x000000010aeb06c1 _PyObject_FastCallKeywords + 529 (abstract.c:2496)
90 python3.6 0x000000010b096a14 call_function + 1060 (ceval.c:4848)
91 python3.6 0x000000010b08fa49 _PyEval_EvalFrameDefault + 79993 (ceval.c:3338)
92 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
93 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
94 python3.6 0x000000010b09976c fast_function + 1116 (ceval.c:4965)
95 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
96 python3.6 0x000000010b08fa49 _PyEval_EvalFrameDefault + 79993 (ceval.c:3338)
97 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
98 python3.6 0x000000010b099f72 _PyFunction_FastCall + 370 (ceval.c:4906)
99 python3.6 0x000000010b09954e fast_function + 574 (ceval.c:4941)
100 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
101 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
102 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
103 python3.6 0x000000010b099f72 _PyFunction_FastCall + 370 (ceval.c:4906)
104 python3.6 0x000000010b09954e fast_function + 574 (ceval.c:4941)
105 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
106 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
107 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
108 python3.6 0x000000010b099f72 _PyFunction_FastCall + 370 (ceval.c:4906)
109 python3.6 0x000000010b09954e fast_function + 574 (ceval.c:4941)
110 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
111 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
112 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
113 python3.6 0x000000010b099f72 _PyFunction_FastCall + 370 (ceval.c:4906)
114 python3.6 0x000000010b09954e fast_function + 574 (ceval.c:4941)
115 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
116 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
117 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
118 python3.6 0x000000010b099f72 _PyFunction_FastCall + 370 (ceval.c:4906)
119 python3.6 0x000000010b09954e fast_function + 574 (ceval.c:4941)
120 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
121 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
122 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
123 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
124 python3.6 0x000000010b09976c fast_function + 1116 (ceval.c:4965)
125 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
126 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
127 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
128 python3.6 0x000000010b099f72 _PyFunction_FastCall + 370 (ceval.c:4906)
129 python3.6 0x000000010b09954e fast_function + 574 (ceval.c:4941)
130 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
131 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
132 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
133 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
134 python3.6 0x000000010b07c140 PyEval_EvalCodeEx + 400 (ceval.c:4174)
135 python3.6 0x000000010af0f12f function_call + 575 (funcobject.c:604)
136 python3.6 0x000000010aeaf89d PyObject_Call + 477 (abstract.c:2261)
137 python3.6 0x000000010b096e0c do_call_core + 508 (ceval.c:5093)
138 python3.6 0x000000010b09019e _PyEval_EvalFrameDefault + 81870 (ceval.c:3391)
139 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
140 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
141 python3.6 0x000000010b09976c fast_function + 1116 (ceval.c:4965)
142 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
143 python3.6 0x000000010b08fa49 _PyEval_EvalFrameDefault + 79993 (ceval.c:3338)
144 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
145 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
146 python3.6 0x000000010b09976c fast_function + 1116 (ceval.c:4965)
147 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
148 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
149 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
150 python3.6 0x000000010b099f72 _PyFunction_FastCall + 370 (ceval.c:4906)
151 python3.6 0x000000010b09954e fast_function + 574 (ceval.c:4941)
152 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
153 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
154 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
155 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
156 python3.6 0x000000010b099d27 _PyFunction_FastCallDict + 1431 (ceval.c:5057)
157 python3.6 0x000000010aeafc42 _PyObject_FastCallDict + 562 (abstract.c:2310)
158 python3.6 0x000000010aeaffc2 _PyObject_Call_Prepend + 370 (abstract.c:2373)
159 python3.6 0x000000010aee024a method_call + 106 (classobject.c:317)
160 python3.6 0x000000010aeaf89d PyObject_Call + 477 (abstract.c:2261)
161 python3.6 0x000000010af84531 slot_tp_call + 81 (typeobject.c:6194)
162 python3.6 0x000000010aeaf89d PyObject_Call + 477 (abstract.c:2261)
163 python3.6 0x000000010b096e0c do_call_core + 508 (ceval.c:5093)
164 python3.6 0x000000010b09019e _PyEval_EvalFrameDefault + 81870 (ceval.c:3391)
165 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
166 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
167 python3.6 0x000000010b09976c fast_function + 1116 (ceval.c:4965)
168 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
169 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
170 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
171 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
172 python3.6 0x000000010b09976c fast_function + 1116 (ceval.c:4965)
173 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
174 python3.6 0x000000010b08fa49 _PyEval_EvalFrameDefault + 79993 (ceval.c:3338)
175 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
176 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
177 python3.6 0x000000010b07c140 PyEval_EvalCodeEx + 400 (ceval.c:4174)
178 python3.6 0x000000010af0f12f function_call + 575 (funcobject.c:604)
179 python3.6 0x000000010aeaf89d PyObject_Call + 477 (abstract.c:2261)
180 python3.6 0x000000010b096e0c do_call_core + 508 (ceval.c:5093)
181 python3.6 0x000000010b09019e _PyEval_EvalFrameDefault + 81870 (ceval.c:3391)
182 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
183 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
184 python3.6 0x000000010b09976c fast_function + 1116 (ceval.c:4965)
185 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
186 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
187 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
188 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
189 python3.6 0x000000010b09976c fast_function + 1116 (ceval.c:4965)
190 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
191 python3.6 0x000000010b08fa49 _PyEval_EvalFrameDefault + 79993 (ceval.c:3338)
192 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
193 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
194 python3.6 0x000000010b07c140 PyEval_EvalCodeEx + 400 (ceval.c:4174)
195 python3.6 0x000000010af0f12f function_call + 575 (funcobject.c:604)
196 python3.6 0x000000010aeaf89d PyObject_Call + 477 (abstract.c:2261)
197 python3.6 0x000000010b096e0c do_call_core + 508 (ceval.c:5093)
198 python3.6 0x000000010b09019e _PyEval_EvalFrameDefault + 81870 (ceval.c:3391)
199 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
200 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
201 python3.6 0x000000010b09976c fast_function + 1116 (ceval.c:4965)
202 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
203 python3.6 0x000000010b08fa49 _PyEval_EvalFrameDefault + 79993 (ceval.c:3338)
204 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
205 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
206 python3.6 0x000000010b09976c fast_function + 1116 (ceval.c:4965)
207 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
208 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
209 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
210 python3.6 0x000000010b099f72 _PyFunction_FastCall + 370 (ceval.c:4906)
211 python3.6 0x000000010b09954e fast_function + 574 (ceval.c:4941)
212 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
213 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
214 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
215 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
216 python3.6 0x000000010b099d27 _PyFunction_FastCallDict + 1431 (ceval.c:5057)
217 python3.6 0x000000010aeafc42 _PyObject_FastCallDict + 562 (abstract.c:2310)
218 python3.6 0x000000010aeaffc2 _PyObject_Call_Prepend + 370 (abstract.c:2373)
219 python3.6 0x000000010aee024a method_call + 106 (classobject.c:317)
220 python3.6 0x000000010aeaf89d PyObject_Call + 477 (abstract.c:2261)
221 python3.6 0x000000010af84531 slot_tp_call + 81 (typeobject.c:6194)
222 python3.6 0x000000010aeafcfc _PyObject_FastCallDict + 748 (abstract.c:2331)
223 python3.6 0x000000010aeb06c1 _PyObject_FastCallKeywords + 529 (abstract.c:2496)
224 python3.6 0x000000010b096a14 call_function + 1060 (ceval.c:4848)
225 python3.6 0x000000010b08fa49 _PyEval_EvalFrameDefault + 79993 (ceval.c:3338)
226 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
227 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
228 python3.6 0x000000010b07c140 PyEval_EvalCodeEx + 400 (ceval.c:4174)
229 python3.6 0x000000010af0f12f function_call + 575 (funcobject.c:604)
230 python3.6 0x000000010aeaf89d PyObject_Call + 477 (abstract.c:2261)
231 python3.6 0x000000010b096e0c do_call_core + 508 (ceval.c:5093)
232 python3.6 0x000000010b09019e _PyEval_EvalFrameDefault + 81870 (ceval.c:3391)
233 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
234 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
235 python3.6 0x000000010b09976c fast_function + 1116 (ceval.c:4965)
236 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
237 python3.6 0x000000010b08fa49 _PyEval_EvalFrameDefault + 79993 (ceval.c:3338)
238 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
239 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
240 python3.6 0x000000010b09976c fast_function + 1116 (ceval.c:4965)
241 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
242 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
243 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
244 python3.6 0x000000010b099f72 _PyFunction_FastCall + 370 (ceval.c:4906)
245 python3.6 0x000000010b09954e fast_function + 574 (ceval.c:4941)
246 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
247 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
248 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
249 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
250 python3.6 0x000000010b099d27 _PyFunction_FastCallDict + 1431 (ceval.c:5057)
251 python3.6 0x000000010aeafc42 _PyObject_FastCallDict + 562 (abstract.c:2310)
252 python3.6 0x000000010aeaffc2 _PyObject_Call_Prepend + 370 (abstract.c:2373)
253 python3.6 0x000000010aee024a method_call + 106 (classobject.c:317)
254 python3.6 0x000000010aeaf89d PyObject_Call + 477 (abstract.c:2261)
255 python3.6 0x000000010af84531 slot_tp_call + 81 (typeobject.c:6194)
256 python3.6 0x000000010aeafcfc _PyObject_FastCallDict + 748 (abstract.c:2331)
257 python3.6 0x000000010aeb06c1 _PyObject_FastCallKeywords + 529 (abstract.c:2496)
258 python3.6 0x000000010b096a14 call_function + 1060 (ceval.c:4848)
259 python3.6 0x000000010b08fa49 _PyEval_EvalFrameDefault + 79993 (ceval.c:3338)
260 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
261 python3.6 0x000000010b099f72 _PyFunction_FastCall + 370 (ceval.c:4906)
262 python3.6 0x000000010b09954e fast_function + 574 (ceval.c:4941)
263 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
264 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
265 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
266 python3.6 0x000000010b099f72 _PyFunction_FastCall + 370 (ceval.c:4906)
267 python3.6 0x000000010b09954e fast_function + 574 (ceval.c:4941)
268 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
269 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
270 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
271 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
272 python3.6 0x000000010b07c140 PyEval_EvalCodeEx + 400 (ceval.c:4174)
273 python3.6 0x000000010af0f12f function_call + 575 (funcobject.c:604)
274 python3.6 0x000000010aeaf89d PyObject_Call + 477 (abstract.c:2261)
275 python3.6 0x000000010b096e0c do_call_core + 508 (ceval.c:5093)
276 python3.6 0x000000010b09019e _PyEval_EvalFrameDefault + 81870 (ceval.c:3391)
277 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
278 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
279 python3.6 0x000000010b09976c fast_function + 1116 (ceval.c:4965)
280 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
281 python3.6 0x000000010b08fa49 _PyEval_EvalFrameDefault + 79993 (ceval.c:3338)
282 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
283 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
284 python3.6 0x000000010b09976c fast_function + 1116 (ceval.c:4965)
285 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
286 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
287 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
288 python3.6 0x000000010b099f72 _PyFunction_FastCall + 370 (ceval.c:4906)
289 python3.6 0x000000010b09954e fast_function + 574 (ceval.c:4941)
290 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
291 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
292 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
293 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
294 python3.6 0x000000010b099d27 _PyFunction_FastCallDict + 1431 (ceval.c:5057)
295 python3.6 0x000000010aeafc42 _PyObject_FastCallDict + 562 (abstract.c:2310)
296 python3.6 0x000000010aeaffc2 _PyObject_Call_Prepend + 370 (abstract.c:2373)
297 python3.6 0x000000010aee024a method_call + 106 (classobject.c:317)
298 python3.6 0x000000010aeaf89d PyObject_Call + 477 (abstract.c:2261)
299 python3.6 0x000000010af84531 slot_tp_call + 81 (typeobject.c:6194)
300 python3.6 0x000000010aeafcfc _PyObject_FastCallDict + 748 (abstract.c:2331)
301 python3.6 0x000000010aeb06c1 _PyObject_FastCallKeywords + 529 (abstract.c:2496)
302 python3.6 0x000000010b096a14 call_function + 1060 (ceval.c:4848)
303 python3.6 0x000000010b08fa49 _PyEval_EvalFrameDefault + 79993 (ceval.c:3338)
304 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
305 python3.6 0x000000010b099f72 _PyFunction_FastCall + 370 (ceval.c:4906)
306 python3.6 0x000000010b0995a8 fast_function + 664 (ceval.c:4948)
307 python3.6 0x000000010b0969f6 call_function + 1030 (ceval.c:4845)
308 python3.6 0x000000010b08f7a8 _PyEval_EvalFrameDefault + 79320
309 python3.6 0x000000010b07c1c0 PyEval_EvalFrameEx + 80 (ceval.c:753)
310 python3.6 0x000000010b098600 _PyEval_EvalCodeWithName + 5216 (ceval.c:4153)
311 python3.6 0x000000010b07c140 PyEval_EvalCodeEx + 400 (ceval.c:4174)
312 python3.6 0x000000010b07bf9e PyEval_EvalCode + 94 (ceval.c:730)
313 python3.6 0x000000010b0eda8a run_mod + 106 (pythonrun.c:1025)
314 python3.6 0x000000010b0ec6e8 PyRun_FileExFlags + 264 (pythonrun.c:978)
315 python3.6 0x000000010b0eb3b5 PyRun_SimpleFileExFlags + 1061 (pythonrun.c:420)
316 python3.6 0x000000010b0eac5c PyRun_AnyFileExFlags + 140 (pythonrun.c:81)
317 python3.6 0x000000010b11d10c run_file + 332 (main.c:338)
318 python3.6 0x000000010b11bdb4 Py_Main + 4484 (main.c:809)
319 python3.6 0x000000010ae9f3d8 main + 472 (python.c:69)
320 libdyld.dylib 0x00007fff72e81cc9 start + 1 |
The repro steps say that the distro is Anaconda - are you rebuilding that from source, or is that actually the official CPython interpreter? Or is it some kind of mix? Also, can you try this with debugpy? See microsoft/ptvsd#2104 for instructions. |
The reference to Anaconda was just from the bug report template. This is a generic python source build. |
From the crash, it seems that it's crashing inside of qt/sip... my current guess is that it's some incompatibility in your CPython version and qt. Have you checked if it runs properly without the debugger? |
I'm sorry, that was a bad example. This crashes when debugging a file with only one line like "print('here')". here is a better crash report that shows the crash in
|
Oh, are you using attach-by-PID? If so, it's not entirely surprising that it doesn't work with a custom interpreter, depending on how exactly it was customized - it needs to access many Python internals, so changes to layout of built-in Python types (PyObject etc) break it. |
I am using Or are you talking about some additional option in |
Actually, we may use that library without the attach (to set the tracing to different threads as Python can only set the tracing to the current thread). You can try to recompile it locally to see if it fixes your problem. To do that, you can run:
|
I'm confused. Is this for some python package other than ptvsd? |
But then the same caveat applies to "launch" as well - we do not support CPython builds that aren't ABI-compatible with stock CPython, basically. If it has any changes to structs in Python headers, or if compilation flags that affect type layout differ from platform defaults (e.g. |
@patrickkidd This is for debugpy, which is basically the next version of ptvsd: microsoft/ptvsd#2104 Please give it a try, as it contains a more recent version of pydevd, with more fixes in it. |
Ah ok. I am new to all of this. I will check out debugpy.
As for ABI compatibility, I am using a generic python build with no configure options.
… On Apr 27, 2020, at 9:55 AM, Pavel Minaev ***@***.***> wrote:
@patrickkidd <https://github.com/patrickkidd> This is for debugpy, which is basically the next version of ptvsd: microsoft/ptvsd#2104 <microsoft/ptvsd#2104>
Please give it a try, as it contains a more recent version of pydevd, with more fixes in it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <https://github.com/microsoft/ptvsd/issues/2120#issuecomment-620138541>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAMOMWKW74O5XB5N2XN3Z2LROXBH5ANCNFSM4MSDGJPQ>.
|
@int19h maybe we could have a flag not to do that (we just use it to set tracing to different threads in that context, so, it could be optional -- in fact, it doesn't work for PyPy, but we check for the cases where we know we can support it, but we don't take into account custom builds where using it can crash the interpreter). @patrickkidd, until we actually make that optional, another option could be changing |
I'm sorry, I'm a little lost here. After following the instructions at microsoft/ptvsd#2104, I found
Is there some step I am missing for how to move from ptvsd to debugpy? |
You current working dir must be |
I got the same error when in that folder. I tried both:
/Users/patrick/.vscode/extensions/ms-python.python-2020.5.76036-dev/pythonFiles/lib/python/debugpy/wheels/debugpy/_vendored/pydevd/pydevd_attach_to_process/
And
/Users/patrick/.vscode/extensions/ms-python.python-2020.5.76036-dev/pythonFiles/lib/python/debugpy/no_wheels/debugpy/_vendored/pydevd/pydevd_attach_to_process/
… On Apr 27, 2020, at 10:14 AM, Fabio Zadrozny ***@***.***> wrote:
pydevd_attach_to_process
|
I should add that the current ptvsd debugger was working quite well until about a month ago. |
That's weird, you mean that when you're in that directory and execute that .sh, it gives a |
Yes, the file is there. I have no idea what's going on with this script. It looks simple enough but I'm getting strange output from it, for example bad spelling of English words and small errors in the characters of the output. I am running a standard macOS command line tools on the latest macOS. The only non-standard thing I am using is a homebred-installed bash b/c Catalina complains about deprecating its own bash in favor of zsh.
Each command runs just fine when I copy and paste them into the terminal separately. |
It looks like
It looks like this stuff is pre-alpha. is there a more stable way to approach simple python debugging with VS Code? |
Now just calling ptvsd.wait_for_attach() is immediately crashing at the same place. That was working fine yesterday. So now there is no way for me to debug python code at all! Removing the optinto entry from settings.json did not help. How can I reset everything to get back to a working system?? I'm dead in the water!
|
Building the debugger from source will probably work better if you do it from an enlistment, rather than trying to build the bundled copy. It can probably be made to build, but we never specifically arranged it to be buildable nor tested for it. This will also take care of newline issues. If you're using In general, please keep in mind that we don't support just any random Python interpreter - it would be too long of a list. We support official CPython builds from python.org, and OS-specific Python packages (Store on Windows, Brew on macOS, distro repos on Linux). If the same repro steps don't crash for you using stock prebuilt Python, you need to figure out how to build your custom interpreter such that it's ABI-compatible with stock builds. |
That is very helpful, thanks for the clarification on those important points.
I was able to isolate the problem. It only happens when python is built with —with-pydebug. Python version and OS doesn’t seem to matter. I have no idea why it started happening recently since I’ve been using debug builds for a few years.
At any rate, any quick advice on how to retain ABI compatibility through a debug python build? I am using 3.7.2.
… On Apr 29, 2020, at 2:08 PM, Pavel Minaev ***@***.***> wrote:
Building the debugger from source will probably work better if you do it from an enlistment, rather than trying to build the bundled copy. It can probably be made to build, but we never specifically arranged it to be buildable nor tested for it. This will also take care of newline issues.
If you're using ptvsd.enable_attach(), that means that you're running ptvsd rather than debugpy. To reiterate, ptvsd is not developed further, and it hasn't been developed for a while. We haven't made any changes to it since January, and that was in the 5.0 beta branch (that eventually became debugpy). If you're using the most recent stable version from PyPI, then you're running ptvsd 4.3.2, which shipped in August last year. So if ptvsd.enable_attach() is crashing for you, there are no recent changes that could cause it - if it only just started crashing now, then either something changed in the environment to enable it (e.g. the interpreter itself), or it is an inconsistent crash that has always been there, but just started to happen more consistently, e.g. due to some timing changes caused by the environment.
In general, please keep in mind that we don't support just any random Python interpreter - it would be too long of a list. We support official CPython builds from python.org, and OS-specific Python packages (Store on Windows, Brew on macOS, distro repos on Linux). If the same repro steps don't crash for you using stock prebuilt Python, you need to figure out how to build your custom interpreter such that it's ABI-compatible with stock builds.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <https://github.com/microsoft/ptvsd/issues/2120#issuecomment-621491305>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAMOMWL6TF4H5FO42RAI4UTRPCQOTANCNFSM4MSDGJPQ>.
|
Ah, that explains it - It's quite possible that this is the only thing about debug builds that makes a difference. If so, you can try to disable it by cherry-picking specific debug flags, as discussed in the special builds guide. Of note is that only
So hopefully omitting that flag will do the trick, although of course that's also one of the more useful things about Python debug builds... The reason why it might have worked before, and stopped working now, is that we use a bunch of native code to speed up the debugger, which is only compatible with some Python versions. So it's selectively enabled if a supported Python version is detected, but it falls back to pure Python otherwise. I suspect you were hitting the pure Python path before, and at some point either you upgraded to a newer version, or we added another optimization that affected the version you were using. As @fabioz noted above, you can try disabling those optimizations by editing the source code of the package:
On our side, it sounds like we should check for a debug build of Python (or maybe just |
Note: I'm currently taking a look at this issue. From what I searched, it seems that the best way to find out if it is a debug build is using:
i.e.: python itself seems to use that: https://github.com/python/cpython/blob/e3dfb9b967c560f4d094092dcae4a16fc9634681/Lib/test/pythoninfo.py#L128 |
Environment data
Actual behavior
Crashes immediately when debugging via launch.
Expected behavior
Does not crash; can break at breakpoint.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: