Bug 247231 - Krecipes crashes while importing an incomplete Rezkonf file
Summary: Krecipes crashes while importing an incomplete Rezkonf file
Status: RESOLVED WORKSFORME
Alias: None
Product: krecipes
Classification: Applications
Component: general (show other bugs)
Version: 2.0-beta1
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2010-08-10 13:26 UTC by Carsten Senger
Modified: 2018-10-27 02:13 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Senger 2010-08-10 13:26:13 UTC
Application: krecipes (2.0-beta1)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.31-22-generic x86_64
Distribution: Ubuntu 9.10

-- Information about the crash:
I run Krecipes Beta 1 on Kubuntu 9.10 (with updated KDE 4.4.2 packages).
When I import an incomplete Rezkonv file crashes.
I copied the content of the Rezkonv file from a website, but forgot the description and the end markers ("====="). It would be nice to display a warning and abort the import.
This is what I tried to import:
 ========== REZKONV-Rezept - RezkonvSuite v1.2

     Titel: Schalotten-Estragon-Essig
Kategorien: Essig, Kräuter
     Menge: 2 L

      2       Ltr. Essig (Petra: Weißweinessig)
    100     Gramm  Schalotten; oder Zwiebeln, grob gehackt
      1     klein. Bündel frischer Estragon
      4            Knoblauchzehen; zerdrückt
      2      Teel. Schwarze Pfefferkörner
      1      Teel. Gewürznelken
      2      Essl. Salz


"""
============================ QUELLE ============================
         Oded Schwartz
         Augenschmaus & Gaumenfreude
                   -Erfasst *RK* 07.06.2006 von
                   -Petra Holzapfel
"""

Thanks for Krecipes

The crash can be reproduced every time.

 -- Backtrace:
Application: Krecipes (krecipes), signal: Segmentation fault
[KCrash Handler]
#5  0x00007fb99a62d820 in QChar::isSpace() const () from /usr/lib/libQtCore.so.4
#6  0x00007fb99a62fcca in QString::trimmed() const () from /usr/lib/libQtCore.so.4
#7  0x000000000053d888 in RezkonvImporter::loadInstructions (this=<value optimized out>, text_it=..., recipe=<value optimized out>)
    at /home/csenger/krecipes-2.0-beta1/src/importers/rezkonvimporter.cpp:228
#8  0x000000000053f25e in RezkonvImporter::readRecipe (this=0x2e5eba0, raw_recipe=<value optimized out>) at /home/csenger/krecipes-2.0-beta1/src/importers/rezkonvimporter.cpp:132
#9  0x000000000053f931 in RezkonvImporter::parseFile (this=<value optimized out>, filename=<value optimized out>) at /home/csenger/krecipes-2.0-beta1/src/importers/rezkonvimporter.cpp:46
#10 0x0000000000535c43 in BaseImporter::parseFiles (this=0x2e5eba0, filenames=...) at /home/csenger/krecipes-2.0-beta1/src/importers/baseimporter.cpp:88
#11 0x000000000043b6cd in Krecipes::import (this=0x228eea0) at /home/csenger/krecipes-2.0-beta1/src/krecipes.cpp:549
#12 0x000000000044094d in Krecipes::qt_metacall (this=0x228eea0, _c=QMetaObject::InvokeMetaMethod, _id=47474656, _a=0x7fff09d1c760) at /home/csenger/krecipes-2.0-beta1/src/krecipes.moc:123
#13 0x00007fb99a6f3c0f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#14 0x00007fb999879022 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#15 0x00007fb99987b09b in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#16 0x00007fb999cb980d in ?? () from /usr/lib/libQtGui.so.4
#17 0x00007fb999cbf37a in ?? () from /usr/lib/libQtGui.so.4
#18 0x00007fb99f032e0e in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libkdeui.so.5
#19 0x00007fb9998d5502 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#20 0x00007fb999cc153b in QMenu::event(QEvent*) () from /usr/lib/libQtGui.so.4
#21 0x00007fb99987f12c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#22 0x00007fb999885efb in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#23 0x00007fb99ef56076 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#24 0x00007fb99a6e0e0c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#25 0x00007fb9998850d6 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#26 0x00007fb9999050a5 in ?? () from /usr/lib/libQtGui.so.4
#27 0x00007fb99990397a in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#28 0x00007fb99992f322 in ?? () from /usr/lib/libQtGui.so.4
#29 0x00007fb994c81bce in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#30 0x00007fb994c85598 in ?? () from /lib/libglib-2.0.so.0
#31 0x00007fb994c856c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#32 0x00007fb99a70a333 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#33 0x00007fb99992ef0e in ?? () from /usr/lib/libQtGui.so.4
#34 0x00007fb99a6df732 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#35 0x00007fb99a6dfb0c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#36 0x00007fb99a6e384b in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#37 0x000000000043a617 in main (argc=<value optimized out>, argv=<value optimized out>) at /home/csenger/krecipes-2.0-beta1/src/main.cpp:91

Reported using DrKonqi
Comment 1 José Manuel Santamaría Lema 2010-08-11 19:45:23 UTC
Hi,

Thanks for reporting. Could you please attach the file instead of copying the text in the bug report?
Comment 2 Andrew Crouthamel 2018-09-25 03:55:59 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Andrew Crouthamel 2018-10-27 02:13:03 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!