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

On running script, pausing to debug the program terminates silently without error whereever the program is paused but runs successfully otherwise via integrated terminal #1760

Closed
makingglitches opened this issue Nov 27, 2023 · 7 comments
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@makingglitches
Copy link

makingglitches commented Nov 27, 2023

Here is the matching syslog entry for the core dump
Type: Bug

Behaviour

Expected vs. Actual

I am attempting to step through a python script I am writing, and when the debugger is paused the debugger is dying silently without any error or exception. In fact the code itself is not throwing an exception or error.
When click Run -> Start Debugging, the code executes as expected, but if there are any breakpoints and I pause for more than a moment Python crashes and a coredump log entry is placed in my system log.

However if there are no breakpoints, the code executes until it either encounters an error or completes successfully as expected via the same launch method.

This happens on the pre-release version and v2023.20.0 of the Python Extension.

UPDATE: It was my feeling this was something that has a multi-threaded aspect to it. I am presently debugging single threaded code with no cpython component to it and its pausing just fine using the standard python libraries.
To provide justication to NOT just bin this bug and say "oh it relates to third party things". please note the libs being used are GDAL AND RTREE. Two STANDARD GIS related projects that are pretty much universally accepted , since geopandas sucks for example. And also its more about catching failures in cpython and thread problems which should be able to be debugged or the problems detected with them. Also the ecosystem of tools cannot be said to work if some very common pieces break. Swig is pretty much accepted, cpython is integral, and there are some really specific scenarios being represented here where the user cannot debug why multi threading in native bindings are working fine when the code is just run but dying on them randomly otherwise. Rather than create some fat ugly female weirdo to represent me at this stage of learning and fuck me out of time, why not just fix the problem and move you asshats.

Steps to reproduce:

  1. Open a python file
  2. Place a breakpoint in the code.
  3. Click Run->Start Debugging

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.11.6
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

User Settings


languageServer: "Pylance"

Extension version: 2023.20.0
VS Code version: Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:50:47.800Z)
OS version: Linux x64 6.5.12-200.fc38.x86_64
Modes:

System Info
Item Value
CPUs Intel(R) Pentium(R) CPU 4417U @ 2.30GHz (4 x 2299)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 10, 8, 6
Memory (System) 7.66GB (1.53GB free)
Process Argv --unity-launch --crash-reporter-id f01aab17-8c5a-4bc7-8516-6b8c50dcaab8
Screen Reader no
VM 0%
DESKTOP_SESSION gnome
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome
XDG_SESSION_TYPE wayland
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes516:30244333
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30880072
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
282f8724:30602487
f6dab269:30613381
showlangstatbar:30737416
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
synctok:30869157
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30871694
pythonregdiag2:30871582
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:30885897
pythontbext0:30879054
dsvsc016cf:30886111
dsvsc017cf:30886113
dsvsc018cf:30886115
aa_t_chat:30882232

@makingglitches
Copy link
Author

Also here is the log viewer entry specific to the systemd-coredump binary

Process 11482 (python) of user 1000 dumped core.

