NetBSD Problem Report #56741
From www@netbsd.org Sat Mar 5 20:48:24 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 8AE971A9239
for <gnats-bugs@gnats.NetBSD.org>; Sat, 5 Mar 2022 20:48:24 +0000 (UTC)
Message-Id: <20220305204823.52B211A923A@mollari.NetBSD.org>
Date: Sat, 5 Mar 2022 20:48:23 +0000 (UTC)
From: hoarau.fabrice@free.fr
Reply-To: hoarau.fabrice@free.fr
To: gnats-bugs@NetBSD.org
Subject: X error messages : trap: 'SIGKILL' cannot be caught + xauth: file .serverauth.xxx does not exist
X-Send-Pr-Version: www-1.0
>Number: 56741
>Category: misc
>Synopsis: X error messages : trap: 'SIGKILL' cannot be caught + xauth: file .serverauth.xxx does not exist
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Mar 05 20:50:01 +0000 2022
>Originator: fabrice
>Release: 9.2_STABLE
>Organization:
>Environment:
NetBSD ms7817 9.2_STABLE NetBSD 9.2_STABLE (GENERIC) #0: Mon Feb 28 16:39:22 UTC 2022 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
When running X, these error messages appear at first :
trap: 'SIGKILL' cannot be caught
xauth: file /home/<user>/.serverauth.xxx does not exist
I know these messages are not very important, but it seems to me that they are really useless and can lead one to believe that there is a real problem !!!
>How-To-Repeat:
In the text shell console launch X :
$ startx
In X swap to text shell console :
Ctrl-Alt-F1
trap: 'SIGKILL' cannot be caught
xauth: file /home/<user>/.serverauth.xxx does not exist
...
The messages are also visible when you exit X and go back in the text shell console.
>Fix:
these messages can be avoided with the following changes in the file /usr/X11R7/bin/startx at line 176:
# create a file with auth information for the server. ':0' is a dummy.
xserverauthfile=$HOME/.serverauth.$$
++ touch $xserverauthfile
-- trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP KILL BUS TERM
++ trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP BUS TERM
xauth -q -f "$xserverauthfile" << EOF
add :$dummy . $mcookie
EOF
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.