Bug 659273

Summary: VNC server crashes at startup if more than 256 interfaces are defined on the system
Product: Red Hat Enterprise Linux 5 Reporter: Olivier Fourdan <ofourdan>
Component: vncAssignee: Tim Waugh <twaugh>
Status: CLOSED CURRENTRELEASE QA Contact: qe-baseos-daemons
Severity: high Docs Contact:
Priority: urgent    
Version: 5.6CC: azelinka, cww, kem, lmiksik, ovasik, tim.cleveland+rhbug
Target Milestone: rcKeywords: Patch, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-02 11:05:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 673976    
Attachments:
Description Flags
Script to create the interfaces
none
Patch to apply to xorg-x11-server source tree prior to build vnc-server none

Description Olivier Fourdan 2010-12-02 10:57:45 UTC
Created attachment 464223 [details]
Script to create the interfaces

Description of problem:

With more than 256 interfaces on a system, the VNC server will fail to start and
crash (that also affects all server variants Xorg, Xnest, etc., see bug #659263)

Version-Release number of selected component (if applicable):

vnc-4.1.2-14.el5_5.4

How reproducible:

Always

Steps to Reproduce:
1. Create more then 250 network interfaces with the attached shell script
2. Start the Xvnc server
  
Actual results:

Xvnc crashes

Expected results:

No crash

Additional info:

The bug in in the X server, on which Xvnc is built upon.

It's https://bugs.freedesktop.org/show_bug.cgi?id=20675 fixed by
http://cgit.freedesktop.org/xorg/xserver/commit/?id=0eb19f9437b7d8c19592e49eedb028771d300d80

Applying the patch attached to the xorg-x11-server sources tree in VNC spec file fixes the issue, ie something like:

    Patch9999:  xorg-server-1.1.1-fix-bug-20675-git-0eb19f94.patch
    ...
    %prep
    %setup -q -n vnc-%{vnc_version}-unixsrc -a1
    mkdir -p unix/xorg-server-1.1.1/hw/vnc
    pushd unix/xorg-server-1.1.1
    bzip2 -dc %{SOURCE2} | tar -xkf - || :
    %patch9999 -p1 -b .0eb19f94
    popd

Or using an update source tree for xorg-x11-server with the patch included (for example once bug #659263 is resolved).

Comment 1 Olivier Fourdan 2010-12-02 10:59:51 UTC
Created attachment 464224 [details]
Patch to apply to xorg-x11-server source tree prior to build vnc-server

This is the patch that fixes freedesktop.org bug 20675.

Comment 2 Adam Tkac 2010-12-02 11:26:44 UTC
*** Bug 647256 has been marked as a duplicate of this bug. ***