ipython/ipython — Issue #947: qtconsole segfaults at startup
Author: thisch
Created: 2011-10-30 10:26:29+00:00
State: open

on my fedora 15 x86-64 box ipython (latest git version) segfaults

# frontend segfaults, kernel
__» ipython qtconsole --log-level='DEBUG'__
[IPythonQtConsoleApp] Config changed:
[IPythonQtConsoleApp] {'Application': {'log_level': u'DEBUG'}}
[IPythonQtConsoleApp] Using existing profile dir: u'/home/thomas/.config/ipython/profile_default'
[IPythonQtConsoleApp] Searching path [u'/home/thomas', u'/home/thomas/.config/ipython/profile_default'] for config files
[IPythonQtConsoleApp] Attempting to load config file: ipython_config.py
[IPythonQtConsoleApp] Config file ipython_config.py not found
[IPythonQtConsoleApp] Attempting to load config file: ipython_qtconsole_config.py
[IPythonQtConsoleApp] Config file not found, skipping: ipython_qtconsole_config.py
[IPythonQtConsoleApp] Connection File not found: kernel-2639.json
zsh: segmentation fault ipython qtconsole --log-level='DEBUG'
[pts/1] thomas@mustang | ~
» [IPKernelApp] Config changed:
[IPKernelApp] {'KernelApp': {'parent_appname': 'ipython-qtconsole'}, 'IPKernelApp': {'log_level': u'DEBUG', 'parent': 1, 'connection_file': u'/home/thomas/.config/ipython/profile_default/security/kernel-2639.json'}}
[IPKernelApp] Using existing profile dir: u'/home/thomas/.config/ipython/profile_default'
[IPKernelApp] Searching path [u'/home/thomas', u'/home/thomas/.config/ipython/profile_default'] for config files
[IPKernelApp] Attempting to load config file: ipython_config.py
[IPKernelApp] Config file ipython_config.py not found
[IPKernelApp] Attempting to load config file: ipython_qtconsole_config.py
[IPKernelApp] Config file not found, skipping: ipython_qtconsole_config.py
[IPKernelApp] Loading connection file /home/thomas/.config/ipython/profile_default/security/kernel-2639.json
[IPKernelApp] Starting the kernel at pid: 2644
[IPKernelApp] shell ROUTER Channel on port: 59635
[IPKernelApp] iopub PUB Channel on port: 51803
[IPKernelApp] stdin ROUTER Channel on port: 43148
[IPKernelApp] Heartbeat REP Channel on port: 50659
[IPKernelApp] To connect another client to this kernel, use:
[IPKernelApp] --existing kernel-2639.json

# starting qtconsole with --existing flag
__» ipython qtconsole --log-level='DEBUG' --existing kernel-2639.json__
[IPythonQtConsoleApp] Config changed:
[IPythonQtConsoleApp] {'Application': {'log_level': u'DEBUG'}, 'IPythonQtConsoleApp': {'existing': u'kernel-2639.json'}}
[IPythonQtConsoleApp] Using existing profile dir: u'/home/thomas/.config/ipython/profile_default'
[IPythonQtConsoleApp] Searching path [u'/home/thomas', u'/home/thomas/.config/ipython/profile_default'] for config files
[IPythonQtConsoleApp] Attempting to load config file: ipython_config.py
[IPythonQtConsoleApp] Config file ipython_config.py not found
[IPythonQtConsoleApp] Attempting to load config file: ipython_qtconsole_config.py
[IPythonQtConsoleApp] Config file not found, skipping: ipython_qtconsole_config.py
[IPythonQtConsoleApp] Connecting to existing kernel: /home/thomas/.config/ipython/profile_default/security/kernel-2639.json
[IPythonQtConsoleApp] Loading connection file /home/thomas/.config/ipython/profile_default/security/kernel-2639.json
zsh: segmentation fault ipython qtconsole --log-level='DEBUG' --existing kernel-2639.json

# strace reports (last lines):
read(44, "gn # COLON SIGN\n <"..., 4096) = 4096
read(44, " U0309 # COMBIN"..., 4096) = 4096
read(44, "MALL LETTER A WITH RING ABOVE AN"..., 4096) = 4096
read(44, " # LATIN CAPITAL LETTER S WIT"..., 4096) = 4096
read(44, "dead_tilde> \t "..., 4096) = 4096
read(44, "circumflexgrave # LATIN CAPIT"..., 4096) = 4096
read(44, "ok # LATIN SMALL LETTE"..., 4096) = 4096
read(44, "NG ACUTE ACCENT\n "..., 4096) = 2671
read(44, "", 4096) = 0
close(44) = 0
munmap(0x7fa350804000, 4096) = 0
poll([{fd=32, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=32, revents=POLLOUT}])
writev(32, [{"\2\21\4\0`\1\0\0\0\10\0\0000@@\0\24\0\6\0`\1\0\0\22\1\0\0\37\0\0\0"..., 40}, {NULL, 0}, {"", 0}], 3) = 40
poll([{fd=32, events=POLLIN}], 1, -1) = 1 ([{fd=32, revents=POLLIN}])
read(32, "\1\10\236\0\n\0\0\0\37\0\0\0\0\0\0\0%\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 72
read(32, 0x387e8e4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(32, 0x387e8e4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(32, 0x387e8e4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
stat("/usr/share/fonts/dejavu/DejaVuSansMono.ttf", {st_mode=S_IFREG|0644, st_size=333632, ...}) = 0
open("/usr/share/fonts/dejavu/DejaVuSansMono.ttf", O_RDONLY) = 44
fcntl(44, F_SETFD, FD_CLOEXEC) = 0
fstat(44, {st_mode=S_IFREG|0644, st_size=333632, ...}) = 0
mmap(NULL, 333632, PROT_READ, MAP_PRIVATE, 44, 0) = 0x7fa34ef54000
close(44) = 0
--- {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x10900002d1f} (Segmentation fault) ---
+++ killed by SIGSEGV +++
zsh: segmentation fault __strace ipython qtconsole --log-level='DEBUG' --existing kernel-2639.json__