Bug 275768

Summary: nepomuk-service-stub crash at wget download [malloc, QByteArray::*, writeData, write, Soprano::DataStream::writeUnsignedInt16]
Product: [Unmaintained] nepomuk Reporter: jonas.narstrom
Component: generalAssignee: Sebastian Trueg <sebastian>
Status: RESOLVED INTENTIONAL    
Severity: crash CC: andresbajotierra, me, sven.burmeister, trueg
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description jonas.narstrom 2011-06-15 23:14:05 UTC
Application: nepomukservicestub (0.2)
KDE Platform Version: 4.6.4 (4.6.4) (Compiled from sources)
Qt Version: 4.7.3
Operating System: Linux 2.6.38-ck-r2 x86_64
Distribution: "Gentoo Base System release 2.0.2"

-- Information about the crash:
- What I was doing when the application crashed:

Observe how wget hicced up at the time of the nepomuk-service-stub crash.

poff@poff ~/Desktop $ wget http://sverigesradio.se/topsy/ljudfil/3187837.mp3
--2011-06-15 22:26:42--  http://sverigesradio.se/topsy/ljudfil/3187837.mp3
Slår upp sverigesradio.se (sverigesradio.se)... 134.25.4.140
Ansluter till sverigesradio.se (sverigesradio.se)|134.25.4.140|:80... ansluten.
HTTP-begäran skickad, väntar på svar... 302 Found
Adress: http://static.sr.se/laddahem/podradio/SR_p1_spraket_110615020047.mp3 [följer]
--2011-06-15 22:26:42--  http://static.sr.se/laddahem/podradio/SR_p1_spraket_110615020047.mp3
Slår upp static.sr.se (static.sr.se)... 134.25.4.144
Ansluter till static.sr.se (static.sr.se)|134.25.4.144|:80... ansluten.
HTTP-begäran skickad, väntar på svar... 200 OK
Längd: 23568384 (22M) [audio/mpeg]
Sparar till: "3187837.mp3"

 2% [==>                                                                                                                                                ] 491 484      792K/s              ^100%[==================================================================================================================================================>] 23 568 384   650K/s   på 41s     

2011-06-15 22:27:22 (568 KB/s) - "3187837.mp3" sparades [23568384/23568384]



- Custom settings of the application:

poff@poff ~ $ emerge --info kde-base/nepomuk
Portage 2.2.0_alpha40 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.13-r2, 2.6.38-ck-r2 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.38-ck-r2-x86_64-AMD_Phenom-tm-_II_X4_955_Processor-with-gentoo-2.0.2
Timestamp of tree: Sun, 12 Jun 2011 11:00:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo zugaina arcon java-overlay lcd-filtering pcsx2 stuge sunrise local
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 googleearth dlj-1.1 Livestation-EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -pipe -march=native -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-Os -pipe -march=native -g"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j5 --load-average=6 --keep-going -t1 --with-bdeps y"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fail-clean fixlafiles fixpackages metadata-transfer news noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.ds.karen.hj.se/gentoo/ http://ftp.ing.umu.se/linux/gentoo/ ftp://mirror.mdfnet.se/gentoo http://ftp.df.lth.se/pub/gentoo/ http://mirror.gentoo.no/"
LC_ALL="sv_SE.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="sv en sv_SE"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
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="/var/lib/layman/zugaina /var/lib/layman/arcon /var/lib/layman/java-overlay /var/lib/layman/lcd-filtering /var/lib/layman/pcsx2 /var/lib/layman/stuge /var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext R X a52 acpi alac alisp all_sfx alsa amd64 amr apng berkdb bineditor bolddiag btrfs bzip2 cairo calendar cdda cddb cdr chm cjk cli clisp consolekit contrast cracklib crypt cuda cups curl cursors cxx dbus declarative dga dia dirac djvu dot dri dssi dvd dvdr dvi ebook emacs enca encode exif external-ffmpeg faac fam fat ffmpeg fftw flac fltk fluidsynth fontconfig fontforge foomaticdb fortran fpx galago gcj gcl gd gdbm geoip gif gimp git glibc-omitfp gmp gpm graphviz gs gsm gstreamer gtk gtkstyle gudev gui handbook hardcoded-tables hdf5 hdri hwdb hyperestraier icons iconv icu id3tag idn imagemagick inkjar inotify ithreads jabber jack java javascript jbig jpeg jpeg2k kate kde kdm kipi konqueror kpathsea lapack lasi latex lcms libass libnotify libsamplerate libv4l2 lilo lm_sensors lqr lua lzma lzo mac mad matroska mdnsresponder-compat melt mercurial midi mikmod mmx mmxext mng modplug modules mp3 mpeg mpg123 msn mudflap multilib musepack musicbrainz natspec ncurses network network-cron nio2 nls nptl nptlonly nsplugin octave ogg openal openexr opengl openmp optimized-qmake pam pango pch pcre pdf phonon plotutils png policykit pppd private-headers projectm q32 qt-faststart qt3support qt4 quicktime quotes rar readline reports rle rtf rtmp rtsp rubberband scanner script sdk sdl sdl-image secure-delete semantic-desktop session shorten smp sndfile soundtouch speex spell sql sse sse2 sse3 sse4 sse4a ssl startup-notification strong-optimization subversion svg sysfs system-sqlite t1lib taglib tcpd theora threads thumbnail tidy tiff timezone tordns truetype tta udev unicode unlock-notify usb vaapi vdpau videos vlc vorbis vpx wavpack webkit webp width wma-fixed wmf wxwidgets x264 xcomposite xorg xpm xulrunner xv xvid xvmc 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 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FOO2ZJS_DEVICES="hp1018" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="sv en sv_SE" NETBEANS_MODULES="cnd java websvccommon apisupport dlight" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LANG, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

