-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xrdp-chansrv coredump upon second connection attempt #1502
Comments
Should be fixed with pull request: |
Thanks for that. I'm pretty sure from the stack trace above that you're running on CentOS/RHEL 8 with xrdp-0.9.12-4 installed from EPEL. Am I right? If I'm wrong, please tell me what you are running and we can go from there. This version of the OS uses ASLR, so the program counter in the stack trace is difficult to relate directly to the code segment. However, in your stack trace above, subtracting 0x55c65e369000 from the addresses which are not in shared libraries gives offsets which are all consistent with the 0.9.12-4 EPEL xrdp-chansrv executable:-
The initial SEGV is taken at frame 4, and the signal handler is entered. This causes another call to The code which is being executed can be picked up from gdb with the debuginfo package for xrdp installed:-
On entry to The source lines are a little confusing here, as a lot of optimisation has been applied. I'm pretty sure however, that the dereference at 0xa53d is simply to get the address of The above analysis is simply saying that this is a duplicate of the problem fixed by PR #1487 Until this PR makes an official build, remedies include building from source, or rolling back to V0.9.11 for now. Using EPEL makes this harder, as EPEL does not keep old packages as it moves forward. The older packages can however be obtained from the EPEL build system koji at this link:- https://koji.fedoraproject.org/koji/buildinfo?buildID=1388259 I hope this is useful. Feel free to come back to me if you can pick out any problems in the above analysis. |
|
Thanks for the very excellent description. |
Consistant core dump when initializing remote connection via rdp - a session already exists for this user.
Using remmina 1.3.10 RDP client - default RDP protocol settings.
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: (4963)(140636279781184)[INFO ] A connection received from 127.0.0.1 port 57402
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: pam_sss(xrdp-sesman:auth): authentication success; logname= uid=0 euid=0 tty=xrdp-sesman ruser= rhost= user=MYCOMPANY\ME
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: (4963)(140636279781184)[INFO ] ++ created session (access granted): username MYCOMPANY\ME, ip XXX.XXX.XXX.XXX:42558 - socket: 12
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: (4963)(140636279781184)[INFO ] starting Xvnc session...
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: (4963)(140636279781184)[DEBUG] Closed socket 13 (AF_INET 0.0.0.0:5911)
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: (4963)(140636279781184)[DEBUG] Closed socket 13 (AF_INET 0.0.0.0:6011)
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: (4963)(140636279781184)[DEBUG] Closed socket 13 (AF_INET 0.0.0.0:6211)
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: (4963)(140636279781184)[DEBUG] Closed socket 10 (AF_INET 127.0.0.1:3350)
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[7079]: (7079)(140636279781184)[INFO ] calling auth_start_session from pid 7079
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[7079]: pam_unix(xrdp-sesman:session): session opened for user MYCOMPANY\ME by (uid=0)
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[7079]: (7079)(140636279781184)[DEBUG] Closed socket 9 (AF_INET 127.0.0.1:3350)
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[7079]: (7079)(140636279781184)[DEBUG] Closed socket 10 (AF_INET 127.0.0.1:3350)
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: Xvnc TigerVNC 1.9.0 - built Nov 8 2019 23:18:11
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: Copyright (C) 1999-2018 TigerVNC Team and many others (see README.rst)
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: See http://www.tigervnc.org for information on TigerVNC.
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: Underlying X server release 12003000, The X.Org Foundation
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: Fri Feb 21 10:59:19 2020
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: vncext: VNC extension running!
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: vncext: Listening for VNC connections on local interface(s), port 5911
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: vncext: created VNC server for screen 0
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: Connections: accepted: 127.0.0.1::37970
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[7079]: (7079)(140636279781184)[CORE ] waiting for window manager (pid 7082) to exit
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: SConnection: Client needs protocol version 3.3
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: VNCSConnST: Server default pixel format depth 24 (32bpp) little-endian rgb888
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: VNCSConnST: Client pixel format depth 24 (32bpp) little-endian rgb888
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: fuse: mountpoint is not empty
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: fuse: if you are sure this is safe, use the 'nonempty' mount option
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: fuse: mountpoint is not empty
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: fuse: if you are sure this is safe, use the 'nonempty' mount option
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: fuse: mountpoint is not empty
Feb 21 10:59:19 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: fuse: if you are sure this is safe, use the 'nonempty' mount option
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[7079]: (7079)(140636279781184)[CORE ] window manager (pid 7082) did exit, cleaning up session
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[7079]: (7079)(140636279781184)[INFO ] calling auth_stop_session and auth_end from pid 7079
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[7079]: pam_unix(xrdp-sesman:session): session closed for user MYCOMPANY\ME
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[7079]: (7079)(140636279781184)[DEBUG] cleanup_sockets:
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: Fri Feb 21 10:59:20 2020
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: Connections: closed: 127.0.0.1::37970 (Server shutdown)
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: EncodeManager: Framebuffer updates: 1
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: EncodeManager: Raw:
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: EncodeManager: Solid: 5 rects, 286.308 kpixels
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: EncodeManager: 1.09224 MiB (1:1 ratio)
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: EncodeManager: Total: 5 rects, 286.308 kpixels
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: EncodeManager: 1.09224 MiB (1:1 ratio)
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: ComparingUpdateTracker: 0 pixels in / 0 pixels out
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: ComparingUpdateTracker: (1:-nan ratio)
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[7079]: (7079)(140636279781184)[DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_audio_out_socket_11
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[7079]: (7079)(140636279781184)[DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_audio_in_socket_11
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[7079]: (7079)(140636279781184)[DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdpapi_11
Feb 21 10:59:20 MY_MACHINE.MYCOMPANY.com xrdp-sesman[4963]: (4963)(140636279781184)[INFO ] ++ terminated session: username MYCOMPANY\ME, display :11.0, session_pid 7079, ip XXX.XXX.XXX.XXX:42558 - socket:>
~
systemd-coredump[7277]: Process 7112 (xrdp-chansrv) of user XXXXXX dumped core. Stack trace of thread 7123: #0 0x000055c65e37353d xfs_delete_xfs_fs (xrdp-chansrv) #1 0x000055c65e3721f7 xfuse_deinit (xrdp-chansrv) #2 0x000055c65e36e7a2 segfault_signal_handler (xrdp-chansrv) #3 0x00007f15a6aaea20 __restore_rt (libc.so.6) #4 0x000055c65e37353d xfs_delete_xfs_fs (xrdp-chansrv) #5 0x000055c65e3721f7 xfuse_deinit (xrdp-chansrv) #6 0x000055c65e36e7d2 x_server_fatal_handler (xrdp-chansrv) #7 0x000055c65e384156 xcommon_fatal_handler (xrdp-chansrv) #8 0x00007f15a70c1a42 _XIOError (libX11.so.6) #9 0x00007f15a70bf245 _XEventsQueued (libX11.so.6) #10 0x00007f15a70b0cc7 XPending (libX11.so.6) #11 0x000055c65e384462 xcommon_check_wait_objs (xrdp-chansrv) #12 0x000055c65e36f8d5 channel_thread_loop (xrdp-chansrv) #13 0x00007f15a814b2de start_thread (libpthread.so.0) #14 0x00007f15a6b734b3 __clone (libc.so.6) Stack trace of thread 7112: #0 0x00007f15a6b6ab1f __select (libc.so.6) #1 0x00007f15a836f5bb g_obj_wait (libcommon.so.0) #2 0x000055c65e36df7d main (xrdp-chansrv) #3 0x00007f15a6a9a873 __libc_start_main (libc.so.6) #4 0x000055c65e36e2be _start (xrdp-chansrv)
The text was updated successfully, but these errors were encountered: