https://bugs.documentfoundation.org/show_bug.cgi?id=102325
Bug ID: 102325
Summary: FILEOPEN: Calc spreadsheet containing URLs causes an
endless loop trying to make an ipv6 http request.
Product: LibreOffice
Version: 5.2.1.2 rc
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Calc
Assignee: [email protected]
Reporter: [email protected]
Created attachment 127513
--> https://bugs.documentfoundation.org/attachment.cgi?id=127513&action=edit
Most simple test case
Strace dump of the problem:
[pid 20689] socket(AF_INET6, SOCK_STREAM, IPPROTO_IP) = 31
[pid 20689] setsockopt(31, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
[pid 20689] setsockopt(31, SOL_SOCKET, SO_REUSEPORT, [1], 4) = 0
[pid 20689] setsockopt(31, SOL_TCP, TCP_NODELAY, [1], 4) = 0
[pid 20689] fcntl(31, F_SETFD, FD_CLOEXEC) = 0
[pid 20689] fcntl(31, F_GETFL) = 0x2 (flags O_RDWR)
[pid 20689] fcntl(31, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 20689] connect(31, {sa_family=AF_INET6, sin6_port=htons(631),
inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=htonl(0),
sin6_scope_id=0}, 28) = -1 EINPROGRESS (Operation now in progress)
[pid 20689] fcntl(31, F_SETFL, O_RDWR) = 0
[pid 20689] poll([{fd=31, events=POLLIN|POLLOUT}], 1, 100) = 1 ([{fd=31,
revents=POLLIN|POLLOUT|POLLERR|POLLHUP}])
[pid 20689] close(31) = 0
[pid 20689] sendto(-1, "POST / HTTP/1.1\r\nContent-Length:"..., 175, 0, NULL,
0) = -1 EBADF (Bad file descriptor)
[pid 20689] sendto(-1, "POST / HTTP/1.1\r\nContent-Length:"..., 175, 0, NULL,
0) = -1 EBADF (Bad file descriptor)
[pid 20689] socket(AF_INET6, SOCK_STREAM, IPPROTO_IP) = 31
[pid 20689] setsockopt(31, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
[pid 20689] setsockopt(31, SOL_SOCKET, SO_REUSEPORT, [1], 4) = 0
[pid 20689] setsockopt(31, SOL_TCP, TCP_NODELAY, [1], 4) = 0
[pid 20689] fcntl(31, F_SETFD, FD_CLOEXEC) = 0
[pid 20689] fcntl(31, F_GETFL) = 0x2 (flags O_RDWR)
[pid 20689] fcntl(31, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 20689] connect(31, {sa_family=AF_INET6, sin6_port=htons(631),
inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=htonl(0),
sin6_scope_id=0}, 28) = -1 EINPROGRESS (Operation now in progress)
(ad nauseum)
The binary was launched with "libreoffice" from dmenu, and the process ID is
the second highest in the libreoffice process tree.
The problem persists with the file which is attached to this bug report. I hope
there is no longer any information contained that shouldn't be public.
Practical Workaround:
# echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
Build script for the package that I'm using (contains the configure flags and
):
https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/libreoffice-fresh&id=78188c367c802a06a933e355a12f6481f161ae1b
However I think it would be a good idea to prevent this from happen in any
case.
please drop me an email if I should provide you with more information.
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs