From unknown Tue Apr 28 17:10:29 2026
X-Loop: owner@bugs.x2go.org
Subject: Bug#1603: segfault when starting new Terminal session (error 14 in nxagent)
Reply-To: Wes Piard <wespiard@gmail.com>, 1603@bugs.x2go.org
Resent-From: Wes Piard <wespiard@gmail.com>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Wed, 24 May 2023 06:55:01 +0000
Resent-Message-ID: <handler.1603.B.168491120114326@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 1603
X-X2Go-PR-Package: nxagent
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.168491120114326
          (code B); Wed, 24 May 2023 06:55:01 +0000
Received: (at submit) by bugs.x2go.org; 24 May 2023 06:53:21 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-2.0 required=3.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,SPF_HELO_NONE,
	T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2
Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id B59075DA94
	for <submit@bugs.x2go.org>; Wed, 24 May 2023 08:53:04 +0200 (CEST)
Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-561a41db2c0so4871727b3.3
        for <submit@bugs.x2go.org>; Tue, 23 May 2023 23:53:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20221208; t=1684911183; x=1687503183;
        h=mime-version:subject:message-id:to:from:date:from:to:cc:subject
         :date:message-id:reply-to;
        bh=WNW2HoE9hB4MHMaIvb8UTR7O6gl5v3esWdtje5rRUfU=;
        b=nxJtwYnKbqAxHlSFt+eB/WP/LYNe47MnigwoqLz6s7+upZR2djW4OtqowtKdoju87e
         HkgRiXc64ODnxVheKj96dJobYpwAO5Fz/NakVuAenf/cf9UYsCSZ5iP4nqsU2hLarZ6i
         0Olwg/WEqeN8gSBb277kLegpvfG5Y39WdQIfVBldLDwBq+AzYX43MiKJ8myzMib7jaOy
         hyACm50H+dMMUUT2bNzeUXsLz2sIuv7HVSWHROi5RDopy3tTRWjSEeBM3Rvv3C3z6SVL
         mhyPdlKjWu6ATyozURWheiQ5QX4IIy0qb+P/XBVwZW8r0a4AMmEaqsZ1DS+teTy91o0R
         CaZQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20221208; t=1684911183; x=1687503183;
        h=mime-version:subject:message-id:to:from:date:x-gm-message-state
         :from:to:cc:subject:date:message-id:reply-to;
        bh=WNW2HoE9hB4MHMaIvb8UTR7O6gl5v3esWdtje5rRUfU=;
        b=cJzgWVeA9Yu5r4Ii2g5bDkrNRobfQ9jT+1MyZ6HdeqT54hZHHgunyBKFXoVXHjWsP1
         pKT34/gGlY0HQ1ynfZcqxsWywDoBLaP76ZIAVnt04wXXcGgimA9nZbXZQ16F0mA1Rfai
         QegS4Dj74gauFNBy4SH73uFOT8QL9jTpiZ/6MEVIH5nX6ucuNrsxIiTR9P/8Q70psRTO
         4lnjRnz7R2eTbL3QQC89sq3IjRX4h3RMaKeeQxZfw7jFoPAFKaRGZzjykTwdLuS148Pa
         ui6ADuEiVkLDMqlOVLc5LYZ1aqv+6aOLFcgP3/ZiorLKo4Jv49iq9N5svGoKjbg62Xr8
         Tfig==
X-Gm-Message-State: AC+VfDwWCF/Bwf/De6n9pgg8wxk7db94CaQPFVW81YhCuE+uF57qGHX4
	gtkPsnAex+EO0GZyzrmkh/SkvO+Jiw==
X-Google-Smtp-Source: ACHHUZ7NwzPZXKip6vPdjnCq400gouVSJL/sLqOF7eZ8UAEqlt/IboOKzzKQS/7EkB1D22Ip+i1cOg==
X-Received: by 2002:a0d:cec7:0:b0:561:7cb7:a31 with SMTP id q190-20020a0dcec7000000b005617cb70a31mr15156824ywd.44.1684911182797;
        Tue, 23 May 2023 23:53:02 -0700 (PDT)
Received: from [10.228.12.247] (host-128-227-108-150.xlate.ufl.edu. [128.227.108.150])
        by smtp.gmail.com with ESMTPSA id w6-20020a814906000000b0054f8b201c70sm3453938ywa.108.2023.05.23.23.53.02
        for <submit@bugs.x2go.org>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Tue, 23 May 2023 23:53:02 -0700 (PDT)
