Hi Matthieu,

On 10.10.2013 17:44, Matthieu Riolo wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Oliver

After further analysis I was able to isolate the problem. The crash
occured if a special extension (not a public one) gets included. In that
case even on linux the crash happens. The extensions includes around
hundert macros and I cannot tell you which one breaks the system.

After rebuilding the libsw.so with debug flags I've been able to
backtrace the error to the variable "m_pWrtShell", as you suggested.
After some research in the internet I found that patch:


http://nabble.documentfoundation.org/PATCH-fdo-40341-Writer-crashes-in-page-preview-when-clicking-Formatting-Aids-td3280568.html


I backported it to OO and successfully tested it on linux. I
think that this patch is absolutely necessary and must be applied in the
newer versions of OO. However, I don't know if it is already fixed in
OO4 and I don't know if there is no license issue.



The patch equal to what I had already suggested. See below: I suggested to guard the access to <m_pWrtShell>.

The name of the above given URL gives me the missing hint: "Writer-crashes-in-page-preview..."
This can be easily reproduced in AOO 4.0.1:
- new text document
- switch to Page Preview
- menu Tools - Options - OpenOffice Writer - Formatting Aids.

I will submit a corresponding issue and fix the issue with the given patch. Kudos will go to you for finding and verification of the fix.

Thanks again for the great support.

Best regards, Oliver.


Greetz Matthieu

PS: Apply the patch by entering into the oo folder (where the main
folder is) and execute patch -p0 < formattingAIDSCrash.patch


Am 25.09.2013 08:25, schrieb Oliver-Rainer Wittmann:
Hi,

On 24.09.2013 15:47, Matthieu Riolo wrote: Hello Oliver

Thanks for you fast reply. I should be on the dev mailing list.


Am 24.09.2013 14:27, schrieb Oliver-Rainer Wittmann:
Hi,

On 24.09.2013 14:21, Oliver-Rainer Wittmann wrote:
Hi,

On 24.09.2013 09:54, Matthieu Riolo wrote:
Dear ladies and gentlemen

I accidentally sent this question to the user mailinglist but
I does sure belong to the dev-list. Sorry for the double
mails (original:
http://markmail.org/thread/lrsdy4q2tlh4vltj)

One of our customer is having a problem with AOO 3.4. The
failure is a crash (SIGBUS). It occurs each time when an user
tries to open the configurationpanel for the aid formatting.
Our customer is using Solaris on a sparc machine.


Just to be sure that I got it right: Your are talking
about the Menu Tools - Options - OpenOffice Writer -
Formatting Aids. Right?


Yes, exactly that menupoint. Once the element "Formatting Aids"
get clicked the crash occurs.



Further question: The corresponding option tab page shall
_only_ be available, when a Writer document or a Writer/Web
document is open. Is this the case in the customer's
configuration/installation?

The customer told me that it even happens when he uses an empty
file.


Thus, this option tab page is available, when no Writer document
and no Writer/Web document is open?


We received a coredump from our customer but because leaking
of a OO version with debugflags I decided to ask here - might
someone has got an idea what could go wrong.


The received backtrace allows me to isolate the failure. It
looks like that it occurs in the following method:

main/sw/source/ui/config/optpage.cxx void
SwShdwCrsrOptionsTabPage::Reset( const SfxItemSet& rSet )


I had a short look at the code of this method. May be
the access to member variable <m_pWrtShell> causes the
crash. Debugging the current trunk code on my Windows 7
system reveals that this member is set correctly by via
calling <PageCreated(..)> for this option tab page. But
may be something goes wrong on Solaris.


Please guard the access to <m_pWrtShell> in method
<SwShdwCrsrOptionsTabPage::Reset(..)> and check, if the crash
occurs again.

Best regards, Oliver.


Furthermore I often get a "Xlib: sequence lost (0x1005f >
0x19eb) in reply type 0x1c!" failure. It seems to have no
effect on my machine but this might be the problem.


The Backtrace:

ffbfdbe0
libswui.so`__1cYSwShdwCrsrOptionsTabPageFReset6MrknKSfxItemSet__v_+0xfc(1a5c400,






1c21eb8, 1, 1, ffbfdd44, 3) ffbfdd58
libcui.so`__1cUOfaTreeOptionsDialogOSelectHdl_Impl6MpnFTimer__l_+0x900(1c187b0,






15e49f0, ee244d58, 3, 42d7, 5) ffbfe0c0
libvcl.so`__1cFTimerVImplTimerCallbackProc6F_v_+0xd8(fd18c7e4,
1, fd18c2d0, 1, 159b7e8, 1) ffbfe120
libvclplug_gtk.so`__1cHGtkXLibJtimeoutFn6Fpv_i_+0x80(26c80,
fd18c2d0, fd18c2d0, fda35704, 266d0, fd18c2bc) ffbfe180
libglib-2.0.so.0.1800.3`g_timeout_dispatch+0x40(8e3aa8,
fd9fa8c4, 26c80, 18, 0, 0) ffbfe1e8
libglib-2.0.so.0.1800.3`g_main_dispatch+0x1e4(4bfe8, 4bff0,
fb96df68, 0, fb96bd90, fb8c7388) ffbfe258
libglib-2.0.so.0.1800.3`g_main_context_dispatch+0xcc(fb96e140,


4bff0, 28, fb96e13c, 4bff0, 4bfe8) ffbfe2b8
libglib-2.0.so.0.1800.3`g_main_context_iterate+0x52c(4bfe8,
1, 1, fb96e148, 1, 1) ffbfe320
libglib-2.0.so.0.1800.3`g_main_context_iteration+0xc4(0, 1,
4bff0, 44, 1, 4bfe8) ffbfe380
libvclplug_gtk.so`__1cHGtkXLibFYield6Mbb_v_+0x130(26c80, 1,
0, 1, 0, fd18c2bc) ffbfe3f0
libvcl.so`__1cJImplYield6Fbb_v_+0xbc(1, fd18c2d0, 0, 0, 1,
400) ffbfe450
libvcl.so`__1cGDialogHExecute6M_h_+0x78(1c187b0, ffbfe548,
f22e6850, ffbfe4b0, f235bbcc, f235bbcc) ffbfe4c0
libcui.so`__1cUOfaTreeOptionsDialogHExecute6M_h_+0xa4(1c187b0,
0, ffbfe548, 0, 0, 1c006f0) ffbfe550
libsfx.so`__1cOSfxApplicationMOfaExec_Impl6MrnKSfxRequest__v_+0x2d4(643210,






ffbfec54, 1c006e0, ee81c984, 7800, f17c59cc ) ffbfeab0
libsfx.so`__1cNSfxDispatcherJCall_Impl6MrnISfxShell_rknHSfxSlot_rnKSfxRequest_C_i_+0x46c(121d5d8,






643210, f6511ca4, ffbfec54, ffbfeb2f, f65064bc) ffbfeb78
libsfx.so`__1cbASfxDispatchController_ImplIdispatch6MrknDcomDsunEstarEutilDURL_rkn0DDunoISequence4n0DFbeansNPropertyValue___rkn0G






