[Kmymoney-devel] Building of tests fails
Marko Käning
mk-lists at email.de
Tue Nov 29 21:52:31 UTC 2011
On Nov 28, 2011, at 6:51 PM, Marko Käning wrote:
> In the log one finds this:
> ---
> PASS : MyMoneyDatabaseMgrTest::testModifyAccount()
> PASS : MyMoneyDatabaseMgrTest::testModifyInstitution()
> PASS : MyMoneyDatabaseMgrTest::testReparentAccount()
> mymoneydatabasemgrtest(7150,0x7fff705b7cc0) malloc: *** error for object 0x103221d80: pointer being freed was not alloc
> ated
> *** set a breakpoint in malloc_error_break to debug
> <end of output>
> Test time = 1.44 sec
> ----------------------------------------------------------
> Test Failed.
> "kmymoney-mymoneydatabasemgrtest" end time: Nov 28 18:46 CET
> "kmymoney-mymoneydatabasemgrtest" time elapsed: 00:00:01
> ----------------------------------------------------------
It turns out that testRepareentAccount() is he culprit:
---
PASS : MyMoneyDatabaseMgrTest::testReparentAccount()
QFATAL : MyMoneyDatabaseMgrTest::testAddTransactions() Received signal 11
FAIL! : MyMoneyDatabaseMgrTest::testAddTransactions() Received a fatal error.
Loc: [Unknown file(0)]
Totals: 15 passed, 1 failed, 0 skipped
********* Finished testing of MyMoneyDatabaseMgrTest *********
<end of output>
Test time = 3.31 sec
----------------------------------------------------------
Test Failed.
"kmymoney-mymoneydatabasemgrtest" end time: Nov 29 21:50 CET
"kmymoney-mymoneydatabasemgrtest" time elapsed: 00:00:03
----------------------------------------------------------
---
More details follow:
---
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x00000001019e7810 in __gmpn_copyi ()
(gdb) bt f
#0 0x00000001019e7810 in __gmpn_copyi ()
No symbol table info available.
#1 0x00000001019b6ccf in __gmpq_set ()
No symbol table info available.
#2 0x0000000101a7457c in QString [inlined] () at /opt/macports-test/include/QtCore/qstring.h:336
Amount = (const MyMoneyMoney &) #3 0x0000000101a7457c in QString [inlined] () at mymoneymoney.h:729
other = (const QString &) #4 0x0000000101a7457c in MyMoneySplit [inlined] () at mymoneymoney.h:55
other = (const QString &) #5 MyMoneySplit [inlined] () at /Users/marko/WC/GIT/kmymoney.master/kmymoney/mymoney/mymoneysplit.h:55
other = (const QString &) #6 0x0000000101a7457c in QList<MyMoneySplit>::detach_helper (this=0x7fff5fbfcce8, alloc=<value temporarily unavailable, due to optimizations>) at qstring.h:386
other = (const QString &) #7 0x0000000101a844c7 in MyMoneyTransaction::MyMoneyTransaction (this=0x7fff5fbfccc0, id=@0x7fff5fbfd040, transaction=@0x7fff5fbfcd10) at qlist.h:126
this = (QList<MyMoneySplit> * const) #8 0x00000001000785a1 in MyMoneyStorageSql::fetchTransactions (this=0x10313ac60, tidList=@0x7fff5fbfd730, dateClause=@0x7fff5fbfd720) at /Users/marko/WC/GIT/kmymoney.master/kmymoney/mymoney/storage/mymoneystoragesql.cpp:3023
---
Does that ring a bell for a proficient developer?
More information about the KMyMoney-devel
mailing list