Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935148 - net-misc/tigervnc-1.13.1-r3: has wrong XSERVER_VERSION set and segfaults Xorg
Summary: net-misc/tigervnc-1.13.1-r3: has wrong XSERVER_VERSION set and segfaults Xorg
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-29 18:39 UTC by benoit.dufour
Modified: 2024-08-10 17:42 UTC (History)
1 user (show)

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


Attachments
Logs for the two last segfaults. (Xorg.0.log,37.78 KB, text/x-log)
2024-06-29 18:39 UTC, benoit.dufour
Details

Note You need to log in before you can comment on or make changes to this bug.
Description benoit.dufour 2024-06-29 18:39:04 UTC
Created attachment 896630 [details]
Logs for the two last segfaults.

When I tigervnc is started through Xorg:
cat /etc/X11/xorg.conf.d/40-vnc.conf
Section "Module"
	Load "vnc"
EndSection
Section "Screen"
	Identifier "Default Screen"
	Option "PasswordFile" "/etc/X11/vncpasswd"
EndSection

Xorg fails to start because of a segfault in the TigerVNC module.
I unfortunately didn't kept the log for that one but it caused by the fact XSERVER_VERSION is set to 21.1.8 instead of 21.1.13.
In order to fix this behaviour I put this in my /etc/portage/env/net-misc/tigervnc-1.13.1-r3 :
XSERVER_VERSION="21.1.13"
post_src_unpack() {
	if [[ ${XSERVER_VERSION} == "21.1.13" ]]; then
		curl "ftp://ftp.freedesktop.org/pub/xorg/individual/xserver/xorg-server-${XSERVER_VERSION}.tar.xz" -o "${WORKDIR}/xorg-server-${XSERVER_VERSION}.tar.xz"
		unpack "${WORKDIR}/xorg-server-${XSERVER_VERSION}.tar.xz"
	fi
}

and I re-emerged tigervnc like that:
FEATURES="-network-sandbox" emerge --ask --verbose net-misc/tigervnc-1.13.1-r3

So net-misc/tigervnc-1.13.1-r3 is now built against the right Xorg version but when Xorg starts, it still segfaults. Here's the relevant part of the logs :

[ 11930.055] (EE) Backtrace:
[ 11930.055] (EE) 0: /usr/bin/X (xorg_backtrace+0x54) [0x55b9f2371be4]
[ 11930.055] (EE) 1: /usr/bin/X (0x55b9f2233000+0x142849) [0x55b9f2375849]
[ 11930.055] (EE) 2: /lib64/libc.so.6 (0x7f46df626000+0x3b690) [0x7f46df661690]
[ 11930.056] (EE) 3: /usr/bin/X (miPointerGetPosition+0x3b) [0x55b9f2285bfb]
[ 11930.056] (EE) 4: /usr/lib64/xorg/modules/extensions/libvnc.so (vncGetPointerPos+0x33) [0x7f46df13fd93]
[ 11930.056] (EE) 5: /usr/lib64/xorg/modules/extensions/libvnc.so (_ZN14XserverDesktop12blockHandlerEPi+0x10d) [0x7f46df13ebdd]
[ 11930.056] (EE) 6: /usr/lib64/xorg/modules/extensions/libvnc.so (vncCallBlockHandlers+0x27) [0x7f46df131a47]
[ 11930.056] (EE) 7: /usr/bin/X (BlockHandler+0x40) [0x55b9f22ace80]
[ 11930.056] (EE) 8: /usr/bin/X (WaitForSomething+0x153) [0x55b9f236f493]
[ 11930.056] (EE) 9: /usr/bin/X (0x55b9f2233000+0x751d6) [0x55b9f22a81d6]
[ 11930.056] (EE) 10: /usr/bin/X (0x55b9f2233000+0x794f3) [0x55b9f22ac4f3]
[ 11930.056] (EE) 11: /lib64/libc.so.6 (0x7f46df626000+0x25f0a) [0x7f46df64bf0a]
[ 11930.056] (EE) 12: /lib64/libc.so.6 (__libc_start_main+0x85) [0x7f46df64bfc5]
[ 11930.056] (EE) 13: /usr/bin/X (_start+0x21) [0x55b9f22701b1]
[ 11930.056] (EE) 
[ 11930.056] (EE) Segmentation fault at address 0x2c
[ 11930.056] (EE) 

I added the full logs in attachment.

I then emerged tigervnc-1.13.90-r1 instead of tigervnc-1.13.1-r3. This one has the right XSERVER_VERSION set but when I start Xorg, it also segfaults with the exact same issue.
Comment 1 Viorel Munteanu gentoo-dev 2024-07-27 19:19:43 UTC
Have you tried without the keyboard/mouse adapter?  Does it still crash?
Comment 2 benoit.dufour 2024-07-29 00:11:44 UTC
Yes I did.
It still crash, but actually it also crash when starting TigerVNC from its OpenRC service, while some months ago (the last time I used TigerVNC), it didn't crash.
Comment 3 Viorel Munteanu gentoo-dev 2024-08-10 16:49:05 UTC
Can you add the log when crashing without the adapter?
Comment 4 benoit.dufour 2024-08-10 17:42:42 UTC
I could send the Xorg logs, but I think it would be better that I send the rc-service logs, and I don't know how to get them.