Module /home/john/.local/lib/python3.11/site-packages/Rtree.libs/libspatialindex-91fc2909.so.6.1.1 without build-id.
Module /home/john/.local/lib/python3.11/site-packages/Rtree.libs/libspatialindex-91fc2909.so.6.1.1
Module _generator.cpython-311-x86_64-linux-gnu.so from rpm numpy-1.24.4-1.fc38.x86_64
Module _sfc64.cpython-311-x86_64-linux-gnu.so from rpm numpy-1.24.4-1.fc38.x86_64
Module _pcg64.cpython-311-x86_64-linux-gnu.so from rpm numpy-1.24.4-1.fc38.x86_64
Module _philox.cpython-311-x86_64-linux-gnu.so from rpm numpy-1.24.4-1.fc38.x86_64
Module _mt19937.cpython-311-x86_64-linux-gnu.so from rpm numpy-1.24.4-1.fc38.x86_64
Module _bounded_integers.cpython-311-x86_64-linux-gnu.so from rpm numpy-1.24.4-1.fc38.x86_64
Module libb2.so.1 from rpm libb2-0.98.1-8.fc38.x86_64
Module _blake2.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module _hashlib.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module _common.cpython-311-x86_64-linux-gnu.so from rpm numpy-1.24.4-1.fc38.x86_64
Module bit_generator.cpython-311-x86_64-linux-gnu.so from rpm numpy-1.24.4-1.fc38.x86_64
Module mtrand.cpython-311-x86_64-linux-gnu.so from rpm numpy-1.24.4-1.fc38.x86_64
Module _pocketfft_internal.cpython-311-x86_64-linux-gnu.so from rpm numpy-1.24.4-1.fc38.x86_64
Module _umath_linalg.cpython-311-x86_64-linux-gnu.so from rpm numpy-1.24.4-1.fc38.x86_64
Module _multiarray_tests.cpython-311-x86_64-linux-gnu.so from rpm numpy-1.24.4-1.fc38.x86_64
Module _contextvars.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module _multiarray_umath.cpython-311-x86_64-linux-gnu.so from rpm numpy-1.24.4-1.fc38.x86_64
Module libopenblaso.so.0 from rpm openblas-0.3.21-4.fc38.x86_64
Module libflexiblas_openblas-openmp.so from rpm flexiblas-3.3.1-5.fc38.x86_64
Module libflexiblas_fallback_lapack.so from rpm flexiblas-3.3.1-5.fc38.x86_64
Module libflexiblas_netlib.so from rpm flexiblas-3.3.1-5.fc38.x86_64
Module libgraphite2.so.3 from rpm graphite2-1.3.14-11.fc38.x86_64
Module libglib-2.0.so.0 from rpm glib2-2.76.5-2.fc38.x86_64
Module libcrypt.so.2 from rpm libxcrypt-4.4.36-1.fc38.x86_64
Module libselinux.so.1 from rpm libselinux-3.5-1.fc38.x86_64
Module libplds4.so from rpm nss-3.94.0-2.fc38.x86_64
Module libharfbuzz.so.0 from rpm harfbuzz-7.1.0-1.fc38.x86_64
Module libbrotlicommon.so.1 from rpm brotli-1.0.9-11.fc38.x86_64
Module libsasl2.so.3 from rpm cyrus-sasl-2.1.28-9.fc38.x86_64
Module libevent-2.1.so.7 from rpm libevent-2.1.12-8.fc38.x86_64
Module libkeyutils.so.1 from rpm keyutils-1.6.1-6.fc38.x86_64
Module libkrb5support.so.0 from rpm krb5-1.21-3.fc38.x86_64
Module libcom_err.so.2 from rpm e2fsprogs-1.46.5-4.fc38.x86_64
Module libk5crypto.so.3 from rpm krb5-1.21-3.fc38.x86_64
Module libkrb5.so.3 from rpm krb5-1.21-3.fc38.x86_64
Module libgeos.so.3.11.1 from rpm geos-3.11.1-3.fc38.x86_64
Module libtirpc.so.3 from rpm libtirpc-1.3.4-0.fc38.x86_64
Module librttopo.so.1 from rpm librttopo-1.1.0-11.fc38.x86_64
Module libminizip.so.3 from rpm minizip-ng-3.0.7-3.fc38.x86_64
Module liburiparser.so.1 from rpm uriparser-0.9.7-2.fc38.x86_64
Module libIex-3_1.so.30 from rpm openexr-3.1.10-1.fc38.x86_64
Module libIlmThread-3_1.so.30 from rpm openexr-3.1.10-1.fc38.x86_64
Module libsharpyuv.so.0 from rpm libwebp-1.3.2-2.fc38.x86_64
Module libsz.so.2 from rpm libaec-1.0.6-4.fc38.x86_64
Module libhdf5_hl.so.200 from rpm hdf5-1.12.1-11.fc38.x86_64
Module libnspr4.so from rpm nss-3.94.0-2.fc38.x86_64
Module libplc4.so from rpm nss-3.94.0-2.fc38.x86_64
Module liblcms2.so.2 from rpm lcms2-2.15-1.fc38.x86_64
Module libfontconfig.so.1 from rpm fontconfig-2.14.2-1.fc38.x86_64
Module libfreetype.so.6 from rpm freetype-2.13.0-2.fc38.x86_64
Module libjbig.so.2.1 from rpm jbigkit-2.1-25.fc38.x86_64
Module libsuperlu.so.5 from rpm SuperLU-5.3.0-4.fc38.x86_64
Module libarpack.so.2 from rpm arpack-3.8.0-6.fc38.x86_64
Module libflexiblas.so.3 from rpm flexiblas-3.3.1-5.fc38.x86_64
Module libltdl.so.7 from rpm libtool-2.4.7-6.fc38.x86_64
Module libbrotlidec.so.1 from rpm brotli-1.0.9-11.fc38.x86_64
Module libgssapi_krb5.so.2 from rpm krb5-1.21-3.fc38.x86_64
Module libpsl.so.5 from rpm libpsl-0.21.2-2.fc38.x86_64
Module libssh.so.4 from rpm libssh-0.10.5-1.fc38.x86_64
Module libidn2.so.0 from rpm libidn2-2.3.4-2.fc38.x86_64
Module libnghttp2.so.14 from rpm nghttp2-1.52.0-2.fc38.x86_64
Module libmfhdf.so.0 from rpm hdf-4.2.15-12.fc38.x86_64
Module libdf.so.0 from rpm hdf-4.2.15-12.fc38.x86_64
Module libjson-c.so.5 from rpm json-c-0.17-1.fc38.x86_64
Module libproj.so.25 from rpm proj-9.1.1-1.fc38.x86_64
Module libgeos_c.so.1 from rpm geos-3.11.1-3.fc38.x86_64
Module libogdi.so.4 from rpm ogdi-4.1.0-10.fc38.x86_64
Module libfreexl.so.1 from rpm freexl-1.0.6-21.fc38.x86_64
Module libmariadb.so.3 from rpm mariadb-connector-c-3.3.5-1.fc38.x86_64
Module libspatialite.so.7 from rpm libspatialite-5.0.1-20.fc38.x86_64
Module libpcre2-8.so.0 from rpm pcre2-10.42-1.fc38.1.x86_64
Module libkmlengine.so.1 from rpm libkml-1.3.0-43.fc38.x86_64
Module libkmldom.so.1 from rpm libkml-1.3.0-43.fc38.x86_64
Module libkmlbase.so.1 from rpm libkml-1.3.0-43.fc38.x86_64
Module libImath-3_1.so.29 from rpm imath-3.1.9-1.fc38.x86_64
Module libOpenEXR-3_1.so.30 from rpm openexr-3.1.10-1.fc38.x86_64
Module libopenjp2.so.7 from rpm openjpeg2-2.5.0-5.fc38.x86_64
Module libpq.so.5 from rpm libpq-15.3-1.fc38.x86_64
Module libwebp.so.7 from rpm libwebp-1.3.2-2.fc38.x86_64
Module libgta.so.1 from rpm libgta-1.2.1-9.fc38.x86_64
Module libhdf5.so.200 from rpm hdf5-1.12.1-11.fc38.x86_64
Module libcfitsio.so.10 from rpm cfitsio-4.2.0-3.fc38.x86_64
Module libnetcdf.so.19 from rpm netcdf-4.9.0-5.fc38.x86_64
Module libgif.so.7 from rpm giflib-5.2.1-17.fc38.x86_64
Module libpoppler.so.126 from rpm poppler-23.02.0-2.fc38.x86_64
Module libLerc.so.4 from rpm liblerc-4.0.0-3.fc38.x86_64
Module libpng16.so.16 from rpm libpng-1.6.37-14.fc38.x86_64
Module libgeotiff.so.5 from rpm libgeotiff-1.7.1-6.fc38.x86_64
Module libtiff.so.5 from rpm libtiff-4.4.0-8.fc38.x86_64
Module libjpeg.so.62 from rpm libjpeg-turbo-2.1.4-2.fc38.x86_64
Module libqhull_r.so.7 from rpm qhull-7.2.1-12.fc38.x86_64
Module libarmadillo.so.10 from rpm armadillo-10.8.2-3.fc38.x86_64
Module libzstd.so.1 from rpm zstd-1.5.5-1.fc38.x86_64
Module libxml2.so.2 from rpm libxml2-2.10.4-1.fc38.x86_64
Module libodbcinst.so.2 from rpm unixODBC-2.3.11-2.fc38.x86_64
Module libodbc.so.2 from rpm unixODBC-2.3.11-2.fc38.x86_64
Module libcurl.so.4 from rpm curl-8.0.1-5.fc38.x86_64
Module libgdal.so.32 from rpm gdal-3.6.4-1.fc38.x86_64
Module _csv.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module _posixsubprocess.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module _pickle.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module libffi.so.8 from rpm libffi-3.4.4-2.fc38.x86_64
Module _ctypes.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module termios.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module fcntl.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module _opcode.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module liblzma.so.5 from rpm xz-5.4.1-1.fc38.x86_64
Module _lzma.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module libbz2.so.1 from rpm bzip2-1.0.8-13.fc38.x86_64
Module _bz2.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module zlib.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module libexpat.so.1 from rpm expat-2.5.0-2.fc38.x86_64
Module pyexpat.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module libcrypto.so.3 from rpm openssl-3.0.9-2.fc38.x86_64
Module libssl.so.3 from rpm openssl-3.0.9-2.fc38.x86_64
Module _ssl.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module _sha512.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module _random.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module _bisect.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module libmpdec.so.3 from rpm mpdecimal-2.5.1-6.fc38.x86_64
Module _decimal.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module _datetime.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module libz.so.1 from rpm zlib-1.2.13-3.fc38.x86_64
Module binascii.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module _queue.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module _heapq.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module array.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module select.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module math.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module _socket.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module unicodedata.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module _struct.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module _json.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module _typing.cpython-311-x86_64-linux-gnu.so from rpm python3.11-3.11.6-1.fc38.x86_64
Module libpython3.11.so.1.0 from rpm python3.11-3.11.6-1.fc38.x86_64
Module python3.11 from rpm python3.11-3.11.6-1.fc38.x86_64
Stack trace of thread 11482:
#0 0x00007f20b292e7f8 OGR_G_GetPointCount (libgdal.so.32 + 0x52e7f8)
microsoft/vscode-python#1 0x00007f208b05d46b OGRGeometryShadow_GetPointCount (_ogr.cpython-311-x86_64-linux-gnu.so + 0x2546b)
microsoft/vscode-python#2 0x00007f20d9bce205 cfunction_vectorcall_O (libpython3.11.so.1.0 + 0x1ce205)
microsoft/vscode-python#3 0x00007f20d9bbecf9 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1becf9)
microsoft/vscode-python#4 0x00007f20d9bb6bba _PyEval_Vector (libpython3.11.so.1.0 + 0x1b6bba)
microsoft/vscode-python#5 0x00007f20d9c3b15c PyEval_EvalCode (libpython3.11.so.1.0 + 0x23b15c)
microsoft/vscode-python#6 0x00007f20d9bd47e1 cfunction_vectorcall_FASTCALL (libpython3.11.so.1.0 + 0x1d47e1)
microsoft/vscode-python#7 0x00007f20d9bc8357 PyObject_Vectorcall (libpython3.11.so.1.0 + 0x1c8357)
microsoft/vscode-python#8 0x00007f20d9bba996 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1ba996)
microsoft/vscode-python#9 0x00007f20d9bb6bba _PyEval_Vector (libpython3.11.so.1.0 + 0x1b6bba)
microsoft/vscode-python#10 0x00007f20d9bbecf9 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1becf9)
microsoft/vscode-python#11 0x00007f20d9bb6bba _PyEval_Vector (libpython3.11.so.1.0 + 0x1b6bba)
microsoft/vscode-python#12 0x00007f20d9bf2e80 method_vectorcall (libpython3.11.so.1.0 + 0x1f2e80)
microsoft/vscode-python#13 0x00007f20d9bbecf9 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1becf9)
microsoft/vscode-python#14 0x00007f20d9bb6bba _PyEval_Vector (libpython3.11.so.1.0 + 0x1b6bba)
microsoft/vscode-python#15 0x00007f20d9bf2e80 method_vectorcall (libpython3.11.so.1.0 + 0x1f2e80)
microsoft/vscode-python#16 0x00007f20d9bb5050 _PyObject_FastCallDictTstate (libpython3.11.so.1.0 + 0x1b5050)
microsoft/vscode-python#17 0x00007f20cae56793 n/a (/home/john/.vscode/extensions/ms-python.python-2023.21.13261010/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so + 0x2793)
microsoft/vscode-python#18 0x00007f20cae5681b n/a (/home/john/.vscode/extensions/ms-python.python-2023.21.13261010/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_linux_amd64.so + 0x281b)
microsoft/vscode-python#19 0x00007f20d9cbfc08 call_trace (libpython3.11.so.1.0 + 0x2bfc08)
microsoft/vscode-python#20 0x00007f20d9cbf9df maybe_call_line_trace (libpython3.11.so.1.0 + 0x2bf9df)
microsoft/vscode-python#21 0x00007f20d9bc0861 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1c0861)
microsoft/vscode-python#22 0x00007f20d9bb6bba _PyEval_Vector (libpython3.11.so.1.0 + 0x1b6bba)
microsoft/vscode-python#23 0x00007f20d9c3b15c PyEval_EvalCode (libpython3.11.so.1.0 + 0x23b15c)
microsoft/vscode-python#24 0x00007f20d9c518b2 builtin_exec (libpython3.11.so.1.0 + 0x2518b2)
microsoft/vscode-python#25 0x00007f20d9bc83ea cfunction_vectorcall_FASTCALL_KEYWORDS (libpython3.11.so.1.0 + 0x1c83ea)
microsoft/vscode-python#26 0x00007f20d9bc8357 PyObject_Vectorcall (libpython3.11.so.1.0 + 0x1c8357)
microsoft/vscode-python#27 0x00007f20d9bc20d1 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1c20d1)
microsoft/vscode-python#28 0x00007f20d9bb6bba _PyEval_Vector (libpython3.11.so.1.0 + 0x1b6bba)
microsoft/vscode-python#29 0x00007f20d9c3b15c PyEval_EvalCode (libpython3.11.so.1.0 + 0x23b15c)
microsoft/vscode-python#30 0x00007f20d9c518b2 builtin_exec (libpython3.11.so.1.0 + 0x2518b2)
microsoft/vscode-python#31 0x00007f20d9bc83ea cfunction_vectorcall_FASTCALL_KEYWORDS (libpython3.11.so.1.0 + 0x1c83ea)
microsoft/vscode-python#32 0x00007f20d9bc8357 PyObject_Vectorcall (libpython3.11.so.1.0 + 0x1c8357)
microsoft/vscode-python#33 0x00007f20d9bba996 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1ba996)
microsoft/vscode-python#34 0x00007f20d9bb6bba _PyEval_Vector (libpython3.11.so.1.0 + 0x1b6bba)
microsoft/vscode-python#35 0x00007f20d9c63d08 pymain_run_module (libpython3.11.so.1.0 + 0x263d08)
microsoft/vscode-python#36 0x00007f20d9b2261f Py_RunMain.cold (libpython3.11.so.1.0 + 0x12261f)
microsoft/vscode-python#37 0x00007f20d9c2b48b Py_BytesMain (libpython3.11.so.1.0 + 0x22b48b)
microsoft/pylance-release#1848 0x00007f20d9849b8a __libc_start_call_main (libc.so.6 + 0x27b8a)
microsoft/vscode-python#39 0x00007f20d9849c4b __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x27c4b)
microsoft/vscode-python#40 0x000055b9059a4095 _start (python3.11 + 0x1095)