Date: Wed, 24 May 2023 02:52:56 -0400
From: Wes Piard <wespiard@gmail.com>
To: submit@bugs.x2go.org
Message-ID: <b09ee60a-eb72-4b5c-818b-9af2ea60f028@Spark>
X-Readdle-Message-ID: b09ee60a-eb72-4b5c-818b-9af2ea60f028@Spark
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="646db44d_92fa6db_5f0c"

--646db44d_92fa6db_5f0c
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Package: nxagent
Version: 3.5.99.26

x2go client system: Windows 11 Pro
x2go server system: RHEL/Rocky 8.8, Linux 4.18.0-477.10.1
x2goclient version: 4.1.2.2
x2goserver, x2goagent version: 4.1.0.3
nxagent, nx-libs version: 3.5.99.26

When attempting to start a new session using x2go of type =22Single appli=
cation=22 with command =22Terminal=22, the x2go client receives the follo=
wing error:

=22X2Go - 57: The connection with the remote server was shut down. Please=
 check the state of your network connection.=22

At this point, the x2go server gets a segfault from nxagent:

kernel: x2goagent=5B16153=5D: segfault at 0 ip 0000000000000000 sp 00007f=
ff984cffc8 error 14 in nxagent=5B55bf4d27a000+439000=5D

Here is the full output shown in /var/log/messages:

systemd-logind=5B1092=5D: New session 11 of user wespiard.
systemd=5B1=5D: Started Session 11 of user wespiard.
/usr/bin/x2gostartagent=5B16162=5D: successfully started X2Go Agent sessi=
on with ID wespiard-58-1684910138=5FstRTERMINAL=5Fdp32
kernel: x2goagent=5B16153=5D: segfault at 0 ip 0000000000000000 sp 00007f=
ff984cffc8 error 14 in nxagent=5B55bf4d27a000+439000=5D
kernel: Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
systemd=5B1=5D: Started Process Core Dump (PID 16440/UID 0).
systemd-coredump=5B16441=5D: Process 16153 (x2goagent) of user 1001 dumpe=
d core.=23012=23012Stack trace of thread 16153:=23012=230=C2=A0=C2=A00x00=
00000000000000 n/a (n/a)
systemd=5B1=5D: systemd-coredump=408-16440-0.service: Succeeded.
systemd-logind=5B1092=5D: Session 11 logged out. Waiting for processes to=
 exit.
/usr/bin/x2gosetkeyboard=5B16662=5D: /home/wespiard/.x2go/C-wespiard-58-1=
684910138=5FstRTERMINAL=5Fdp32/keyboard did not appear within 30s after a=
gent startup
systemd=5B1=5D: session-11.scope: Succeeded.
systemd-logind=5B1092=5D: Removed session 11.

Here is the output of =22coredumpctl info 16153=22:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0PID: 16153 (x2goagent)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0UID: 1001 (wespiard)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0GID: 1001 (wespiard)
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0Signal: 11 (SEGV)
=C2=A0 =C2=A0 =C2=A0Timestamp: Wed 2023-05-24 06:35:42 UTC (9min ago)
=C2=A0=C2=A0Command Line: x2goagent -nolisten tcp -nolisten tcp -dpi 96 -=
R -auth /home/wespiard/.Xauthority -geometry 1024x768 -name X2GO-wespiard=
-58-1684910138=5FstRTERMINAL=5Fdp32 :58
=C2=A0=C2=A0 =C2=A0Executable: /usr/bin/nxagent
=C2=A0Control Group: /user.slice/user-1001.slice/session-11.scope
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Unit:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Slice: user-1001.slice
=C2=A0 =C2=A0 =C2=A0 =C2=A0Session: 11
=C2=A0 =C2=A0 =C2=A0Owner UID: 1001 (wespiard)
=C2=A0 =C2=A0 =C2=A0 =C2=A0Storage: /var/lib/systemd/coredump/core.x2goag=
ent.1001.8af9355d6c8542eb8b72103dc32ef9c0.16153.1684910142000000.lz4
=C2=A0 =C2=A0 =C2=A0 =C2=A0Message: Process 16153 (x2goagent) of user 100=
1 dumped core.

=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Stack trace =
of thread 16153:
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=230=C2=A0=C2=
=A00x0000000000000000 n/a (n/a)


--646db44d_92fa6db_5f0c
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<html xmlns=3D=22http://www.w3.org/1999/xhtml=22>
<head>
<title></title>
</head>
<body>
<div name=3D=22messageBodySection=22>
<div dir=3D=22auto=22>Package: nxagent<br />
Version: 3.5.99.26<br />
<br />
x2go client system: Windows 11 Pro<br />
x2go server system: RHEL/Rocky 8.8, Linux 4.18.0-477.10.1<br />
x2goclient version: 4.1.2.2<br />
x2goserver, x2goagent version: 4.1.0.3<br />
nxagent, nx-libs version: 3.5.99.26<br />
<br />
When attempting to start a new session using x2go of type =22Single appli=
cation=22 with command =22Terminal=22, the x2go client receives the follo=
wing error:&=23160;<br />
<br />
=22X2Go - 57: The connection with the remote server was shut down. Please=
 check the state of your network connection.=22<br />
