[Tellico-users] segment violation while doing a check-in (svn trunk)

Sebastian Held sebastian.held at gmx.de
Wed Aug 12 19:38:07 UTC 2009


svn rev: 1010260

If I try to check-in a book, I get the attached backtrace:

By the way: How can I get cmake to not append -O2 ??? I've chosen the debug 
build and set the flags to -O0 -g, but cmake always appens -O2; strange.

Sebastian
-------------- next part --------------
Starting program: /home/sebastian/src/tellico.trunk/BUILD/src/tellico --nocrashhandler --sync
[Thread debugging using libthread_db enabled]
[New Thread 0x7f72a13c9770 (LWP 23525)]
[New Thread 0x7f729b5ca910 (LWP 23528)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f72a13c9770 (LWP 23525)]
Tellico::BorrowerModel::parent (this=0x1125300, index_=<value optimized out>) at /usr/include/qt4/QtCore/qlist.h:87
87	    inline int size() const { return d->end - d->begin; }
#0  Tellico::BorrowerModel::parent (this=0x1125300, index_=<value optimized out>) at /usr/include/qt4/QtCore/qlist.h:87
	parentNode = (Tellico::BorrowerModel::Node *) 0x12a0430
#1  0x00000035cf89f76f in QSortFilterProxyModelPrivate::update_persistent_indexes () from /usr/lib64/qt4/libQtGui.so.4
No locals.
#2  0x00000035cf89ff5b in QSortFilterProxyModelPrivate::_q_sourceLayoutChanged () from /usr/lib64/qt4/libQtGui.so.4
No locals.
#3  0x00000035cf8a1f92 in QSortFilterProxyModel::qt_metacall () from /usr/lib64/qt4/libQtGui.so.4
No locals.
#4  0x00000035cdb424c0 in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
No locals.
#5  0x0000000000618a16 in Tellico::BorrowerModel::modifyBorrower (this=0x1125300, borrower_={d = 0x7fff3d0114a0})
    at /home/sebastian/src/tellico.trunk/src/models/borrowermodel.cpp:212
	idx = 0
	oldNode = (Tellico::BorrowerModel::Node *) 0x129df40
	newNode = (Tellico::BorrowerModel::Node *) 0xaf14d0
	__PRETTY_FUNCTION__ = "QModelIndex Tellico::BorrowerModel::modifyBorrower(Tellico::Data::BorrowerPtr)"
#6  0x00000000004c0b6c in Tellico::LoanView::modifyBorrower (this=<value optimized out>, borrower_=<value optimized out>)
    at /home/sebastian/src/tellico.trunk/src/loanview.cpp:100
No locals.
#7  0x0000000000471bfb in Tellico::Controller::modifiedBorrower (this=0xb48fd0, borrower_={d = 0x7fff3d011580}) at /home/sebastian/src/tellico.trunk/src/controller.cpp:602
	it = (class Tellico::Observer *) 0x7fff3d011180
	_container_ = {c = {{p = {static shared_null = {ref = {_q_value = 18125}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x128eb20}, d = 0x128eb20}}, 
  brk = 0, i = {i = 0x128eb58}, e = {i = 0x128eb60}}
#8  0x0000000000610303 in Tellico::Command::RemoveLoans::redo (this=<value optimized out>) at /home/sebastian/src/tellico.trunk/src/commands/removeloans.cpp:63
	vec = {{p = {static shared_null = {ref = {_q_value = 18125}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0xfb8530}, d = 0xfb8530}}
	loan = {d = 0x108bd80}
	_container_ = {c = {{p = {static shared_null = {ref = {_q_value = 18125}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x1332d90}, d = 0x1332d90}}, 
  brk = 0, i = {i = 0x1332da8}, e = {i = 0x1332db0}}
	calLoans = {{p = {static shared_null = {ref = {_q_value = 18125}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x8f4a80}, d = 0x8f4a80}}
#9  0x00000035cf933d48 in QUndoStack::push () from /usr/lib64/qt4/libQtGui.so.4
No locals.
#10 0x00000000004dba7a in Tellico::Kernel::removeLoans (this=0xb49020, loans_=<value optimized out>) at /home/sebastian/src/tellico.trunk/src/tellico_kernel.cpp:328
No locals.
#11 0x0000000000472220 in Tellico::Controller::slotCheckIn (this=0xb48fd0, entries_=<value optimized out>) at /home/sebastian/src/tellico.trunk/src/controller.cpp:684
	loans = {{p = {static shared_null = {ref = {_q_value = 18125}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0xe0a130}, d = 0xe0a130}}
#12 0x00000000004747a8 in Tellico::Controller::qt_metacall (this=0xb48fd0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff3d0119d0)
    at /home/sebastian/src/tellico.trunk/BUILD/src/controller.moc:116
No locals.
#13 0x00000035cdb424c0 in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
No locals.
#14 0x00000035cf39a037 in QAction::triggered () from /usr/lib64/qt4/libQtGui.so.4
No locals.
#15 0x00000035cf39b118 in QAction::activate () from /usr/lib64/qt4/libQtGui.so.4
No locals.
#16 0x00000035cf6d373f in QAbstractButtonPrivate::click () from /usr/lib64/qt4/libQtGui.so.4
No locals.
#17 0x00000035cf6d39a5 in QAbstractButton::mouseReleaseEvent () from /usr/lib64/qt4/libQtGui.so.4
No locals.
#18 0x00000035cf79112a in QToolButton::mouseReleaseEvent () from /usr/lib64/qt4/libQtGui.so.4
No locals.
#19 0x00000035cf3ec548 in QWidget::event () from /usr/lib64/qt4/libQtGui.so.4
No locals.
#20 0x00000035cf39f29d in QApplicationPrivate::notify_helper () from /usr/lib64/qt4/libQtGui.so.4
No locals.
#21 0x00000035cf3a7143 in QApplication::notify () from /usr/lib64/qt4/libQtGui.so.4
No locals.
#22 0x00000035d041cd0a in KApplication::notify () from /usr/lib64/libkdeui.so.5
No locals.
#23 0x00000035cdb3052b in QCoreApplication::notifyInternal () from /usr/lib64/qt4/libQtCore.so.4
No locals.
#24 0x00000035cf3a8631 in QApplicationPrivate::sendMouseEvent () from /usr/lib64/qt4/libQtGui.so.4
No locals.
#25 0x00000035cf40216c in QETWidget::translateMouseEvent () from /usr/lib64/qt4/libQtGui.so.4
No locals.
#26 0x00000035cf400c85 in QApplication::x11ProcessEvent () from /usr/lib64/qt4/libQtGui.so.4
No locals.
#27 0x00000035cf4256cc in x11EventSourceDispatch () from /usr/lib64/qt4/libQtGui.so.4
No locals.
#28 0x0000003b37039b89 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
No locals.
#29 0x0000003b3703d0e8 in g_main_context_iterate () from /usr/lib64/libglib-2.0.so.0
No locals.
#30 0x0000003b3703d29e in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
No locals.
#31 0x00000035cdb5596f in QEventDispatcherGlib::processEvents () from /usr/lib64/qt4/libQtCore.so.4
No locals.
#32 0x00000035cf424f68 in QGuiEventDispatcherGlib::processEvents () from /usr/lib64/qt4/libQtGui.so.4
No locals.
#33 0x00000035cdb2eeb2 in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4
No locals.
#34 0x00000035cdb2f05c in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4
No locals.
#35 0x00000035cdb310dc in QCoreApplication::exec () from /usr/lib64/qt4/libQtCore.so.4
No locals.
#36 0x00000000004c2e17 in main (argc=3, argv=0x7fff3d014718) at /home/sebastian/src/tellico.trunk/src/main.cpp:95
	aboutData = {d = 0x95cdf0}
	options = {d = 0x95e310}
	app = <incomplete type>
quit
The program is running.  Exit anyway? (y or n)


More information about the tellico-users mailing list