You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Segfault launching ipykernel on Python 3.12.3 in VS Code Jupyter (works on Python 3.11) #1512
A Jupyter kernel startup failure occurs when launching ipykernel under Python 3.12.3 inside the project virtual environment. The process crashes with Segmentation fault during IPKernelApp initialization. The same kernel startup works correctly on Python 3.11.15.
This appears to be a bug in the ipykernel / IPython startup path for Python 3.12 rather than a notebook-specific issue.
Reproduction Steps
Open the project directory:
cd /home/alvaritogsg/personalProjects/nuclioShool/nuclio_charlas
Activate the virtual environment:
. .venv/bin/activate
Run the kernel launcher directly with faulthandler:
The Python 3.11 kernel starts successfully and remains alive.
Actual Behavior
The kernel process crashes immediately with a segmentation fault while initializing the IPython kernel application.
The stack trace includes:
logging/__init__.py
IPython/core/application.py
ipykernel/kernelapp.py
traitlets/config/application.py
ipykernel_launcher.py
Loaded native extension modules at the time of the crash:
zmq.backend.cython._zmq
tornado.speedups
psutil._psutil_linux
VS Code reports:
The error displaed by VS Code was:
Error: El kernel ha muerto. Error: ... Vea Jupyter [log](command:jupyter.viewOutput) para obtener más detalles.
The execution that is falling is: ~python -m ipykernel_launcher
The check command python -c "import ipykernel; print(...)" works correctly.
Expected Behavior
The kernel should start normally and create a connection file such as /tmp/test_kernel.json. Jupyter frontends should be able to connect to the kernel without the process dying.
Activity