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 #122 received at 884@bugs.x2go.org (full text, mbox, reply):

Received: (at 884) by bugs.x2go.org; 8 Jun 2015 04:28:53 +0000
From internet_everyone@yahoo.com  Mon Jun  8 06:28:51 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,URIBL_BLOCKED autolearn=ham version=3.3.2
Received: from nm23-vm5.bullet.mail.ne1.yahoo.com (nm23-vm5.bullet.mail.ne1.yahoo.com [98.138.91.245])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 5FFF25DA2B
	for <884@bugs.x2go.org>; Mon,  8 Jun 2015 06:28:51 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1433737729; bh=WmImXg9xK7seRDDp4VPw0vWg/TZfR8fQOwkZGjIa3TQ=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=G9y8623H8lKn6neRMk9MvKhjPyDdke4scDlcpjGJl6NzRFB2XfgnYrDiRAbW0r1zdQZeib7rWxeBpYCk0YGoc4UeRIM/YfugMrPRdI9MuXTXIJ+PriBkpPixq+N4PnNRFer+dWyauV+OaFwTUR835t/WzIx+Xv9kDoPqCkvbZ1zz126utP+jmC60iDLRgtXWMFKBP+4c/tKqVSHpSB2iVC6opo1kZEL1U0OlzEXd1r9N/SwZT1XqCrrPMUx8JYJgDRpGV/saa14JR0RbQPjJwm14jpsffhCr4ncDstFJXWczWa987Oo3/Ojua5BcM11syl63fwLNYwAQqJViE/o2/g==
Received: from [98.138.226.179] by nm23.bullet.mail.ne1.yahoo.com with NNFMP; 08 Jun 2015 04:28:49 -0000
Received: from [98.138.88.236] by tm14.bullet.mail.ne1.yahoo.com with NNFMP; 08 Jun 2015 04:28:49 -0000
Received: from [127.0.0.1] by omp1036.mail.ne1.yahoo.com with NNFMP; 08 Jun 2015 04:28:49 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 804787.77871.bm@omp1036.mail.ne1.yahoo.com
X-YMail-OSG: BFUiQxkVM1k0ErbUsWkHYX902qC418iJKfSxNWe6lMSHT5abewxhpatJrYKA6nU
 MT4jns2EPRvbMXOvYbOYUf5BFViC4Pb.3GQmdKHOjLKG7fMZatr9gIGUTvfoUv5WyybBdJblShf_
 FgJQFvDBCKC1.XEHOHf9Y7P3PQPa0TfHgUrx3am5Kuo.B3vIBrRXAtTFNy667LxqOm8r9LsXuyml
 4WiOikgOMUP2HMdguQ9GfhQJlst6zLx3jHbFGrp.JA2xekfco9H.82zOeT9Myjyb8R3leuGP.RPg
 MpisMq.patuQPGQvjcq_yCeaAzg6AJV3TPsn1wSXo5PTXnmMKD0QbnmlRhuv7CzlOXojVnW_35dy
 3xrGr_QtaeEru6bWOpmHWFjTmUvEk0W_9Hlld9QPlpsQyh.ZWbSp.64osvGDCjZ98OfT2SUwmme4
 .n0txPEh6JA5I_60Xo.JGkIn1I0Bse2zExo2VhboHJnduGOET8SdpVboUdZPRwsKTyw0LL6Scu6O
 oD_PmWeynR84aARQurZhmkyo-
Received: by 98.138.105.226; Mon, 08 Jun 2015 04:28:49 +0000 
Date: Mon, 8 Jun 2015 04:28:09 +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: <338220343.6872951.1433737689331.JavaMail.yahoo@mail.yahoo.com>
In-Reply-To: <958880314.6875274.1433735733736.JavaMail.yahoo@mail.yahoo.com>
References: <5572FFC7.1090908@ionic.de> <958880314.6875274.1433735733736.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
I did a quick gdb session. You can see it below. The culprit is exactly the function that I pointed out earlier in 1st post for this bug.

(gdb) b SetDefaultFont
Breakpoint 1 at 0x4210b0: file NXdixfonts.c, line 221.
(gdb) r :50
Starting program: /tmp/nxagent :50
warning: File "/mnt/livecd/lib64/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.

NXAGENT - Version 3.5.99.0

Copyright (C) 2001, 2011 NoMachine.
See http://www.nomachine.com/ for more information.

