X2Go Bug report logs - #884
nxagent fails to run with "Could not open default font 'fixed'"

version graph

Package: nx-libs; Maintainer for nx-libs is X2Go Developers <x2go-dev@lists.x2go.org>;

Reported by: devsk <internet_everyone@yahoo.com>

Date: Sun, 31 May 2015 20:40:01 UTC

Severity: normal

Tags: fixed-upstream

Found in version 3.5.0.30

Fixed in version 3.5.99.4

Done: Juri Grabowski <x2go@jugra.de>

Bug is archived. No further changes may be made.

Forwarded to https://github.com/ArcticaProject/nx-libs/issues/84

Full log


Message #127 received at 884@bugs.x2go.org (full text, mbox, reply):

Received: (at 884) by bugs.x2go.org; 8 Jun 2015 04:50:54 +0000
From internet_everyone@yahoo.com  Mon Jun  8 06:50:52 2015
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
	T_DKIM_INVALID autolearn=ham version=3.3.2
Received: from nm26-vm5.bullet.mail.ne1.yahoo.com (nm26-vm5.bullet.mail.ne1.yahoo.com [98.138.91.248])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 267855DA2B
	for <884@bugs.x2go.org>; Mon,  8 Jun 2015 06:50:52 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1433739050; bh=A687Xwh/OmBRd3NF5tXyJGK9SwZC47CWWb2cV+Bvyag=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=twDeqX31pSBkumWxsSzrdmP3eqvpRwNYxcCyBDFGflsm+gOtLRoKM0E6EtxTdiV2FnBACvlIIc89XFe4KeDlpmsyArxo1rgSEjXOF17AWgnSQYF5BII73ZuvGXI+DM5+vSVmWxn9vVJVCuHC3Zd+3SKH+SzwOo+gnhx6oTHtKIewk6l9NqrrQgY6pK5wTj/Xm/L19nsQS/w1guwvpo3/+4El58x7Kzp50AojzbXFgAwDXlrj4eA/yyoFrYKEjefuOB9JGHkQb7X5LHIf8rAcdYu5ffu2UCY+lmyhN5SOoNRTKLQ8KGvi25gU1EzPcgCttmzr8SGhn9Zw19d/BIIN9g==
Received: from [98.138.100.111] by nm26.bullet.mail.ne1.yahoo.com with NNFMP; 08 Jun 2015 04:50:50 -0000
Received: from [98.138.89.196] by tm100.bullet.mail.ne1.yahoo.com with NNFMP; 08 Jun 2015 04:50:50 -0000
Received: from [127.0.0.1] by omp1054.mail.ne1.yahoo.com with NNFMP; 08 Jun 2015 04:50:50 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 55965.75637.bm@omp1054.mail.ne1.yahoo.com
X-YMail-OSG: RmacZ7cVM1k3Pajnrl.bx5P2a0iHZie3RQO..zLTckp6ta68pOvrweRbhev.Ejq
 rzA.a6fa7VzZXEOeGrnAPNoXgEPbClk4gRfQfnV0kAPZMr55X47XtCmsYPQ3XaoW7Pi2LKIn2Hhf
 09K3NZWMwo38hPDOrhq6xic8PB_OjACWVVLYDaxE7aBG2kqvrXDM1Q3CESN9_YvhvHy3Omuw1y_G
 RCKfD8rbpe0xpjklQpn9LKzKYhnbeb1CYeLD3DdyosR3MkJbDTbRy4sFrt4MBEEZloymF..SiEFU
 1emQD.2slWD_vAi5OEKR431W9eyengI7tkk79RksDToVHn5okeUTo2ToS9GQhnKazU_sG.JqYjeb
 HQ4r.pdv6.POTNI.nnaAJiZxFB_VfIyqW4U5ydOhfrt9SWyOiwubKZrGUCEWCkLLShA8sO0RACl.
 y7517LL_WYq7JmWK8sR8bjYy_EUycvOd2g7yIEOCW8e5VvYiJRhCdF3N7xTHDoHHki2hpjSv3Syv
 5if9iULdA8gOBCxpGvq0-
Received: by 98.138.105.204; Mon, 08 Jun 2015 04:50:49 +0000 
Date: Mon, 8 Jun 2015 04:50:48 +0000 (UTC)
From: devsk <internet_everyone@yahoo.com>
Reply-To: devsk <internet_everyone@yahoo.com>
To: Mihai Moldovan <ionic@ionic.de>, "884@bugs.x2go.org" <884@bugs.x2go.org>
Message-ID: <446404607.6900551.1433739048914.JavaMail.yahoo@mail.yahoo.com>
In-Reply-To: <338220343.6872951.1433737689331.JavaMail.yahoo@mail.yahoo.com>
References: <5572FFC7.1090908@ionic.de> <958880314.6875274.1433735733736.JavaMail.yahoo@mail.yahoo.com> <338220343.6872951.1433737689331.JavaMail.yahoo@mail.yahoo.com>
Subject: Re: [X2Go-Dev] nxagent aborts session with 'Could not	open default
 font 'fixed''
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
So, here is why SecurityLookupIDByType() fails. Basically, looks like the Hash() in NXresource.c is returning an index for "id" which is referencing 0x0.

Anybody got any clues? What does XCSECURITY have to do with default font? What kind of madness is this?

Breakpoint 1, SetDefaultFont (defaultfontname=0x703f11 "fixed") at NXdixfonts.c:221
221     NXdixfonts.c: No such file or directory.
(gdb) b Hash
Breakpoint 3 at 0x43b1a0: file NXresource.c, line 321.
(gdb) c
Continuing.

Breakpoint 3, Hash (client=client@entry=0, id=id@entry=127) at NXresource.c:321
321     NXresource.c: No such file or directory.
(gdb) bt
#0  Hash (client=client@entry=0, id=id@entry=127) at NXresource.c:321
#1  0x000000000043c3e7 in SecurityLookupIDByType (client=0x0, id=127, rtype=4, mode=0) at NXresource.c:1143
#2  0x000000000043c62e in LookupIDByType (id=<optimized out>, rtype=<optimized out>) at NXresource.c:1193
#3  0x0000000000421109 in SetDefaultFont (defaultfontname=0x703f11 "fixed") at NXdixfonts.c:231
#4  0x000000000040dd05 in main ()
(gdb) s
320     in NXresource.c
(gdb) 
336     in NXresource.c
(gdb) p res
No symbol "res" in current context.
(gdb) p id
$22 = 127
(gdb) p ((int)(0x3F&(id^(id>>6)^(id>>12))))
$24 = 62
(gdb) fini
Run till exit from #0  Hash (client=client@entry=0, id=id@entry=127) at NXresource.c:336
0x000000000043c3e7 in SecurityLookupIDByType (client=0x0, id=127, rtype=4, mode=0) at NXresource.c:1143
1143    in NXresource.c
Value returned is $25 = 62
(gdb) bt
#0  0x000000000043c3e7 in SecurityLookupIDByType (client=0x0, id=127, rtype=4, mode=0) at NXresource.c:1143
#1  0x000000000043c62e in LookupIDByType (id=<optimized out>, rtype=<optimized out>) at NXresource.c:1193
#2  0x0000000000421109 in SetDefaultFont (defaultfontname=0x703f11 "fixed") at NXdixfonts.c:231
#3  0x000000000040dd05 in main ()
(gdb) p clientTable[cid].resources[62]
$26 = (ResourcePtr) 0x0


-devsk


Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Sat Apr 20 10:01:35 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.