Bug 59756 - : No error when launching a headless server and it cannot bind to the port
Summary: : No error when launching a headless server and it cannot bind to the port
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
(earliest affected)
3.5.4 release
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
Whiteboard: BSA
Depends on:
Reported: 2013-01-23 11:15 UTC by Olivier Le Thanh Duong
Modified: 2019-12-03 14:19 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Le Thanh Duong 2013-01-23 11:15:53 UTC
Problem description: 
If you have another process listening to the port you are trying to use for a headless LibreOffice server, when you launch it there is no message to warn you and the process doesn't stop.

Steps to reproduce:
1. netcat -l 8100
2. soffice  --headless  "--accept=socket,host=localhost,port=8100,tcpNoDelay=1;urp;"

Current behavior:
The server launch stay running without listening to the port or printing a warning message

Expected behavior:
The server should print a message or refuse to launch.

Operating System: Debian
Version: 3.5.4 release
Comment 1 Stephan Bergmann 2013-01-24 09:27:55 UTC
This is not entirely trivial to fix, as any failure to set up the listening connection is only noticed in an extra thread, cf. <http://cgit.freedesktop.org/libreoffice/core/commit/?id=59afa90803feb09d60e65c6d8f1e8486daad4085> "Improve debug error reporting."
Comment 2 QA Administrators 2015-02-19 15:39:22 UTC Comment hidden (obsolete)
Comment 3 Buovjaga 2015-03-06 14:53:14 UTC
Stephan Bergmann confirmed that this is still not fixed.
Comment 4 tommy27 2016-04-16 07:22:57 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2017-05-22 13:22:34 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2019-12-03 14:09:02 UTC Comment hidden (obsolete)
Comment 7 Olivier Le Thanh Duong 2019-12-03 14:19:45 UTC
I can still reproduce it

Build ID: 1:6.3.3-0ubuntu0.19.10.1
CPU threads: 8; OS: Linux 5.3; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded