Skip to content

Sometimes session crashed after rdp disconnected #2845

@DavidDiao

Description

@DavidDiao

xrdp version

0.9.5

Detailed xrdp version, build options

xrdp: A Remote Desktop Protocol server.
Copyright (C) Jay Sorg 2004-2014
See http://www.xrdp.org for more information.
Version 0.9.5

Operating system & version

Ubuntu 18.04.6 LTS

Installation method

dnf / apt / zypper / pkg / etc

Which backend do you use?

xorgxrdp 0.9.5 0.2.5

What desktop environment do you use?

xfce 4.12.4

Environment xrdp running on

physical machine

What's your client?

windows 11 rdp client (mstsc.exe)

Area(s) with issue?

No response

Steps to reproduce

It behaves normally while connected, but only sometimes session crashed after rdp disconnected.
I used very often but last time it happened was 5 days ago. The only thing I've noticed in common is it crashed immediately or not long (1 min) after it disconnected.

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Anything else?

syslog (includes related xrdp.log and xrdp-sesman.log)

Nov  4 03:50:14 nuc5i3 xrdp[10846]: (10846)(139947550226240)[DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.2.200 port 3389)
Nov  4 03:50:14 nuc5i3 xrdp[10846]: (10846)(139947550226240)[DEBUG] xrdp_mm_module_cleanup
Nov  4 03:50:14 nuc5i3 xrdp[10846]: (10846)(139947550226240)[DEBUG] Closed socket 17 (AF_UNIX)
Nov  4 03:50:14 nuc5i3 xrdp[10846]: (10846)(139947550226240)[DEBUG] Closed socket 18 (AF_UNIX)
Nov  4 03:50:14 nuc5i3 xfce4-notifyd[27487]: xfce4-notifyd: Fatal IO error 11 (Resource temporarily unavailable) on X server :10.0.
Nov  4 03:50:14 nuc5i3 at-spi-bus-launcher[27450]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":10.0"
Nov  4 03:50:14 nuc5i3 at-spi-bus-launcher[27450]:       after 15209 requests (15209 known processed) with 0 events remaining.
Nov  4 03:50:14 nuc5i3 systemd[27195]: xfce4-notifyd.service: Main process exited, code=exited, status=1/FAILURE
Nov  4 03:50:14 nuc5i3 systemd[27195]: xfce4-notifyd.service: Failed with result 'exit-code'.
Nov  4 03:50:14 nuc5i3 xrdp-sesman[27192]: (27192)(140302625961280)[CORE ] window manager (pid 27227) did exit, cleaning up session
Nov  4 03:50:14 nuc5i3 xrdp-sesman[27192]: (27192)(140302625961280)[INFO ] calling auth_stop_session and auth_end from pid 27192
Nov  4 03:50:14 nuc5i3 xrdp-sesman[27192]: (27192)(140302625961280)[DEBUG] cleanup_sockets:
Nov  4 03:50:14 nuc5i3 xrdp-sesman[27192]: (27192)(140302625961280)[DEBUG] cleanup_sockets: deleting /var/run/xrdp/sockdir/xrdp_chansrv_socket_10
Nov  4 03:50:14 nuc5i3 xrdp-sesman[27192]: (27192)(140302625961280)[DEBUG] cleanup_sockets: deleting /var/run/xrdp/sockdir/xrdpapi_10
Nov  4 03:50:14 nuc5i3 xrdp-sesman[1336]: (1336)(140302625961280)[INFO ] ++ terminated session:  username david, display :10.0, session_pid 27192, ip ::ffff:58.-----------:50711 - socket: 12

.xsession-errors

[Child 27791, Main Thread] WARNING: JSWindowActorChild::SendRawMessage (Conduits, ConduitClosed) not sent: !CanSend() || !mManager || !mManager->CanSend(): file /build/firefox-DxjVTE/firefox-113.0.2+build1/dom/ipc/jsactor/JSWindowActorChild.cpp:57
[Child 27791, Main Thread] WARNING: JSWindowActorChild::SendRawMessage (Conduits, ConduitClosed) not sent: !CanSend() || !mManager || !mManager->CanSend(): file /build/firefox-DxjVTE/firefox-113.0.2+build1/dom/ipc/jsactor/JSWindowActorChild.cpp:57
[Child 27795, Main Thread] WARNING: JSWindowActorChild::SendRawMessage (Conduits, ConduitClosed) not sent: !CanSend() || !mManager || !mManager->CanSend(): file /build/firefox-DxjVTE/firefox-113.0.2+build1/dom/ipc/jsactor/JSWindowActorChild.cpp:57
[Child 27795, Main Thread] WARNING: JSWindowActorChild::SendRawMessage (Conduits, ConduitClosed) not sent: !CanSend() || !mManager || !mManager->CanSend(): file /build/firefox-DxjVTE/firefox-113.0.2+build1/dom/ipc/jsactor/JSWindowActorChild.cpp:57
[Child 27795, Main Thread] WARNING: JSWindowActorChild::SendRawMessage (Conduits, ConduitClosed) not sent: !CanSend() || !mManager || !mManager->CanSend(): file /build/firefox-DxjVTE/firefox-113.0.2+build1/dom/ipc/jsactor/JSWindowActorChild.cpp:57
[Child 27795, Main Thread] WARNING: JSWindowActorChild::SendRawMessage (Conduits, ConduitClosed) not sent: !CanSend() || !mManager || !mManager->CanSend(): file /build/firefox-DxjVTE/firefox-113.0.2+build1/dom/ipc/jsactor/JSWindowActorChild.cpp:57
xfdesktop: Fatal IO error 104 (Connection reset by peer) on X server :10.0.
xfce4-panel: Fatal IO error 11 (Resource temporarily unavailable) on X server :10.0.
Gdk-Message: 03:50:14.469: wrapper-2.0: Fatal IO error 11 (Resource temporarily unavailable) on X server :10.0.

xfwm4: Fatal IO error 11 (Resource temporarily unavailable) on X server :10.0.
Gdk-Message: 03:50:14.472: wrapper-2.0: Fatal IO error 11 (Resource temporarily unavailable) on X server :10.0.

wrapper-1.0: Fatal IO error 11 (Resource temporarily unavailable) on X server :10.0.
Gdk-Message: 03:50:14.483: firefox: Fatal IO error 11 (Resource temporarily unavailable) on X server :10.0.

Gdk-Message: 03:50:14.488: xfce4-terminal: Fatal IO error 11 (Resource temporarily unavailable) on X server :10.0.

wrapper-1.0: Fatal IO error 11 (Resource temporarily unavailable) on X server :10.0.
xfsettingsd: Fatal IO error 11 (Resource temporarily unavailable) on X server :10.0.
Thunar: Fatal IO error 11 (Resource temporarily unavailable) on X server :10.0.
xfce4-session: Fatal IO error 11 (Resource temporarily unavailable) on X server :10.0.
Gdk-Message: 03:50:14.510: sunloginclient: Fatal IO error 0 (Success) on X server :10.0.

Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Xsession: X session started for david at 2023年 11月 04日 星期六 07:57:36 CST

Another crash log
syslog

Oct 31 07:58:57 nuc5i3 xrdp[2123]: (2123)(140031404218176)[DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.2.200 port 3389)
Oct 31 07:58:57 nuc5i3 xrdp[2123]: (2123)(140031404218176)[DEBUG] xrdp_mm_module_cleanup
Oct 31 07:58:57 nuc5i3 xrdp[2123]: (2123)(140031404218176)[DEBUG] Closed socket 17 (AF_UNIX)
Oct 31 07:58:57 nuc5i3 xrdp[2123]: (2123)(140031404218176)[DEBUG] Closed socket 18 (AF_UNIX)
Oct 31 07:59:17 nuc5i3 systemd[1]: Started Session c35 of user david.
Oct 31 07:59:17 nuc5i3 oray_rundaemon[18260]: xdo_new return NULL
Oct 31 07:59:29 nuc5i3 at-spi-bus-launcher[8515]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":11.0"
Oct 31 07:59:29 nuc5i3 at-spi-bus-launcher[8515]:       after 37217 requests (37217 known processed) with 0 events remaining.
Oct 31 07:59:29 nuc5i3 xfce4-notifyd[8778]: xfce4-notifyd: Fatal IO error 11 (资源暂时不可用) on X server :11.0.
Oct 31 07:59:29 nuc5i3 systemd[8353]: xfce4-notifyd.service: Main process exited, code=exited, status=1/FAILURE
Oct 31 07:59:29 nuc5i3 systemd[8353]: xfce4-notifyd.service: Failed with result 'exit-code'.
Oct 31 07:59:29 nuc5i3 xrdp-sesman[8636]: (8636)(140621221541184)[CORE ] window manager (pid 8637) did exit, cleaning up session
Oct 31 07:59:29 nuc5i3 xrdp-sesman[8636]: (8636)(140621221541184)[INFO ] calling auth_stop_session and auth_end from pid 8636
Oct 31 07:59:29 nuc5i3 xrdp-sesman[8636]: (8636)(140621221541184)[DEBUG] cleanup_sockets:
Oct 31 07:59:29 nuc5i3 xrdp-sesman[8636]: (8636)(140621221541184)[DEBUG] cleanup_sockets: deleting /var/run/xrdp/sockdir/xrdp_chansrv_socket_11
Oct 31 07:59:29 nuc5i3 xrdp-sesman[8636]: (8636)(140621221541184)[DEBUG] cleanup_sockets: failed to delete /var/run/xrdp/sockdir/xrdp_chansrv_socket_11
Oct 31 07:59:29 nuc5i3 xrdp-sesman[8636]: (8636)(140621221541184)[DEBUG] cleanup_sockets: deleting /var/run/xrdp/sockdir/xrdpapi_11
Oct 31 07:59:30 nuc5i3 xrdp-sesman[8636]: (8636)(140621221541184)[DEBUG] cleanup_sockets: failed to delete /var/run/xrdp/sockdir/xrdpapi_11
Oct 31 07:59:30 nuc5i3 xrdp-sesman[1038]: (1038)(140621221541184)[INFO ] ++ terminated session:  username david, display :11.0, session_pid 8636, ip ::ffff:192.168.2.107:61742 - socket: 12
Oct 31 07:59:39 nuc5i3 systemd[1]: Stopping User Manager for UID 1000...
Oct 31 07:59:39 nuc5i3 systemd[8353]: Stopping Virtual filesystem service...
Oct 31 07:59:39 nuc5i3 systemd[8353]: Stopping D-Bus User Message Bus...
Oct 31 07:59:39 nuc5i3 systemd[8353]: Stopping Virtual filesystem service - disk device monitor...
Oct 31 07:59:39 nuc5i3 systemd[8353]: Stopped target Default.
Oct 31 07:59:39 nuc5i3 systemd[8353]: Stopping Accessibility services bus...
Oct 31 07:59:39 nuc5i3 systemd[8353]: Stopping Virtual filesystem metadata service...
Oct 31 07:59:39 nuc5i3 systemd[8353]: Stopping GnuPG cryptographic agent and passphrase cache...
Oct 31 07:59:39 nuc5i3 systemd[8353]: Stopped Virtual filesystem service - disk device monitor.
Oct 31 07:59:39 nuc5i3 systemd[8353]: Stopped Virtual filesystem service.
Oct 31 07:59:39 nuc5i3 systemd[8353]: Stopped Virtual filesystem metadata service.
Oct 31 07:59:39 nuc5i3 gpg-agent[8443]: SIGTERM received - shutting down ...
Oct 31 07:59:39 nuc5i3 systemd[8353]: Stopped Accessibility services bus.
Oct 31 07:59:39 nuc5i3 systemd[8353]: Stopped D-Bus User Message Bus.
Oct 31 07:59:39 nuc5i3 gpg-agent[8443]: gpg-agent (GnuPG) 2.2.4停止
Oct 31 07:59:39 nuc5i3 systemd[8353]: Stopped GnuPG cryptographic agent and passphrase cache.
Oct 31 07:59:39 nuc5i3 systemd[8353]: Stopped target Basic System.
Oct 31 07:59:39 nuc5i3 systemd[8353]: Stopped target Sockets.
Oct 31 07:59:39 nuc5i3 systemd[8353]: Closed GnuPG network certificate management daemon.
Oct 31 07:59:39 nuc5i3 systemd[8353]: Closed D-Bus User Message Bus Socket.
Oct 31 07:59:39 nuc5i3 systemd[8353]: Closed REST API socket for snapd user session agent.
Oct 31 07:59:39 nuc5i3 systemd[8353]: Stopped target Timers.
Oct 31 07:59:39 nuc5i3 systemd[8353]: Stopped target Paths.
Oct 31 07:59:39 nuc5i3 systemd[8353]: Closed GnuPG cryptographic agent and passphrase cache.
Oct 31 07:59:39 nuc5i3 systemd[8353]: Closed GnuPG cryptographic agent (ssh-agent emulation).
Oct 31 07:59:39 nuc5i3 systemd[8353]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers).
Oct 31 07:59:39 nuc5i3 systemd[8353]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
Oct 31 07:59:39 nuc5i3 systemd[8353]: Reached target Shutdown.
Oct 31 07:59:39 nuc5i3 systemd[8353]: Starting Exit the Session...
Oct 31 07:59:39 nuc5i3 systemd[8353]: Received SIGRTMIN+24 from PID 4096 (kill).
Oct 31 07:59:39 nuc5i3 systemd[1]: Stopped User Manager for UID 1000.
Oct 31 07:59:39 nuc5i3 systemd[1]: Removed slice User Slice of david.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions