Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 438812 - app-text/sigil segfaults when rearranging files
Summary: app-text/sigil segfaults when rearranging files
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Stefan Briesenick (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-18 15:20 UTC by J
Modified: 2013-01-24 21:38 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 J 2012-10-18 15:20:25 UTC
Sigil 0.5.3 (and the not-in-portage dev version, 0.5.907) have problems when rearranging html component files.

Reproducible: Always

Steps to Reproduce:
1. Run sigil
2. Click and drag section0001 to the Text (parent) folder.  It's already in that folder, but do it anyway (See note after steps).  The UI gets corrupted at this point.  The filename disappears, but there's still reserved space in the tree view where the filename would be.
3. Click on the Text (parent) folder to switch UI focus away from the now-broken section0001 file.
4. Right click on the empty space where section0001 should be.  That's where Sigil crashes on my system.

Note: I noticed this when rearranging files in a multi-file epub.  It adds another step though so I omitted what would have been 1.5: Add another File



Core was generated by `sigil'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000007bf6c9 in OPFModel::GetResourceType(QStandardItem const*) ()
(gdb) bt
#0  0x00000000007bf6c9 in OPFModel::GetResourceType(QStandardItem const*) ()
#1  0x00000000007bbceb in BookBrowser::SuccessfullySetupContextMenu(QPoint const&) ()
#2  0x00000000007bc5a1 in BookBrowser::OpenContextMenu(QPoint const&) ()
#3  0x00000000007dbf2e in ?? ()
#4  0x00002b8068070be1 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00002b8067101992 in QWidget::customContextMenuRequested(QPoint const&) ()
   from /usr/lib64/qt4/libQtGui.so.4
#6  0x00002b806710cb81 in QWidget::event(QEvent*) ()
   from /usr/lib64/qt4/libQtGui.so.4
#7  0x00002b80674a7cc6 in QFrame::event(QEvent*) ()
   from /usr/lib64/qt4/libQtGui.so.4
#8  0x00002b80675bbe1b in QAbstractItemView::viewportEvent(QEvent*) ()
   from /usr/lib64/qt4/libQtGui.so.4
#9  0x00002b8067602b15 in QTreeView::viewportEvent(QEvent*) ()
   from /usr/lib64/qt4/libQtGui.so.4
#10 0x00002b806805cfc8 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#11 0x00002b80670bbacf in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () from /usr/lib64/qt4/libQtGui.so.4
#12 0x00002b80670c0d8d in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib64/qt4/libQtGui.so.4
#13 0x00002b806805ce3c in QCoreApplication::notifyInternal(QObject*, QEvent*)
    () from /usr/lib64/qt4/libQtCore.so.4
#14 0x00002b80671384bb in ?? () from /usr/lib64/qt4/libQtGui.so.4
#15 0x00002b806713724a in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib64/qt4/libQtGui.so.4
#16 0x00002b806715e8c2 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#17 0x00002b806b8636f3 in g_main_context_dispatch ()
   from /usr/lib64/libglib-2.0.so.0
#18 0x00002b806b863a40 in ?? () from /usr/lib64/libglib-2.0.so.0
#19 0x00002b806b863b04 in g_main_context_iteration ()
   from /usr/lib64/libglib-2.0.so.0
#20 0x00002b806808bc7f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#21 0x00002b806715e55e in ?? () from /usr/lib64/qt4/libQtGui.so.4
#22 0x00002b806805b972 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#23 0x00002b806805bbc7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#24 0x00002b80680609e5 in QCoreApplication::exec() ()
   from /usr/lib64/qt4/libQtCore.so.4
#25 0x00000000005c7334 in main ()





Portage 2.1.11.29 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.15-r3, 3.5.3 x86_64)
=================================================================
System uname: Linux-3.5.3-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.2
Timestamp of tree: Wed, 17 Oct 2012 11:00:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5-r1::pentoo
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.6, 1.12.4
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.4.6-r1, 4.5.3-r2, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo mysql lisp bitcoin multimedia sunrise pentoo ruby java-overlay x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/pfiles/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="=en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j8"
PKGDIR="/usr/pfiles/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/portbuild"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/mysql /var/lib/layman/lisp /var/lib/layman/bitcoin /var/lib/layman/multimedia /var/lib/layman/sunrise /var/lib/layman/pentoo /var/lib/layman/ruby /var/lib/layman/java-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi adns aio alsa amd64 asyncns avahi berkdb bzip2 cairo caps cli cracklib crypt cups curl cxx dbus dga djvu dri dts dvd ecc emacs encode exif expat fastcgi flac fontconfig fortran gdbm git gpm gtk iconv inotify ipv6 java6 jbig jpeg jpeg2k kde libsamplerate lm_sensors lua lzma matroska mmap mmx mmxext mng modules mp3 mudflap multilib mysql ncurses network nls nptl ogg opengl openmp pam pch pcre pcsc-lite pic png posix pppd pulseaudio python qt3support qt4 readline rtsp ruby sensord session slp smp sndfile socks5 sqlite sqlite3 srp sse sse2 ssl ssse3 subversion svg syslog tcpd theora threads tiff tk truetype unicode urandom usb vaapi vorbis vpx webkit x264 xattr xcomposite xml xmlrpc xsl xslt xv xvid yaml zlib zsh-completion" ALSA_CARDS="hda-intel usb-audio" 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="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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 auth_digest proxy proxy_ajp proxy_balancer proxy_connect proxy_http" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" NGINX_MODULES_HTTP="access addition auth_basic autoindex browser charset degradation empty_gif ey_balancer fastcgi flv geo gzip headers_more image_filter limit_req limit_zone limit_conn lua map memcached mp4 proxy push realip referer rewrite secure_link ssi stub_status sub upstream_ip_hash userid uwsgi xslt dav" PHP_TARGETS="php5-4" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="lm32" RUBY_TARGETS="ruby19 jruby" SANE_BACKENDS="avision canon epson epson2 fujitsu genesys pixma" USERLAND="GNU" VIDEO_CARDS="radeon vesa vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


% ldd `which sigil`
        linux-vdso.so.1 (0x00007fff7d174000)
        libhunspell-1.3.so.0 => /usr/lib64/libhunspell-1.3.so.0 (0x00002b7422cfd000)
        libminizip.so.1 => /usr/lib64/libminizip.so.1 (0x00002b7422f52000)
        libQtWebKit.so.4 => /usr/lib64/qt4/libQtWebKit.so.4 (0x00002b742315f000)
        libQtGui.so.4 => /usr/lib64/qt4/libQtGui.so.4 (0x00002b7424cc5000)
        libQtNetwork.so.4 => /usr/lib64/qt4/libQtNetwork.so.4 (0x00002b7425972000)
        libQtCore.so.4 => /usr/lib64/qt4/libQtCore.so.4 (0x00002b7425cbe000)
        libboost_date_time-mt-1_49.so.1.49.0 => /usr/lib64/libboost_date_time-mt-1_49.so.1.49.0 (0x00002b7426198000)
        libboost_filesystem-mt-1_49.so.1.49.0 => /usr/lib64/libboost_filesystem-mt-1_49.so.1.49.0 (0x00002b74263ac000)
        libboost_regex-mt-1_49.so.1.49.0 => /usr/lib64/libboost_regex-mt-1_49.so.1.49.0 (0x00002b74265d1000)
        libboost_system-mt-1_49.so.1.49.0 => /usr/lib64/libboost_system-mt-1_49.so.1.49.0 (0x00002b74268c2000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b7426ac6000)
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libstdc++.so.6 (0x00002b7426ce4000)
        libm.so.6 => /lib64/libm.so.6 (0x00002b7426fe8000)
        libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libgcc_s.so.1 (0x00002b74272de000)
        libc.so.6 => /lib64/libc.so.6 (0x00002b74274f5000)
        libz.so.1 => /lib64/libz.so.1 (0x00002b742789d000)
        libX11.so.6 => /usr/lib64/libX11.so.6 (0x00002b7427ab3000)
        libsqlite3.so.0 => /usr/lib64/libsqlite3.so.0 (0x00002b7427df3000)
        libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00002b742809e000)
        libicuuc.so.49 => /usr/lib64/libicuuc.so.49 (0x00002b74282a9000)
        libgstapp-0.10.so.0 => /usr/lib64/libgstapp-0.10.so.0 (0x00002b7428624000)
        libgstinterfaces-0.10.so.0 => /usr/lib64/libgstinterfaces-0.10.so.0 (0x00002b7428831000)
        libgstpbutils-0.10.so.0 => /usr/lib64/libgstpbutils-0.10.so.0 (0x00002b7428a43000)
        libgstvideo-0.10.so.0 => /usr/lib64/libgstvideo-0.10.so.0 (0x00002b7428c67000)
        libgstbase-0.10.so.0 => /usr/lib64/libgstbase-0.10.so.0 (0x00002b7428e75000)
        libgstreamer-0.10.so.0 => /usr/lib64/libgstreamer-0.10.so.0 (0x00002b74290c4000)
        libgobject-2.0.so.0 => /usr/lib64/libgobject-2.0.so.0 (0x00002b74293ae000)
        libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00002b74295fd000)
        libpng15.so.15 => /usr/lib64/libpng15.so.15 (0x00002b742991f000)
        libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002b7429b4e000)
        libSM.so.6 => /usr/lib64/libSM.so.6 (0x00002b7429ded000)
        libICE.so.6 => /usr/lib64/libICE.so.6 (0x00002b7429ff6000)
        libXi.so.6 => /usr/lib64/libXi.so.6 (0x00002b742a214000)
        libXrandr.so.2 => /usr/lib64/libXrandr.so.2 (0x00002b742a424000)
        libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00002b742a62e000)
        libXcursor.so.1 => /usr/lib64/libXcursor.so.1 (0x00002b742a836000)
        libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00002b742aa41000)
        libXext.so.6 => /usr/lib64/libXext.so.6 (0x00002b742ac79000)
        libssl.so.1.0.0 => /usr/lib64/libssl.so.1.0.0 (0x00002b742ae8e000)
        libcrypto.so.1.0.0 => /usr/lib64/libcrypto.so.1.0.0 (0x00002b742b0f8000)
        librt.so.1 => /lib64/librt.so.1 (0x00002b742b4ce000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00002b742b6d8000)
        /lib64/ld-linux-x86-64.so.2 (0x00002b7422ad9000)
        libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00002b742b8dc000)
        libicudata.so.49 => /usr/lib64/libicudata.so.49 (0x00002b742bafe000)
        libgthread-2.0.so.0 => /usr/lib64/libgthread-2.0.so.0 (0x00002b742ce1e000)
        libgmodule-2.0.so.0 => /usr/lib64/libgmodule-2.0.so.0 (0x00002b742d021000)
        libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00002b742d225000)
        libffi.so.6 => /usr/lib64/libffi.so.6 (0x00002b742d585000)
        libbz2.so.1 => /lib64/libbz2.so.1 (0x00002b742d78e000)
        libuuid.so.1 => /lib64/libuuid.so.1 (0x00002b742d99e000)
        libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00002b742dba4000)
        libXau.so.6 => /usr/lib64/libXau.so.6 (0x00002b742ddcf000)
        libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00002b742dfd3000)
        liblzma.so.5 => /usr/lib64/liblzma.so.5 (0x00002b742e1da000)
Comment 1 Stefan Briesenick (RETIRED) gentoo-dev 2012-10-25 08:34:54 UTC
Please report this upstream. Thanks!

If you have a patch for this problem, please link or attach; I will include it.

Otherwise, I can do nothing, because it's an upstream bug and not related to Gentoo.
Comment 2 Stefan Briesenick (RETIRED) gentoo-dev 2012-11-04 22:10:41 UTC
please test also with latest 0.6.0
Comment 3 Stefan Briesenick (RETIRED) gentoo-dev 2013-01-24 21:38:50 UTC
please test with latest 0.6.0

I will close that but now. But feel free to re-open...