Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194473 - openoffice-bin-2.3.0 segfaults when changing format-page options
Summary: openoffice-bin-2.3.0 segfaults when changing format-page options
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-02 03:36 UTC by Iain Buchanan
Modified: 2007-10-30 17:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
output from emerge --info (einfo,3.27 KB, text/plain)
2007-10-02 03:37 UTC, Iain Buchanan
Details
Patch to fix improper freeing of theme resources (openoffice.org.ooo82608.vcl.gtkbadfree.patch,1006 bytes, patch)
2007-10-30 17:46 UTC, William Keaney
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Iain Buchanan 2007-10-02 03:36:51 UTC
Happens all the time!

1. start oowriter, or ooffice and select new text document
2. go to format menu > page
3. select either Organiser, Page, or Background
4. open office crashes thusly:

$ oowriter 2>/dev/null
*** glibc detected *** /usr/lib/openoffice/program/soffice.bin: double free or corruption (out): 0x08225dd0 ***
======= Backtrace: =========
<lots of guff>

redirecting stderr to a file shows this:
/usr/bin/soffice: line 251:  5627 Segmentation fault      "$sd_prog/$sd_binary" "$@"

With an empty .ooo-2.0 directory, openoffice crashes as soon as I select "page" from the format menu.

backtraces are useless atm - is ooffice-bin stripped or is portage doing it?  I'm working on getting something a little more useful :)
Comment 1 Iain Buchanan 2007-10-02 03:37:52 UTC
Created attachment 132378 [details]
output from emerge --info
Comment 2 Iain Buchanan 2007-10-02 04:00:10 UTC
Hm, it appears it is stripped by the builder, not by me.  Below is the terminal output backtrace, possibly useless :)

Is the next step compiling it myself?  Just give me a day or two and a new hard-drive ;)


*** glibc detected *** /usr/lib/openoffice/program/soffice.bin: free(): invalid pointer: 0x0820ecc0 ***
======= Backtrace: =========
/lib/libc.so.6[0xb6d461bb]
/lib/libc.so.6(__libc_free+0x7e)[0xb6d47d6d]
/usr/lib/libglib-2.0.so.0(g_free+0x2d)[0xb5431a1c]
/usr/lib/openoffice/program/libvclplug_gtk680li.so[0xb59703d2]
/usr/lib/openoffice/program/libvcl680li.so(_ZN11SalGraphics22GetNativeControlRegionEmmRK6RegionmRK16ImplControlValueR16SalControlHandleRKN3rtl8OUStringERS0_SC_PK12OutputDevice+0x10f)[0xb7e44f45]
/usr/lib/openoffice/program/libvcl680li.so(_ZN6Window22GetNativeControlRegionEmmRK6RegionmRK16ImplControlValueN3rtl8OUStringERS0_S8_+0xd0)[0xb7efb9c4]
/usr/lib/openoffice/program/libvcl680li.so(_ZN7ListBox6ResizeEv+0x1b8)[0xb7f34fa6]
/usr/lib/openoffice/program/libvcl680li.so[0xb7ee1f3a]
/usr/lib/openoffice/program/libvcl680li.so(_ZN6Window4ShowEht+0x394)[0xb7eed9f0]
/usr/lib/openoffice/program/libvcl680li.so(_ZN7ListBoxC1EP6WindowRK5ResId+0xbf)[0xb7f33d99]
/usr/lib/openoffice/program/libsfx680li.so[0xacf0dfac]
/usr/lib/openoffice/program/libsfx680li.so[0xacf0fb2c]
/usr/lib/openoffice/program/libsfx680li.so[0xacf1a76c]
/usr/lib/openoffice/program/libsfx680li.so[0xacf1ab3f]
/usr/lib/openoffice/program/libsfx680li.so(_ZN12SfxTabDialog7ExecuteEv+0x2d)[0xacf1ac23]
/usr/lib/openoffice/program/libswui680li.so[0xa8642248]
/usr/lib/openoffice/program/libsw680li.so[0xa9b91a56]
/usr/lib/openoffice/program/libsw680li.so(_ZN10SwDocShell10FormatPageERK6StringhP10SwWrtShell+0x30)[0xa9b92a32]
/usr/lib/openoffice/program/libsw680li.so[0xa9c2fd21]
/usr/lib/openoffice/program/libsw680li.so[0xa9c3004c]
/usr/lib/openoffice/program/libsfx680li.so[0xace80a89]
/usr/lib/openoffice/program/libsfx680li.so[0xace80dbe]
/usr/lib/openoffice/program/libsfx680li.so[0xace80e5e]
/usr/lib/openoffice/program/libsfx680li.so[0xacea70bf]
/usr/lib/openoffice/program/libsfx680li.so[0xacea707c]
/usr/lib/openoffice/program/libvcl680li.so[0xb7ef7819]
/usr/lib/openoffice/program/libvclplug_gen680li.so(_ZN10SalDisplay21DispatchInternalEventEv+0xb6)[0xb53c1f56]
/usr/lib/openoffice/program/libvclplug_gtk680li.so[0xb595cb13]
/usr/lib/openoffice/program/libvclplug_gtk680li.so[0xb595cb3d]
/usr/lib/libglib-2.0.so.0[0xb5428cbb]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x195)[0xb542a70a]
/usr/lib/libglib-2.0.so.0[0xb542d8cb]
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x5f)[0xb542de24]
/usr/lib/openoffice/program/libvclplug_gtk680li.so[0xb595bf86]
/usr/lib/openoffice/program/libvclplug_gen680li.so(_ZN14X11SalInstance5YieldEbb+0x2c)[0xb53c9506]
/usr/lib/openoffice/program/libvcl680li.so(_ZN11Application5YieldEb+0x5f)[0xb7d2e3b3]
/usr/lib/openoffice/program/libvcl680li.so(_ZN11Application7ExecuteEv+0x2f)[0xb7d2e405]
/usr/lib/openoffice/program/soffice.bin(_ZN7desktop7Desktop4MainEv+0x2124)[0x806c3d2]
/usr/lib/openoffice/program/libvcl680li.so[0xb7d33d68]
/usr/lib/openoffice/program/libvcl680li.so(_Z6SVMainv+0x29)[0xb7d33ef3]
/usr/lib/openoffice/program/soffice.bin(main+0xe2)[0x805e9c6]
/lib/libc.so.6(__libc_start_main+0xe0)[0xb6cf89a8]
/usr/lib/openoffice/program/soffice.bin(_ZN6Window11RequestHelpERK9HelpEvent+0x31)[0x805e851]

