Bug 208297 - nepomukservicestub crashed with SIGSEGV in lucene::index::SegmentTermDocs::next()
Summary: nepomukservicestub crashed with SIGSEGV in lucene::index::SegmentTermDocs::ne...
Status: RESOLVED INTENTIONAL
Alias: None
Product: nepomuk
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Sebastian Trueg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-23 15:24 UTC by Jonathan Thomas
Modified: 2009-12-14 10:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Thomas 2009-09-23 15:24:13 UTC
Version:            (using KDE 4.3.1)
OS:                Linux
Installed from:    Ubuntu Packages

Originally reported at https://launchpad.net/bugs/434069

The user reported that he frequently received messages from Nepomuk before he saw the crash notification.

.
Thread 2 (process 3799):
#0  0x00007ffc28260373 in *__GI___poll (fds=<value optimized out>, 
    nfds=<value optimized out>, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:87
	resultvar = <value optimized out>
	_a3 = -1
	_a2 = 4
	_a1 = 21178016
	oldtype = 0
	result = <value optimized out>
#1  0x00007ffc278e03fc in g_main_context_iterate (context=0x13a0520, 
    block=<value optimized out>, dispatch=<value optimized out>, 
    self=<value optimized out>)
    at /build/buildd/glib2.0-2.21.6/glib/gmain.c:2904
	max_priority = 2147483647
	timeout = -1
	some_ready = <value optimized out>
	nfds = 4
	allocated_nfds = <value optimized out>
	fds = (GPollFD *) 0x14326a0
	__PRETTY_FUNCTION__ = "g_main_context_iterate"
#2  0x00007ffc278e0740 in IA__g_main_context_iteration (context=0x13a0520, 
    may_block=1) at /build/buildd/glib2.0-2.21.6/glib/gmain.c:2654
	retval = <value optimized out>
#3  0x00007ffc2aea20f6 in QEventDispatcherGlib::processEvents (
    this=0x13859e0, flags=<value optimized out>)
    at kernel/qeventdispatcher_glib.cpp:327
	d = (QEventDispatcherGlibPrivate * const) 0x139dd00
	canWait = true
	result = <value optimized out>
#4  0x00007ffc2a3b63de in QGuiEventDispatcherGlib::processEvents (
    this=0x14326a0, flags=<value optimized out>)
    at kernel/qguieventdispatcher_glib.cpp:202
	d = (QGuiEventDispatcherGlibPrivate * const) 0x139dd00
	returnValue = 252
#5  0x00007ffc2ae78482 in QEventLoop::processEvents (
    this=<value optimized out>, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:149
	d = (QEventLoopPrivate * const) 0x1432160
#6  0x00007ffc2ae78854 in QEventLoop::exec (this=0x7fff356dc5f0, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
)
    at kernel/qeventloop.cpp:201
	d = (QEventLoopPrivate * const) 0x1432160
	app = (class QCoreApplication *) 0x7fff356dc810
#7  0x00007ffc2ae7aa09 in QCoreApplication::exec ()
    at kernel/qcoreapplication.cpp:888
	threadData = (QThreadData *) 0x1385db0
	eventLoop = {<QObject> = {_vptr.QObject = 0x7ffc2b168fb0, 
    static staticMetaObject = {d = {superdata = 0x0, 
        stringdata = 0x7ffc2af0e580 "QObject", data = 0x7ffc2af0e620, 
        extradata = 0x7ffc2b162040}}, d_ptr = 0x1432160, 
    static staticQtMetaObject = {d = {superdata = 0x0, 
        stringdata = 0x7ffc2af17e00 "Qt", data = 0x7ffc2af1b180, 
        extradata = 0x0}}}, static staticMetaObject = {d = {
      superdata = 0x606300, stringdata = 0x7ffc2af20280 "QEventLoop", 
      data = 0x7ffc2af202a0, extradata = 0x0}}}
	returnCode = -1
#8  0x0000000000403a7c in main (argc=2, argv=<value optimized out>)
    at ../../../nepomuk/servicestub/main.cpp:151
	aboutData = {d = 0x1388aa0}
	app = {<QCoreApplication> = {<QObject> = {
      _vptr.QObject = 0x7ffc2ad00990, static staticMetaObject = {d = {
          superdata = 0x0, stringdata = 0x7ffc2af0e580 "QObject", 
          data = 0x7ffc2af0e620, extradata = 0x7ffc2b162040}}, 
      d_ptr = 0x139da50, static staticQtMetaObject = {d = {superdata = 0x0, 
          stringdata = 0x7ffc2af17e00 "Qt", data = 0x7ffc2af1b180, 
          extradata = 0x0}}}, static staticMetaObject = {d = {
        superdata = 0x606300, stringdata = 0x7ffc2af20320 "QCoreApplication", 
        data = 0x7ffc2af203c0, extradata = 0x0}}, 
    static self = 0x7fff356dc810}, static staticMetaObject = {d = {
      superdata = 0x7ffc2b169040, stringdata = 0x7ffc2a92cb40 "QApplication", 
      data = 0x7ffc2a92cd40, extradata = 0x0}}}
	serviceName = {static null = {<No data fields>}, 
  static shared_null = {ref = {_q_value = 2951}, alloc = 0, size = 0, 
    data = 0x7ffc2b16a83a, clean = 0, simpletext = 0, righttoleft = 0, 
    asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, 
  static shared_empty = {ref = {_q_value = 43}, alloc = 0, size = 0, 
    data = 0x7ffc2b16a85a, clean = 0, simpletext = 0, righttoleft = 0, 
    asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x13def60, 
  static codecForCStrings = 0x0}
	compData = {_vptr.KComponentData = 0x7ffc29f00d30, d = 0x13e5760}
	dependencies = {<QList<QString>> = {{p = {static shared_null = {
          ref = {_q_value = 640}, alloc = 0, begin = 0, end = 0, 
          sharable = 1, array = {0x0}}, d = 0x606400}, 
      d = 0x606400}}, <No data fields>}
	options = {d = 0x13898b0}
	args = <value optimized out>
	s = {_vptr.QTextStream = 0x7ffc2b165f50, d_ptr = 0x13e3040}
	services = {{p = {static shared_null = {ref = {_q_value = 640}, 
        alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, 
      d = 0x1438280}, d = 0x1438280}}
	service = {d = 0x142a010}
Current language:  auto; currently c
.
Thread 1 (process 3800):
#0  0x00007ffc208f171a in lucene::index::SegmentTermDocs::next (
    this=0x2328b40) at ../src/CLucene/index/SegmentTermDocs.cpp:128
No locals.
#1  0x00007ffc208f2cb1 in lucene::index::SegmentTermPositions::next (
    this=0x2328b40) at ../src/CLucene/index/SegmentTermPositions.cpp:79
No locals.
#2  0x00007ffc208e9da9 in lucene::index::SegmentMerger::appendPostings (
    this=0x7ffc1a8af9d0, smis=<value optimized out>)
    at ../src/CLucene/index/SegmentMerger.cpp:543
	postings = (lucene::index::TermPositions *) 0x2328bb0
	base = 0
	docMap = (int32_t *) 0x2328cd0
	lastDoc = 0
	df = 0
	smi = (class lucene::index::SegmentMergeInfo *) 0x22f43b0
#3  0x00007ffc208e9ee3 in lucene::index::SegmentMerger::mergeTermInfo (
    this=0x7ffc1a8af9d0, smis=0x2327f70)
    at ../src/CLucene/index/SegmentMerger.cpp:490
	freqPointer = 0
	proxPointer = 0
	df = <value optimized out>
	skipPointer = 268435402
#4  0x00007ffc208ea539 in lucene::index::SegmentMerger::mergeTermInfos (
    this=0x7ffc1a8af9d0) at ../src/CLucene/index/SegmentMerger.cpp:446
	matchSize = 5
	term = (class lucene::index::Term *) 0x23423f0
	base = 0
	reader = (class lucene::index::IndexReader *) 0xa
	smi = <value optimized out>
	match = (class lucene::index::SegmentMergeInfo **) 0x0
	top = <value optimized out>
#5  0x00007ffc208ea9ea in lucene::index::SegmentMerger::mergeTerms (
    this=0x7ffc1a8af9d0) at ../src/CLucene/index/SegmentMerger.cpp:350
	buf = <value optimized out>
#6  0x00007ffc208eb2c0 in lucene::index::SegmentMerger::merge (
    this=0x7ffc1a8af9d0) at ../src/CLucene/index/SegmentMerger.cpp:112
	value = 30
#7  0x00007ffc208e2309 in lucene::index::IndexWriter::mergeSegments (
    this=0x2294020, minSegment=<value optimized out>, end=36572528)
    at ../src/CLucene/index/IndexWriter.cpp:386
	segmentsToDelete = {<lucene::util::__CLList<lucene::index::SegmentReader*, std::vector<lucene::index::SegmentReader*, std::allocator<lucene::index::SegmentReader*> >, lucene::util::Deletor::Dummy>> = {<std::vector<lucene::index::SegmentReader*, std::allocator<lucene::index::SegmentReader*> >> = {<std::_Vector_base<lucene::index::SegmentReader*, std::allocator<lucene::index::SegmentReader*> >> = {
        _M_impl = {<std::allocator<lucene::index::SegmentReader*>> = {<__gnu_cxx::new_allocator<lucene::index::SegmentReader*>> = {<No data fields>}, <No data fields>}, _M_start = 0x22716c0, _M_finish = 0x2271720, 
          _M_end_of_storage = 0x2271740}}, <No data fields>}, <lucene::debug::LuceneVoidBase> = {_vptr.LuceneVoidBase = 0x7ffc20b62bd0}, dv = false, 
    THIS_LOCK = {mtx = {__data = {__lock = 0, __count = 0, __owner = 0, 
          __nusers = 0, __kind = 0, __spins = 0, __list = {__prev = 0x0, 
            __next = 0x0}}, __size = '\0' <repeats 39 times>, __align = 0}, 
      lockOwner = 0, lockCount = 0}}, <No data fields>}
	mergedName = 0x22644c0 "_1z72"
	merger = {<lucene::debug::LuceneVoidBase> = {
    _vptr.LuceneVoidBase = 0x7ffc20b63a50}, useCompoundFile = true, 
  skipBuffer = 0x21c6eb0, lastSkipDoc = 0, lastSkipFreqPointer = 0, 
  lastSkipProxPointer = 0, directory = 0x151dac0, 
  segment = 0x23562b0 "_1z72", 
  readers = {<lucene::util::__CLList<lucene::index::IndexReader*, std::vector<lucene::index::IndexReader*, std::allocator<lucene::index::IndexReader*> >, lucene::util::Deletor::Object<lucene::index::IndexReader> >> = {<std::vector<lucene::index::IndexReader*, std::allocator<lucene::index::IndexReader*> >> = {<std::_Vector_base<lucene::index::IndexReader*, std::allocator<lucene::index::IndexReader*> >> = {
          _M_impl = {<std::allocator<lucene::index::IndexReader*>> = {<__gnu_cxx::new_allocator<lucene::index::IndexReader*>> = {<No data fields>}, <No data fields>}, _M_start = 0x2271630, _M_finish = 0x2271690, 
            _M_end_of_storage = 0x22716b0}}, <No data fields>}, <lucene::debug::LuceneVoidBase> = {_vptr.LuceneVoidBase = 0x7ffc20b63ad0}, dv = true, 
      THIS_LOCK = {mtx = {__data = {__lock = 0, __count = 0, __owner = 0, 
            __nusers = 0, __kind = 0, __spins = 0, __list = {__prev = 0x0, 
              __next = 0x0}}, __size = '\0' <repeats 39 times>, __align = 0}, 
        lockOwner = 0, lockCount = 0}}, <No data fields>}, 
  fieldInfos = 0x22f1910, queue = 0x20522c0, freqOutput = 0x173a310, 
  proxOutput = 0x1815e20, termInfosWriter = 0x2345720, 
  termInfo = {<lucene::debug::LuceneVoidBase> = {
      _vptr.LuceneVoidBase = 0x7ffc20b64cb0}, docFreq = 0, freqPointer = 0, 
    proxPointer = 0, skipOffset = 0}, termIndexInterval = 128, 
  skipInterval = 16}
	mergedDocCount = <value optimized out>
	lock = <value optimized out>
	with = {<lucene::store::LuceneLockWith<void>> = {
    _vptr.LuceneLockWith = 0x7ffc20b628f0, lock = 0x23567d0, 
    lockWaitTimeout = 10000}, segmentsToDelete = 0x7ffc1a8afb30, 
  writer = 0x2294020, create = true}
#8  0x00007ffc208e294a in lucene::index::IndexWriter::maybeMergeSegments (
    this=0x2294020) at ../src/CLucene/index/IndexWriter.cpp:353
	minSegment = 4
	mergeDocs = 1161
	targetMergeDocs = 1000
#9  0x00007ffc208e2a37 in lucene::index::IndexWriter::addDocument (
    this=0x2294020, doc=0x1a410c0, analyzer=0x151d430)
    at ../src/CLucene/index/IndexWriter.cpp:255
	theMutexGuard = {mrMutex = 0x2294088}
	dw = <value optimized out>
	si = (class lucene::index::SegmentInfo *) 0x2328bd0
	segmentName = 0x22d1780 "_1z6z"
#10 0x00007ffc20b7becb in Soprano::Index::CLuceneIndex::Private::commit (
    this=<value optimized out>) at ../../index/cluceneindex.cpp:259
	doc = (class lucene::document::Document *) 0x1a410c0
#11 0x00007ffc20b79151 in Soprano::Index::CLuceneIndex::closeTransaction (
    this=0x14fd3f0, id=1) at ../../index/cluceneindex.cpp:416
	lock = {{mtx = 0x14eebb1, val = 21949361}}
#12 0x00007ffc20b7e1c1 in Soprano::Index::IndexFilterModel::rebuildIndex (
    this=0x151d590) at ../../index/indexfiltermodel.cpp:262
	id = 1
	res = {d = {d = 0x2255ff0}}
	filters = {<QList<QString>> = {{p = {static shared_null = {ref = {
            _q_value = 640}, alloc = 0, begin = 0, end = 0, sharable = 1, 
          array = {0x0}}, d = 0x234f620}, d = 0x234f620}}, <No data fields>}
	it2 = {<Soprano::Iterator<Soprano::BindingSet>> = {<Soprano::Error::ErrorCache> = {_vptr.ErrorCache = 0x7ffc291e7630, d = 0x226f090}, d = {
      d = 0x226f070}}, <No data fields>}
	it = {<Soprano::Iterator<Soprano::BindingSet>> = {<Soprano::Error::ErrorCache> = {_vptr.ErrorCache = 0x7ffc291e7630, d = 0x21c5460}, d = {
      d = 0x1453630}}, <No data fields>}
#13 0x00007ffc2ad93425 in QThreadPrivate::start (arg=0x15228c0)
    at thread/qthread_unix.cpp:188
	data = (QThreadData *) 0x152b7f0
#14 0x00007ffc2768ba04 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#15 0x00007ffc2826c7bd in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
No locals.
#16 0x0000000000000000 in ?? ()
No symbol table info available.
Current language:  auto; currently c++
Comment 1 Sebastian Trueg 2009-12-14 10:42:23 UTC
In 4.4 we do not use CLucene anymore. Thus, this bug becomes irrelevant.