Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236435 - sci-visualization/hippodraw-1.21.3-r1 - hippodraw segfaults
Summary: sci-visualization/hippodraw-1.21.3-r1 - hippodraw segfaults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-02 11:37 UTC by James Allsopp
Modified: 2012-02-26 13:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Allsopp 2008-09-02 11:37:44 UTC
ja@Hawaiian ~ $ hippodraw
Segmentation fault
ja@Hawaiian ~ $ emerge --info hippodraw
Portage 2.1.4.4 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r3 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: 2.6.24-gentoo-r3 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz
Timestamp of tree: Mon, 01 Sep 2008 09:00:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 apache2 berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran freetype gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg kde kerberos ldap libnotify lm_sensors mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype type1 unicode usb vorbis xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================
>>> Attempting to run pkg_info() for 'sci-visualization/hippodraw-1.21.3-r1'
 * pkg_info() is not defined: 'hippodraw-1.21.3-r1.ebuild'


Reproducible: Always

Steps to Reproduce:
1.run program
2.
3.



Expected Results:  
ran normally producing a windowing interface.
Comment 1 Andrei 2008-09-03 09:42:46 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
---------------------------------------------------------
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2008-09-03 09:51:04 UTC
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.
Comment 3 Markus Dittrich (RETIRED) gentoo-dev 2008-09-03 13:01:28 UTC
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
Comment 4 Sébastien Fabbro (RETIRED) gentoo-dev 2008-09-03 16:01:45 UTC
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.
Comment 5 Andrei 2008-09-04 12:04:03 UTC
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
----------------------------------------------------------------
Comment 6 Sébastien Fabbro (RETIRED) gentoo-dev 2008-09-04 13:24:43 UTC
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.
Comment 7 Markus Dittrich (RETIRED) gentoo-dev 2008-09-04 13:47:59 UTC
(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
Comment 8 Andrei 2008-09-04 16:00:07 UTC
(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.
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2010-06-23 09:57:24 UTC
Is this one still valid with latest versions and qt?
Comment 10 Justin Lecher (RETIRED) gentoo-dev 2012-02-26 13:10:16 UTC
Dropped from tree