Apache OpenOffice (AOO) Bugzilla – Issue 23426
API: sw.SwXMailMerge::XJob
Last modified: 2013-02-24 21:06:23 UTC
Office crashes when for OutPutType com.sun.star.text.MailMergeType.PRINTER on Solaris. This seems to work on Linux and Windows. Execute the following macro to reproduce the behaviour (the mentioned MailMerge.sxw is attached to this issue Dim vXJobArg(0 to 6) as new com.sun.star.beans.NamedValue Mailmerge = createUnoService("com.sun.star.text.MailMerge") cTestDoc = "file:///home/MailMerge.sxw" cDataSourceName = "Bibliography" cDataCommand = "biblio" ' use a simple DataBase with simple Table and write to printer vXJobArg(0).Name = "DataSourceName" : vXJobArg(0).Value = cDataSourceName vXJobArg(1).Name = "Command" : vXJobArg(1).Value = cDataCommand vXJobArg(2).Name = "CommandType" : vXJobArg(2).Value = com.sun.star.sdb.CommandType.TABLE vXJobArg(3).Name = "OutputType" : vXJobArg(3).Value = com.sun.star.text.MailMergeType.PRINTER vXJobArg(4).Name = "FileNamePrefix" : vXJobArg(4).Value = "Author" vXJobArg(5).Name = "FileNameFromColumn" : vXJobArg(5).Value = true vXJobArg(6).Name = "DocumentURL" : vXJobArg(6).Value = cTestDoc Mailmerge.execute(vxJobArg())
Created attachment 11872 [details] bugdoc
.
The stack for the crash is _waitid(0x0, 0x611f, 0xffbf86a0, 0x103, 0x0, 0x0) _libc_waitpid(0x611f, 0xffbf878c, 0x100, 0xfffffff8, 0xffffffe0, 0xffbf87fd) system(0xffbf8988, 0x200, 0x7e1b3860, 0x60e1, 0x6, 0xffbf93e0) 0x7e02b8ec(0x6, 0x7e1dbc18, 0x7e1c5814, 0x758, 0x400, 0x400) 0x7e02bcc0(0x6, 0x7, 0xa0, 0x1c, 0x0, 0x7e1c5814) __sighndlr(0x6, 0x0, 0xffbf9a58, 0x7e02bc30, 0x0, 0x0) call_user_handler(0x6, 0x0, 0xffbf9a58, 0x0, 0x0, 0x0) sigacthandler(0x6, 0x0, 0xffbf9a58, 0x7fb38000, 0x7fa8ae78, 0x1) ---- signal handler SIGABRT (6) ---- __lwp_kill(0x0, 0x6, 0x5, 0x7fb38000, 0x7fa8ae78, 0x1) raise(0x6, 0x6, 0xffbf9dd0, 0x14474, 0x7f9b0760, 0x1) abort(0x7f9b4828, 0x7f9ca430, 0xd0898, 0x7f9b477c, 0x15000, 0x7f9b47fc) __Cimpl::ex_unexpected(0xffbf9ee0, 0x7b8f4830, 0x7f9ca430, 0x800, 0x0, 0x1) ---- hidden frames ---- IMPL_SfxBaseController_CloseListenerHelper::queryClosing(0x6a8c5288, 0x4904, 0x1, 0x4800, 0x7f9ca478, 0x6a8c529c) SfxBaseModel::close(0x6a9a12e0, 0x7b697374, 0x7b8f4b14, 0x0, 0xffbf9fcc, 0x1) CloseModelAndDocSh(rxModel = CLASS, rxDocSh = CLASS) DeleteTmpFile_Impl(rxModel = CLASS, rxDocSh = CLASS, rTmpFileURL = CLASS) SwXMailMerge::execute(this = 0x6a9e1ef8, rArguments = CLASS) TL->MBA: As stated the problem is IMPL_SfxBaseController_CloseListenerHelper::queryClosing does not specify the CloseVetoException.
Fixed by DBO in valgrind57