Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Thu, 24 Nov 2011 23:38:28 +0100
Bjoern Michaelsen <bjoern.michaelsen@canonical.com> wrote:

However, we are not so much interested in interactively working with
soffice in the subsequenttest. So how about a very old fashioned and
almost forgotten way to debug: creating a core dump!

For bonus points one could then even print the stacktrace of a crashed
test right from "make subsequentcheck".

Opinions?

One allnigher later, its to late for opinions. Implemented with:

http://cgit.freedesktop.org/libreoffice/core/commit/?id=74f44646ba5b400cc39d78940677f136711459b5
http://cgit.freedesktop.org/libreoffice/core/commit/?id=279473f1ed6cd3bb6f6d2b8b9c75529b91836e39
http://cgit.freedesktop.org/libreoffice/core/commit/?id=1cec66388eac81af2197da4fbf8fd2b00c56c7a5
http://cgit.freedesktop.org/libreoffice/core/commit/?id=a1b57be652ac532ebddb3e3e53dddc35ae420f31

Still might need some tuning (core file location for example,
superfluous gdb output), but it basically works:

 ulimit -c unlimited && make subsequentcheck

gives you a full soffice stacktrace:

It seems like soffice.bin crashed during the test excution!
Found a core dump at 
/mnt/striped/bjoern/.jenkins/jobs/libreoffice-master/workspace/workdir/unxlngx6.pro/JunitTest/sw_complex/user,
 moving it to 
/mnt/striped/bjoern/.jenkins/jobs/libreoffice-master/workspace/workdir/unxlngx6.pro/JunitTest/sw_complex/user/core.SfR2
[...]
Program terminated with signal 11, Segmentation fault.
#0  0x00002adaed22ffbd in sw::mark::MarkManager::MarkManager (this=0x325add0, rDoc=..., 
__in_chrg=<optimized out>, __vtt_parm=<optimized out>) at 
/mnt/striped/bjoern/.jenkins/jobs/libreoffice-master/workspace/sw/source/core/doc/docbm.cxx:310
310             int i = *(reinterpret_cast<int*>(NULL));
#0 0x00002adaed22ffbd in sw::mark::MarkManager::MarkManager (this=0x325add0, rDoc=..., 
__in_chrg=<optimized out>,
__vtt_parm=<optimized out>) at 
/mnt/striped/bjoern/.jenkins/jobs/libreoffice-master/workspace/sw/source/core/doc/docbm.cxx:310
[...]

While only showing the essentials of the Java stacktrace:
1) contents_flows_to(complex.accessibility.AccessibleRelationSet)
com.sun.star.lang.DisposedException
    at $Proxy13.loadComponentFromURL(Unknown Source)
    at util.DesktopTools.openNewDoc(DesktopTools.java:247)
    at util.WriterTools.createTextDoc(WriterTools.java:51)
    at complex.accessibility.AccessibleRelationSet.before(AccessibleRelationSet.java:168)
Caused by: java.io.EOFException
    at java.io.DataInputStream.readInt(DataInputStream.java:392)  

and a hint at the full log:
see full error log at 
/mnt/striped/bjoern/.jenkins/jobs/libreoffice-master/workspace/workdir/unxlngx6.pro/JunitTest/sw_complex/done.log
make[1]: Leaving directory `/mnt/striped/bjoern/.jenkins/jobs/libreoffice-master/workspace/sw'   

Best,

Bjoern

-- 
https://launchpad.net/~bjoern-michaelsen

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.