thanks.
Comment 3 Iain Buchanan 2007-10-02 05:01:12 UTC
Sorry about the noise, but I compiled a few more libraries and got this from gdb:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1239873856 (LWP 8607)]
0xb6cc0377 in *__GI___libc_free (mem=0x822ae30) at malloc.c:3620
3620    malloc.c: No such file or directory.
        in malloc.c
(gdb) thread apply all bt

Thread 6 (Thread -1240007792 (LWP 8608)):
#0  0xffffe410 in ?? ()
#1  0xb616f39c in ?? ()
#2  0x00000015 in ?? ()
#3  0x00000000 in ?? ()

Thread 5 (Thread -1363076208 (LWP 8609)):
#0  0xffffe410 in ?? ()
#1  0xaec112f8 in ?? ()
#2  0x00000015 in ?? ()
#3  0x00000000 in ?? ()

Thread 4 (Thread -1371550832 (LWP 8610)):
#0  0xffffe410 in ?? ()
#1  0xae3fb9d8 in ?? ()
#2  0xb74250b0 in ?? () from /usr/lib/openoffice/program/libuno_sal.so.3
#3  0xae3fb9c0 in ?? ()
#4  0xb6f61be8 in accept () from /lib/libpthread.so.0
#5  0xb72914b6 in osl_acceptPipe ()
   from /usr/lib/openoffice/program/libuno_sal.so.3
#6  0xb753236b in vos::OPipe::accept ()
   from /usr/lib/openoffice/program/libvos3gcc3.so
---Type <return> to continue, or q <return> to quit---
#7  0x0806ebea in desktop::OfficeIPCThread::run ()
#8  0xb752d689 in vos::threadWorkerFunction_impl ()
   from /usr/lib/openoffice/program/libvos3gcc3.so
#9  0xb72899f7 in ?? () from /usr/lib/openoffice/program/libuno_sal.so.3
#10 0xaec37678 in ?? ()
#11 0xb72892a4 in ?? () from /usr/lib/openoffice/program/libuno_sal.so.3
#12 0x080d0ba8 in ?? ()
#13 0x00000000 in ?? ()

Thread 3 (Thread -1381233776 (LWP 8611)):
#0  0xffffe410 in ?? ()
#1  0xadac0340 in ?? ()
#2  0xffffffff in ?? ()
#3  0x00000002 in ?? ()
#4  0xb6d0ed9c in *__GI___poll (fds=0xb6d7fff4, nfds=2, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:87
#5  0xb534370f in ?? () from /usr/lib/openoffice/program/libvclplug_gen680li.so
#6  0xadaf1048 in ?? ()
#7  0x00000002 in ?? ()
#8  0xffffffff in ?? ()
#9  0xadaf1048 in ?? ()
#10 0xadaf1078 in ?? ()
#11 0x00000010 in ?? ()
---Type <return> to continue, or q <return> to quit---
#12 0x00000010 in ?? ()
#13 0x00000001 in ?? ()
#14 0x00000001 in ?? ()
#15 0xb74250b0 in ?? () from /usr/lib/openoffice/program/libuno_sal.so.3
#16 0x00000000 in ?? ()

Thread 2 (Thread -1424262256 (LWP 8613)):
#0  0xffffe410 in ?? ()
#1  0xab1b7238 in ?? ()
#2  0x000003e8 in ?? ()
#3  0x00000001 in ?? ()
#4  0xb6d0ed9c in *__GI___poll (fds=0xb6d7fff4, nfds=1, timeout=1000)
    at ../sysdeps/unix/sysv/linux/poll.c:87
