[Uml-devel] [Bug 168351] New: Umbrello hangs on start

Roman I Khimov rik at osrc.info
Mon Aug 4 16:39:46 UTC 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=168351         
           Summary: Umbrello hangs on start
           Product: umbrello
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: umbrello-devel.kde.org
        ReportedBy: rik osrc info


Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.3.1 
OS:                Linux

The problem is, Umbrello hangs on start, eating all available memory. The systems becomes unusable if I don't kill it before it eats whole swap space (the system has 2 GB of RAM + 2 GB of swap; probably need to switch on OOM killer so that it could be killed automatically).

I've seen this before, maybe twice or 3 time, restarting whole system usually helped, but now I see it almost every time I try to start Umbrello. I've tried deleting/moving config files (umbrellorc, umbrelloui.rc), to see if the problem is in that, but that didn't help.

That was Debian experimental version, then I've compiled fresh SVN version and seen the same thing. Then I've tried to catch the region of obvious endless loop present here:

(gdb) bt
#0  0x00007f4c4a16df03 in memcpy () from /lib/libc.so.6
#1  0x00007f4c4ac973c5 in QString::append (this=0x2a72678, str= 0x7fff56174a00) at tools/qstring.cpp:1277
#2  0x000000000054dabe in CodeGenerationPolicy::calculateIndentation (this=<value optimized out>) at /usr/include/qt4/QtCore/qstring.h:261
#3  0x000000000054dc26 in CodeGenerationPolicy::setIndentationType (this=0x2a72660, new_var=CodeGenerationPolicy::SPACE) at /home/rik/deb/umbrello/umbrello/codegenerators/codegenerationpolicy.cpp:252
#4  0x000000000054dcb9 in CodeGenerationPolicy::setDefaults (this=0x2a72660, emitUpdateSignal=false) at /home/rik/deb/umbrello/umbrello/codegenerators/codegenerationpolicy.cpp:415
#5  0x000000000054e21e in CodeGenerationPolicy (this=0x2a72660) at /home/rik/deb/umbrello/umbrello/codegenerators/codegenerationpolicy.cpp:48
#6  0x0000000000c1ca46 in UMLApp (this=0x2871ec0, parent=<value optimized out>) at /home/rik/deb/umbrello/umbrello/uml.cpp:161
#7  0x0000000000bd4582 in main (argc=1, argv=0x7fff56175078) at /home/rik/deb/umbrello/umbrello/main.cpp:95

Another one:

(gdb) bt
#0  0x000000000054dac9 in CodeGenerationPolicy::calculateIndentation (this=<value optimized out>) at /home/rik/deb/umbrello/umbrello/codegenerators/codegenerationpolicy.cpp:301
#1  0x000000000054dc26 in CodeGenerationPolicy::setIndentationType (this=0x1d38660, new_var=CodeGenerationPolicy::SPACE) at /home/rik/deb/umbrello/umbrello/codegenerators/codegenerationpolicy.cpp:252
#2  0x000000000054dcb9 in CodeGenerationPolicy::setDefaults (this=0x1d38660, emitUpdateSignal=false) at /home/rik/deb/umbrello/umbrello/codegenerators/codegenerationpolicy.cpp:415
#3  0x000000000054e21e in CodeGenerationPolicy (this=0x1d38660) at /home/rik/deb/umbrello/umbrello/codegenerators/codegenerationpolicy.cpp:48
#4  0x0000000000c1ca46 in UMLApp (this=0x1b37ec0, parent=<value optimized out>) at /home/rik/deb/umbrello/umbrello/uml.cpp:161
#5  0x0000000000bd4582 in main (argc=1, argv=0x7fff5d14ca18) at /home/rik/deb/umbrello/umbrello/main.cpp:95

Then some info from valgrind (the program was TERMinated by hand):

==26361== ERROR SUMMARY: 31074154 errors from 1 contexts (suppressed: 11 from 2)
==26361==
==26361== 31074154 errors in context 1 of 1:
==26361== Conditional jump or move depends on uninitialised value(s)
==26361==    at 0x54DACF: CodeGenerationPolicy::calculateIndentation() (codegenerationpolicy.cpp:301)
==26361==    by 0x54DC25: CodeGenerationPolicy::setIndentationType(CodeGenerationPolicy::IndentationType) (codegenerationpolicy.cpp:252)
==26361==    by 0x54DCB8: CodeGenerationPolicy::setDefaults(bool) (codegenerationpolicy.cpp:415)
==26361==    by 0x54E21D: CodeGenerationPolicy::CodeGenerationPolicy() (codegenerationpolicy.cpp:48)
==26361==    by 0xC1CA45: UMLApp::UMLApp(QWidget*) (uml.cpp:161)
==26361==    by 0xBD4581: main (main.cpp:95)
--26361--
--26361-- supp:      3 X on SUSE11 writev uninit padding
--26361-- supp:      8 dl-hack3-cond-1
==26361==
==26361== IN SUMMARY: 31074154 errors from 1 contexts (suppressed: 11 from 2)
==26361==
==26361== malloc/free: in use at exit: 69,879,442 bytes in 24,598 blocks.
==26361== malloc/free: 101,285 allocs, 76,687 frees, 185,180,176 bytes allocated.
==26361==
==26361== searching for pointers to 24,598 not-freed blocks.
==26361== checked 86,618,848 bytes.

The thing is, something like 1 from 10 starts sucseeds (the system is dual-core, BTW).




More information about the umbrello-devel mailing list