Bug 75387 - Umbrello crashes when 2 operations of same name are saved (different args/return values)
Summary: Umbrello crashes when 2 operations of same name are saved (different args/ret...
Status: RESOLVED DUPLICATE of bug 73926
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 1.2
Platform: RedHat Enterprise Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-16 20:21 UTC by Dan Delgado
Modified: 2004-02-17 20:04 UTC (History)
0 users

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 Dan Delgado 2004-02-16 20:21:22 UTC
Version:           1.2 (using KDE KDE 3.1.3)
Installed from:    RedHat RPMs
Compiler:          GCC 3.3.2 
OS:          Linux

I imported some .h files. I saw my class had the 4 operator++/-- methods called ++ and --.
I noticed that the postfix ++/-- had parameters defined with no names (makes sense, I did not name them) - however I cannot DO that myself without importing. So I deleted them (all 4) and recreated them by doing operator-- and defining param type/name as:  int/postfix, returning SequenceId&.  Then I tried making an operator-- with no params and returning SequenceId&.  When hit ok the app crashes (Backtrace below)  After narrowing the bug to this reproducible error, I rebuilt the bin using debug and ran it in gdb. Got the error, traced the backtrace and saw the UMLXI...? pointer last args was set to 0. This was seemingly done about 3 calls up the stack. I know nothing about the app, so rather than taking days to look into this, I am posting the report before then ;) 

I read this bug was fixed in 1.2.  I am running an "up to date" version of RH9 (ie: rhn updates) with compilation done with a source compiled GCC-3.3.2.  The version of KDE is the "stock" (updates applied) 3.1-12 from RH9. (I did not see this version listed on your site) and I downloaded the "new" Umbrello 1.2 source dist on the umbrello site. No special compile options given. (is there an "integrator" to the KDE/Gnome RH desktop menus? I had to "manually" insert the links and not sure I did it right, however it runs from the app shortcut and bin directory (/usr/local/kde/bin which is separate from the RH installs (I linked the individual files (ln -s) to the RH locations so all are there...))


[New Thread 1093036224 (LWP 4348)]
0xffffe002 in ?? ()
#0  0xffffe002 in ?? ()
#1  0x4078157d in KCrash::defaultCrashHandler(int) ()
   from /usr/lib/libkdecore.so.4
#2  <signal handler called>
#3  0x0810442e in UMLClassifier::checkOperationSignature(QString, QPtrList<UMLAttribute>*) (this=0x83dc6e0, name=) at classifier.cpp:44
#4  0x0816624f in UMLDoc::createOperation(UMLClassifier*, QString const&, QPtrList<UMLAttribute>*) (this=0x83dc6e0, classifier=0x8433e50, name=@0x829454c, 
    params=0x0) at umldoc.cpp:888
#5  0x08165467 in UMLDoc::createChildObject(UMLObject*, Uml::UMLObject_Type) (
    this=0x83dc6e0, umlobject=0x8433e50, type=ot_Operation) at umldoc.cpp:717
#6  0x081f757f in ClassifierListPage::slotNewListItem() (this=0x84e0350)
    at classifierlistpage.cpp:380
#7  0x081f79a3 in ClassifierListPage::qt_invoke(int, QUObject*) (
    this=0x84e0350, _id=54, _o=0xbfffca30) at classifierlistpage.moc:145
#8  0x40b190c9 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#9  0x40b18f6d in QObject::activate_signal(int) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#10 0x40dfe85e in QButton::clicked() () from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#11 0x40b9a816 in QButton::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#12 0x40b4d00c in QWidget::event(QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#13 0x40abaf24 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#14 0x40aba753 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#15 0x407151e9 in KApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/libkdecore.so.4
#16 0x40a61198 in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#17 0x40a5ecdf in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#18 0x40a73bda in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#19 0x40acecf6 in QEventLoop::enterLoop() ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#20 0x40abb1b1 in QApplication::enter_loop() ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#21 0x40c7c691 in QDialog::exec() () from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#22 0x0816c0aa in UMLDoc::showProperties(UMLWidget*) (this=0x83dc6e0, 
    o=0x85aa2f8) at umldoc.cpp:2016
#23 0x0818f3c3 in UMLWidget::slotMenuSelection(int) (this=0x85aa2f8, sel=1970)
    at umlwidget.cpp:473
#24 0x0810d583 in ClassWidget::slotMenuSelection(int) (this=0x85aa2f8, 
    sel=1970) at classwidget.cpp:400
#25 0x0818f9d8 in UMLWidget::mouseDoubleClickEvent(QMouseEvent*) (
    this=0x85aa2f8, me=0x854d720) at umlwidget.cpp:592
#26 0x08186e36 in UMLView::allocateMouseDoubleClickEvent(QMouseEvent*) (
    this=0x848b718, me=0x854d720) at umlview.cpp:2362
#27 0x08181bf9 in UMLView::contentsMouseDoubleClickEvent(QMouseEvent*) (
    this=0x848b718, ome=0xbfffd3a0) at umlview.cpp:921
#28 0x40c1407c in QScrollView::viewportMouseDoubleClickEvent(QMouseEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#29 0x40c1385a in QScrollView::eventFilter(QObject*, QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#30 0x40b16dee in QObject::activate_filters(QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#31 0x40b16d11 in QObject::event(QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#32 0x40b4cf8c in QWidget::event(QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#33 0x40abaf24 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#34 0x40aba753 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#35 0x407151e9 in KApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/libkdecore.so.4
#36 0x40a61198 in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#37 0x40a5ecdf in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#38 0x40a73bda in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#39 0x40acecf6 in QEventLoop::enterLoop() ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#40 0x40aceb98 in QEventLoop::exec() () from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#41 0x40abb151 in QApplication::exec() ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#42 0x08143674 in main (argc=1, argv=0xbfffddc4) at main.cpp:86
#43 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6
Comment 1 Brian Thomas 2004-02-17 20:04:42 UTC
Althought this report makes mention of code import problems, I believe this is a duplicate of bug 72926, and marked as such. If you have separate code import
problems, please resubmit as a separate bug.

*** This bug has been marked as a duplicate of 73926 ***