Stack trace of thread 11497:
#0 0x00007f20d98ab219 __futex_abstimed_wait_common (libc.so.6 + 0x89219)
microsoft/vscode-python#1 0x00007f20d98b5d2e __new_sem_wait_slow64 (libc.so.6 + 0x93d2e)
microsoft/vscode-python#2 0x00007f20d9b9fb94 PyThread_acquire_lock_timed (libpython3.11.so.1.0 + 0x19fb94)
microsoft/vscode-python#3 0x00007f20d9c5033f acquire_timed (libpython3.11.so.1.0 + 0x25033f)
microsoft/vscode-python#4 0x00007f20d9c4fcdf lock_PyThread_acquire_lock (libpython3.11.so.1.0 + 0x24fcdf)
microsoft/vscode-python#5 0x00007f20d9bd5cfe method_vectorcall_VARARGS_KEYWORDS (libpython3.11.so.1.0 + 0x1d5cfe)
microsoft/vscode-python#6 0x00007f20d9bc8357 PyObject_Vectorcall (libpython3.11.so.1.0 + 0x1c8357)
microsoft/vscode-python#7 0x00007f20d9bba996 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1ba996)
microsoft/vscode-python#8 0x00007f20d9bb6bba _PyEval_Vector (libpython3.11.so.1.0 + 0x1b6bba)
microsoft/vscode-python#9 0x00007f20d9bf2fbf method_vectorcall (libpython3.11.so.1.0 + 0x1f2fbf)
microsoft/vscode-python#10 0x00007f20d9c97878 thread_run (libpython3.11.so.1.0 + 0x297878)
microsoft/vscode-python#11 0x00007f20d9c66ed8 pythread_wrapper (libpython3.11.so.1.0 + 0x266ed8)
microsoft/vscode-python#12 0x00007f20d98ae947 start_thread (libc.so.6 + 0x8c947)
microsoft/vscode-python#13 0x00007f20d9934860 __clone3 (libc.so.6 + 0x112860)

