Summary: | sci-visualization/hippodraw-1.21.3-r1 - hippodraw segfaults | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | James Allsopp <ja> |
Component: | Current packages | Assignee: | Gentoo Science Related Packages <sci> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
James Allsopp
2008-09-02 11:37:44 UTC
A bit more information. On my system (Portage 2.2_rc8 (default/linux/amd64/2008.0/desktop, gcc-4.2.4, glibc-2.6.1-r0, 2.6.25-gentoo-r7 x86_64)) it shows: ------------------------------------------------------ 0x00007f5db2dd7b25 in waitpid () from /lib/libc.so.6 #1 0x00007f5db2d7fbc1 in ?? () from /lib/libc.so.6 #2 0x00007f5db5352317 in TUnixSystem::StackTrace () from /usr/lib64/root/libCore.so.5.20 #3 0x00007f5db5351a57 in TUnixSystem::DispatchSignals () from /usr/lib64/root/libCore.so.5.20 #4 <signal handler called> #5 0x00007f5db73c67b7 in QString::fromLocal8Bit () from /usr/lib/qt4/libQtCore.so.4 #6 0x00007f5db746a78b in QCoreApplication::arguments () from /usr/lib/qt4/libQtCore.so.4 #7 0x00007f5dbadf3d2f in hippodraw::QtApp::setFirstWindow () from /usr/lib64/libhippoqt.so.0 #8 0x0000000000401176 in ?? () #9 0x00007f5db2d61b74 in __libc_start_main () from /lib/libc.so.6 #10 0x0000000000400f89 in ?? () #11 0x00007fffc3277f18 in ?? () #12 0x0000000000000000 in ?? () The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal] Detaching from program: /proc/1560/exe, process 1560 --------------------------------------------------------- Running in gdb gives: --------------------------------------------------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7f87743e9760 (LWP 14732)] 0x00007f87705767b7 in QString::fromLocal8Bit () from /usr/lib/qt4/libQtCore.so.4 --------------------------------------------------------- Hi Andrei, Thanks for your report. It looks like it crashed with qt4. Could you also tell us which use flags are enabled for hippodraw? I will take a look at it, meanwhile try with disabling qt4. The qt3 interface might be more stable. hippodraw and qt4 currently don't get along at all which is why I didn't enable the qt4 stuff originally. I did look at this at some point in the past but there was no easy fix as far as I could tell. Maybe we should stick with qt3 for the time being. Best, Markus OK I think I located the problem and made a patch for qt4 in the main tree. Please resync and re-emerge hippodraw. If you still encounter this problem, re-open. Thanks. NB: next time you do a backtrace, please emerge with cflags/cxxflags with debugging options and FEATURES=nostrip. See http://www.gentoo.org/doc/en/bugzilla-howto.xml. Hi Sébastien, Markus, Thanks for looking on it. USE flags are: USE="doc examples fits numpy qt4 root -wcs" After fix from Sébastien i was able to start hippodraw gui. However, first try to draw something from python (using examples from the http://www.slac.stanford.edu/grp/ek/hippodraw/python_interact.html) leads to crash (*) (I have tried to follow instructions from http://www.gentoo.org/doc/en/bugzilla-howto.xml) When i try to run run_examples.py from examples by "python -i run_examples.py" sometimes it runs, sometimes crashes.. Looks like i should follow the advice from Markus and stick with qt3 for the time being... (*): ---------------------------------------------------------------- >>> canvas.addDisplay ( xy ) >>> *** Break *** segmentation violation (no debugging symbols found) Attaching to program: /proc/11049/exe, process 11049 [Thread debugging using libthread_db enabled] [New Thread 0x7feba033e6f0 (LWP 11049)] [New Thread 0x427d3950 (LWP 11050)] (no debugging symbols found)...done. (no debugging symbols found)...done. (no debugging symbols found)...done. (no debugging symbols found)...done. (no debugging symbols found)...done. 0x00007feb9f2d0942 in select () from /lib/libc.so.6 Thread 2 (Thread 0x427d3950 (LWP 11050)): #0 0x00007feb9f2a8b5f in waitpid () from /lib/libc.so.6 #1 0x00007feb9f250bc1 in ?? () from /lib/libc.so.6 #2 0x00007feb9f250f47 in system () from /lib/libc.so.6 #3 0x00007feb98550317 in TUnixSystem::StackTrace () from /usr/lib64/root/libCore.so.5.20 #4 0x00007feb9854fa57 in TUnixSystem::DispatchSignals () from /usr/lib64/root/libCore.so.5.20 #5 <signal handler called> #6 0x00007feb9fe36489 in PyObject_Call () from /usr/lib/libpython2.5.so.1.0 #7 0x00007feb9fea350d in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.5.so.1.0 #8 0x00007feb9fec2014 in PyEval_CallFunction () from /usr/lib/libpython2.5.so.1.0 #9 0x00007feb9e230da2 in boost::python::call<boost::python::api::object> ( callable=0x7feb8f408d50) at /usr/include/boost/python/call.hpp:63 #10 0x00007feb9e27fca2 in boost::python::api::object_operators<boost::python::api::proxy<boost::python::api::const_attribute_policies> >::operator() (this=<value optimized out>) at /usr/include/boost/python/object_operators.hpp:54 #11 0x00007feb9e27ea6c in hippodraw::ListTuple::getSize (sequence=<value optimized out>) at ListTuple.cxx:87 #12 0x00007feb9e27e77a in hippodraw::ListTuple::empty (this=0x7feb8f408d50) at ListTuple.cxx:131 #13 0x00007feb9980d43e in hippodraw::NTupleProjector::isEmpty (this=<value optimized out>) at NTupleProjector.cxx:504 #14 0x00007feb997b7c68 in hippodraw::DataRep::hasZeroRows (this=<value optimized out>) at DataRep.cxx:308 #15 0x00007feb997ec821 in hippodraw::CompositePlotter::autoScale (this=0x221fff0, model=0x2220070, axis=hippodraw::Axes::X) at CompositePlotter.cxx:362 #16 0x00007feb997f88b2 in hippodraw::XyPlotter::checkAutoScale (this=0x221fe70) at XyPlotter.cxx:127 #17 0x00007feb997f8bdc in hippodraw::XyPlotter::prepareToDraw (this=0x7feb8f408d50) at XyPlotter.cxx:142 #18 0x00007feb997dc9f6 in hippodraw::ViewBase::drawSelf (this=0x2221e20) at ViewBase.cxx:63 #19 0x00007feb9db84eaa in hippodraw::QtView::draw (this=0x2221d20, painter=@0x427d1810) at QtView.cxx:141 #20 0x00007feb9d83b563 in Q3CanvasItemList::drawUnique () from /usr/lib64/qt4/libQt3Support.so.4 #21 0x00007feb9d83b806 in Q3Canvas::drawCanvasArea () from /usr/lib64/qt4/libQt3Support.so.4 #22 0x00007feb9d83e71b in Q3Canvas::drawViewArea () from /usr/lib64/qt4/libQt3Support.so.4 #23 0x00007feb9d83eb3f in Q3CanvasView::drawContents () from /usr/lib64/qt4/libQt3Support.so.4 #24 0x00007feb9d793716 in Q3ScrollView::drawContentsOffset () from /usr/lib64/qt4/libQt3Support.so.4 #25 0x00007feb9d7950b1 in Q3ScrollView::viewportPaintEvent () from /usr/lib64/qt4/libQt3Support.so.4 #26 0x00007feb9d795ba7 in Q3ScrollView::eventFilter () from /usr/lib64/qt4/libQt3Support.so.4 #27 0x00007feb9a2483ed in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib64/qt4/libQtCore.so.4 #28 0x00007feb9c827560 in QApplicationPrivate::notify_helper () from /usr/lib64/qt4/libQtGui.so.4 #29 0x00007feb9c828e25 in QApplication::notify () from /usr/lib64/qt4/libQtGui.so.4 #30 0x00007feb9a248018 in QCoreApplication::notifyInternal () from /usr/lib64/qt4/libQtCore.so.4 #31 0x00007feb9c87e1bc in ?? () from /usr/lib64/qt4/libQtGui.so.4 #32 0x00007feb9c873ea1 in QWidgetPrivate::drawWidget () from /usr/lib64/qt4/libQtGui.so.4 #33 0x00007feb9c874590 in QWidgetPrivate::paintSiblingsRecursive () from /usr/lib64/qt4/libQtGui.so.4 #34 0x00007feb9c873ab5 in QWidgetPrivate::drawWidget () from /usr/lib64/qt4/libQtGui.so.4 #35 0x00007feb9c874590 in QWidgetPrivate::paintSiblingsRecursive () from /usr/lib64/qt4/libQtGui.so.4 #36 0x00007feb9c873ab5 in QWidgetPrivate::drawWidget () from /usr/lib64/qt4/libQtGui.so.4 #37 0x00007feb9c9c4213 in ?? () from /usr/lib64/qt4/libQtGui.so.4 #38 0x00007feb9c9c4592 in ?? () from /usr/lib64/qt4/libQtGui.so.4 #39 0x00007feb9c874ef7 in QWidget::event () from /usr/lib64/qt4/libQtGui.so.4 #40 0x00007feb9d78e1ed in Q3MainWindow::event () from /usr/lib64/qt4/libQt3Support.so.4 #41 0x00007feb9c82758f in QApplicationPrivate::notify_helper () from /usr/lib64/qt4/libQtGui.so.4 #42 0x00007feb9c828e25 in QApplication::notify () from /usr/lib64/qt4/libQtGui.so.4 #43 0x00007feb9a248018 in QCoreApplication::notifyInternal () from /usr/lib64/qt4/libQtCore.so.4 #44 0x00007feb9a249032 in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib64/qt4/libQtCore.so.4 #45 0x00007feb9a272a90 in QEventDispatcherUNIX::processEvents () from /usr/lib64/qt4/libQtCore.so.4 #46 0x00007feb9c8adc86 in ?? () from /usr/lib64/qt4/libQtGui.so.4 #47 0x00007feb9a247385 in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4 #48 0x00007feb9a2474da in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4 #49 0x00007feb9a249329 in QCoreApplication::exec () from /usr/lib64/qt4/libQtCore.so.4 #50 0x00007feb9e24833f in run (arg=<value optimized out>) at PyApp.cxx:144 #51 0x00007feb9fbe1fe7 in start_thread () from /lib/libpthread.so.0 #52 0x00007feb9f2d6b5d in clone () from /lib/libc.so.6 #53 0x0000000000000000 in ?? () Thread 1 (Thread 0x7feba033e6f0 (LWP 11049)): #0 0x00007feb9f2d0942 in select () from /lib/libc.so.6 #1 0x00007feb9ec5f514 in ?? () from /usr/lib64/python2.5/lib-dynload/readline.so #2 0x00007feb9fe32ebf in PyOS_Readline () from /usr/lib/libpython2.5.so.1.0 #3 0x00007feb9fe3402f in ?? () from /usr/lib/libpython2.5.so.1.0 #4 0x00007feb9fe34860 in PyTokenizer_Get () from /usr/lib/libpython2.5.so.1.0 #5 0x00007feb9fe309f8 in ?? () from /usr/lib/libpython2.5.so.1.0 #6 0x00007feb9fec3dd1 in PyParser_ASTFromFile () from /usr/lib/libpython2.5.so.1.0 #7 0x00007feb9fec5941 in PyRun_InteractiveOneFlags () from /usr/lib/libpython2.5.so.1.0 #8 0x00007feb9fec5b7e in PyRun_InteractiveLoopFlags () from /usr/lib/libpython2.5.so.1.0 #9 0x00007feb9fec5c8c in PyRun_AnyFileExFlags () from /usr/lib/libpython2.5.so.1.0 #10 0x00007feb9fece1d4 in Py_Main () from /usr/lib/libpython2.5.so.1.0 #11 0x00007feb9f232b74 in __libc_start_main () from /lib/libc.so.6 #12 0x0000000000400789 in _start () #0 0x00007feb9f2d0942 in select () from /lib/libc.so.6 The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal] Detaching from program: /proc/11049/exe, process 11049 ---------------------------------------------------------------- All, Do you actually encounter the same problems with qt3? I recall hippodraw examples and testsuite can be fairly buggy, but I can't test GUIs in detail right now being away from my amd64. If qt3 is more stable I will disable qt4 I will contact upstream about it. Thanks. (In reply to comment #6) > All, > > Do you actually encounter the same problems with qt3? > I recall hippodraw examples and testsuite can be fairly buggy, but I can't test > GUIs in detail right now being away from my amd64. > If qt3 is more stable I will disable qt4 I will contact upstream about it. > > Thanks. > At least mainpage.py in examples segfaults no matter if hippodraw is compiled with qt3 or qt4, hence I don't think this is qt4 related but I haven't had time to take a close look yet. Best, Markus (In reply to comment #6) > If qt3 is more stable I will disable qt4 I will contact upstream about it. Hi, Unfortunately, I am not an active hippodraw user. So, I can not make a detailed comments about it. I have tried to play with two versions of it: compiled against qt3 and qt4. With qt4 i have some crashes just clicking on inspector's tabs. qt3 is definitely more stable. "python -i run_examples.py" always finished without crashing. However, i had several crashes for qt3 version as well, when tried to plot something from python (it can be my fault as a user...). Sorry, currently I can not provide more detailed report. Is this one still valid with latest versions and qt? Dropped from tree |