You are not logged in.

#1 2018-01-28 18:54:44

doblerone
Member
Registered: 2011-12-08
Posts: 215

python2 core dumped

I realized today when I try to open calibre:

┌─( david ) » { ~ }
└──┤ LC_ALL=C calibre
Violación de segmento (`core' generado) ==> Segmentation fault (core dumped)

By looking at coredumpctl, I found this:

└──┤ coredumpctl list
TIME                            PID   UID   GID SIG COREFILE  EXE
Tue 2018-01-23 18:40:46 CET    4870  1000     3  11 missing   /usr/bin/xfce4-taskmanager
Wed 2018-01-24 20:10:25 CET    4446  1000     3  11 missing   /usr/lib/firefox/firefox
Wed 2018-01-24 20:10:40 CET    1172  1000     3  11 missing   /usr/lib/firefox/firefox
Wed 2018-01-24 20:10:40 CET    2615  1000     3  11 missing   /usr/lib/firefox/firefox
Sat 2018-01-27 08:37:45 CET     856  1000     3  11 present   /usr/lib/xfce4/notifyd/xfce4-notifyd
Sun 2018-01-28 12:19:11 CET   15361  1000     3  11 present   /usr/bin/python2.7
Sun 2018-01-28 12:19:48 CET   15371  1000     3  11 present   /usr/bin/python2.7
Sun 2018-01-28 12:19:56 CET   15381  1000     3  11 present   /usr/bin/python2.7
Sun 2018-01-28 12:20:08 CET   15391  1000     3  11 present   /usr/bin/python2.7
Sun 2018-01-28 12:20:16 CET   15401  1000     3  11 present   /usr/bin/python2.7
Sun 2018-01-28 12:22:39 CET   15679  1000     3  11 present   /usr/bin/python2.7
Sun 2018-01-28 12:24:49 CET    1153  1000     3  11 present   /usr/bin/python2.7
Sun 2018-01-28 12:25:21 CET    1226  1000     3  11 present   /usr/bin/python2.7
Sun 2018-01-28 19:05:02 CET    1081  1000     3  11 present   /usr/bin/python2.7
Sun 2018-01-28 19:34:26 CET    1683  1000     3  11 present   /usr/bin/python2.7
Sun 2018-01-28 19:36:13 CET    1706  1000     3  11 present   /usr/bin/python2.7
Sun 2018-01-28 19:39:23 CET    1724  1000     3  11 present   /usr/bin/python2.7

If I look at the last one:

┌─( david ) » { ~ }
└──┤ coredumpctl info 1724
           PID: 1724 (python2)
           UID: 1000 (david)
           GID: 3 (sys)
        Signal: 11 (SEGV)
     Timestamp: Sun 2018-01-28 19:39:23 CET (3min 27s ago)
  Command Line: python2 /usr/bin/calibre
    Executable: /usr/bin/python2.7
 Control Group: /user.slice/user-1000.slice/session-c1.scope
          Unit: session-c1.scope
         Slice: user-1000.slice
       Session: c1
     Owner UID: 1000 (david)
       Boot ID: a775c5c56145489b9e938c5a6704f9ca
    Machine ID: 9e1e8b27d4a64ccf8aed2de636929c73
      Hostname: archie
       Storage: /var/lib/systemd/coredump/core.python2.1000.a775c5c56145489b9e938c5a6704f9ca.1724.1517164763000000.lz4
       Message: Process 1724 (python2) of user 1000 dumped core.
                
                Stack trace of thread 1724:
                #0  0x00007fadc79abc08 n/a (sip.so)
                #1  0x00007fadc76b6646 n/a (QtCore.so)
                #2  0x00007fadc76b6bb4 n/a (QtCore.so)
                #3  0x00007fadc76beec7 n/a (QtCore.so)
                #4  0x00007fadc76bf2f4 n/a (QtCore.so)
                #5  0x00007fadc79ba281 n/a (sip.so)
                #6  0x00007fadc79ba808 n/a (sip.so)
                #7  0x00007fadd6976c09 PyEval_EvalFrameEx (libpython2.7.so.1.0)
                #8  0x00007fadd69d1456 PyEval_EvalCodeEx (libpython2.7.so.1.0)
                #9  0x00007fadd697ccba PyEval_EvalFrameEx (libpython2.7.so.1.0)
                #10 0x00007fadd69d1456 PyEval_EvalCodeEx (libpython2.7.so.1.0)
                #11 0x00007fadd69eaa9a PyEval_EvalCode (libpython2.7.so.1.0)
                #12 0x00007fadd6a07201 PyImport_ExecCodeModuleEx (libpython2.7.so.1.0)
                #13 0x00007fadd6a073ea load_source_module (libpython2.7.so.1.0)
                #14 0x00007fadd6a07bb0 import_submodule (libpython2.7.so.1.0)
                #15 0x00007fadd69b8747 PyImport_ImportModuleLevel (libpython2.7.so.1.0)
                #16 0x00007fadd69badda builtin___import__.lto_priv.1227 (libpython2.7.so.1.0)
                #17 0x00007fadd699a573 PyObject_Call (libpython2.7.so.1.0)
                #18 0x00007fadd69d0b31 PyEval_CallObjectWithKeywords (libpython2.7.so.1.0)
                #19 0x00007fadd6979e6c PyEval_EvalFrameEx (libpython2.7.so.1.0)
                #20 0x00007fadd69d1456 PyEval_EvalCodeEx (libpython2.7.so.1.0)
                #21 0x00007fadd69eaa9a PyEval_EvalCode (libpython2.7.so.1.0)
                #22 0x00007fadd6a07201 PyImport_ExecCodeModuleEx (libpython2.7.so.1.0)
                #23 0x00007fadd6a073ea load_source_module (libpython2.7.so.1.0)
                #24 0x00007fadd6a07e81 load_package (libpython2.7.so.1.0)
                #25 0x00007fadd6a07bb0 import_submodule (libpython2.7.so.1.0)
                #26 0x00007fadd69b7f1d PyImport_ImportModuleLevel (libpython2.7.so.1.0)
                #27 0x00007fadd69badda builtin___import__.lto_priv.1227 (libpython2.7.so.1.0)
                #28 0x00007fadd699a573 PyObject_Call (libpython2.7.so.1.0)
                #29 0x00007fadd69d0b31 PyEval_CallObjectWithKeywords (libpython2.7.so.1.0)
                #30 0x00007fadd6979e6c PyEval_EvalFrameEx (libpython2.7.so.1.0)
                #31 0x00007fadd69d1456 PyEval_EvalCodeEx (libpython2.7.so.1.0)
                #32 0x00007fadd697c7bf PyEval_EvalFrameEx (libpython2.7.so.1.0)
                #33 0x00007fadd69d1456 PyEval_EvalCodeEx (libpython2.7.so.1.0)
                #34 0x00007fadd69eaa9a PyEval_EvalCode (libpython2.7.so.1.0)
                #35 0x00007fadd69ee321 run_mod (libpython2.7.so.1.0)
                #36 0x00007fadd69efc05 PyRun_FileExFlags (libpython2.7.so.1.0)
                #37 0x00007fadd69efdda PyRun_SimpleFileExFlags (libpython2.7.so.1.0)
                #38 0x00007fadd69d73b3 Py_Main (libpython2.7.so.1.0)
                #39 0x00007fadd6ceff4a __libc_start_main (libc.so.6)
                #40 0x000055926ebb678a _start (python2.7)
                
                Stack trace of thread 1726:
                #0  0x00007fadd70933bd pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                #1  0x00007fadd0f1f5bd __gthread_cond_wait (libstdc++.so.6)
                #2  0x00007fadc2100aa9 n/a (libQt5WebKit.so.5)
                #3  0x00007fadc2100bf9 n/a (libQt5WebKit.so.5)
                #4  0x00007fadd0f25b9f execute_native_thread_routine (libstdc++.so.6)
                #5  0x00007fadd708d08c start_thread (libpthread.so.0)
                #6  0x00007fadd6dc4e7f __clone (libc.so.6)

last lines of journalctl:

...
ene 28 19:36:13 archie kernel: python2[1706]: segfault at 18 ip 00007fcc3c953c08 sp 00007ffd28b7e550 error 4 in sip.so[7fcc3c94f000+20000]
ene 28 19:36:13 archie systemd[1]: Started Process Core Dump (PID 1709/UID 0).
ene 28 19:36:13 archie systemd-coredump[1710]: Process 1706 (python2) of user 1000 dumped core.
                                               
                                               Stack trace of thread 1706:
                                               #0  0x00007fcc3c953c08 n/a (sip.so)
                                               #1  0x00007fcc3c65e646 n/a (QtCore.so)
                                               #2  0x00007fcc3c65ebb4 n/a (QtCore.so)
                                               #3  0x00007fcc3c666ec7 n/a (QtCore.so)
                                               #4  0x00007fcc3c6672f4 n/a (QtCore.so)
                                               #5  0x00007fcc3c962281 n/a (sip.so)
                                               #6  0x00007fcc3c962808 n/a (sip.so)
                                               #7  0x00007fcc4b91ec09 PyEval_EvalFrameEx (libpython2.7.so.1.0)
                                               #8  0x00007fcc4b979456 PyEval_EvalCodeEx (libpython2.7.so.1.0)
                                               #9  0x00007fcc4b924cba PyEval_EvalFrameEx (libpython2.7.so.1.0)
                                               #10 0x00007fcc4b979456 PyEval_EvalCodeEx (libpython2.7.so.1.0)
                                               #11 0x00007fcc4b992a9a PyEval_EvalCode (libpython2.7.so.1.0)
                                               #12 0x00007fcc4b9af201 PyImport_ExecCodeModuleEx (libpython2.7.so.1.0)
                                               #13 0x00007fcc4b9af3ea load_source_module (libpython2.7.so.1.0)
                                               #14 0x00007fcc4b9afbb0 import_submodule (libpython2.7.so.1.0)
                                               #15 0x00007fcc4b960747 PyImport_ImportModuleLevel (libpython2.7.so.1.0)
                                               #16 0x00007fcc4b962dda builtin___import__.lto_priv.1227 (libpython2.7.so.1.0)
                                               #17 0x00007fcc4b942573 PyObject_Call (libpython2.7.so.1.0)
                                               #18 0x00007fcc4b978b31 PyEval_CallObjectWithKeywords (libpython2.7.so.1.0)
                                               #19 0x00007fcc4b921e6c PyEval_EvalFrameEx (libpython2.7.so.1.0)
                                               #20 0x00007fcc4b979456 PyEval_EvalCodeEx (libpython2.7.so.1.0)
                                               #21 0x00007fcc4b992a9a PyEval_EvalCode (libpython2.7.so.1.0)
                                               #22 0x00007fcc4b9af201 PyImport_ExecCodeModuleEx (libpython2.7.so.1.0)
                                               #23 0x00007fcc4b9af3ea load_source_module (libpython2.7.so.1.0)
                                               #24 0x00007fcc4b9afe81 load_package (libpython2.7.so.1.0)
                                               #25 0x00007fcc4b9afbb0 import_submodule (libpython2.7.so.1.0)
                                               #26 0x00007fcc4b95ff1d PyImport_ImportModuleLevel (libpython2.7.so.1.0)
                                               #27 0x00007fcc4b962dda builtin___import__.lto_priv.1227 (libpython2.7.so.1.0)
                                               #28 0x00007fcc4b942573 PyObject_Call (libpython2.7.so.1.0)
                                               #29 0x00007fcc4b978b31 PyEval_CallObjectWithKeywords (libpython2.7.so.1.0)
                                               #30 0x00007fcc4b921e6c PyEval_EvalFrameEx (libpython2.7.so.1.0)
                                               #31 0x00007fcc4b979456 PyEval_EvalCodeEx (libpython2.7.so.1.0)
                                               #32 0x00007fcc4b9247bf PyEval_EvalFrameEx (libpython2.7.so.1.0)
                                               #33 0x00007fcc4b979456 PyEval_EvalCodeEx (libpython2.7.so.1.0)
                                               #34 0x00007fcc4b992a9a PyEval_EvalCode (libpython2.7.so.1.0)
                                               #35 0x00007fcc4b996321 run_mod (libpython2.7.so.1.0)
                                               #36 0x00007fcc4b997c05 PyRun_FileExFlags (libpython2.7.so.1.0)
                                               #37 0x00007fcc4b997dda PyRun_SimpleFileExFlags (libpython2.7.so.1.0)
                                               #38 0x00007fcc4b97f3b3 Py_Main (libpython2.7.so.1.0)
                                               #39 0x00007fcc4bc97f4a __libc_start_main (libc.so.6)
                                               #40 0x000055993816378a _start (python2.7)
                                               
                                               Stack trace of thread 1708:
                                               #0  0x00007fcc4c03b3bd pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                               #1  0x00007fcc45ec75bd __gthread_cond_wait (libstdc++.so.6)
                                               #2  0x00007fcc370a8aa9 n/a (libQt5WebKit.so.5)
                                               #3  0x00007fcc370a8bf9 n/a (libQt5WebKit.so.5)
                                               #4  0x00007fcc45ecdb9f execute_native_thread_routine (libstdc++.so.6)
                                               #5  0x00007fcc4c03508c start_thread (libpthread.so.0)
                                               #6  0x00007fcc4bd6ce7f __clone (libc.so.6)
ene 28 19:39:23 archie kernel: python2[1724]: segfault at 18 ip 00007fadc79abc08 sp 00007ffd9cece020 error 4 in sip.so[7fadc79a7000+20000]
ene 28 19:39:23 archie systemd[1]: Started Process Core Dump (PID 1727/UID 0).
ene 28 19:39:23 archie systemd-coredump[1728]: Process 1724 (python2) of user 1000 dumped core.
                                               
                                               Stack trace of thread 1724:
                                               #0  0x00007fadc79abc08 n/a (sip.so)
                                               #1  0x00007fadc76b6646 n/a (QtCore.so)
                                               #2  0x00007fadc76b6bb4 n/a (QtCore.so)
                                               #3  0x00007fadc76beec7 n/a (QtCore.so)
                                               #4  0x00007fadc76bf2f4 n/a (QtCore.so)
                                               #5  0x00007fadc79ba281 n/a (sip.so)
                                               #6  0x00007fadc79ba808 n/a (sip.so)
                                               #7  0x00007fadd6976c09 PyEval_EvalFrameEx (libpython2.7.so.1.0)
                                               #8  0x00007fadd69d1456 PyEval_EvalCodeEx (libpython2.7.so.1.0)
                                               #9  0x00007fadd697ccba PyEval_EvalFrameEx (libpython2.7.so.1.0)
                                               #10 0x00007fadd69d1456 PyEval_EvalCodeEx (libpython2.7.so.1.0)
                                               #11 0x00007fadd69eaa9a PyEval_EvalCode (libpython2.7.so.1.0)
                                               #12 0x00007fadd6a07201 PyImport_ExecCodeModuleEx (libpython2.7.so.1.0)
                                               #13 0x00007fadd6a073ea load_source_module (libpython2.7.so.1.0)
                                               #14 0x00007fadd6a07bb0 import_submodule (libpython2.7.so.1.0)
                                               #15 0x00007fadd69b8747 PyImport_ImportModuleLevel (libpython2.7.so.1.0)
                                               #16 0x00007fadd69badda builtin___import__.lto_priv.1227 (libpython2.7.so.1.0)
                                               #17 0x00007fadd699a573 PyObject_Call (libpython2.7.so.1.0)
                                               #18 0x00007fadd69d0b31 PyEval_CallObjectWithKeywords (libpython2.7.so.1.0)
                                               #19 0x00007fadd6979e6c PyEval_EvalFrameEx (libpython2.7.so.1.0)
                                               #20 0x00007fadd69d1456 PyEval_EvalCodeEx (libpython2.7.so.1.0)
                                               #21 0x00007fadd69eaa9a PyEval_EvalCode (libpython2.7.so.1.0)
                                               #22 0x00007fadd6a07201 PyImport_ExecCodeModuleEx (libpython2.7.so.1.0)
                                               #23 0x00007fadd6a073ea load_source_module (libpython2.7.so.1.0)
                                               #24 0x00007fadd6a07e81 load_package (libpython2.7.so.1.0)
                                               #25 0x00007fadd6a07bb0 import_submodule (libpython2.7.so.1.0)
                                               #26 0x00007fadd69b7f1d PyImport_ImportModuleLevel (libpython2.7.so.1.0)
                                               #27 0x00007fadd69badda builtin___import__.lto_priv.1227 (libpython2.7.so.1.0)
                                               #28 0x00007fadd699a573 PyObject_Call (libpython2.7.so.1.0)
                                               #29 0x00007fadd69d0b31 PyEval_CallObjectWithKeywords (libpython2.7.so.1.0)
                                               #30 0x00007fadd6979e6c PyEval_EvalFrameEx (libpython2.7.so.1.0)
                                               #31 0x00007fadd69d1456 PyEval_EvalCodeEx (libpython2.7.so.1.0)
                                               #32 0x00007fadd697c7bf PyEval_EvalFrameEx (libpython2.7.so.1.0)
                                               #33 0x00007fadd69d1456 PyEval_EvalCodeEx (libpython2.7.so.1.0)
                                               #34 0x00007fadd69eaa9a PyEval_EvalCode (libpython2.7.so.1.0)
                                               #35 0x00007fadd69ee321 run_mod (libpython2.7.so.1.0)
                                               #36 0x00007fadd69efc05 PyRun_FileExFlags (libpython2.7.so.1.0)
                                               #37 0x00007fadd69efdda PyRun_SimpleFileExFlags (libpython2.7.so.1.0)
                                               #38 0x00007fadd69d73b3 Py_Main (libpython2.7.so.1.0)
                                               #39 0x00007fadd6ceff4a __libc_start_main (libc.so.6)
                                               #40 0x000055926ebb678a _start (python2.7)
                                               
                                               Stack trace of thread 1726:
                                               #0  0x00007fadd70933bd pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                               #1  0x00007fadd0f1f5bd __gthread_cond_wait (libstdc++.so.6)
                                               #2  0x00007fadc2100aa9 n/a (libQt5WebKit.so.5)
                                               #3  0x00007fadc2100bf9 n/a (libQt5WebKit.so.5)
                                               #4  0x00007fadd0f25b9f execute_native_thread_routine (libstdc++.so.6)
                                               #5  0x00007fadd708d08c start_thread (libpthread.so.0)
                                               #6  0x00007fadd6dc4e7f __clone (libc.so.6)
ene 28 19:41:37 archie sudo[1760]: pam_unix(sudo:auth): conversation failed
ene 28 19:41:37 archie sudo[1760]: pam_unix(sudo:auth): auth could not identify password for [david]
ene 28 19:44:06 archie kernel: perf: interrupt took too long (2501 > 2500), lowering kernel.perf_event_max_sample_rate to 79800
ene 28 19:45:38 archie sudo[1768]:    david : TTY=pts/0 ; PWD=/home/david ; USER=root ; COMMAND=/usr/bin/journalctl --since 3 days ago
ene 28 19:45:38 archie sudo[1768]: pam_unix(sudo:session): session opened for user root by (uid=0)

What else should I check?

Thanks in advance.

Offline

#2 2018-01-28 19:31:50

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

Re: python2 core dumped

I have the same problem:

[civ0@callisto tmp]$ calibre
Segmentation fault (core dumped)

Here is the part of the strace where it gets weird. Its like I have no python2 - but its there and fine.

Here are the package versions of calibre and python2:

civ0@callisto ~> pacman -Q calibre
calibre 3.16.0-1
civ0@callisto ~> pacman -Q python2
python2 2.7.14-2

Offline

#3 2018-01-28 19:32:26

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

Re: python2 core dumped

Does it work if you downgrade sip and/or pyqt5?

Offline

#4 2018-01-28 19:40:24

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

Re: python2 core dumped

I downgraded to the following package versions:

pacman -U python2-pyqt5-5.9.2-2-x86_64.pkg.tar.xz pyqt5-common-5.9.2-2-x86_64.pkg.tar.xz python-pyqt5-5.9.2-2-x86_64.pkg.tar.xz

Calibre is now working again.

Thanks for the help.

Offline

#5 2018-01-28 20:15:45

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

Re: python2 core dumped

FWIW calibre works fine here with updated sip/pyqt5, as well as in a minimal chroot. So I'm not sure what the problem with your pyqt5 installation might be...

Did this actually work with the updated pyqt5 and the previous version of calibre??

Do you have any other software installed which uses pyqt5 and has the same issue?


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

Offline

#6 2018-01-28 20:25:31

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

Re: python2 core dumped

The only software I have installed using pyqt5 is git-cola from the AUR. I upgraded to

python2-pyqt5-5.10-1-x86_64.pkg.tar.xz
pyqt5-common-5.10-1-x86_64.pkg.tar.xz
python-pyqt5-5.10-1-x86_64.pkg.tar.xz 

and it still worked, but that that uses the python3 version. Calibre didn't work, which was expected.

Offline

#7 2018-01-28 20:47:09

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: python2 core dumped

Absolute minimal python2 program to test python2-pyqt5

#!/usr/bin/python2
import sys
from PyQt5.QtWidgets import QApplication, QWidget

if __name__ == '__main__':
    
    app = QApplication(sys.argv)

    w = QWidget()
    w.show()
    
    sys.exit(app.exec_())

Save that as a file chmod it executeable and it should spawn a window.

Offline

#8 2018-01-28 20:53:45

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

Re: python2 core dumped

The test works with both versions for me.

Offline

#9 2018-01-28 21:30:49

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,273

Offline

#10 2018-01-29 07:39:33

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

Re: python2 core dumped

civ0@callisto ~> pacman -Qi sip
Name            : sip
Version         : 4.19.7-1
Description     : A tool that makes it easy to create Python bindings for C and C++ libraries
Architecture    : x86_64
URL             : http://www.riverbankcomputing.com/software/sip/intro
Licenses        : custom:"sip"
Groups          : None
Provides        : None
Depends On      : glibc
Optional Deps   : None
Required By     : python-sip  python2-sip
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 396.00 KiB
Packager        : Antonio Rojas <arojas@archlinux.org>
Build Date      : Tue 23 Jan 2018 08:30:06 PM CET
Install Date    : Sun 28 Jan 2018 08:38:36 PM CET
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

Downgrading sip didn't work, so it's the newest again.

EDIT: I overlooked one of Eschwartz questions:

Eschwartz wrote:

Did this actually work with the updated pyqt5 and the previous version of calibre??

Right after noticing the problem, I downgraded calibre to calibre-3.15.0-1, but it didn't help.

Last edited by civ0 (2018-01-29 07:50:00)

Offline

#11 2018-01-29 09:44:08

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,273

Re: python2 core dumped

wild guess:

pip list --local

Offline

#12 2018-01-29 13:50:45

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

Re: python2 core dumped

I don't have python2-pip and python-pip installed and they never where installed on the system.

Here is a list of all python-packages installed when searching with pacman, maybe it's helpful:

civ0@callisto ~> pacman -Qs python | grep local | sed 's/local\///'
libvirt-python2 3.10.0-1
pyqt5-common 5.9.2-2
python 3.6.4-2
python-appdirs 1.4.3-1
python-babel 2.5.3-4
python-chardet 3.0.4-1
python-dbus-common 1.2.4-2
python-docutils 0.14-1
python-gobject 3.26.1-1
python-idna 2.6-1
python-imagesize 0.7.1-2
python-jinja 2.10-1
python-markupsafe 1.0-1
python-msgpack 0.5.0-2
python-packaging 16.8-2
python-psutil 5.4.3-1
python-pygments 2.2.0-1
python-pyparsing 2.2.0-1
python-pyqt5 5.9.2-2
python-pytz 2017.3-1
python-requests 2.18.4-1
python-setuptools 1:38.4.0-1
python-sip 4.19.7-1
python-six 1.11.0-1
python-snowballstemmer 1.2.1-2
python-sphinx 1.6.6-1
python-sphinx-alabaster-theme 0.7.10-1
python-sphinx_rtd_theme 0.2.4-1
python-sphinxcontrib-websupport 1.0.1-1
python-sqlalchemy 1.2.2-1
python-urllib3 1.22-1
python-whoosh 2.7.4-2
python-xdg 0.25-4
python2 2.7.14-2
python2-appdirs 1.4.3-1
python2-apsw 3.15.2-1
python2-cairo 1.15.4-1
python2-chardet 3.0.4-1
python2-cssselect 1.0.3-1
python2-cssutils 1.0.2-1
python2-dateutil 2.6.1-1
python2-dbus 1.2.4-2
python2-dnspython 1.15.0-2
python2-dukpy 0.3-2
python2-gobject 3.26.1-1
python2-html5-parser 0.4.4-1
python2-html5lib 1.0.1-2
python2-idna 2.6-1
python2-ipaddr 2.1.11-1
python2-lxml 4.1.1-1
python2-mechanize 1:0.3.6-1
python2-msgpack 0.5.0-2
python2-netifaces 0.10.6-1
python2-olefile 0.44-1
python2-packaging 16.8-2
python2-pillow 4.3.0-1
python2-psutil 5.4.3-1
python2-pygments 2.2.0-1
python2-pyparsing 2.2.0-1
python2-pyqt5 5.9.2-2
python2-regex 2018.01.10-2
python2-requests 2.18.4-1
python2-setuptools 1:38.4.0-1
python2-sip 4.19.7-1
python2-six 1.11.0-1
python2-unrardll 0.1.3-3
python2-urllib3 1.22-1
python2-webencodings 0.5.1-1
sip 4.19.7-1
vim 8.0.1415-2

I also checked if of these where modified with

pacman -Qs python | grep local | sed 's/local\///' | awk '{print $1}' | xargs pacman -Qkk

but they are all fine.

Offline

#13 2018-01-29 20:29:02

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: python2 core dumped

Can you post the full output of `strace -e trace=%file calibre` please.

Offline

#14 2018-01-29 21:03:01

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: python2 core dumped

Have you tried to create a new user and launch calibre there? This might help discard the possibility that it is something borked with your current calibre configuration.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#15 2018-01-30 04:57:47

catseye
Member
Registered: 2009-03-09
Posts: 16

Re: python2 core dumped

I am affected by this problem as well. I have spent an entire afternoon trying to figure out the reason for it but so far to no avail.  But at least I can provide a very simple test case that happens to be used in the 'calibre' source code in many, many places:

23:~
% python3 -c 'import PyQt5.Qt'
24:~
% python2 -c 'import PyQt5.Qt'
zsh: segmentation fault (core dumped)  python2 -c 'import PyQt5.Qt'

The stack trace I get looks very much like the one that has been posted in the opening post of this thread. AFAIU the 'PyQt5.Qt' is a special module that imports all other 'PyQt5.*' submodules automatically so that you don't have to figure yourself which particular submodule you have to import when you want to access a certain Qt5 symbol.

For the record:

28:~
% pacman -Qs pyqt5 | grep local
local/pyqt5-common 5.10-1
local/python-pyqt5 5.10-1
local/python2-pyqt5 5.10-1
29:~
% pacman -Qs sip | grep local
local/python-sip 4.19.7-1
local/python2-sip 4.19.7-1
local/sip 4.19.7-1

Offline

#16 2018-01-30 07:18:07

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

Re: python2 core dumped

We can't get any further without an actual backtrace. Unfortunately The-compiler still hasn't updated his debug packages to 5.10, so someone affected will need to compile sip and pyqt with debug symbols.

Offline

#17 2018-01-30 10:06:32

catseye
Member
Registered: 2009-03-09
Posts: 16

Re: python2 core dumped

arojas wrote:

We can't get any further without an actual backtrace. Unfortunately The-compiler still hasn't updated his debug packages to 5.10, so someone affected will need to compile sip and pyqt with debug symbols.

I have recompiled 'sip' and 'PyQt5' with debugging symbols to get a more expressive backtrace:

% gdb python2
GNU gdb (GDB) 8.0.1
...
Reading symbols from python2...(no debugging symbols found)...done.
(gdb) directory ~/sip/src/sip-4.19.7-py2/siplib
Source directories searched: ~/sip/src/sip-4.19.7-py2/siplib:$cdir:$cwd
(gdb) run
Starting program: /usr/bin/python2 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Python 2.7.14 (default, Jan  5 2018, 10:41:29) 
[GCC 7.2.1 20171224] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt5.Qt
[New Thread 0x7fffe1ccd700 (LWP 26951)]

Thread 1 "python2" received signal SIGSEGV, Segmentation fault.
0x00007ffff0b7578b in compareTypeDef (el=0x7fffec9c8960 <sipExportedTypes_QtNetworkAuth+64>, key=0x555555a9f768) at siplib.c:9541
9541	        s2 = sipTypeName(td);
(gdb) bt
#0  0x00007ffff0b7578b in compareTypeDef (el=0x7fffec9c8960 <sipExportedTypes_QtNetworkAuth+64>, key=0x555555a9f768) at siplib.c:9541
#1  0x00007ffff0b7578b in bsearch (__compar=<optimized out>, __size=8, __nmemb=16, __base=0x7fffec9c8920 <sipExportedTypes_QtNetworkAuth>, __key=0x555555a9f768) at /usr/include/bits/stdlib-bsearch.h:33
#2  0x00007ffff0b7578b in sip_api_find_type (type=0x555555a9f768 "QScreen") at siplib.c:9602
#3  0x00007ffff5509b26 in Chimera::parse_cpp_type(QByteArray const&) (this=0x555555a38de0, type=...) at ../qpy/QtCore/qpycore_chimera.cpp:635
#4  0x00007ffff5508c24 in Chimera::parse(QByteArray const&, char const*) (sig=..., context=0x7ffff553c1f8 "a signal argument") at ../qpy/QtCore/qpycore_chimera.cpp:241
#5  0x00007ffff5519b8d in qpycore_pyqtSignal_New(char const*, bool*) (signature=0x7ffff00c6860 "primaryScreenChanged(QScreen*)", fatal=0x7fffffffd6a7) at ../qpy/QtCore/qpycore_pyqtsignal.cpp:556
#6  0x00007ffff551a0fe in qpycore_get_lazy_attr(sipTypeDef const*, PyObject*) (td=0x7ffff0368b00 <sipTypeDef_QtGui_QGuiApplication>, dict=0x7ffff0b60398) at ../qpy/QtCore/qpycore_pyqtsignal.cpp:746
#7  0x00007ffff0b83b31 in add_lazy_attrs (td=0x7ffff0368b00 <sipTypeDef_QtGui_QGuiApplication>) at siplib.c:7350
#8  0x00007ffff0b83b31 in add_all_lazy_attrs (td=0x7ffff0368b00 <sipTypeDef_QtGui_QGuiApplication>) at siplib.c:7371
#9  0x00007ffff0b83bb4 in add_all_lazy_attrs (td=0x7fffe1179b60 <sipTypeDef_QtWidgets_QApplication>) at siplib.c:7384
#10 0x00007ffff0b84155 in sipSimpleWrapper_new (wt=0x555555a4be70, args=<optimized out>, kwds=<optimized out>) at siplib.c:10302
#11 0x00007ffff74d1975 in type_call.lto_priv () at /usr/lib/libpython2.7.so.1.0
#12 0x00007ffff74ce573 in PyObject_Call () at /usr/lib/libpython2.7.so.1.0
#13 0x00007ffff0b8751b in sipWrapInstance (cpp=cpp@entry=0x7fffe0e9bd03 <access_qApp()>, py_type=0x555555a4be70, args=0x7ffff7f76050, owner=owner@entry=0x0, flags=flags@entry=24) at threads.c:124
#14 0x00007ffff0b81241 in wrap_simple_instance (td=0x7fffe1179b60 <sipTypeDef_QtWidgets_QApplication>, flags=24, owner=0x0, cpp=0x7fffe0e9bd03 <access_qApp()>) at siplib.c:13165
#15 0x00007ffff0b81241 in addSingleTypeInstance (dict=dict@entry=0x7fffe969f7f8, name=0x7fffe0ebd15c <sipStrings_QtWidgets+66588> "qApp", cppPtr=<optimized out>, td=0x7fffe1179b60 <sipTypeDef_QtWidgets_QApplication>, initflags=24) at siplib.c:8719
#16 0x00007ffff0b812e7 in addTypeInstances (ti=0x7fffe11fab80 <typeInstances>, dict=<optimized out>) at siplib.c:8685
#17 0x00007ffff0b812e7 in addInstances (dict=dict@entry=0x7fffe969f7f8, id=id@entry=0x7fffe11fac58 <sipModuleAPI_QtWidgets+120>) at siplib.c:7052
#18 0x00007ffff0b830d6 in sip_api_init_module (client=0x7fffe11fabe0 <sipModuleAPI_QtWidgets>, mod_dict=0x7fffe969f7f8) at siplib.c:1979
#19 0x00007fffe0ea0151 in initQtWidgets() () at sipQtWidgetscmodule.cpp:10028
#20 0x00007ffff753b7b3 in _PyImport_LoadDynamicModule () at /usr/lib/libpython2.7.so.1.0
#21 0x00007ffff753bbb0 in import_submodule () at /usr/lib/libpython2.7.so.1.0
#22 0x00007ffff74ebf1d in PyImport_ImportModuleLevel () at /usr/lib/libpython2.7.so.1.0
#23 0x00007ffff74eedda in builtin___import__.lto_priv.1227 () at /usr/lib/libpython2.7.so.1.0
#24 0x00007ffff74ce573 in PyObject_Call () at /usr/lib/libpython2.7.so.1.0
#25 0x00007ffff74d047a in PyObject_CallFunction () at /usr/lib/libpython2.7.so.1.0
#26 0x00007ffff74ecded in PyImport_Import () at /usr/lib/libpython2.7.so.1.0
#27 0x00007ffff753bf5f in PyImport_ImportModule () at /usr/lib/libpython2.7.so.1.0
#28 0x00007ffff5da36eb in sip_import_component_module (d=0x7ffff7ea3d70, name=0x7ffff5da3ad5 "PyQt5.QtWidgets") at sipQtcmodule.c:21
#29 0x00007ffff5da3868 in initQt () at sipQtcmodule.c:98
#30 0x00007ffff753b7b3 in _PyImport_LoadDynamicModule () at /usr/lib/libpython2.7.so.1.0
#31 0x00007ffff753bbb0 in import_submodule () at /usr/lib/libpython2.7.so.1.0
#32 0x00007ffff74ebf1d in PyImport_ImportModuleLevel () at /usr/lib/libpython2.7.so.1.0
#33 0x00007ffff74eedda in builtin___import__.lto_priv.1227 () at /usr/lib/libpython2.7.so.1.0
#34 0x00007ffff74ce573 in PyObject_Call () at /usr/lib/libpython2.7.so.1.0
#35 0x00007ffff7504b31 in PyEval_CallObjectWithKeywords () at /usr/lib/libpython2.7.so.1.0
#36 0x00007ffff74ade6c in PyEval_EvalFrameEx () at /usr/lib/libpython2.7.so.1.0
#37 0x00007ffff7505456 in PyEval_EvalCodeEx () at /usr/lib/libpython2.7.so.1.0
#38 0x00007ffff751ea9a in PyEval_EvalCode () at /usr/lib/libpython2.7.so.1.0
#39 0x00007ffff7522321 in run_mod () at /usr/lib/libpython2.7.so.1.0
#40 0x00007ffff742be6b in PyRun_InteractiveOneFlags () at /usr/lib/libpython2.7.so.1.0
#41 0x00007ffff742bfcc in PyRun_InteractiveLoopFlags () at /usr/lib/libpython2.7.so.1.0
#42 0x00007ffff742c017 in PyRun_AnyFileExFlags.cold.71 () at /usr/lib/libpython2.7.so.1.0
#43 0x00007ffff750b3b3 in Py_Main () at /usr/lib/libpython2.7.so.1.0
#44 0x00007ffff7823f4a in __libc_start_main () at /usr/lib/libc.so.6
#45 0x000055555555478a in _start ()
(gdb) print *td
$1 = {td_version = -1, td_next_version = 0x0, td_module = 0x0, td_flags = 784, td_cname = 2568, u = {td_py_type = 0x0, td_wrapper_type = 0x0}, td_plugin_data = 0x7fffec9c6c60 <plugin_QOAuth1>}
(gdb) l
9536	    /* Allow for unresolved externally defined types. */
9537	    td = *(const sipTypeDef **)el;
9538	
9539	    if (td != NULL)
9540	    {
9541	        s2 = sipTypeName(td);
9542	    }
9543	    else
9544	    {
9545	        sipExternalTypeDef *etd = module_searched->em_external;
(gdb)

To be honest this backtrace leaves me as clueless as I was before.  But I have found out something else that might be a useful hint:

52:~
% python2 -c 'import PyQt5.QtWidgets, PyQt5.Qt'
53:~
% python2 -c 'import PyQt5.Qt' 
zsh: segmentation fault (core dumped)  python2 -c 'import PyQt5.Qt'

Offline

#18 2018-01-30 17:07:09

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

Re: python2 core dumped

arojas wrote:

We can't get any further without an actual backtrace. Unfortunately The-compiler still hasn't updated his debug packages to 5.10, so someone affected will need to compile sip and pyqt with debug symbols.

I have rebuild sip and pyqt5 with debug symbols and now have a backtrace:

civ0@callisto ~> gdb --args /usr/bin/python2 /usr/bin/calibre
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/python2...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/python2 /usr/bin/calibre
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffdd99c700 (LWP 2032)]

Thread 1 "python2" received signal SIGSEGV, Segmentation fault.
0x00007fffe8e33c08 in ?? () from /usr/lib/python2.7/site-packages/sip.so
(gdb) bt
#0  0x00007fffe8e33c08 in  () at /usr/lib/python2.7/site-packages/sip.so
#1  0x00007fffe8b3e646 in Chimera::parse_cpp_type(QByteArray const&) () at /usr/lib/python2.7/site-packages/PyQt5/QtCore.so
#2  0x00007fffe8b3ebb4 in Chimera::parse(QByteArray const&, char const*) () at /usr/lib/python2.7/site-packages/PyQt5/QtCore.so
#3  0x00007fffe8b46ec7 in qpycore_pyqtSignal_New(char const*, bool*) () at /usr/lib/python2.7/site-packages/PyQt5/QtCore.so
#4  0x00007fffe8b472f4 in qpycore_get_lazy_attr () at /usr/lib/python2.7/site-packages/PyQt5/QtCore.so
#5  0x00007fffe8e42281 in  () at /usr/lib/python2.7/site-packages/sip.so
#6  0x00007fffe8e42808 in  () at /usr/lib/python2.7/site-packages/sip.so
#7  0x00007ffff74aac09 in PyEval_EvalFrameEx () at /usr/lib/libpython2.7.so.1.0
#8  0x00007ffff7505456 in PyEval_EvalCodeEx () at /usr/lib/libpython2.7.so.1.0
#9  0x00007ffff74b0cba in PyEval_EvalFrameEx () at /usr/lib/libpython2.7.so.1.0
#10 0x00007ffff7505456 in PyEval_EvalCodeEx () at /usr/lib/libpython2.7.so.1.0
#11 0x00007ffff751ea9a in PyEval_EvalCode () at /usr/lib/libpython2.7.so.1.0
#12 0x00007ffff753b201 in PyImport_ExecCodeModuleEx () at /usr/lib/libpython2.7.so.1.0
#13 0x00007ffff753b3ea in load_source_module () at /usr/lib/libpython2.7.so.1.0
#14 0x00007ffff753bbb0 in import_submodule () at /usr/lib/libpython2.7.so.1.0
#15 0x00007ffff74ec747 in PyImport_ImportModuleLevel () at /usr/lib/libpython2.7.so.1.0
#16 0x00007ffff74eedda in builtin___import__.lto_priv.1227 () at /usr/lib/libpython2.7.so.1.0
#17 0x00007ffff74ce573 in PyObject_Call () at /usr/lib/libpython2.7.so.1.0
#18 0x00007ffff7504b31 in PyEval_CallObjectWithKeywords () at /usr/lib/libpython2.7.so.1.0
#19 0x00007ffff74ade6c in PyEval_EvalFrameEx () at /usr/lib/libpython2.7.so.1.0
#20 0x00007ffff7505456 in PyEval_EvalCodeEx () at /usr/lib/libpython2.7.so.1.0
#21 0x00007ffff751ea9a in PyEval_EvalCode () at /usr/lib/libpython2.7.so.1.0
#22 0x00007ffff753b201 in PyImport_ExecCodeModuleEx () at /usr/lib/libpython2.7.so.1.0
#23 0x00007ffff753b3ea in load_source_module () at /usr/lib/libpython2.7.so.1.0
#24 0x00007ffff753be81 in load_package () at /usr/lib/libpython2.7.so.1.0
#25 0x00007ffff753bbb0 in import_submodule () at /usr/lib/libpython2.7.so.1.0
#26 0x00007ffff74ebf1d in PyImport_ImportModuleLevel () at /usr/lib/libpython2.7.so.1.0
#27 0x00007ffff74eedda in builtin___import__.lto_priv.1227 () at /usr/lib/libpython2.7.so.1.0
#28 0x00007ffff74ce573 in PyObject_Call () at /usr/lib/libpython2.7.so.1.0
#29 0x00007ffff7504b31 in PyEval_CallObjectWithKeywords () at /usr/lib/libpython2.7.so.1.0
#30 0x00007ffff74ade6c in PyEval_EvalFrameEx () at /usr/lib/libpython2.7.so.1.0
#31 0x00007ffff7505456 in PyEval_EvalCodeEx () at /usr/lib/libpython2.7.so.1.0
#32 0x00007ffff74b07bf in PyEval_EvalFrameEx () at /usr/lib/libpython2.7.so.1.0
#33 0x00007ffff7505456 in PyEval_EvalCodeEx () at /usr/lib/libpython2.7.so.1.0
#34 0x00007ffff751ea9a in PyEval_EvalCode () at /usr/lib/libpython2.7.so.1.0
#35 0x00007ffff7522321 in run_mod () at /usr/lib/libpython2.7.so.1.0
#36 0x00007ffff7523c05 in PyRun_FileExFlags () at /usr/lib/libpython2.7.so.1.0
#37 0x00007ffff7523dda in PyRun_SimpleFileExFlags () at /usr/lib/libpython2.7.so.1.0
#38 0x00007ffff750b3b3 in Py_Main () at /usr/lib/libpython2.7.so.1.0
#39 0x00007ffff7823f4a in __libc_start_main () at /usr/lib/libc.so.6
#40 0x000055555555478a in _start ()
(gdb) 

I hope this is helpful.

EDIT: I just noticed that this backtrace pobably isn't helpful, because the function names are missing in sip.so. Looking into that now.

UPDATE: I now have a complete backtrace. The makefile generated by configure.py strips sip.so.

civ0@callisto ~> gdb --args /usr/bin/python2 /usr/bin/calibre
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/python2...(no debugging symbols found)...done.
(gdb) directory ~/src/sip-4.19.7-py2/siplib/
Source directories searched: /home/civ0/src/sip-4.19.7-py2/siplib:$cdir:$cwd
(gdb) r
Starting program: /usr/bin/python2 /usr/bin/calibre
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffdd99c700 (LWP 3665)]

Thread 1 "python2" received signal SIGSEGV, Segmentation fault.
0x00007fffe8e33c08 in compareTypeDef (el=0x7fffe7379360 <sipExportedTypes_QtNetworkAuth+64>, key=0x555555d93c18)
    at siplib.c:9541
warning: Source file is more recent than executable.
9541	        s2 = sipTypeName(td);
(gdb) bt
#0  0x00007fffe8e33c08 in compareTypeDef (el=0x7fffe7379360 <sipExportedTypes_QtNetworkAuth+64>, key=0x555555d93c18)
    at siplib.c:9541
#1  0x00007fffe8e33c08 in bsearch (__compar=<optimized out>, __size=8, __nmemb=16, __base=0x7fffe7379320 <sipExportedTypes_QtNetworkAuth>, __key=0x555555d93c18) at /usr/include/bits/stdlib-bsearch.h:33
#2  0x00007fffe8e33c08 in sip_api_find_type (type=0x555555d93c18 "QUrl") at siplib.c:9602
#3  0x00007fffe8b3e646 in Chimera::parse_cpp_type(QByteArray const&) ()
    at /usr/lib/python2.7/site-packages/PyQt5/QtCore.so
#4  0x00007fffe8b3ebb4 in Chimera::parse(QByteArray const&, char const*) ()
    at /usr/lib/python2.7/site-packages/PyQt5/QtCore.so
#5  0x00007fffe8b46ec7 in qpycore_pyqtSignal_New(char const*, bool*) ()
    at /usr/lib/python2.7/site-packages/PyQt5/QtCore.so
#6  0x00007fffe8b472f4 in qpycore_get_lazy_attr () at /usr/lib/python2.7/site-packages/PyQt5/QtCore.so
#7  0x00007fffe8e42281 in add_lazy_attrs (td=0x7fffed186240 <sipTypeDef_QtWidgets_QFileDialog>) at siplib.c:7350
#8  0x00007fffe8e42281 in add_all_lazy_attrs (td=0x7fffed186240 <sipTypeDef_QtWidgets_QFileDialog>) at siplib.c:7371
#9  0x00007fffe8e42808 in sipWrapperType_getattro (self=0x555555ab03f0, name=0x7fffdd0a64c8) at siplib.c:10261
#10 0x00007ffff74aac09 in PyEval_EvalFrameEx () at /usr/lib/libpython2.7.so.1.0
#11 0x00007ffff7505456 in PyEval_EvalCodeEx () at /usr/lib/libpython2.7.so.1.0
#12 0x00007ffff74b0cba in PyEval_EvalFrameEx () at /usr/lib/libpython2.7.so.1.0
#13 0x00007ffff7505456 in PyEval_EvalCodeEx () at /usr/lib/libpython2.7.so.1.0
#14 0x00007ffff751ea9a in PyEval_EvalCode () at /usr/lib/libpython2.7.so.1.0
#15 0x00007ffff753b201 in PyImport_ExecCodeModuleEx () at /usr/lib/libpython2.7.so.1.0
#16 0x00007ffff753b3ea in load_source_module () at /usr/lib/libpython2.7.so.1.0
#17 0x00007ffff753bbb0 in import_submodule () at /usr/lib/libpython2.7.so.1.0
#18 0x00007ffff74ec747 in PyImport_ImportModuleLevel () at /usr/lib/libpython2.7.so.1.0
#19 0x00007ffff74eedda in builtin___import__.lto_priv.1227 () at /usr/lib/libpython2.7.so.1.0
#20 0x00007ffff74ce573 in PyObject_Call () at /usr/lib/libpython2.7.so.1.0
#21 0x00007ffff7504b31 in PyEval_CallObjectWithKeywords () at /usr/lib/libpython2.7.so.1.0
#22 0x00007ffff74ade6c in PyEval_EvalFrameEx () at /usr/lib/libpython2.7.so.1.0
#23 0x00007ffff7505456 in PyEval_EvalCodeEx () at /usr/lib/libpython2.7.so.1.0
#24 0x00007ffff751ea9a in PyEval_EvalCode () at /usr/lib/libpython2.7.so.1.0
#25 0x00007ffff753b201 in PyImport_ExecCodeModuleEx () at /usr/lib/libpython2.7.so.1.0
#26 0x00007ffff753b3ea in load_source_module () at /usr/lib/libpython2.7.so.1.0
#27 0x00007ffff753be81 in load_package () at /usr/lib/libpython2.7.so.1.0
#28 0x00007ffff753bbb0 in import_submodule () at /usr/lib/libpython2.7.so.1.0
#29 0x00007ffff74ebf1d in PyImport_ImportModuleLevel () at /usr/lib/libpython2.7.so.1.0
#30 0x00007ffff74eedda in builtin___import__.lto_priv.1227 () at /usr/lib/libpython2.7.so.1.0
#31 0x00007ffff74ce573 in PyObject_Call () at /usr/lib/libpython2.7.so.1.0
#32 0x00007ffff7504b31 in PyEval_CallObjectWithKeywords () at /usr/lib/libpython2.7.so.1.0
#33 0x00007ffff74ade6c in PyEval_EvalFrameEx () at /usr/lib/libpython2.7.so.1.0
#34 0x00007ffff7505456 in PyEval_EvalCodeEx () at /usr/lib/libpython2.7.so.1.0
#35 0x00007ffff74b07bf in PyEval_EvalFrameEx () at /usr/lib/libpython2.7.so.1.0
#36 0x00007ffff7505456 in PyEval_EvalCodeEx () at /usr/lib/libpython2.7.so.1.0
#37 0x00007ffff751ea9a in PyEval_EvalCode () at /usr/lib/libpython2.7.so.1.0
#38 0x00007ffff7522321 in run_mod () at /usr/lib/libpython2.7.so.1.0
#39 0x00007ffff7523c05 in PyRun_FileExFlags () at /usr/lib/libpython2.7.so.1.0
#40 0x00007ffff7523dda in PyRun_SimpleFileExFlags () at /usr/lib/libpython2.7.so.1.0
#41 0x00007ffff750b3b3 in Py_Main () at /usr/lib/libpython2.7.so.1.0
#42 0x00007ffff7823f4a in __libc_start_main () at /usr/lib/libc.so.6
#43 0x000055555555478a in _start ()

Last edited by civ0 (2018-01-30 17:40:51)

Offline

#19 2018-01-30 21:23:30

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

Re: python2 core dumped

Looks like QtNetworkAuth is somehow involved. I'd say bring this upstream to the PyQt developers with the full backtrace.

Offline

#20 2018-01-31 05:33:37

catseye
Member
Registered: 2009-03-09
Posts: 16

Re: python2 core dumped

arojas wrote:

Looks like QtNetworkAuth is somehow involved. I'd say bring this upstream to the PyQt developers with the full backtrace.

I think we're heading for the right direction. If I delete the file

/usr/lib/python2.7/site-packages/PyQt5/QtNetworkAuth.so

from my system the crashes go away and I can build and run 'calibre' successfully. Very strange indeed ...

Offline

#21 2018-01-31 06:18:13

catseye
Member
Registered: 2009-03-09
Posts: 16

Re: python2 core dumped

arojas wrote:

Looks like QtNetworkAuth is somehow involved.

I just rebuilt 'python2-pyqt5' with the 'QtNetworkAuth' module disabled and indeed there are no more crashes on my system. If you want to try it for yourself you have to modify the PKGBUILD file for 'pyqt5' like this and then rebuild the complete package:

cd "$srcdir"/PyQt5_gpl-$pkgver-py2
python2 configure.py \
  --confirm-license \
  --no-sip-files \
  --qsci-api \
  --disable QtNetworkAuth \
  -q /usr/bin/qmake-qt5

The change is the addition of the second to last line; it is only needed for the 'python2-pyqt5' package, 'python-pyqt5' is not affected from what I can tell. Please note that this is just a crude band-aid, it does not solve the problem properly, but it works for me (at least).

I'd say bring this upstream to the PyQt developers with the full backtrace.

Maybe I will find some time this weekend to prepare a proper bug report. If anyone else wants to get ahead of me, don't hesitate!

Last edited by catseye (2018-01-31 06:18:37)

Offline

#22 2018-01-31 06:22:35

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: python2 core dumped

Don't forget, though, this issue doesn't seem to affect everyone. civ0 originally brought this up on IRC and we had 4 people there testing (me included) who couldn't reproduce the crash.

Online

#23 2018-01-31 08:19:48

catseye
Member
Registered: 2009-03-09
Posts: 16

Re: python2 core dumped

Scimmia wrote:

Don't forget, though, this issue doesn't seem to affect everyone. civ0 originally brought this up on IRC and we had 4 people there testing (me included) who couldn't reproduce the crash.

Yes, the fact that not everyone is able to reproduce the problem has kept me puzzled so I have scrutinized the 'strace' output again and I have found something interesting, but I need your help to verify my guess. So

  • can those of you who cannot reproduce the bug please check whether they happen to have the 'python2-enum34' package installed?

  • can those of you, who can reproduce the bug please check if they have not installed the 'python2-enum34' package? Does the crash go away when you install it?

Important addendum: If you conduct this test make sure that you have the 'qt5-networkauth' package installed as well, because if it isn't then 'PyQt5' won't even bother with it (because it can't load the necessary shared library) and you won't see any crash at all no matter whether you have 'python2-enum34' installed or not. Chances are you don't have 'qt5-networkauth' installed because until now it is not required by any package as a mandatory run-time dependency ('pyqt5' requires it only as a build-time and optional run-time depedendency). End of important addendum.

If your reports confirm my guess then the problem is caused by a missing run-time dependency:

% pacaur -Qi python2-enum34 qt5-networkauth
error: package 'python2-enum34' was not found
error: package 'qt5-networkauth' was not found

% calibre --version
calibre (calibre 3.16)

% pacaur -S qt5-networkauth
[...]
extra/qt5-networkauth  5.10.0-2
[...]
(1/1) installing qt5-networkauth

% calibre --version        
zsh: segmentation fault (core dumped)  calibre --version

% pacaur -S python2-enum34
[...]  
community/python2-enum34  1.1.6-1
[...]
(1/1) installing python2-enum34

% calibre --version       
calibre (calibre 3.16)

By the way: I was able to reproduce the crash on my ArchLinux32 system as well and I was able to prevent it by installing 'python2-enum34'.

Last edited by catseye (2018-01-31 11:04:17)

Offline

#24 2018-01-31 08:47:46

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: python2 core dumped

No python2-enum34 and no crash.

Offline

#25 2018-01-31 08:54:54

Scorpick
Member
Registered: 2016-02-16
Posts: 23

Re: python2 core dumped

For me calibre also crashed, after installing python2-enum34 it runs without problems.

Offline

Board footer

Powered by FluxBB