You are not logged in.

#26 2018-01-31 10:16:19

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,283

Re: python2 core dumped

Can't reproduce even without python2-enum34

Online

#27 2018-01-31 13:16:42

civ0
Member
Registered: 2018-01-28
Posts: 9

Re: python2 core dumped

Installing python2-enum34 fixed it for me too.

When I run calibre with strace it also gets loaded. Maybe it should be a dependency of python2-pyqt5 when qt5-networkauth is installed (I don't know if such a "optional dependency dependency" is possible).
Anyway, here is the part of the strace where it gets loaded, right after /usr/lib/python2.7/site-packages/PyQt5/QtNetworkAuth gets loaded:

stat("/usr/lib/python2.7/site-packages/PyQt5/QtNetworkAuth", 0x7ffdfc9b1370) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/site-packages/PyQt5/QtNetworkAuth.so", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0755, st_size=255296, ...}) = 0
openat(AT_FDCWD, "/usr/lib/python2.7/site-packages/PyQt5/QtNetworkAuth.so", O_RDONLY|O_CLOEXEC) = 7
read(7, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\231\0\0\0\0\0\0"..., 832) = 832
fstat(7, {st_mode=S_IFREG|0755, st_size=255296, ...}) = 0
mmap(NULL, 2295104, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 7, 0) = 0x7fa438c83000
mprotect(0x7fa438cae000, 2093056, PROT_NONE) = 0
mmap(0x7fa438ead000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 7, 0x2a000) = 0x7fa438ead000
close(7)                                = 0
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=172127, ...}) = 0
mmap(NULL, 172127, PROT_READ, MAP_PRIVATE, 7, 0) = 0x7fa449a1c000
close(7)                                = 0
openat(AT_FDCWD, "/usr/lib/libQt5NetworkAuth.so.5", O_RDONLY|O_CLOEXEC) = 7
read(7, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\270\0\0\0\0\0\0"..., 832) = 832
fstat(7, {st_mode=S_IFREG|0755, st_size=231256, ...}) = 0
mmap(NULL, 2331992, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 7, 0) = 0x7fa438a49000
mprotect(0x7fa438a80000, 2093056, PROT_NONE) = 0
mmap(0x7fa438c7f000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 7, 0x36000) = 0x7fa438c7f000
mmap(0x7fa438c82000, 1368, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fa438c82000
close(7)                                = 0
mprotect(0x7fa438c7f000, 8192, PROT_READ) = 0
mprotect(0x7fa438ead000, 8192, PROT_READ) = 0
munmap(0x7fa449a1c000, 172127)          = 0
stat("/usr/lib/calibre/enum", 0x7ffdfc9b1000) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/calibre/enum.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/calibre/enummodule.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/calibre/enum.py", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/calibre/enum.pyc", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/bin/enum", 0x7ffdfc9b1000)   = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/bin/enum.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/bin/enummodule.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/bin/enum.py", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/bin/enum.pyc", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib/python2.7/enum", 0x7ffdfc9b1000) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/enum.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/enummodule.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/enum.py", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/enum.pyc", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib/python2.7/plat-linux2/enum", 0x7ffdfc9b1000) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/plat-linux2/enum.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/plat-linux2/enummodule.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/plat-linux2/enum.py", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/plat-linux2/enum.pyc", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib/python2.7/lib-tk/enum", 0x7ffdfc9b1000) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/lib-tk/enum.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/lib-tk/enummodule.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/lib-tk/enum.py", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/lib-tk/enum.pyc", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib/python2.7/lib-dynload/enum", 0x7ffdfc9b1000) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/lib-dynload/enum.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/lib-dynload/enummodule.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/lib-dynload/enum.py", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/lib-dynload/enum.pyc", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib/python2.7/site-packages/enum", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/python2.7/site-packages/enum/__init__.py", {st_mode=S_IFREG|0644, st_size=31054, ...}) = 0
stat("/usr/lib/python2.7/site-packages/enum/__init__", 0x7ffdfc9b0fc0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/site-packages/enum/__init__.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/site-packages/enum/__init__module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/site-packages/enum/__init__.py", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=31054, ...}) = 0
openat(AT_FDCWD, "/usr/lib/python2.7/site-packages/enum/__init__.pyc", O_RDONLY) = 8
fstat(8, {st_mode=S_IFREG|0644, st_size=24624, ...}) = 0
read(8, "\3\363\r\n[>9Wc\0\0\0\0\0\0\0\0\5\0\0\0@\0\0\0sJ\3\0\0d\0"..., 4096) = 4096
fstat(8, {st_mode=S_IFREG|0644, st_size=24624, ...}) = 0
read(8, "ack enum member order and ensure"..., 20480) = 20480
read(8, "\3\2\t\4\n\1\3\2\t\2\n\1\3\2\t\2\n\1\3\t\17\3\n\1\3\2\17\3\n\1\3\2"..., 4096) = 48
read(8, "", 4096)                       = 0
close(8)                                = 0
stat("/usr/lib/python2.7/site-packages/enum", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/python2.7/site-packages/enum", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/python2.7/site-packages/enum/sys", 0x7ffdfc9b0b50) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/site-packages/enum/sys.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/site-packages/enum/sysmodule.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/site-packages/enum/sys.py", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/site-packages/enum/sys.pyc", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib/python2.7/site-packages/enum/collections", 0x7ffdfc9b0b50) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/site-packages/enum/collections.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/site-packages/enum/collectionsmodule.so", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/site-packages/enum/collections.py", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/python2.7/site-packages/enum/collections.pyc", O_RDONLY) = -1 ENOENT (No such file or directory)
close(7)                                = 0
close(6)                                = 0

Last edited by civ0 (2018-01-31 13:25:57)

Offline

#28 2018-01-31 14:55:18

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: python2 core dumped

I can reproduce the issue by 1) installing qt5-networkauth, and 2) uninstalling python2-enum34 which was installed due to ipython2

$ sudo pacinstall qt5-networkauth --remove python2-enum34 --no-deps --no-deps
[...]
$ strace -o pyqt5-crash.log python2 -c 'import PyQt5.Qt'
Segmentation fault (core dumped)
$ sudo pacinstall --as-deps python2-enum34 --remove qt5-networkauth
[...]

https://paste.xinu.at/hsOUjKU/

Last edited by eschwartz (2018-01-31 14:58:48)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#29 2018-01-31 20:07:54

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,283

Re: python2 core dumped

Thanks all for the debugging work. I've added the dependency to python2-pyqt5.

Online

Board footer

Powered by FluxBB