New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34519 (closed defect: fixed)

Opened 12 months ago

Last modified 9 months ago

LibVNCServer 0.9.9 segfaults

Reported by: mackyle@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: haspatch Cc:
Port: LibVNCServer

Description (last modified by ryandesign@…) (diff)

As of r92750, the 0.9.9 release of LibVNCServer is being used which includes new IPv6 support.

Now LibVNCServer will attempt to bind both an IPv4 and IPv6 socket for listening. Unfortunately, if one of those fails and the other succeeds for some reason (maybe the IPv6 port is in use, but the IPv4 port is not), the server will segfault as soon as a connection arrives.

This little problem is known to affect the VirtualBox port.

Adding the following to the LibVNCServer Portfile:

# Don't segfault when listenSock/listen6Sock == -1
patchfiles                  patch-libvncserver-0.9.9-no-segfault.diff

along with the attached files/patch-libvncserver-0.9.9-no-segfault.diff patch file fixes the problem.

The patch has already been submitted upstream (see http://sourceforge.net/tracker/?func=detail&atid=405860&aid=3527807&group_id=32584), but until that appears in a released LibVNCServer version which is then picked up by MacPorts, any ports that use LibVNCServer to create a VNC server are liable to segfault.

Attachments

patch-libvncserver-0.9.9-no-segfault.diff (712 bytes) - added by mackyle@… 12 months ago.
files/patch-libvncserver-0.9.9-no-segfault.diff patch file

Change History

Changed 12 months ago by mackyle@…

files/patch-libvncserver-0.9.9-no-segfault.diff patch file

comment:1 Changed 12 months ago by mackyle@…

  • Cc mackyle@… added

Cc Me!

comment:2 Changed 12 months ago by ryandesign@…

  • Status changed from new to assigned
  • Owner changed from macports-tickets@… to ryandesign@…
  • Cc mackyle@… removed
  • Description modified (diff)
  • Keywords haspatch added

comment:3 Changed 9 months ago by pixilla@…

  • Status changed from assigned to closed
  • Resolution set to fixed

See r96844

Note: See TracTickets for help on using tickets.