Stack trace of thread 11500:
#0 0x00007f20d98ab219 __futex_abstimed_wait_common (libc.so.6 + 0x89219)
microsoft/vscode-python#1 0x00007f20d98b5d2e __new_sem_wait_slow64 (libc.so.6 + 0x93d2e)
microsoft/vscode-python#2 0x00007f20d9b9fb94 PyThread_acquire_lock_timed (libpython3.11.so.1.0 + 0x19fb94)
microsoft/vscode-python#3 0x00007f20d9c5033f acquire_timed (libpython3.11.so.1.0 + 0x25033f)
microsoft/vscode-python#4 0x00007f20d9c4fcdf lock_PyThread_acquire_lock (libpython3.11.so.1.0 + 0x24fcdf)
microsoft/vscode-python#5 0x00007f20d9bd5cfe method_vectorcall_VARARGS_KEYWORDS (libpython3.11.so.1.0 + 0x1d5cfe)
microsoft/vscode-python#6 0x00007f20d9bc8357 PyObject_Vectorcall (libpython3.11.so.1.0 + 0x1c8357)
microsoft/vscode-python#7 0x00007f20d9bba996 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1ba996)
microsoft/vscode-python#8 0x00007f20d9bb6bba _PyEval_Vector (libpython3.11.so.1.0 + 0x1b6bba)
microsoft/vscode-python#9 0x00007f20d9bf2fbf method_vectorcall (libpython3.11.so.1.0 + 0x1f2fbf)
microsoft/vscode-python#10 0x00007f20d9c97878 thread_run (libpython3.11.so.1.0 + 0x297878)
microsoft/vscode-python#11 0x00007f20d9c66ed8 pythread_wrapper (libpython3.11.so.1.0 + 0x266ed8)
microsoft/vscode-python#12 0x00007f20d98ae947 start_thread (libc.so.6 + 0x8c947)
microsoft/vscode-python#13 0x00007f20d9934860 __clone3 (libc.so.6 + 0x112860)

Stack trace of thread 11498:
#0 0x00007f20d993660a __recv (libc.so.6 + 0x11460a)
microsoft/vscode-python#1 0x00007f20cbedf0da sock_recv_impl (_socket.cpython-311-x86_64-linux-gnu.so + 0x60da)
microsoft/vscode-python#2 0x00007f20cbee19de sock_call_ex (_socket.cpython-311-x86_64-linux-gnu.so + 0x89de)
microsoft/vscode-python#3 0x00007f20cbee1be6 sock_call (_socket.cpython-311-x86_64-linux-gnu.so + 0x8be6)
microsoft/vscode-python#4 0x00007f20cbee4125 sock_recv (_socket.cpython-311-x86_64-linux-gnu.so + 0xb125)
microsoft/vscode-python#5 0x00007f20d9bb69a8 method_vectorcall_VARARGS (libpython3.11.so.1.0 + 0x1b69a8)
microsoft/vscode-python#6 0x00007f20d9bc8357 PyObject_Vectorcall (libpython3.11.so.1.0 + 0x1c8357)
microsoft/vscode-python#7 0x00007f20d9bba996 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1ba996)
microsoft/vscode-python#8 0x00007f20d9bb6bba _PyEval_Vector (libpython3.11.so.1.0 + 0x1b6bba)
microsoft/vscode-python#9 0x00007f20d9bf2fbf method_vectorcall (libpython3.11.so.1.0 + 0x1f2fbf)
microsoft/vscode-python#10 0x00007f20d9c97878 thread_run (libpython3.11.so.1.0 + 0x297878)
microsoft/vscode-python#11 0x00007f20d9c66ed8 pythread_wrapper (libpython3.11.so.1.0 + 0x266ed8)
microsoft/vscode-python#12 0x00007f20d98ae947 start_thread (libc.so.6 + 0x8c947)
microsoft/vscode-python#13 0x00007f20d9934860 __clone3 (libc.so.6 + 0x112860)

