problem with a unittest

Boudewijn Rempt boud at valdyas.org
Thu Sep 8 08:44:00 BST 2011


When I run my TestKoBookmark unittest manually, it's fine. If I run it as part of make test, it segfaults after executing all tests succesfully. I tried running it under gdb and got this:



-- QDEBUG : TestKoBookmark::testRoundtrip() (Soprano::Redland::BackendPlugin) creating model of type "hashes" with options "hash-type='memory',contexts='yes'" 
QDEBUG : TestKoBookmark::testRoundtrip() qttest(32268)/kotext TextShapeFactory::newDocumentResourceManager: No KUndo2Stack found in the document resource manager, creating a new one 
QSYSTEM: TestKoBookmark::testRoundtrip() qttest(32268): Cannot open  "/tmp/kde-boud/qttestRk2zYl/Europe/Berlin" 

QSYSTEM: TestKoBookmark::testRoundtrip() qttest(32268): Cannot open  "/tmp/kde-boud/qttestRk2zYl/Europe/Berlin" 

PASS   : TestKoBookmark::testRoundtrip()
PASS   : TestKoBookmark::cleanupTestCase()
Totals: 4 passed, 0 failed, 0 skipped
********* Finished testing of TestKoBookmark *********

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007ffff24993b3 in QObject::~QObject (this=0x745d40, __in_chrg=<optimized out>) at kernel/qobject.cpp:861
#2  0x00007ffff24999a9 in QObject::~QObject (this=0x745d40, __in_chrg=<optimized out>) at kernel/qobject.cpp:964
#3  0x00007ffff1ec0940 in ~QDBusAbstractInterfacePrivate (this=0x755830, __in_chrg=<optimized out>) at qdbusabstractinterface_p.h:87
#4  QDBusAbstractInterfacePrivate::~QDBusAbstractInterfacePrivate (this=0x755830, __in_chrg=<optimized out>) at qdbusabstractinterface_p.h:87
#5  0x00007ffff24997f3 in cleanup (pointer=<optimized out>) at ../../src/corelib/tools/qscopedpointer.h:62
#6  ~QScopedPointer (this=0x6f4e88, __in_chrg=<optimized out>) at ../../src/corelib/tools/qscopedpointer.h:100
#7  QObject::~QObject (this=0x6f4e80, __in_chrg=<optimized out>) at kernel/qobject.cpp:818
#8  0x00007ffff1ea2bc9 in QDBusConnectionInterface::~QDBusConnectionInterface (this=0x6f4e80, __in_chrg=<optimized out>) at qdbusconnectioninterface.cpp:179
#9  0x00007ffff2494a54 in QObjectPrivate::deleteChildren (this=0x745e40) at kernel/qobject.cpp:1955
#10 0x00007ffff24997a2 in QObject::~QObject (this=0x745d40, __in_chrg=<optimized out>) at kernel/qobject.cpp:946
#11 0x00007ffff1eaaabb in QDBusConnectionPrivate::~QDBusConnectionPrivate (this=0x745d40, __in_chrg=<optimized out>) at qdbusintegrator.cpp:998
#12 0x00007ffff1eaadf9 in QDBusConnectionPrivate::~QDBusConnectionPrivate (this=0x745d40, __in_chrg=<optimized out>) at qdbusintegrator.cpp:1016
#13 0x00007ffff1ea23b0 in ~QDBusDefaultConnection (this=0x71e600, __in_chrg=<optimized out>) at qdbusconnection.cpp:978
#14 QGlobalStaticDeleter<QDBusDefaultConnection>::~QGlobalStaticDeleter (this=0x7ffff2101c38, __in_chrg=<optimized out>) at ../../src/corelib/global/qglobal.h:1824
#15 0x00007ffff13dd5a1 in __run_exit_handlers () from /lib64/libc.so.6
#16 0x00007ffff13dd5f5 in exit () from /lib64/libc.so.6
#17 0x00007ffff13c6c04 in __libc_start_main () from /lib64/libc.so.6
#18 0x00000000004034f9 in _start () at ../sysdeps/x86_64/elf/start.S:113
(gdb) 


And now I'm puzzled... What's going on here? Does anyone have an idea?
Boudewijn Rempt
http://www.valdyas.org, http://www.krita.org, http://www.boudewijnrempt.nl



More information about the calligra-devel mailing list