#5  0xab1cf4d6 in ?? () from /usr/lib/openoffice/program/libdtransX11680li.so
#6  0xab1cf5c6 in ?? () from /usr/lib/openoffice/program/libdtransX11680li.so
#7  0xab1cf89f in ?? () from /usr/lib/openoffice/program/libdtransX11680li.so
#8  0xb72899f7 in ?? () from /usr/lib/openoffice/program/libuno_sal.so.3
#9  0xadb16424 in ?? ()
#10 0xb72892a4 in ?? () from /usr/lib/openoffice/program/libuno_sal.so.3
#11 0x081b3c10 in ?? ()
#12 0x00000000 in ?? ()

Thread 1 (Thread -1239873856 (LWP 8607)):
---Type <return> to continue, or q <return> to quit---
#0  0xb6cc0377 in *__GI___libc_free (mem=0x822ae30) at malloc.c:3620
#1  0xb53a9a1c in IA__g_free (mem=0x822ae30) at gmem.c:187
#2  0xb58e83d2 in ?? () from /usr/lib/openoffice/program/libvclplug_gtk680li.so
#3  0xb7dc1f45 in SalGraphics::GetNativeControlRegion ()
   from /usr/lib/openoffice/program/libvcl680li.so
#4  0xb7e789c4 in Window::GetNativeControlRegion ()
   from /usr/lib/openoffice/program/libvcl680li.so
#5  0xb7eb1fa6 in ListBox::Resize ()
   from /usr/lib/openoffice/program/libvcl680li.so
#6  0xb7e5ef3a in ?? () from /usr/lib/openoffice/program/libvcl680li.so
#7  0xb7e6a9f0 in Window::Show ()
   from /usr/lib/openoffice/program/libvcl680li.so
#8  0xb7eb0d99 in ListBox::ListBox ()
   from /usr/lib/openoffice/program/libvcl680li.so
#9  0xa837ba33 in ?? () from /usr/lib/openoffice/program/libcui680li.so
#10 0xa837d4ff in ?? () from /usr/lib/openoffice/program/libcui680li.so
#11 0xace8276c in ?? () from /usr/lib/openoffice/program/libsfx680li.so
#12 0xa8f93158 in ?? ()
#13 0xac2c326c in ?? ()
#14 0xa85d1228 in ?? ()
#15 0x0808df18 in ?? ()
#16 0xbfc75578 in ?? ()
#17 0x080803b4 in operator delete[] ()
---Type <return> to continue, or q <return> to quit---
#18 0xace829d0 in ?? () from /usr/lib/openoffice/program/libsfx680li.so
#19 0xa8f9300c in ?? ()
#20 0xa8f93158 in ?? ()
#21 0xbfc7560c in ?? ()
#22 0xb7ec0a89 in TabControl::ActivatePage ()
   from /usr/lib/openoffice/program/libvcl680li.so
Backtrace stopped: frame did not save the PC

hm, I think that last line means it's still not useful?
Comment 4 Andreas Proschofsky (RETIRED) gentoo-dev 2007-10-08 11:47:49 UTC
Can't reproduce here. Which gtk+ and java-version are you using?
Comment 5 Iain Buchanan 2007-10-08 22:53:36 UTC
Could it be related to Bug 194674 ?  If I select the default gnome theme, the problem goes away, but when I change back to my theme (don't even need to restart ooffice) it crashes straight away if this dialog is open.

x11-libs/gtk+-2.12.0-r2

Current system-vm
  sun-jdk-1.6               
Current user-vm
  sun-jre-bin-1.6           

thanks!
Comment 6 William Keaney 2007-10-30 17:45:29 UTC
This is fixed upstream and will be released with 2.3.1:
http://www.openoffice.org/issues/show_bug.cgi?id=82608
I am attaching a patch for inclusion in Portage, as OOo-2.3.1 is not scheduled for release until December, and it'd be nice if it worked for Gentoo users between now and then.
Comment 7 William Keaney 2007-10-30 17:46:27 UTC
Created attachment 134727 [details, diff]
Patch to fix improper freeing of theme resources
Comment 8 Andreas Proschofsky (RETIRED) gentoo-dev 2007-10-30 17:56:41 UTC
(In reply to comment #6)
> This is fixed upstream and will be released with 2.3.1:
> http://www.openoffice.org/issues/show_bug.cgi?id=82608
> I am attaching a patch for inclusion in Portage, as OOo-2.3.1 is not scheduled
> for release until December, and it'd be nice if it worked for Gentoo users
> between now and then.
> 

The fix is already in upstream ooo-build and will get to portage with the next patch release bump. Thanks for notifying us.

Still weird that I can't reproduce it, though :/
Comment 9 Andreas Proschofsky (RETIRED) gentoo-dev 2007-10-30 17:59:14 UTC
Oh forgot, this bug is about openoffice-bin, where we unfortunately can't do a thing about that problem, so you'll have to wait for 2.3.1 I'm afraid. Closing as upstream