[Kmymoney-devel] Failing test case

Thomas Baumgart thb at net-bembel.de
Tue Oct 4 18:26:35 UTC 2011


Hi folks,

another system and another test case is failing:

thb at dollo:~/devel/kmymoney4/build> kmymoney/plugins/csvimport/symboltest
********* Start testing of SymbolTest *********
Config: Using QTest library 4.6.1, Qt 4.6.1
PASS   : SymbolTest::initTestCase()
QFATAL : SymbolTest::testDefaultConstructor() Received signal 11
FAIL!  : SymbolTest::testDefaultConstructor() Received a fatal error.
   Loc: [Unknown file(0)]
Totals: 1 passed, 1 failed, 0 skipped
********* Finished testing of SymbolTest *********

Here's how this looks like if I run it under gdb control and take a bt:

Starting program: 
/home/thb/devel/kmymoney4/build/kmymoney/plugins/csvimport/symboltest
[Thread debugging using libthread_db enabled]
********* Start testing of SymbolTest *********
Config: Using QTest library 4.6.1, Qt 4.6.1
PASS   : SymbolTest::initTestCase()

Program received signal SIGSEGV, Segmentation fault.
0xb7e93cf9 in KLocale::decimalSymbol() const () from /usr/lib/libkdecore.so.5
(gdb) bt
#0  0xb7e93cf9 in KLocale::decimalSymbol() const ()
   from /usr/lib/libkdecore.so.5
#1  0x0804b431 in SymbolTest::init (this=0xbfffee30)
    at /home/thb/devel/kmymoney4/kmymoney/plugins/csvimport/symboltest.cpp:38
#2  0x08049ff6 in SymbolTest::qt_metacall (this=0xbfffee30,
    _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfffe508)
    at 
/home/thb/devel/kmymoney4/build/kmymoney/plugins/csvimport/moc_symboltest.cpp:96
#3  0xb7c063e5 in QMetaObject::metacall(QObject*, QMetaObject::Call, int, 
void**) () from /usr/lib/libQtCore.so.4
#4  0xb7c0a11b in QMetaMethod::invoke(QObject*, Qt::ConnectionType, 
QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, 
QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, 
QGenericArgument, QGenericArgument, QGenericArgument) const () from 
/usr/lib/libQtCore.so.4
#5  0xb7c0a8cf in QMetaObject::invokeMethod(QObject*, char const*, 
Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, 
QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, 
QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, 
QGenericArgument) () from /usr/lib/libQtCore.so.4
#6  0xb7f98804 in ?? () from /usr/lib/libQtTest.so.4
#7  0xb7f9a012 in QTest::qExec(QObject*, int, char**) ()
   from /usr/lib/libQtTest.so.4
#8  0x0804b676 in main (argc=1, argv=0xbfffef04)
    at /home/thb/devel/kmymoney4/kmymoney/plugins/csvimport/symboltest.cpp:26


It fails in

void SymbolTest::init()
{
  m_parse = new Parse;
  m_parse->setDecimalSymbol(0);
  m_localeDecimal = KGlobal::locale()->decimalSymbol();
  m_localeThousands = KGlobal::locale()->thousandsSeparator();
}

when calling decimalSymbol().  I am not sure if calling KGlobal w/o a 
KApplication environment is a good idea.

This is on the following system:

thb at dollo:~/devel/kmymoney4/build> kde4-config --version
Qt: 4.6.1
KDE: 4.3.5 (KDE 4.3.5) "release 2"
kde4-config: 1.0

Coincidentally, I can duplicate the empty report on this system as well. In 
contrast to my other box which runs KDE 4.6.0 on a 64 bit CPU, this is on a 32 
bit CPU. I have no idea if this has anything to do with it.


-- 

Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
New processes are created by other processes, just like new humans.
New humans are created by other humans, of course, not by processes.
(Unix System Administrator Handbook)
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 224 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20111004/0593307d/attachment.sig>


More information about the KMyMoney-devel mailing list