Stack trace of thread 11501:
#0 0x00007f20d98ab219 __futex_abstimed_wait_common (libc.so.6 + 0x89219)
microsoft/vscode-python#1 0x00007f20d98b5d2e __new_sem_wait_slow64 (libc.so.6 + 0x93d2e)
microsoft/vscode-python#2 0x00007f20d9b9fb94 PyThread_acquire_lock_timed (libpython3.11.so.1.0 + 0x19fb94)
microsoft/vscode-python#3 0x00007f20d9c5033f acquire_timed (libpython3.11.so.1.0 + 0x25033f)
microsoft/vscode-python#4 0x00007f20d9c4fcdf lock_PyThread_acquire_lock (libpython3.11.so.1.0 + 0x24fcdf)
microsoft/vscode-python#5 0x00007f20d9bd5cfe method_vectorcall_VARARGS_KEYWORDS (libpython3.11.so.1.0 + 0x1d5cfe)
microsoft/vscode-python#6 0x00007f20d9bc8357 PyObject_Vectorcall (libpython3.11.so.1.0 + 0x1c8357)
microsoft/vscode-python#7 0x00007f20d9bba996 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1ba996)
microsoft/vscode-python#8 0x00007f20d9bb6bba _PyEval_Vector (libpython3.11.so.1.0 + 0x1b6bba)
microsoft/vscode-python#9 0x00007f20d9bf2fbf method_vectorcall (libpython3.11.so.1.0 + 0x1f2fbf)
microsoft/vscode-python#10 0x00007f20d9c97878 thread_run (libpython3.11.so.1.0 + 0x297878)
microsoft/vscode-python#11 0x00007f20d9c66ed8 pythread_wrapper (libpython3.11.so.1.0 + 0x266ed8)
microsoft/vscode-python#12 0x00007f20d98ae947 start_thread (libc.so.6 + 0x8c947)
microsoft/vscode-python#13 0x00007f20d9934860 __clone3 (libc.so.6 + 0x112860)

