[Pkg-tigervnc-devel] Bug#867175: tigervnc-standalone-server: tigervncserver wrapper does not handle rfbport when waiting for child

Philipp Wolski philipp.wolski at kisters.de
Tue Jul 4 14:05:19 UTC 2017


Package: tigervnc-standalone-server
Version: 1.7.0+dfsg-7
Severity: normal

Dear Maintainer,

the tigervncserver wrapper helper will not find its child when
it is invoked with -rfbport.

Example: vncserver :3 -rfbport 5913

~$ vncserver :3 -rfbport 5913 &
~$ netstat -tanp | grep 5913
tcp  0 0 127.0.0.1:5913 0.0.0.0:* LISTEN 13410/Xtigervnc     
tcp6 0 0 ::1:5913       :::*      LISTEN 13410/Xtigervnc
~$
vncserver: /usr/bin/Xtigervnc did not start up, please look into '/home/pwolski/.vnc/kitsune:3.log' to determine the reason! -1
Killing Xtigervnc process ID 13410... success!
~/.vnc$ tail -3 kitsune:3.log
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on local interface(s), port 5913
 vncext:      created VNC server for screen 0

The problem lies in line 794 where it says: checkTCPPortUsed(5900+$options->{'displayNumber'})

The rfbport option is handled in the fork branch and pushed to $vncPort (and Xvnc)
but the wait loop will instead look for the default port. 

I'm not versed enough in perl to include a patch, but I believe it should read something
like checkTCPPortUsed($vncPort).
Of course vncPort must be set to rfbport when used in cmdline, the push from the
fork will not be visible for the parent.
It defaults to 5900+$options->{'displayNumber'} anyway in line 691.


-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages tigervnc-standalone-server depends on:
ii  libaudit1                 1:2.7.7-1+b1
ii  libbsd0                   0.8.5-1
ii  libc6                     2.24-12
ii  libgcc1                   1:7.1.0-8
ii  libgcrypt20               1.7.8-1
ii  libgl1-mesa-glx [libgl1]  17.1.3-2
ii  libgnutls30               3.5.13-2
ii  libjpeg62-turbo           1:1.5.1-2
ii  libpam0g                  1.1.8-3.6
ii  libpixman-1-0             0.34.0-1
ii  libselinux1               2.6-3+b2
ii  libstdc++6                7.1.0-8
ii  libsystemd0               233-9
ii  libx11-6                  2:1.6.4-3
ii  libxau6                   1:1.0.8-1
ii  libxdmcp6                 1:1.1.2-3
ii  libxfont2                 1:2.0.1-3
ii  libxshmfence1             1.2-1+b2
ii  perl                      5.24.1-4
ii  x11-xkb-utils             7.7+3+b1
ii  xauth                     1:1.0.9-1+b2
ii  xkb-data                  2.19-1
ii  zlib1g                    1:1.2.8.dfsg-5

Versions of packages tigervnc-standalone-server recommends:
ii  libgl1-mesa-dri    17.1.3-2
ii  tigervnc-common    1.7.0+dfsg-7
ii  x11-xserver-utils  7.7+7+b1
ii  xfonts-base        1:1.0.4+nmu1

Versions of packages tigervnc-standalone-server suggests:
ii  xfonts-100dpi    1:1.0.4+nmu1
ii  xfonts-75dpi     1:1.0.4+nmu1
ii  xfonts-scalable  1:1.0.3-1.1

-- no debconf information
--------------------------------------------------------------------------------------------------------------------------------------------
 Philipp Wolski - KISTERS AG - Stau 75 - 26122 Oldenburg - Germany
Handelsregister Aachen, HRB-Nr. 7838 | Vorstand: Klaus Kisters, Hanns Kisters | Aufsichtsratsvorsitzender: Dr. Thomas Klevers
Phone: +49 441 93602 -158 | Fax: +49 441 93602 -222 | E-Mail: philipp.wolski at kisters.de | WWW: http://www.kisters.de
--------------------------------------------------------------------------------------------------------------------------------------------
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. 
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.


More information about the Pkg-tigervnc-devel mailing list