Opened 12 years ago

Closed 12 years ago

#34519 closed defect (fixed)

LibVNCServer 0.9.9 segfaults

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

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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 (1)

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

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by mackyle@…

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

comment:1 Changed 12 years ago by mackyle@…

Cc: mackyle@… added

Cc Me!

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

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

comment:3 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Resolution: fixed
Status: assignedclosed

See r96844

Note: See TracTickets for help on using tickets.