[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#433417: openoffice hangs, takes all CPU when port 631 (CUPS) is in use



Package: openoffice.org-common
Version: 2.0.4.dfsg.2-7etch1
Severity: normal

On occasion, nfs.mountd is able to bind to the CUPS port (631/tcp),
which causes openoffice to think that CUPS is available on the system.
It repeatedly tries to talk to it, hangs and takes all CPU.

I think this is the same bug identified here but affecting WINE:
http://www.winehq.org/pipermail/wine-bugs/2005-May/013175.html

This is trivially reproducible by starting netcat (nc -l -p 631) and
trying to save a document or manage printers in openoffice. Adding 
"export SAL_DISABLE_CUPS=1" to /etc/openoffice/openoffice.conf makes
no difference.

Typical strace output for openoffice:
[pid 30785] sendto(5, "POST / HTTP/1.1\r\nContent-Length:"..., 134, 0, NULL, 0) = 134
[pid 30785] sendto(5, "\1\1@\2\0\0\0\1\1G\0\22attributes-charset\0\5"..., 350, 0, NULL, 0) = 350
[pid 30785] select(6, [5], NULL, NULL, {1, 0}) = 1 (in [5], left {1, 0})
[pid 30785] recvfrom(5, "", 2048, 0, NULL, NULL) = 0
[pid 30785] close(5)                    = 0
[pid 30785] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
[pid 30785] setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
[pid 30785] setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) = 0
[pid 30785] fcntl(5, F_SETFD, FD_CLOEXEC) = 0
[pid 30785] connect(5, {sa_family=AF_INET, sin_port=htons(631), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid 30785] sendto(5, "POST / HTTP/1.1\r\nContent-Length:"..., 134, 0, NULL, 0) = 134
[pid 30785] sendto(5, "\1\1@\2\0\0\0\1\1G\0\22attributes-charset\0\5"..., 350, 0, NULL, 0) = 350
[pid 30785] select(6, [5], NULL, NULL, {1, 0}) = 1 (in [5], left {1, 0})
[pid 30785] recvfrom(5, "", 2048, 0, NULL, NULL) = 0
[pid 30785] close(5)                    = 0
[pid 30785] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
[pid 30785] setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
[pid 30785] setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) = 0
[pid 30785] fcntl(5, F_SETFD, FD_CLOEXEC) = 0
....


Stack trace:
#0  0x00002abdd759f0f5 in pthread_join () from /lib/libpthread.so.0
#1  0x00002abdd68c0ca2 in osl_joinWithThread ()
   from /usr/lib/openoffice/program/libuno_sal.so.3
#2  0x00002abdd898f7ef in psp::CUPSManager::checkPrintersChanged ()
   from /usr/lib/openoffice/program/libpsp680lx.so
#3  0x00002abdda21e6f5 in X11SalInstance::GetPrinterQueueInfo ()
   from /usr/lib/openoffice/program/libvclplug_gen680lx.so
#4  0x00002abdd521c5b7 in Printer::GetDefaultPrinterName ()
   from /usr/lib/openoffice/program/libvcl680lx.so
#5  0x00002abdd521efaf in Printer::Printer ()
   from /usr/lib/openoffice/program/libvcl680lx.so
#6  0x00002aaaaddc12ce in SfxPrinter::SfxPrinter ()
   from /usr/lib/openoffice/program/libsfx680lx.so
#7  0x00002aaab24cf822 in ScDocument::GetFilterEntriesArea ()
   from /usr/lib/openoffice/program/libsc680lx.so
#8  0x00002aaaaddc660d in SfxViewShell::Print ()
   from /usr/lib/openoffice/program/libsfx680lx.so
#9  0x00002aaaaddf3eff in SfxDispatcher::Execute ()
   from /usr/lib/openoffice/program/libsfx680lx.so
#10 0x00002aaaaddf4651 in SfxDispatcher::_Execute ()
   from /usr/lib/openoffice/program/libsfx680lx.so
#11 0x00002aaaade2002a in non-virtual thunk to SvxSearchItem::~SvxSearchItem() ()
   from /usr/lib/openoffice/program/libsfx680lx.so
#12 0x00002abdd5331958 in Window::~Window ()
   from /usr/lib/openoffice/program/libvcl680lx.so
#13 0x00002abdda230d45 in SalDisplay::DispatchInternalEvent ()
   from /usr/lib/openoffice/program/libvclplug_gen680lx.so
#14 0x00002abdda230d6e in SalX11Display::Yield ()
   from /usr/lib/openoffice/program/libvclplug_gen680lx.so
#15 0x00002abdda230b57 in SalDisplay::registerFrame ()
   from /usr/lib/openoffice/program/libvclplug_gen680lx.so
#16 0x00002abdda228c3f in SalXLib::Yield ()
   from /usr/lib/openoffice/program/libvclplug_gen680lx.so
#17 0x00002abdd5169330 in Application::Yield ()
   from /usr/lib/openoffice/program/libvcl680lx.so
#18 0x00002abdd51693c7 in Application::Execute ()
   from /usr/lib/openoffice/program/libvcl680lx.so
---Type <return> to continue, or q <return> to quit--- 
#19 0x0000000000428fb0 in desktop::Desktop::Main ()
#20 0x00002abdd516ecc4 in InitVCL () from /usr/lib/openoffice/program/libvcl680lx.so
#21 0x00002abdd516edb5 in SVMain () from /usr/lib/openoffice/program/libvcl680lx.so
#22 0x000000000041bfba in sal_main ()
#23 0x00002abdd7d364ca in __libc_start_main () from /lib/libc.so.6
#24 0x000000000041beea in _start ()


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages openoffice.org-common depends on:
ii  dictionaries-common [openoffi 0.70.10    Common utilities for spelling dict

openoffice.org-common recommends no packages.

-- no debconf information



Reply to: