Bug 659273 - VNC server crashes at startup if more than 256 interfaces are defined on the system
Summary: VNC server crashes at startup if more than 256 interfaces are defined on the ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: vnc
Version: 5.6
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: rc
: ---
Assignee: Tim Waugh
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
: 647256 (view as bug list)
Depends On:
Blocks: 673976
TreeView+ depends on / blocked
 
Reported: 2010-12-02 10:57 UTC by Olivier Fourdan
Modified: 2018-11-14 16:26 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-02 11:05:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Script to create the interfaces (431 bytes, text/plain)
2010-12-02 10:57 UTC, Olivier Fourdan
no flags Details
Patch to apply to xorg-x11-server source tree prior to build vnc-server (447 bytes, patch)
2010-12-02 10:59 UTC, Olivier Fourdan
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
FreeDesktop.org 20675 0 None None None Never

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. ***


Note You need to log in before you can comment on or make changes to this bug.