[Kmymoney-devel] [Bug 291730] Entering number prefixed with zero is interpreted as octal

David Houlden djhoulden at gmail.com
Tue Jan 17 09:47:49 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=291730





--- Comment #2 from David Houlden <djhoulden gmail com>  2012-01-17 09:47:49 ---
Yes, I can reproduce it. When entering the quantity, leave the zero in the
field, position the cursor after the zero and press 9. This results in an
instant crash. This is the output from running under gdb.

Starting program:
/usr/local/src/extras/kmymoney-git/build-debug/kmymoney/kmymoney 
[Thread debugging using libthread_db enabled]
kmymoney(23659)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found  0 
offers for  "Reconciliation report"
kmymoney(23659)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found  0 
offers for  "csvimport"
kmymoney(23659)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found  1 
offers for  "Print check"
kmymoney(23659)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found  1 
offers for  "iCalendar"
KMyMoney reconciliation report plugin loaded
KMyMoney csvimport plugin loaded
KMyMoney printcheck plugin loaded
kmymoney(23659)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
QFSFileEngine::open: No file name specified
KMyMoney iCalendar plugin loaded
[New Thread 0xb09a0b70 (LWP 23662)]
reading file
start parsing file
startDocument
reading accounts
reading transactions
reading securities
reading currencies
reading prices
reading reports
endDocument
terminate called after throwing an instance of 'std::invalid_argument'
  what():  mpq_set_str

Program received signal SIGABRT, Aborted.
0xb5bb32d7 in raise () from /lib/libc.so.6
(gdb) bt
#0  0xb5bb32d7 in raise () from /lib/libc.so.6
#1  0xb5bb4cee in abort () from /lib/libc.so.6
#2  0xb5dd8c05 in __gnu_cxx::__verbose_terminate_handler() () from
/usr/lib/libstdc++.so.6
#3  0xb5dd6b25 in ?? () from /usr/lib/libstdc++.so.6
#4  0xb5dd6b62 in std::terminate() () from /usr/lib/libstdc++.so.6
#5  0xb5dd6d3b in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#6  0xb6ab2e3d in QMetaObject::activate(QObject*, QMetaObject const*, int,
void**) ()
   from /usr/lib/qt/lib/libQtCore.so.4
#7  0xb63c4603 in QLineEdit::textChanged(QString const&) () from
/usr/lib/qt/lib/libQtGui.so.4
#8  0xb63c4bad in QLineEdit::qt_metacall(QMetaObject::Call, int, void**) ()
   from /usr/lib/qt/lib/libQtGui.so.4
#9  0xb75c1cfa in KLineEdit::qt_metacall(QMetaObject::Call, int, void**) ()
   from /usr/lib/libkdeui.so.5
#10 0x081cccff in kMyMoneyLineEdit::qt_metacall (this=0x972cfc8,
_c=QMetaObject::InvokeMetaMethod, 
    _id=27, _a=0xbfffdab8)
    at
/usr/local/src/extras/kmymoney-git/build-debug/kmymoney/widgets/kmymoneylineedit.moc:71
#11 0xb6aa2b7a in QMetaObject::metacall(QObject*, QMetaObject::Call, int,
void**) ()
   from /usr/lib/qt/lib/libQtCore.so.4
#12 0xb6ab29bd in QMetaObject::activate(QObject*, QMetaObject const*, int,
void**) ()
   from /usr/lib/qt/lib/libQtCore.so.4
#13 0xb665d663 in QLineControl::textChanged(QString const&) () from
/usr/lib/qt/lib/libQtGui.so.4
#14 0xb63c9bcb in QLineControl::finishChange(int, bool, bool) () from
/usr/lib/qt/lib/libQtGui.so.4
#15 0xb63cb313 in QLineControl::insert(QString const&) () from
/usr/lib/qt/lib/libQtGui.so.4
#16 0xb63cc079 in QLineControl::processKeyEvent(QKeyEvent*) () from
/usr/lib/qt/lib/libQtGui.so.4
#17 0xb63bfc45 in QLineEdit::keyPressEvent(QKeyEvent*) () from
/usr/lib/qt/lib/libQtGui.so.4
#18 0xb75c3249 in KLineEdit::keyPressEvent(QKeyEvent*) () from
/usr/lib/libkdeui.so.5
#19 0x081ccb73 in kMyMoneyLineEdit::keyPressEvent (this=0x972cfc8,
k=0xbfffe474)
    at
/usr/local/src/extras/kmymoney-git/kmymoney/kmymoney/widgets/kmymoneylineedit.cpp:168
#20 0xb5fba778 in QWidget::event(QEvent*) () from /usr/lib/qt/lib/libQtGui.so.4
#21 0xb63c2897 in QLineEdit::event(QEvent*) () from
/usr/lib/qt/lib/libQtGui.so.4
#22 0xb75c04e8 in KLineEdit::event(QEvent*) () from /usr/lib/libkdeui.so.5
#23 0xb5f618c4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/qt/lib/libQtGui.so.4
#24 0xb5f66e19 in QApplication::notify(QObject*, QEvent*) () from
/usr/lib/qt/lib/libQtGui.so.4
#25 0xb74e126a in KApplication::notify(QObject*, QEvent*) () from
/usr/lib/libkdeui.so.5
#26 0xb6a9c52b in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /usr/lib/qt/lib/libQtCore.so.4
#27 0xb5f5f98e in ?? () from /usr/lib/qt/lib/libQtGui.so.4
#28 0xb600e9bf in ?? () from /usr/lib/qt/lib/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
#29 0xb600edcf in ?? () from /usr/lib/qt/lib/libQtGui.so.4
#30 0xb5fe8ba2 in QApplication::x11ProcessEvent(_XEvent*) () from
/usr/lib/qt/lib/libQtGui.so.4
#31 0xb6012ec2 in ?? () from /usr/lib/qt/lib/libQtGui.so.4
#32 0xb5238432 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#33 0xb5238c10 in ?? () from /usr/lib/libglib-2.0.so.0
#34 0xb5238ec4 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#35 0xb6ac9bac in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/qt/lib/libQtCore.so.4
#36 0xb6012ad5 in ?? () from /usr/lib/qt/lib/libQtGui.so.4
#37 0xb6a9b6e9 in
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/qt/lib/libQtCore.so.4
#38 0xb6a9b98a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/qt/lib/libQtCore.so.4
#39 0xb6aa03df in QCoreApplication::exec() () from
/usr/lib/qt/lib/libQtCore.so.4
#40 0xb5f5f727 in QApplication::exec() () from /usr/lib/qt/lib/libQtGui.so.4
#41 0x08091154 in runKMyMoney (a=0x8670c20, splash=0x86c0900)
    at /usr/local/src/extras/kmymoney-git/kmymoney/kmymoney/main.cpp:282
#42 0x0808faa1 in main (argc=1, argv=0xbffff244)
    at /usr/local/src/extras/kmymoney-git/kmymoney/kmymoney/main.cpp:181
(gdb)

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list