Info: Agent running with pid '10502'.
Session: Starting session at 'Sun Jun  7 21:19:22 2015'.
Info: Using alpha channel in render extension.
Info: Not using local device configuration changes.
error opening security policy file /usr/local/lib/nx/X11/xserver/SecurityPolicy
SessionPath not defined

Breakpoint 1, SetDefaultFont (defaultfontname=0x703f11 "fixed") at NXdixfonts.c:221
221     NXdixfonts.c: No such file or directory.
(gdb) bt
#0  SetDefaultFont (defaultfontname=0x703f11 "fixed") at NXdixfonts.c:221
#1  0x000000000040dd05 in main ()
(gdb) s
226     in NXdixfonts.c
(gdb) 
221     in NXdixfonts.c
(gdb) 
226     in NXdixfonts.c
(gdb) 
FakeClientID (client=client@entry=0) at NXresource.c:441
441     NXresource.c: No such file or directory.
(gdb) 
444     in NXresource.c
(gdb) 
441     in NXresource.c
(gdb) 
444     in NXresource.c
(gdb) 
441     in NXresource.c
(gdb) 
444     in NXresource.c
(gdb) fini
Run till exit from #0  FakeClientID (client=client@entry=0) at NXresource.c:444
SetDefaultFont (defaultfontname=0x703f11 "fixed") at NXdixfonts.c:228
228     NXdixfonts.c: No such file or directory.
Value returned is $1 = 127
(gdb) p fid
$2 = <optimized out>
(gdb) p err
$3 = <optimized out>
(gdb) s
226     in NXdixfonts.c
(gdb) 
228     in NXdixfonts.c
(gdb) 
227     in NXdixfonts.c
(gdb) 
OpenFont (pfontname=<optimized out>, lenfname=<optimized out>, flags=31, fid=<optimized out>, client=<optimized out>) at NXdixfonts.c:526
526     in NXdixfonts.c
(gdb) fini
Run till exit from #0  OpenFont (pfontname=<optimized out>, lenfname=<optimized out>, flags=31, fid=<optimized out>, client=<optimized out>) at NXdixfonts.c:526
227     in NXdixfonts.c
(gdb) p err
$4 = <optimized out>
(gdb) s
OpenFont (pfontname=0x703f11 "fixed", lenfname=5, flags=31, fid=127, client=0xa53ab0) at NXdixfonts.c:526
526     in NXdixfonts.c
(gdb) 
OpenFont (client=0xa53ab0, fid=fid@entry=127, flags=flags@entry=31, lenfname=5, pfontname=pfontname@entry=0x703f11 "fixed") at NXdixfonts.c:512
512     in NXdixfonts.c
(gdb) 
528     in NXdixfonts.c
(gdb) 
512     in NXdixfonts.c
(gdb) 
528     in NXdixfonts.c
(gdb) fini
Run till exit from #0  OpenFont (client=0xa53ab0, fid=fid@entry=127, flags=flags@entry=31, lenfname=5, pfontname=pfontname@entry=0x703f11 "fixed") at NXdixfonts.c:528
SetDefaultFont (defaultfontname=0x703f11 "fixed") at NXdixfonts.c:229
229     in NXdixfonts.c
Value returned is $5 = 0
(gdb) p Success
No symbol "Success" in current context.
(gdb) s
231     in NXdixfonts.c
(gdb) 
LookupIDByType (id=127, rtype=4) at NXresource.c:1192
1192    NXresource.c: No such file or directory.
(gdb) 
1193    in NXresource.c
(gdb) 
SecurityLookupIDByType (client=0x0, id=127, rtype=4, mode=0) at NXresource.c:1140
1140    in NXresource.c
(gdb) 
1131    in NXresource.c
(gdb) 
1140    in NXresource.c
(gdb) 
1131    in NXresource.c
(gdb) 
1140    in NXresource.c
(gdb) fini
Run till exit from #0  SecurityLookupIDByType (client=0x0, id=127, rtype=4, mode=0) at NXresource.c:1140
SetDefaultFont (defaultfontname=0x703f11 "fixed") at NXdixfonts.c:232
232     NXdixfonts.c: No such file or directory.
Value returned is $6 = (void *) 0x0
(gdb) s
236     in NXdixfonts.c
(gdb) 
230     in NXdixfonts.c
(gdb) p defaultFont
$7 = (FontPtr) 0x0
(gdb) p pf
$8 = <optimized out>
(gdb) s
236     in NXdixfonts.c


LookupIDByType() returns a null ptr.


-devsk


Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Nov 21 14:49:58 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.