Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405321 - net-misc/tigervnc with x11-base/xorg-server-1.11.2-r2 - tigervnc/libvnc.so GetMaster undefined symbol crash
Summary: net-misc/tigervnc with x11-base/xorg-server-1.11.2-r2 - tigervnc/libvnc.so Ge...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Raúl Porcel (RETIRED)
URL: http://patchwork.freedesktop.org/patc...
Whiteboard:
Keywords: PATCH
: 410599 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-22 19:00 UTC by Paul Healy
Modified: 2012-05-13 19:29 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to the apply the export GetMaster patch (xorg-server-1.11.2-r2_to_r3.patch,379 bytes, patch)
2012-02-22 19:04 UTC, Paul Healy
Details | Diff
Actual patch from upstream (export-GetMaster.patch,528 bytes, patch)
2012-02-22 19:04 UTC, Paul Healy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Healy 2012-02-22 19:00:30 UTC
x11-base/xorg-server-1.11.2-r2 tigervnc/libvnc.so GetMaster undefined symbol crash

The X server crashes on first keyboard activity with this error message:

/usr/bin/X: symbol lookup error: /usr/lib/xorg/modules/extensions/libvnc.so: undefined symbol: GetMaster

Reproducible: Always

Steps to Reproduce:
1.emerge tigervnc with +xorgmodule in USE
2.Load "vnc" and configure it in /etc/X11/xorg.conf
3.Start the X server
4.Connect to it with vncviewer
5.Open and type into an xterm
Actual Results:  
The X server crashes with these messages on the first keyboard activity.


Wed Feb 22 18:21:20 2012
 VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
 VNCSConnST:  Client pixel format depth 24 (32bpp) little-endian rgb888
/usr/bin/X: symbol lookup error: /usr/lib/xorg/modules/extensions/libvnc.so: undefined symbol: GetMaster
korgac: Fatal IO error: client killed
kdeinit4: Fatal IO error: client killed
kdeinit4: sending SIGHUP to children.
klauncher: Exiting on signal 1
kdeinit4: sending SIGTERM to children.
kdeinit4: Exit.


Expected Results:  
It should not crash the X server as it did prior to the last xorg-server/tigervnc bump.

There appears to be version skew between xorg-server and tigervnc in portage - see this link for a patch which restores the correct behavior:

http://patchwork.freedesktop.org/patch/7545/

Taking the above patch and creating an updated ebuild with this one line patch is sufficient to correct the problem:

--- xorg-server-1.11.2-r2.ebuild        2012-02-22 18:34:25.000000000 +0000
+++ xorg-server-1.11.2-r3.ebuild        2012-02-22 18:35:49.000000000 +0000
@@ -114,6 +114,7 @@
        "${FILESDIR}"/${PN}-1.9-nouveau-default.patch
        "${FILESDIR}"/${PN}-1.11-disable-tests-without-ddx.patch
        "${FILESDIR}"/${PN}-1.11-pointer-to-int-cast.patch
+       "${FILESDIR}"/export-GetMaster.patch
 )

See 335037 for a previous/similar problem with another undefined symbol (AllocDevicePair).
Comment 1 Paul Healy 2012-02-22 19:04:06 UTC
Created attachment 302897 [details, diff]
Patch to the apply the export GetMaster patch
Comment 2 Paul Healy 2012-02-22 19:04:38 UTC
Created attachment 302899 [details, diff]
Actual patch from upstream
Comment 3 Paul Healy 2012-02-22 19:09:51 UTC
tigervnc version is the latest stable version: net-misc/tigervnc-1.1.0-r3
Comment 4 David K. Thompson 2012-04-10 17:56:27 UTC
Related threads:

http://forums.gentoo.org/viewtopic-p-6933150.html
Possibly the same issue affecting tightvnc xorg module.

http://forums.gentoo.org/viewtopic-t-908684.html
I fixed the problem using the version of the patch from fedora as mentioned in the second thread.
Comment 5 Raúl Porcel (RETIRED) gentoo-dev 2012-05-13 18:31:05 UTC
*** Bug 410599 has been marked as a duplicate of this bug. ***
Comment 6 Raúl Porcel (RETIRED) gentoo-dev 2012-05-13 19:29:46 UTC
Fixed in -r4 and -r5