Stack trace of thread 11517:
#0 0x00007f20d98ab4d7 __GI___lll_lock_wake (libc.so.6 + 0x894d7)
microsoft/vscode-python#1 0x00007f20d98b3712 __GI___pthread_mutex_unlock_usercnt (libc.so.6 + 0x91712)
microsoft/vscode-python#2 0x00007f20d9bb78ef drop_gil (libpython3.11.so.1.0 + 0x1b78ef)
microsoft/vscode-python#3 0x00007f20d9bb787e PyEval_SaveThread (libpython3.11.so.1.0 + 0x1b787e)
microsoft/vscode-python#4 0x00007f20d9c5032c acquire_timed (libpython3.11.so.1.0 + 0x25032c)
microsoft/vscode-python#5 0x00007f20d9c4fcdf lock_PyThread_acquire_lock (libpython3.11.so.1.0 + 0x24fcdf)
microsoft/vscode-python#6 0x00007f20d9bd5cfe method_vectorcall_VARARGS_KEYWORDS (libpython3.11.so.1.0 + 0x1d5cfe)
microsoft/vscode-python#7 0x00007f20d9bc8357 PyObject_Vectorcall (libpython3.11.so.1.0 + 0x1c8357)
microsoft/vscode-python#8 0x00007f20d9bba996 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1ba996)
microsoft/vscode-python#9 0x00007f20d9bb6bba _PyEval_Vector (libpython3.11.so.1.0 + 0x1b6bba)
microsoft/vscode-python#10 0x00007f20d9bf2fbf method_vectorcall (libpython3.11.so.1.0 + 0x1f2fbf)
microsoft/vscode-python#11 0x00007f20d9bbecf9 _PyEval_EvalFrameDefault (libpython3.11.so.1.0 + 0x1becf9)
microsoft/vscode-python#12 0x00007f20d9bb6bba _PyEval_Vector (libpython3.11.so.1.0 + 0x1b6bba)
microsoft/vscode-python#13 0x00007f20d9bb4eef _PyObject_FastCallDictTstate (libpython3.11.so.1.0 + 0x1b4eef)
microsoft/vscode-python#14 0x00007f20d9bdef3c _PyObject_Call_Prepend (libpython3.11.so.1.0 + 0x1def3c)
microsoft/vscode-python#15 0x00007f20d9c7ecf2 slot_tp_call (libpython3.11.so.1.0 + 0x27ecf2)
microsoft/vscode-python#16 0x00007f20d9be0459 _PyObject_Call (libpython3.11.so.1.0 + 0x1e0459)
microsoft/vscode-python#17 0x00007f20d9c97878 thread_run (libpython3.11.so.1.0 + 0x297878)
microsoft/vscode-python#18 0x00007f20d9c66ed8 pythread_wrapper (libpython3.11.so.1.0 + 0x266ed8)
microsoft/vscode-python#19 0x00007f20d98ae947 start_thread (libc.so.6 + 0x8c947)
microsoft/vscode-python#20 0x00007f20d9934860 __clone3 (libc.so.6 + 0x112860)
ELF object binary architecture: AMD x86-64

@paulacamargo25
Copy link

Hi @makingglitches could you send me your launch.json config. Also could you try debugging using the new Python Debugger Extension in insiders to see if the error also occurs there? thank you so much.

@makingglitches
Copy link
Author

makingglitches commented Dec 8, 2023

I'll see if the new one works, assuming there is one, but I had tried their pre-release version as well. I have been using the standard python debugger, no venv or other virtual environment therefore also no launch.json configuration, I just choose "launch python file" by default.

@makingglitches
Copy link
Author

makingglitches commented Dec 8, 2023

With what i'm guessing is the new version of vs code effecting the display not the python debugger, I'm seeing the following. The invalid page exception is new, since I last touched this code, but I think that may be being caused by the addition of a faulty Rtree module i'm about to remove. Actually no, isn't that interesting, see next comment.

Screenshot from 2023-12-08 14-50-04

@makingglitches
Copy link
Author

when I allow the code to just run the page exception disappears as well.

Screenshot from 2023-12-08 14-57-34

@makingglitches

This comment has been minimized.

@karthiknadig karthiknadig removed their assignment Dec 10, 2024
@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Dec 10, 2024
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Dec 10, 2024
@rchiodo
Copy link
Contributor

rchiodo commented Dec 10, 2024

The callstacks look like a problem in CPython?

I guess I'd just try the same thing with 3.13 instead of 3.11.

Debugpy doesn't debug CPython itself, you'd need a C++ debugger for that.

@rchiodo rchiodo closed this as completed Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

6 participants