kde-base/nepomuk-4.6.4 was built with the following:
USE="handbook (multilib) (-aqua) -debug (-kdeenablefinal)"

-- Backtrace:
Application: Nepomuk Service Stub (nepomukservicestub), signal: Aborted
__lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
	in ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
[Current thread is 1 (Thread 0x7f6e7a359780 (LWP 7993))]

Thread 3 (Thread 0x7f6e6876e700 (LWP 8011)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f6e79dc383d in QWaitConditionPrivate::wait (this=0x1b4c920, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  0x00007f6e79dc3601 in QWaitCondition::wait (this=0x1bc10d8, mutex=0x1bc10d0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f6e68da021a in Nepomuk::IndexFeeder::run (this=0x1bc10b0) at /var/tmp/portage/kde-base/nepomuk-4.6.4/work/nepomuk-4.6.4/nepomuk/services/strigi/nepomukindexfeeder.cpp:188
#4  0x00007f6e79dc32b5 in QThreadPrivate::start (arg=0x1bc10b0) at thread/qthread_unix.cpp:320
#5  0x00007f6e79b39e3c in start_thread () from /lib64/libpthread.so.0
#6  0x00007f6e77aff6ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f6e63b93700 (LWP 8014)):
[KCrash Handler]
#6  0x00007f6e77a4c0e5 in raise () from /lib64/libc.so.6
#7  0x00007f6e77a4da96 in abort () from /lib64/libc.so.6
#8  0x00007f6e77a8a523 in __libc_message () from /lib64/libc.so.6
#9  0x00007f6e77a9122a in malloc_consolidate () from /lib64/libc.so.6
#10 0x00007f6e77a926f8 in _int_malloc () from /lib64/libc.so.6
#11 0x00007f6e77a9557e in malloc () from /lib64/libc.so.6
#12 0x00007f6e79dc46a7 in QByteArray::realloc (this=0x7f6e5c001038, alloc=65504) at tools/qbytearray.cpp:1428
#13 0x00007f6e79dc47fa in QByteArray::resize (this=0x7f6e5c001038, size=32768) at tools/qbytearray.cpp:1396
#14 0x00007f6e763266a5 in QRingBuffer::reserve (this=0x7f6e5c0053e0, bytes=2) at ../../include/QtCore/private/../../../src/corelib/tools/qringbuffer_p.h:158
#15 0x00007f6e763711e8 in QAbstractSocket::writeData (this=0x7f6e5c0048a0, data=0x7f6e63b9226c "\021", size=2) at socket/qabstractsocket.cpp:2214
#16 0x00007f6e79e1d328 in QIODevice::write (this=0x7f6e5c004790, data=0x7f6e63b9226c "\021", maxSize=2) at io/qiodevice.cpp:1362
#17 0x00007f6e7415d882 in Soprano::DataStream::writeUnsignedInt16 (this=0x7f6e63b922b0, v=17) at /var/tmp/portage/dev-libs/soprano-2.6.0/work/soprano-2.6.0/server/datastream.cpp:95
#18 0x00007f6e74161f87 in Soprano::Client::ClientConnection::executeQuery (this=0x1ae0bb0, modelId=1272278247, query=..., type=Soprano::Query::QueryLanguageSparql, userQueryLanguage=...) at /var/tmp/portage/dev-libs/soprano-2.6.0/work/soprano-2.6.0/client/clientconnection.cpp:253
#19 0x00007f6e7416332f in Soprano::Client::ClientModel::executeQuery (this=0x1a6c1f0, query=<value optimized out>, language=<value optimized out>, userQueryLanguage=<value optimized out>) at /var/tmp/portage/dev-libs/soprano-2.6.0/work/soprano-2.6.0/client/clientmodel.cpp:101
#20 0x00007f6e78c2cb36 in Nepomuk::MainModel::executeQuery (this=0x1a696e0, query=<value optimized out>, language=<value optimized out>, userQueryLanguage=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.6.4/work/kdelibs-4.6.4/nepomuk/core/nepomukmainmodel.cpp:212
#21 0x00007f6e743e00ef in Soprano::FilterModel::executeQuery (this=0x1a689d0, query=..., language=<value optimized out>, userQueryLanguage=<value optimized out>) at /var/tmp/portage/dev-libs/soprano-2.6.0/work/soprano-2.6.0/soprano/filtermodel.cpp:164
#22 0x00007f6e68d9f4b9 in Nepomuk::IndexFeeder::clearIndexedDataForResourceUri (res=<value optimized out>) at /var/tmp/portage/kde-base/nepomuk-4.6.4/work/nepomuk-4.6.4/nepomuk/services/strigi/nepomukindexfeeder.cpp:323
#23 0x00007f6e68d9de68 in Nepomuk::StrigiIndexWriter::startAnalysis (this=0x1b4f9e0, idx=0x7f6e63b92980) at /var/tmp/portage/kde-base/nepomuk-4.6.4/work/nepomuk-4.6.4/nepomuk/services/strigi/nepomukindexwriter.cpp:403
#24 0x00007f6e68da2105 in Nepomuk::Indexer::indexFile (this=<value optimized out>, info=...) at /var/tmp/portage/kde-base/nepomuk-4.6.4/work/nepomuk-4.6.4/nepomuk/services/strigi/nepomukindexer.cpp:127
#25 0x00007f6e68d9936f in Nepomuk::IndexScheduler::analyzeDir (this=0x1ae3a30, dir_=<value optimized out>, flags=...) at /var/tmp/portage/kde-base/nepomuk-4.6.4/work/nepomuk-4.6.4/nepomuk/services/strigi/indexscheduler.cpp:450
#26 0x00007f6e68d99547 in Nepomuk::IndexScheduler::run (this=0x1ae3a30) at /var/tmp/portage/kde-base/nepomuk-4.6.4/work/nepomuk-4.6.4/nepomuk/services/strigi/indexscheduler.cpp:338
#27 0x00007f6e79dc32b5 in QThreadPrivate::start (arg=0x1ae3a30) at thread/qthread_unix.cpp:320
#28 0x00007f6e79b39e3c in start_thread () from /lib64/libpthread.so.0
#29 0x00007f6e77aff6ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f6e7a359780 (LWP 7993)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f6e77a97ad5 in _L_lock_7798 () from /lib64/libc.so.6
#2  0x00007f6e77a95d5d in realloc () from /lib64/libc.so.6
#3  0x00007f6e79de16e9 in QRegExpMatchState::prepareForMatch (this=0x1c2da40, eng=<value optimized out>) at tools/qregexp.cpp:1379
#4  0x00007f6e79de9b50 in prepareEngineForMatch (priv=0x1c2da10, str=...) at tools/qregexp.cpp:3727
#5  0x00007f6e79de9cac in QRegExp::exactMatch (this=0x1c51cd8, str=...) at tools/qregexp.cpp:4068
#6  0x00007f6e68b83727 in RegExpCache::exactMatch (this=<value optimized out>, s=...) at /var/tmp/portage/kde-base/nepomuk-4.6.4/work/nepomuk-4.6.4/nepomuk/common/regexpcache.cpp:40
#7  0x00007f6e68d9ac4b in Nepomuk::StrigiServiceConfig::shouldFileBeIndexed (this=<value optimized out>, fileName=<value optimized out>) at /var/tmp/portage/kde-base/nepomuk-4.6.4/work/nepomuk-4.6.4/nepomuk/services/strigi/strigiserviceconfig.cpp:177
#8  0x00007f6e68d9b0ff in Nepomuk::StrigiServiceConfig::shouldFolderBeIndexed (this=0x1c278d0, path=...) at /var/tmp/portage/kde-base/nepomuk-4.6.4/work/nepomuk-4.6.4/nepomuk/services/strigi/strigiserviceconfig.cpp:166
#9  0x00007f6e68d95567 in Nepomuk::StrigiService::updateFolder (this=0x1abcfc0, path=..., recursive=false, forced=false) at /var/tmp/portage/kde-base/nepomuk-4.6.4/work/nepomuk-4.6.4/nepomuk/services/strigi/strigiservice.cpp:231
#10 0x00007f6e68da2ef9 in StrigiAdaptor::qt_metacall (this=0x1c5fc40, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0x7fffe908f3a0) at /var/tmp/portage/kde-base/nepomuk-4.6.4/work/nepomuk-4.6.4_build/nepomuk/services/strigi/strigiadaptor.moc:157
#11 0x00007f6e798ececd in QDBusConnectionPrivate::deliverCall (this=0x1a49d30, object=0x1c5fc40, msg=..., metaTypes=<value optimized out>, slotIdx=19) at qdbusintegrator.cpp:941
#12 0x00007f6e798ee988 in QDBusConnectionPrivate::activateCall (this=0x1a49d30, object=0x1c5fc40, flags=337, msg=...) at qdbusintegrator.cpp:851
#13 0x00007f6e798eeebf in QDBusConnectionPrivate::activateObject (this=0x1a49d30, node=..., msg=..., pathStartPos=<value optimized out>) at qdbusintegrator.cpp:1429
#14 0x00007f6e798eef5a in QDBusActivateObjectEvent::placeMetaCall (this=0x7f6e5403dde0) at qdbusintegrator.cpp:1523
#15 0x00007f6e79e69c58 in QObject::event (this=0x1abcfc0, e=<value optimized out>) at kernel/qobject.cpp:1217
#16 0x00007f6e78298f6a in QApplicationPrivate::notify_helper (this=0x1973c90, receiver=0x1abcfc0, e=0x7f6e5403dde0) at kernel/qapplication.cpp:4462
#17 0x00007f6e7829fe23 in QApplication::notify (this=<value optimized out>, receiver=0x1abcfc0, e=0x7f6e5403dde0) at kernel/qapplication.cpp:4341
#18 0x00007f6e79093ce8 in KApplication::notify (this=0x7fffe9090370, receiver=0x1abcfc0, event=0x7f6e5403dde0) at /var/tmp/portage/kde-base/kdelibs-4.6.4/work/kdelibs-4.6.4/kdeui/kernel/kapplication.cpp:311
#19 0x00007f6e79e5b272 in QCoreApplication::notifyInternal (this=0x7fffe9090370, receiver=0x1abcfc0, event=<value optimized out>) at kernel/qcoreapplication.cpp:731
#20 0x00007f6e79e5d50f in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x19578a0) at kernel/qcoreapplication.cpp:1372
#21 0x00007f6e79e792cc in postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#22 0x00007f6e7734f82a in g_main_dispatch (context=0x19764e0) at gmain.c:2441
#23 g_main_context_dispatch (context=0x19764e0) at gmain.c:3014
#24 0x00007f6e7734fe3e in g_main_context_iterate (context=0x19764e0, block=<value optimized out>, dispatch=1, self=<value optimized out>) at gmain.c:3092
#25 0x00007f6e7734fff0 in g_main_context_iteration (context=0x19764e0, may_block=1) at gmain.c:3155
#26 0x00007f6e79e79416 in QEventDispatcherGlib::processEvents (this=0x19574a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#27 0x00007f6e78314f74 in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#28 0x00007f6e79e5a7d7 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#29 0x00007f6e79e5a9b4 in QEventLoop::exec (this=0x7fffe9090170, flags=...) at kernel/qeventloop.cpp:201
#30 0x00007f6e79e5d770 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#31 0x0000000000404478 in main (argc=2, argv=0x7fffe90907a8) at /var/tmp/portage/kde-base/nepomuk-4.6.4/work/nepomuk-4.6.4/nepomuk/servicestub/main.cpp:165

This bug may be a duplicate of or related to bug 272963, bug 262057, bug 257258.

Possible duplicates by query: bug 272963, bug 262057, bug 259188, bug 257258.

Reported using DrKonqi
Comment 1 Dario Andres 2011-08-07 20:20:53 UTC
[Comment from a bug report cleaner]
From bug 277090:
- What I was doing when the application crashed:
I re-enabled nepomuk and strigi and they started indexing files. After some
time they crashed.
Comment 2 Dario Andres 2011-08-07 20:20:55 UTC
*** Bug 277090 has been marked as a duplicate of this bug. ***
Comment 3 Sebastian Trueg 2011-09-20 08:19:46 UTC
Closing this bug as wontfix since the crashing code does not exist in 4.7 anymore.