xrdp: Debian 11 xrdp[210471]: segfault at 18 ip 0000561ea1f58cd7 sp 00007eff4f7fdb50 error 4 in xrdp[561ea1f3e000+29000]

xrdp version

0.10.80 - with REMOTE_CLIENT_IP Patch

Detailed xrdp version, build options

 xrdp -v
xrdp 0.10.80
  A Remote Desktop Protocol Server.
  Copyright (C) 2004-2024 Jay Sorg, Neutrino Labs, and all contributors.
  See https://github.com/neutrinolabs/xrdp for more information.

  Configure options:
      --enable-fuse
      --enable-jpeg
      --enable-rfxcodec
      --enable-mp3lame
      --enable-vsock
      --libexecdir=/usr/libexec

  Compiled with OpenSSL 1.1.1w  11 Sep 2023

Operating system & version

Debian 11 Linux - 5.10.0-26-amd64 #1 SMP Debian 5.10.197-1 (2023-09-29) x86_64 GNU/Linux

Installation method

git clone & make install

Which backend do you use?

HP Thinclient (FreeRDP)

What desktop environment do you use?

Cinnamon

Environment xrdp running on

vmware esxi

What’s your client?

FreeRDP

Area(s) with issue?

Crashes such as segfault

Steps to reproduce

/var/log/messages:49473:Mar  6 16:57:09 hqlxterm09 kernel: [36616.492330] xrdp[210471]: segfault at 18 ip 0000561ea1f58cd7 sp 00007eff4f7fdb50 error 4 in xrdp[561ea1f3e000+29000]
/var/log/kern.log:50008:Mar  6 16:57:09 hqlxterm09 kernel: [36616.492330] xrdp[210471]: segfault at 18 ip 0000561ea1f58cd7 sp 00007eff4f7fdb50 error 4 in xrdp[561ea1f3e000+29000]
/var/log/syslog:82248:Mar  6 16:57:09 hqlxterm09 kernel: [36616.492330] xrdp[210471]: segfault at 18 ip 0000561ea1f58cd7 sp 00007eff4f7fdb50 error 4 in xrdp[561ea1f3e000+29000]

✔️ Expected Behavior

No response

❌ Actual Behavior

xrdp service crashed

Anything else?

No response

About this issue

  • Original URL
  • State: open
  • Created 4 months ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

Thanks @itxworks

Sadly, it still doesn’t give me enough to reproduce this. The biggest problem is I have no idea what your client is doing.

Are you in a position to do the following?

  1. Build without the patches. If these turn out to be the problem we can look at them later.
  2. Build with --enable-devel-all. This results in a slower build with more logging. It’s handy for builds still being developed (which this one is).

That should tell us more about what’s going on in xrdp.log.

Come back to me with the result. If there’s still a problem I can tell you how to get a debugger attached so we can see exactly where the SEGV is happening.

I’ve got a small comment on your (well documented) build procedure above. You shouldn’t need sudo for the bootstrap, configure and make stages. These should normally be done as an unprivileged user. You will of course need sudo for make install. This won’t be having any effect on the result here, but it’s just a good habit to get into.