Bug 107829 - Fatal exception: Signal 6 when using SDK to insert text
Summary: Fatal exception: Signal 6 when using SDK to insert text
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
5.3.1.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-13 21:54 UTC by kstenerud
Modified: 2017-05-14 20:06 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Self contained test java app (8.46 KB, text/x-java)
2017-05-13 21:54 UTC, kstenerud
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kstenerud 2017-05-13 21:54:27 UTC
Created attachment 133300 [details]
Self contained test java app

When using the Java SDK to create a document and add a bunch of styled text, it crashes in libuno_sal.so.3.

I've reduced it to a test java source file that reproduces the error about 75% of the time:

run:
CE> Application Error
CE> 
CE> 
CE> Fatal exception: Signal 6
CE> Stack:
CE> /usr/lib/libreoffice/program/libuno_sal.so.3(+0x3a4a0)[0x7f5f461884a0]
CE> /usr/lib/libreoffice/program/libuno_sal.so.3(+0x3a611)[0x7f5f46188611]
CE> /lib/x86_64-linux-gnu/libc.so.6(+0x357f0)[0x7f5f45dbc7f0]
CE> /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x9f)[0x7f5f45dbc77f]
CE> /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f5f45dbe37a]
CE> /usr/lib/libreoffice/program/libmergedlo.so(+0x2d40402)[0x7f5f490e5402]
CE> /usr/lib/libreoffice/program/libmergedlo.so(_ZN11Application5AbortERKN3rtl8OUStringE+0x9a)[0x7f5f49057aca]
CE> /usr/lib/libreoffice/program/libmergedlo.so(+0x1cc0d38)[0x7f5f48065d38]
CE> /usr/lib/libreoffice/program/libmergedlo.so(+0x2cb8392)[0x7f5f4905d392]
CE> /usr/lib/libreoffice/program/libuno_sal.so.3(+0x15a22)[0x7f5f46163a22]
CE> /usr/lib/libreoffice/program/libuno_sal.so.3(+0x3a5cf)[0x7f5f461885cf]
CE> /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so(+0x8be86d)[0x7f5ef9c5e86d]
CE> /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so(JVM_handle_linux_signal+0x1b9)[0x7f5ef9c63509]
CE> /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so(+0x8b7268)[0x7f5ef9c57268]
CE> /lib/x86_64-linux-gnu/libc.so.6(+0x357f0)[0x7f5f45dbc7f0]
CE> /usr/lib/libreoffice/program/libuno_cppuhelpergcc3.so.3(_ZNK3com3sun4star3uno19WeakReferenceHelper3getEv+0x35)[0x7f5f3fc26095]
CE> /usr/lib/libreoffice/program/../program/libswlo.so(+0x370795)[0x7f5efb14f795]
CE> /usr/lib/libreoffice/program/../program/libswlo.so(+0x368061)[0x7f5efb147061]
CE> /usr/lib/libreoffice/program/../program/libswlo.so(+0x368b2c)[0x7f5efb147b2c]
CE> /usr/lib/libreoffice/program/../program/libswlo.so(+0x659890)[0x7f5efb438890]
CE> /usr/lib/libreoffice/program/../program/libswlo.so(_ZN11SwViewShell10LayoutIdleEv+0xde)[0x7f5efb7778ae]
CE> /usr/lib/libreoffice/program/../program/libswlo.so(+0x49065c)[0x7f5efb26f65c]
CE> /usr/lib/libreoffice/program/libmergedlo.so(+0x2ca5ec1)[0x7f5f4904aec1]
CE> /usr/lib/libreoffice/program/libmergedlo.so(_ZN9Scheduler21ProcessTaskSchedulingEb+0x38)[0x7f5f4904b0e8]
CE> /usr/lib/libreoffice/program/libmergedlo.so(_ZN11Application5YieldEv+0x66)[0x7f5f49058306]
CE> /usr/lib/libreoffice/program/libmergedlo.so(_ZN11Application7ExecuteEv+0x45)[0x7f5f4905a155]
CE> /usr/lib/libreoffice/program/libmergedlo.so(+0x1cc896d)[0x7f5f4806d96d]
CE> /usr/lib/libreoffice/program/libmergedlo.so(+0x2cb9b76)[0x7f5f4905eb76]
CE> /usr/lib/libreoffice/program/libmergedlo.so(_Z6SVMainv+0x22)[0x7f5f4905ec72]
CE> /usr/lib/libreoffice/program/libmergedlo.so(soffice_main+0x91)[0x7f5f4808f0a1]
CE> /usr/lib/libreoffice/program/soffice.bin(+0x7ab)[0x5578a714c7ab]
CE> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f5f45da73f1]
CE> /usr/lib/libreoffice/program/soffice.bin(+0x7ea)[0x5578a714c7ea]
Exception in thread "main" com.sun.star.lang.DisposedException
	at com.sun.star.lib.uno.environments.remote.JobQueue.removeJob(JobQueue.java:201)
	at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:308)
	at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:281)
	at com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:81)
	at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:618)
	at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:145)
	at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:129)
	at com.sun.proxy.$Proxy11.setPropertyValue(Unknown Source)
	at org.testing.OfficeTest.applyTextStyle(OfficeTest.java:92)
	at org.testing.OfficeTest.insertParagraph(OfficeTest.java:113)
	at org.testing.OfficeTest.insertStory(OfficeTest.java:99)
	at org.testing.OfficeTest.testBigDocument(OfficeTest.java:43)
	at org.testing.OfficeTest.main(OfficeTest.java:30)
Caused by: java.io.EOFException
	at java.io.DataInputStream.readInt(DataInputStream.java:392)
	at com.sun.star.lib.uno.protocols.urp.urp.readBlock(urp.java:364)
	at com.sun.star.lib.uno.protocols.urp.urp.readMessage(urp.java:96)
	at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java:92)
/home/karl/.cache/netbeans/8.1/executor-snippets/run.xml:53: Java returned: 1
BUILD FAILED (total time: 7 seconds)


Some observations:
- If I don't add any paragraph styles, it never crashes.
- I've had it crash even when the page style hasn't been applied.
Comment 1 Xisco Faulí 2017-05-14 19:04:09 UTC
Hello,
Could you please try to reproduce it with  version 5.3.3 of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
Comment 2 kstenerud 2017-05-14 19:41:31 UTC
Tested with 5.3.3.2 and no crash so far!
Comment 3 Xisco Faulí 2017-05-14 20:06:28 UTC
Closing as RESOLVED WORKSFORME then. Thanks