Bug 300664

Summary: Crash with export xhtml
Product: [Applications] umbrello Reporter: peteasa
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED DUPLICATE    
Severity: crash CC: okellogg
Priority: NOR    
Version: 2.8.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description peteasa 2012-05-26 13:35:39 UTC
Application: umbrello (2.8.2)
KDE Platform Version: 4.8.2 (4.8.2)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-24-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
Export a simple model containing a class diagram.  Export xhtml crashes

The crash can be reproduced every time.

-- Backtrace:
Application: Umbrello UML Modeller (umbrello), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f8194fe5780 (LWP 5023))]

Thread 5 (Thread 0x7f8180c8b700 (LWP 5026)):
#0  0x00007f8190fd80bd in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f818df1788f in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f818dedcabd in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f818dedcf96 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f818dedd45a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f8180c9098b in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#6  0x00007f818defe9a5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f8190cdde9a in start_thread (arg=0x7f8180c8b700) at pthread_create.c:308
#8  0x00007f8190fe54bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f817bfff700 (LWP 5027)):
#0  0x00007f8190fd9b03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f818dedcff6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f818dedd45a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8187de92c6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f818defe9a5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f8190cdde9a in start_thread (arg=0x7f817bfff700) at pthread_create.c:308
#6  0x00007f8190fe54bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f816abb8700 (LWP 5029)):
#0  0x00007f8190fd9b03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f818dedcff6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f818dedd124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8191c6a426 in QEventDispatcherGlib::processEvents (this=0x7f81640008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f8191c39c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f8191c39ed7 in QEventLoop::exec (this=0x7f816abb7dd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f8191b38fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f8191c199ff in QInotifyFileSystemWatcherEngine::run (this=0x1d9dfb0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f8191b3bfcb in QThreadPrivate::start (arg=0x1d9dfb0) at thread/qthread_unix.cpp:298
#9  0x00007f8190cdde9a in start_thread (arg=0x7f816abb8700) at pthread_create.c:308
#10 0x00007f8190fe54bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f816a0bd700 (LWP 5035)):
[KCrash Handler]
#6  ___vfprintf_chk (fp=0x0, flag=1, format=0x7f8194912e33 "error : ", ap=0x7f816a0bc2f8) at vfprintf_chk.c:31
#7  0x00007f8194833a86 in vfprintf (__ap=0x7f816a0bc2f8, __fmt=0x7f8194912e33 "error : ", __stream=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/stdio2.h:128
#8  xmlGenericErrorDefaultFunc (ctx=<optimized out>, msg=0x7f8194912e33 "error : ") at ../../error.c:78
#9  0x00007f8194833756 in xmlReportError (err=0x7f815c00d298, ctxt=0x0, str=0x7f815c00dab0 "No such file or directory", channel=0x7f81948339e0 <xmlGenericErrorDefaultFunc>, data=0x0) at ../../error.c:377
#10 0x00007f819483515a in __xmlRaiseError (schannel=0, channel=0x7f81948339e0 <xmlGenericErrorDefaultFunc>, data=0x0, ctx=0x0, nod=0x0, domain=10, code=1524, level=XML_ERR_ERROR, file=<optimized out>, line=0, str1=0x7f819491fca6 "getaddrinfo failed\n", str2=0x0, str3=0x0, int1=0, col=0, msg=0x7f81949163ae "No such file or directory") at ../../error.c:617
#11 0x00007f819483528b in __xmlSimpleError (domain=<optimized out>, code=<optimized out>, node=<optimized out>, msg=<optimized out>, extra=<optimized out>) at ../../error.c:647
#12 0x00007f819489f1ec in xmlNanoHTTPConnectHost (host=0x7f815c006ea0 "docbook.xml-doc.org", port=80) at ../../nanohttp.c:1073
#13 0x00007f81948a008a in xmlNanoHTTPMethodRedir__internal_alias (URL=0x7f815c02a500 "http://docbook.sourceforge.net/release/xsl/snapshot/html/docbook.xsl", method=0x7f819491fd10 "GET", input=0x0, contentType=0x0, redir=0x0, headers=0x0, ilen=0) at ../../nanohttp.c:1386
#14 0x00007f81948a03f3 in xmlNanoHTTPMethod__internal_alias (URL=<optimized out>, method=<optimized out>, input=<optimized out>, contentType=<optimized out>, headers=<optimized out>, ilen=<optimized out>) at ../../nanohttp.c:1595
#15 0x00007f8194861da2 in __xmlParserInputBufferCreateFilename (URI=0x7f815c02a500 "http://docbook.sourceforge.net/release/xsl/snapshot/html/docbook.xsl", enc=XML_CHAR_ENCODING_NONE) at ../../xmlIO.c:2499
#16 0x00007f8194837282 in xmlNewInputFromFile__internal_alias (ctxt=0x7f815c026960, filename=0x7f815c02a500 "http://docbook.sourceforge.net/release/xsl/snapshot/html/docbook.xsl") at ../../parserInternals.c:1549
#17 0x00007f81948640f7 in xmlDefaultExternalEntityLoader (URL=0x7f815c026c50 "http://docbook.sourceforge.net/release/xsl/snapshot/html/docbook.xsl", ID=0x0, ctxt=0x7f815c026960) at ../../xmlIO.c:3885
#18 0x00007f8194863f6f in xmlLoadExternalEntity__internal_alias (URL=<optimized out>, ID=0x0, ctxt=0x7f815c026960) at ../../xmlIO.c:3941
#19 0x00007f81945e991b in ?? () from /usr/lib/x86_64-linux-gnu/libxslt.so.1
#20 0x00007f81945e82c0 in xsltParseStylesheetImport () from /usr/lib/x86_64-linux-gnu/libxslt.so.1
#21 0x00007f81945d2e18 in xsltParseStylesheetProcess () from /usr/lib/x86_64-linux-gnu/libxslt.so.1
#22 0x00007f81945d4171 in xsltParseStylesheetImportedDoc () from /usr/lib/x86_64-linux-gnu/libxslt.so.1
#23 0x00007f81945d4203 in xsltParseStylesheetDoc () from /usr/lib/x86_64-linux-gnu/libxslt.so.1
#24 0x00007f81945d42a4 in xsltParseStylesheetFile () from /usr/lib/x86_64-linux-gnu/libxslt.so.1
#25 0x000000000065f575 in Docbook2XhtmlGeneratorJob::run (this=0x23b2800) at ../../../umbrello/umbrello/docgenerators/docbook2xhtmlgeneratorjob.cpp:83
#26 0x00007f8191b3bfcb in QThreadPrivate::start (arg=0x23b2800) at thread/qthread_unix.cpp:298
#27 0x00007f8190cdde9a in start_thread (arg=0x7f816a0bd700) at pthread_create.c:308
#28 0x00007f8190fe54bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#29 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8194fe5780 (LWP 5023)):
#0  0x00007f8190fd80bd in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f818df1788f in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f818dedcabd in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f818dedcf96 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f818dedd124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f8191c6a3bf in QEventDispatcherGlib::processEvents (this=0x16003d0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0x00007f819292fd5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#7  0x00007f8191c39c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007f8191c39ed7 in QEventLoop::exec (this=0x7fffbfe19c10, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007f8191c3ef67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#10 0x0000000000438d26 in main (argc=3, argv=0x7fffbfe1a0b8) at ../../../umbrello/umbrello/main.cpp:111

