Bug 795858

Summary: X server crashes with segfault at startup when using X font server
Product: Red Hat Enterprise Linux 6 Reporter: Michael <mikeus>
Component: xorg-x11-serverAssignee: Adam Jackson <ajax>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2CC: mikeus, tpelka
Target Milestone: rcKeywords: OtherQA
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: xorg-x11-server-1.13.0-17.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-21 11:28:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 842499, 960058    
Attachments:
Description Flags
Xorg.0.log none

Description Michael 2012-02-21 16:41:03 UTC
Description of problem:
X server crashes with segfault at startup when using X font server

How reproducible:
Always


Steps to Reproduce:
Since Release 6 doesn't include X font server in its distribution use some external X font server.
Configure a machine on the LAN to serve as a font server: 
- comment out 'no-listen' keyword in the font server configuration file /etc/X11/fs/config
- add firewall rule to open incoming tcp connections on 7100 port
- restart xfs service

Configure local X server to use the external X font server
- add 'FontPath' keyword to "Files" section of /etc/X11/xorg.conf
Section "Files"
  FontPath  "tcp/xxx.xxx.xxx.xxx:7100"
EndSection
where xxx.xxx.xxx.xxx is an IP address of the external X font server

- on the local host install 'fslsfonts' utility from the packages from the Release 5 (xorg-x11-xfs-utils.rpm and libFS.rpm) and 
check for connection to the external font server and for fonts available on it

# fslsfonts -server xxx.xxx.xxx.xxx:7100

There must be a list of fonts from the external font server.

Start X server.
  
Actual results:
X server will crash with segfault:

[   574.426] 
Backtrace:
[   574.428] 0: /usr/bin/X (xorg_backtrace+0x28) [0x45a548]
[   574.428] 1: /usr/bin/X (0x400000+0x65f49) [0x465f49]
[   574.428] 2: /lib64/libpthread.so.0 (0x7fc2473d3000+0xf4a0) [0x7fc2473e24a0]
[   574.428] 3: /usr/bin/X (doListFontsWithInfo+0x199) [0x4258c9]
[   574.428] 4: /usr/bin/X (ProcessWorkQueue+0x21) [0x44dee1]
[   574.428] 5: /usr/bin/X (WaitForSomething+0x9a) [0x459aea]
[   574.428] 6: /usr/bin/X (0x400000+0x3ce22) [0x43ce22]
[   574.428] 7: /usr/bin/X (0x400000+0x21ebb) [0x421ebb]
[   574.428] 8: /lib64/libc.so.6 (__libc_start_main+0xfd) [0x7fc245cfccdd]
[   574.429] 9: /usr/bin/X (0x400000+0x21a49) [0x421a49]
[   574.429] Segmentation fault at address 0x10
[   574.429] 
Fatal server error:
[   574.429] Caught signal 11 (Segmentation fault). Server aborting
[   574.429]

Comment 1 Michael 2012-02-21 16:43:59 UTC
Created attachment 564747 [details]
Xorg.0.log

Comment 3 RHEL Program Management 2012-05-03 05:43:35 UTC
Since RHEL 6.3 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 4 Tomas Pelka 2013-05-20 13:41:58 UTC
I'm quite confused here. How do we can reproduce without xfs in rhel6.

Michael are you using some kind of third-party rpm on your systems?

Or Adam any other thoughts regarding xfs in rhel6 and reproducer for this.

I would be open to push this fix as OtherQA if we can get commitment from Michael to test the fix when available.

Thanks 
Tom

Comment 5 Michael 2013-05-20 18:32:52 UTC
Hello.
For the sake of integrity I've used an RHEL5 box on the LAN.
But the xfs rpm from RHEL5 (plus one dependency package) installed on RHEL6 and worked good at least as of the time of release 6.2.

Comment 6 Tomas Pelka 2013-05-21 07:17:54 UTC
(In reply to Michael from comment #5)
> Hello.
> For the sake of integrity I've used an RHEL5 box on the LAN.
> But the xfs rpm from RHEL5 (plus one dependency package) installed on RHEL6
> and worked good at least as of the time of release 6.2.

I'm sorry Michael I'm not able to reproduce. It is just working fine with external XFS server from rhel5.x.

Would you be able to check the fix once packages are ready?

Thanks
Tom

Comment 7 Michael 2013-05-21 21:54:30 UTC
Hello, Tomas.
Now I've installed a test VM and release 6.4 X server starts OK with external XFS server.
But it crashes when I'm trying to run xfontsel utility:

[  2831.501] (EE) 
[  2831.501] (EE) Backtrace:
[  2831.502] (EE) 0: /usr/bin/X (xorg_backtrace+0x50) [0x80b19b0]
[  2831.502] (EE) 1: /usr/bin/X (0x8047000+0x70406) [0x80b7406]
[  2831.502] (EE) 2: (vdso) (__kernel_rt_sigreturn+0x0) [0xcc940c]
[  2831.502] (EE) 3: /usr/bin/X (doListFontsWithInfo+0x14b) [0x807a11b]
[  2831.503] (EE) 4: /usr/bin/X (ProcessWorkQueue+0x31) [0x807d171]
[  2831.503] (EE) 5: /usr/bin/X (WaitForSomething+0x6f) [0x80aecff]
[  2831.503] (EE) 6: /usr/bin/X (0x8047000+0x3192e) [0x807892e]
[  2831.503] (EE) 7: /usr/bin/X (0x8047000+0x7b9fc) [0x80c29fc]
[  2831.503] (EE) 8: /lib/libc.so.6 (__libc_start_main+0xe6) [0x6ddce6]
[  2831.503] (EE) 9: /usr/bin/X (0x8047000+0x1f0e1) [0x80660e1]
[  2831.504] (EE) 
[  2831.504] (EE) Segmentation fault at address 0x0
[  2831.504] 
Fatal server error:
[  2831.504] Caught signal 11 (Segmentation fault). Server aborting
[  2831.504] 
[  2831.504] (EE) 

Can you reproduce the issue with this additional step?

Before then, it is essential to make sure (with xfsinfo or fslsfonts utility) that the tested box with X server actually sees the external XFS server, since otherwise X server and xfontsel utility silently works well.
Anyway I'm ready to test the fix you are about of.

Comment 8 Tomas Pelka 2013-05-23 10:48:59 UTC
Hi Michael,

still no crash.

I have 

[    47.307] (**) FontPath set to:
        tcp/192.168.122.40:7100,
        catalogue:/etc/X11/fontpath.d,
        built-ins

in my Xorg.0.log on rhel6, checked with tcpdum that there is some communication on port 7100 and I can get fonts listed via 'fslsfonts -server 192.168.122.40:7100' (also compared with the list on rhel5 which is serving fonts)

xfsinfo -server 192.168.122.40:7100
name of server:	192.168.122.40:7100
version number:	2
vendor string:	X.Org Foundation
vendor release number:	6700
maximum request size:	8192 longwords (65536 bytes)
number of catalogues:	1
	all
Number of alternate servers: 0
number of extensions:	0

My setup:
1) rhel5 (192.168.122.40) which serves fonts, so have no-listen commented
2) rhel6 (ip is not important here) with configuration in /etc/X11/xorg.conf.d
$ cat /etc/X11/xorg.conf.d/test.conf 
Section "Files"
  FontPath  "tcp/192.168.122.40:7100"
EndSection

xfs version:
xorg-x11-xfs-utils-1.0.2-5.el5_6.1
xorg-x11-xfs-1.0.2-5.el5_6.1
libFS-1.0.0-3.1

Comment 9 Tomas Pelka 2013-05-23 14:09:45 UTC
OK I can do the same using rhel6 only (with rhel5 packages) on both sites.

Comment 10 Tomas Pelka 2013-05-27 18:31:19 UTC
Michael,

since I'm still not able to reproduce proposing again the possibility to pushing this through OtherQA which means that you can test fixed packages once is ready.

Unfortunately the time is limited, if you can commit that I can ack and move forward.

Thanks
Tom

Comment 11 Michael 2013-05-28 08:17:47 UTC
Tomas, I cat do a test of the fixed packages.

Comment 12 Tomas Pelka 2013-05-28 08:26:19 UTC
(In reply to Michael from comment #11)
> Tomas, I cat do a test of the fixed packages.

Thank you, will let you know on time.

Tom

Comment 14 Adam Jackson 2013-07-24 20:25:47 UTC
Please try the following test packages, which should be compatible with RHEL 6.4:

http://people.redhat.com/~ajackson/795858/

Comment 15 Michael 2013-07-26 19:42:42 UTC
I've updated to
 xorg-x11-server-Xorg-1.13.0-14.el6.font1.i686.rpm / xorg-x11-server-common-1.13.0-14.el6.font1.i686.rpm
packages.
It seems to work well: X server when configured to use xfs doesn't crash on xfontsel launching. xfontsel shows 4314 font names matched with connection to xfs and 1579 without it, and characters in a font from the remote font server can be displayed with xfd utility on the client.

Comment 17 errata-xmlrpc 2013-11-21 11:28:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-1620.html