[umbrello] [Bug 373911] After upgrading to 2.20.90 from version 2.20.3, umbrello crash when I try to open model created with 2.20.3

Ralf Habacker bugzilla_noreply at kde.org
Mon Jan 2 10:31:22 UTC 2017


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

--- Comment #14 from Ralf Habacker <ralf.habacker at freenet.de> ---
Thanks for this testcase. After installing libstdc++ symbols from the
mingw32-gcc-debug package I was able to create a more detailed backtrace:

Program received signal SIGSEGV, Segmentation fault.
__cxxabiv1::__dynamic_cast (src_ptr=0x0, src_type=0x7ef444
<_fu5995___ZTVN10__cxxabiv120__si_class_type_infoE>,
    dst_type=0x7eeac0 <_fu6273___ZTVN10__cxxabiv120__si_class_type_infoE>,
src2dst=0) at ../../../../libstdc++-v3/libsupc++/dyncast.cc:50
50      ../../../../libstdc++-v3/libsupc++/dyncast.cc: No such file or
directory.
(gdb) bt
#0  __cxxabiv1::__dynamic_cast (src_ptr=0x0, src_type=0x7ef444
<_fu5995___ZTVN10__cxxabiv120__si_class_type_infoE>,
    dst_type=0x7eeac0 <_fu6273___ZTVN10__cxxabiv120__si_class_type_infoE>,
src2dst=0) at ../../../../libstdc++-v3/libsupc++/dyncast.cc:50
#1  0x00607523 in UMLObject::asUMLUniqueConstraint (this=<optimized out>) at
/home/abuild/rpmbuild/BUILD/umbrello-2.21.0.ec4653c/umbrello/umlmodel/umlobject.cpp:1255
#2  0x005e9db7 in UMLEntity::setAsPrimaryKey (this=this at entry=0x6a4fe38,
uconstr=uconstr at entry=0x6a50838)
    at
/home/abuild/rpmbuild/BUILD/umbrello-2.21.0.ec4653c/umbrello/umlmodel/entity.cpp:527
#3  0x0060e813 in _fu4155___ZN7QString11shared_nullE () at
/home/abuild/rpmbuild/BUILD/umbrello-2.21.0.ec4653c/umbrello/umlmodel/uniqueconstraint.cpp:186
#4  0x006092bb in _fu4109___ZN7QString11shared_nullE () at
/home/abuild/rpmbuild/BUILD/umbrello-2.21.0.ec4653c/umbrello/umlmodel/umlobject.cpp:1113
#5  0x005e94df in UMLEntity::load (this=0x6a4fe38, element=...) at
/home/abuild/rpmbuild/BUILD/umbrello-2.21.0.ec4653c/umbrello/umlmodel/entity.cpp:489
#6  0x006092bb in _fu4109___ZN7QString11shared_nullE () at
/home/abuild/rpmbuild/BUILD/umbrello-2.21.0.ec4653c/umbrello/umlmodel/umlobject.cpp:1113
#7  0x005f3895 in _fu3978___ZN7QString11shared_nullE () at
/home/abuild/rpmbuild/BUILD/umbrello-2.21.0.ec4653c/umbrello/umlmodel/folder.cpp:571
#8  0x005f318c in _fu3976___ZN7QString11shared_nullE () at
/home/abuild/rpmbuild/BUILD/umbrello-2.21.0.ec4653c/umbrello/umlmodel/folder.cpp:497
#9  0x006092bb in _fu4109___ZN7QString11shared_nullE () at
/home/abuild/rpmbuild/BUILD/umbrello-2.21.0.ec4653c/umbrello/umlmodel/umlobject.cpp:1113
#10 0x0041e226 in _fu1185___ZN7QString11shared_nullE () at
/home/abuild/rpmbuild/BUILD/umbrello-2.21.0.ec4653c/umbrello/umldoc.cpp:2628
#11 0x0041e1c7 in _fu1185___ZN7QString11shared_nullE () at
/home/abuild/rpmbuild/BUILD/umbrello-2.21.0.ec4653c/umbrello/umldoc.cpp:2648
#12 0x00427754 in _fu1200___ZN7QString11shared_nullE () at
/home/abuild/rpmbuild/BUILD/umbrello-2.21.0.ec4653c/umbrello/umldoc.cpp:2377
#13 0x0042997b in _fu1216___ZN7QString11shared_nullE () at
/home/abuild/rpmbuild/BUILD/umbrello-2.21.0.ec4653c/umbrello/umldoc.cpp:715
#14 0x0040ba65 in UMLApp::slotFileOpen (this=0x3f82848) at
/home/abuild/rpmbuild/BUILD/umbrello-2.21.0.ec4653c/umbrello/uml.cpp:1349
#15 0x6e426d82 in ?? () from
C:\Users\admin\Downloads\umbrello-2.21.0.ec4653c\bin\QtCore4.dll
#16 0x6790f2cb in ?? () from
C:\Users\admin\Downloads\umbrello-2.21.0.ec4653c\bin\QtGui4.dll

According to
http://stackoverflow.com/questions/14243854/c-dynamic-cast-causes-a-segfault-even-when-the-object-that-is-casted-is-not-n
there may be several reasons for a dynamic_cast crash. Unfortunally I cannot
see yet why calling dynamic_cast(0) could fail:
http://stackoverflow.com/questions/5155820/portably-safe-to-pass-null-zero-to-dynamic-cast
mentions that it should be possible.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list