<br />
At this point, the x2go server gets a segfault from nxagent:<br />
<br />
kernel: x2goagent=5B16153=5D: segfault at 0 ip 0000000000000000 sp 00007f=
ff984cffc8 error 14 in nxagent=5B55bf4d27a000+439000=5D<br />
<br />
Here is the full output shown in /var/log/messages:<br />
<br />
systemd-logind=5B1092=5D: New session 11 of user wespiard.<br />
systemd=5B1=5D: Started Session 11 of user wespiard.<br />
/usr/bin/x2gostartagent=5B16162=5D: successfully started X2Go Agent sessi=
on with ID wespiard-58-1684910138=5FstRTERMINAL=5Fdp32<br />
kernel: x2goagent=5B16153=5D: segfault at 0 ip 0000000000000000 sp 00007f=
ff984cffc8 error 14 in nxagent=5B55bf4d27a000+439000=5D<br />
kernel: Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.<br=
 />
systemd=5B1=5D: Started Process Core Dump (PID 16440/UID 0).<br />
systemd-coredump=5B16441=5D: Process 16153 (x2goagent) of user 1001 dumpe=
d core.=23012=23012Stack trace of thread 16153:=23012=230&=23160;&=23160;=
0x0000000000000000 n/a (n/a)<br />
systemd=5B1=5D: systemd-coredump=408-16440-0.service: Succeeded.<br />
systemd-logind=5B1092=5D: Session 11 logged out. Waiting for processes to=
 exit.<br />
/usr/bin/x2gosetkeyboard=5B16662=5D: /home/wespiard/.x2go/C-wespiard-58-1=
684910138=5FstRTERMINAL=5Fdp32/keyboard did not appear within 30s after a=
gent startup<br />
systemd=5B1=5D: session-11.scope: Succeeded.<br />
systemd-logind=5B1092=5D: Removed session 11.<br />
<br />
Here is the output of =22coredumpctl info 16153=22:<br />
<br />
&=23160; &=23160; &=23160; &=23160; &=23160; &=23160;PID: 16153 (x2goagen=
t)<br />
&=23160; &=23160; &=23160; &=23160; &=23160; &=23160;UID: 1001 (wespiard)=
<br />
&=23160; &=23160; &=23160; &=23160; &=23160; &=23160;GID: 1001 (wespiard)=
<br />
&=23160;&=23160; &=23160; &=23160; &=23160;Signal: 11 (SEGV)<br />
&=23160; &=23160; &=23160;Timestamp: Wed 2023-05-24 06:35:42 UTC (9min ag=
o)<br />
&=23160;&=23160;Command Line: x2goagent -nolisten tcp -nolisten tcp -dpi =
96 -R -auth /home/wespiard/.Xauthority -geometry 1024x768 -name X2GO-wesp=
iard-58-1684910138=5FstRTERMINAL=5Fdp32 :58<br />
&=23160;&=23160; &=23160;Executable: /usr/bin/nxagent<br />
&=23160;Control Group: /user.slice/user-1001.slice/session-11.scope<br />=

&=23160;&=23160; &=23160; &=23160; &=23160; &=23160;Unit:<br />
&=23160; &=23160; &=23160; &=23160; &=23160;Slice: user-1001.slice<br />
&=23160; &=23160; &=23160; &=23160;Session: 11<br />
&=23160; &=23160; &=23160;Owner UID: 1001 (wespiard)<br />
&=23160; &=23160; &=23160; &=23160;Storage: /var/lib/systemd/coredump/cor=
e.x2goagent.1001.8af9355d6c8542eb8b72103dc32ef9c0.16153.1684910142000000.=
lz4<br />
&=23160; &=23160; &=23160; &=23160;Message: Process 16153 (x2goagent) of =
user 1001 dumped core.<br />
<br />
&=23160;&=23160; &=23160; &=23160; &=23160; &=23160; &=23160; &=23160; &=23=
160;Stack trace of thread 16153:<br />
&=23160;&=23160; &=23160; &=23160; &=23160; &=23160; &=23160; &=23160; &=23=
160;=230&=23160;&=23160;0x0000000000000000 n/a (n/a)<br />
<br /></div>
</div>
</body>
</html>

--646db44d_92fa6db_5f0c--