JReference4n0DFframeXXDispatchResultListener____v_+0xcdc(158eaf0,
f4d7d628, 9, ffbfedcc, 0, f6511dd8) ffbfed68
libsfx.so`__1cRSfxOfficeDispatchIdispatch6MrknDcomDsunEstarEutilDURL_rkn0DDunoISequence4n0DFbeansNPropertyValue____v_+0x18c(






eec0d6e8, ffbfeeb4, ffbfeeb0, fe118db8, f65064bc, 45400) ffbfede8
libfwk.so`__1cJframeworkOMenuBarManagerGSelect6MpnEMenu__l_+0x7e4(ef2f5a88,






1529fc8, ffbfeeb4, f4f4ddb8, f4f49958, f61feb54) ffbfeee0
libvcl.so`__1cEMenuGSelect6M_v_+0x64(1529fc8, 0, 1,
ffbfef40, ffffff, ff1f2a00) ffbfef48
libvcl.so`__1cEMenuOImplCallSelect6Mp0_l_+0x10(1529fc8, 0,
1, 2c990, fd0100c8, fd19b69c) ffbfefa8
libvcl.so`__1cTImplHandleUserEvent6FpnLImplSVEvent__v_+0xb8(1a56470,




fd01549c, 15810e8, 1a56480, 0, 6)
ffbff008
libvcl.so`__1cTImplWindowFrameProc6FpnGWindow_pnISalFrame_Hpkv_l_+0x220(716990,






0, 16, fd094870, 1a56470, 0) ffbff0e0
libvclplug_gen.so`__1cKSalDisplayVDispatchInternalEvent6M_b_+0x9c(4d800,




22c78, fd094924, 16, 1a56470, 716c00)
ffbff140
libvclplug_gtk.so`__1cHGtkXLibLuserEventFn6Fpv_i_+0xc0(26c80,


fd18c2d0, fd18c2bc, fda35704, 0, 266d0) ffbff1b8
libglib-2.0.so.0.1800.3`g_main_dispatch+0x1e4(4bfe8, 4bff0,
fb96df68, 0, fb96bd90, fb8c7d20) ffbff228
libglib-2.0.so.0.1800.3`g_main_context_dispatch+0xcc(fb96e140,


4bff0, 28, fb96e13c, 4bff0, 4bfe8) ffbff288
libglib-2.0.so.0.1800.3`g_main_context_iterate+0x52c(4bfe8,
0, 1, fb96e148, 1, 1) ffbff2f0
libglib-2.0.so.0.1800.3`g_main_context_iteration+0xc4(0, 0,
4bff0, 44, 1, 4bfe8) ffbff350
libvclplug_gtk.so`__1cHGtkXLibFYield6Mbb_v_+0xf0(26c80, 1, 0,
1, 0, fd18c2bc) ffbff3c0
libvcl.so`__1cJImplYield6Fbb_v_+0xbc(1, fd18c2d0, 0, 0, 1,
400) ffbff420 libvcl.so`__1cLApplicationHExecute6F_v_+0x3c(1,
fd18c2d0, fd18c2bc, fd180c3c, 440, 400) ffbff480
libsofficeapp.so`__1cHdesktopHDesktopEMain6M_v_+0x2080(ffbff9cc,


fe7de9a4, ffbff550, fdf2e540, 1800, 0) ffbff880
libvcl.so`__1cKImplSVMain6F_C_+0x4c(0, fd18c2bc, 1, 400,
fd180c3c, fed70508) ffbff8f8
libvcl.so`__1cGSVMain6F_C_+0x20(c, ffbff9c8, fd18c2bc, 2,
80000000, 40000000) ffbff960
libsofficeapp.so`soffice_main+0x88(0, fed70508, ffbff9c8,
feb226f5, fffecf79, 13000) ffbffa00 main+0x10(2, ffbffac4,
ffbffad0, 21000, 0, ff1f0140) ffbffa60 _start+0xd8(0, 0, 0,
0, 0, 0)


Best Regards, Matthieu Riolo




---------------------------------------------------------------------




To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail:
dev-h...@openoffice.apache.org


---------------------------------------------------------------------




To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail:
dev-h...@openoffice.apache.org



---------------------------------------------------------------------


To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org


---------------------------------------------------------------------


To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org


- --
Adfinis SyGroup AG
Matthieu Riolo, Lehrling Applikationsentwickler

Keltenstrasse 98 | CH-3018 Bern
Tel. 031 550 31 11
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSVstwAAoJEN4lbfBODG2LiKAH/2X/Z6SgB2wDh+DHLGjqDwJ1
8sPlkcANW7XKB/ExZ8r+mWRwKZAV4IZXuLvh/3cJWZuMBychL86eaHZm6Rwojz2Q
Nf4SRfRpY3fdTY2bCQO/xpH4bGNjq+wCTaSCM30Zjx9A6kd2Jl9wkCHMavPpr8AT
CcthEXAf5swqNgk3cdYgID1mLyJANjmkwsYh+YWzWpc3/mzPW4fjb5/DTcTT3/wr
bUz1oMNrfQ8AUqusWOYMCs9AYkPunsemMQCuBJycEu1Te8sERVbr9+7yBcG0nFvq
855chGAsY0CkellVRkRHbhGm9qqpcgygdfoVlW/x/D6b2JteYNsF2kN2wDleUM4=
=g8uT
-----END PGP SIGNATURE-----




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to