Bug 1387786 - PyQwt segfaults
Summary: PyQwt segfaults
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: PyQwt
Version: 24
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Tadej Janež
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-21 21:45 UTC by Guy Jennings
Modified: 2017-08-08 19:30 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-08 19:30:44 UTC
Type: Bug


Attachments (Terms of Use)

Description Guy Jennings 2016-10-21 21:45:48 UTC
Description of problem:
PyQwt segfaults when attempting to do a plot

Version-Release number of selected component (if applicable):
PyQwt-5.2.0-30.fc24.x86_64

How reproducible:
Always

Steps to Reproduce:

1. $ gdb python
2. (gdb) run
3. 
import numpy as np
from PyQt4.Qt import *
from PyQt4.Qwt5 import *
from PyQt4.Qwt5.qplt import *
x = np.arange(-2*np.pi, 2*np.pi, 0.01)
p = Plot(
      Curve(x, np.cos(x), Pen(Magenta, 2), "cos(x)"),
      Curve(x, np.exp(x), Pen(Red), "exp(x)", Y2),
      Axis(Y2, Log),
      "PyQwt using Qwt-%s -- http://qwt.sf.net" % QWT_VERSION_STR)

Actual results:

[jennings@weimar Desktop]$ gdb python
GNU gdb (GDB) Fedora 7.11.1-86.fc24
Copyright (C) 2016 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-redhat-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 python...Reading symbols from /home/jennings/Desktop/python...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Missing separate debuginfos, use: dnf debuginfo-install python-2.7.12-6.fc24.x86_64
(gdb) run
Starting program: /usr/bin/python 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
Python 2.7.12 (default, Sep 29 2016, 13:30:34) 
[GCC 6.2.1 20160916 (Red Hat 6.2.1-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> from PyQt4.Qt import *
>>> from PyQt4.Qwt5 import *
>>> from PyQt4.Qwt5.qplt import *
>>> application = QApplication([])
>>> x = np.arange(-2*np.pi, 2*np.pi, 0.01)
>>> p = Plot(
... Curve(x, np.cos(x), Pen(Magenta, 2), "cos(x)"),
... Curve(x, np.exp(x), Pen(Red), "exp(x)", Y2),
... Axis(Y2, Log),
... "PyQwt using Qwt-%s -- http://qwt.sf.net" % QWT_VERSION_STR)

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in  ()
#1  0x00007fffd82d139d in cast_QwtPicker () at /usr/lib64/python2.7/site-packages/PyQt4/Qwt5/Qwt.so
#2  0x00007fffecf08ee1 in add_aliases () at /usr/lib64/python2.7/site-packages/sip.so
#3  0x00007fffecf08ea2 in add_aliases () at /usr/lib64/python2.7/site-packages/sip.so
#4  0x00007fffecf08ea2 in add_aliases () at /usr/lib64/python2.7/site-packages/sip.so
#5  0x00007fffecefd732 in sipSimpleWrapper_init () at /usr/lib64/python2.7/site-packages/sip.so
#6  0x00007ffff7a9adbe in type_call () at /usr/lib64/libpython2.7.so.1.0
#7  0x00007ffff7a44fd3 in PyObject_Call () at /usr/lib64/libpython2.7.so.1.0
#8  0x00007ffff7adce36 in PyEval_EvalFrameEx () at /usr/lib64/libpython2.7.so.1.0
#9  0x00007ffff7ae102c in PyEval_EvalCodeEx () at /usr/lib64/libpython2.7.so.1.0
#10 0x00007ffff7a69d3c in function_call () at /usr/lib64/libpython2.7.so.1.0
#11 0x00007ffff7a44fd3 in PyObject_Call () at /usr/lib64/libpython2.7.so.1.0
#12 0x00007ffff7a53e2c in instancemethod_call () at /usr/lib64/libpython2.7.so.1.0
#13 0x00007ffff7a44fd3 in PyObject_Call () at /usr/lib64/libpython2.7.so.1.0
#14 0x00007ffff7a9c0f7 in slot_tp_init () at /usr/lib64/libpython2.7.so.1.0
#15 0x00007ffff7a9adbe in type_call () at /usr/lib64/libpython2.7.so.1.0
#16 0x00007ffff7a44fd3 in PyObject_Call () at /usr/lib64/libpython2.7.so.1.0
#17 0x00007ffff7adce36 in PyEval_EvalFrameEx () at /usr/lib64/libpython2.7.so.1.0
#18 0x00007ffff7ae102c in PyEval_EvalCodeEx () at /usr/lib64/libpython2.7.so.1.0
#19 0x00007ffff7ae1119 in PyEval_EvalCode () at /usr/lib64/libpython2.7.so.1.0
#20 0x00007ffff7afa4ff in run_mod () at /usr/lib64/libpython2.7.so.1.0
#21 0x00007ffff7afc5ba in PyRun_InteractiveOneFlags () at /usr/lib64/libpython2.7.so.1.0
#22 0x00007ffff7afc79e in PyRun_InteractiveLoopFlags () at /usr/lib64/libpython2.7.so.1.0
#23 0x00007ffff7afce1e in PyRun_AnyFileExFlags () at /usr/lib64/libpython2.7.so.1.0
#24 0x00007ffff7b0e930 in Py_Main () at /usr/lib64/libpython2.7.so.1.0
#25 0x00007ffff6d2d731 in __libc_start_main (main=
    0x5555555547b0 <main>, argc=1, argv=0x7fffffffd268, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffd258) at ../csu/libc-start.c:289
#26 0x00005555555547e9 in _start ()
(gdb) q

Expected results:

No segfault!

Additional info:
I saw this originally when trying to run pymca, but I think the problem is in PyQwt

Comment 1 Guy Jennings 2016-10-21 22:18:36 UTC
Oops - I missed a line in the steps to reproduce - should be

import numpy as np
from PyQt4.Qt import *
from PyQt4.Qwt5 import *
from PyQt4.Qwt5.qplt import *
application = QApplication([])
x = np.arange(-2*np.pi, 2*np.pi, 0.01)
p = Plot(
      Curve(x, np.cos(x), Pen(Magenta, 2), "cos(x)"),
      Curve(x, np.exp(x), Pen(Red), "exp(x)", Y2),
      Axis(Y2, Log),
      "PyQwt using Qwt-%s -- http://qwt.sf.net" % QWT_VERSION_STR)

Comment 2 Fedora End Of Life 2017-07-25 23:34:02 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 3 Fedora End Of Life 2017-08-08 19:30:44 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.