Reported using DrKonqi
Comment 1 Oliver Kellogg 2012-07-13 04:36:27 UTC
Thread 2 hints at a problem with the kdelibs/kdoctools installation.
Can you make sure that you have the following file:
  $KDEDIR/share/apps/ksgmltools2/docbook/xsl/html/docbook.xsl
If not then please reinstall kdelibs.
(KDEDIR is the root of your KDE installation, usually /usr or /opt/kde4 or similar)

You may also want to check that you have DocBook installed
(http://docbook.sourceforge.net)
Comment 2 peteasa 2012-07-18 09:36:06 UTC
(In reply to comment #1)
> Thread 2 hints at a problem with the kdelibs/kdoctools installation.
> Can you make sure that you have the following file:
>   $KDEDIR/share/apps/ksgmltools2/docbook/xsl/html/docbook.xsl
> If not then please reinstall kdelibs.
> (KDEDIR is the root of your KDE installation, usually /usr or /opt/kde4 or
> similar)
> 
> You may also want to check that you have DocBook installed
> (http://docbook.sourceforge.net)
share/apps/ksgmltools2/docbook/xsl/html/docbook.xsl is not present on my system.
In Ubuntu Synaptic Package Manager I installed docbook, docbook-xml, docbook5-xml, docbook-xsl.. still no luck.  I looked at the installed files reported for kdelibs-bin and that did not have this either so no point in reinstalling.
docbook-xsl has /usr/share/doc/docbook-xsl ... /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl ... /usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl perhaps that is what is not found?
Comment 3 Oliver Kellogg 2012-07-18 19:16:10 UTC
(In reply to comment #2)
> share/apps/ksgmltools2/docbook/xsl/html/docbook.xsl is not present on my
> system.
> In Ubuntu Synaptic Package Manager I installed docbook, docbook-xml,
> docbook5-xml, docbook-xsl.. still no luck.  I looked at the installed files
> reported for kdelibs-bin and that did not have this either so no point in
> reinstalling.
> docbook-xsl has /usr/share/doc/docbook-xsl ...
> /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl ...
> /usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl perhaps that
> is what is not found?

Thanks for the info.
It prompted me to check what's been happening with kdoctools, and I found this:

http://lists.kde.org/?l=kde-core-devel&m=127272690007519&w=2

I hadn't noticed this because I'm still on KDE 4.4.4 but it seems the change was introduced in 4.5.
I believe /trunk/KDE/kdesdk/umbrello/umbrello/docgenerators/docbookgeneratorjob.cpp will need adjustment.
Comment 4 Oliver Kellogg 2012-07-19 05:07:20 UTC

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