neutrinolabs / NeutrinoRDP

This is a fork of FreeRDP 1.0.1
Apache License 2.0
57 stars 75 forks source link

Cannot use xorgxrdp #22

Closed Mr-LZG closed 4 years ago

Mr-LZG commented 4 years ago

platform

centos7.5 
Linux devplat7 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Jan 4 01:06:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

build xorgxrdp

cd xorgxrdp-0.2.13
./bootstrap
./configure PKG_CONFIG_PATH=/usr/local/libpkgconfig
make
make install

build xrdp

cd xrdp-0.9.13 
./bootstrap
./configure --enable-neutrinordp 
make
make install

Error window pops up when I connect using xorg image image

xrdp.log

[20200509-11:03:52] [INFO ] Socket 12: AF_INET connection received from 172.16.162.1 port 4152
[20200509-11:03:52] [DEBUG] Closed socket 12 (AF_INET 172.16.99.28:3389)
[20200509-11:03:52] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20200509-11:03:52] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20200509-11:03:52] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20200509-11:03:52] [WARN ] TLSv1.3 enabled by config, but not supported by system OpenSSL
[20200509-11:03:52] [DEBUG] TLSv1.2 enabled
[20200509-11:03:52] [DEBUG] Security layer: requested 11, selected 1
[20200509-11:03:52] [DEBUG] Closed socket 12 (AF_INET 172.16.99.28:3389)
[20200509-11:03:52] [INFO ] Socket 12: AF_INET connection received from 172.16.162.1 port 4153
[20200509-11:03:52] [DEBUG] Closed socket 12 (AF_INET 172.16.99.28:3389)
[20200509-11:03:52] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20200509-11:03:52] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20200509-11:03:52] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20200509-11:03:52] [WARN ] TLSv1.3 enabled by config, but not supported by system OpenSSL
[20200509-11:03:52] [DEBUG] TLSv1.2 enabled
[20200509-11:03:52] [DEBUG] Security layer: requested 11, selected 1
[20200509-11:03:52] [INFO ] connected client computer name: LZG-PC
[20200509-11:03:52] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000
[20200509-11:03:52] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
[20200509-11:03:52] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
[20200509-11:03:52] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000
[20200509-11:03:52] [INFO ] TLS connection established from 172.16.162.1 port 4153: TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384
[20200509-11:03:53] [DEBUG] xrdp_000053f0_wm_login_mode_event_00000001
[20200509-11:03:53] [INFO ] Cannot find keymap file /etc/xrdp/km-00000804.ini
[20200509-11:03:53] [INFO ] Cannot find keymap file /etc/xrdp/km-00000804.ini
[20200509-11:03:53] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20200509-11:03:53] [WARN ] local keymap file for 0x00000804 found and doesn't match built in keymap, using local keymap file
[20200509-11:04:02] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20200509-11:04:02] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20200509-11:04:02] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20200509-11:04:02] [DEBUG] return value from xrdp_mm_connect 0
[20200509-11:04:02] [INFO ] xrdp_wm_log_msg: login successful for display 16
[20200509-11:04:02] [DEBUG] xrdp_wm_log_msg: started connecting
[20200509-11:04:05] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:04:09] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:04:12] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:04:16] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:04:19] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:04:23] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:04:26] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:04:30] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:04:33] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:04:37] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:04:41] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:04:44] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:04:48] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:04:51] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:04:55] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:04:58] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:05:02] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:05:05] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:05:09] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:05:12] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:05:16] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:05:19] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:05:23] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:05:26] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:05:30] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:05:33] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:05:37] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:05:40] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:05:44] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:05:47] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:05:51] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:05:55] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:05:58] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:06:02] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:06:05] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:06:09] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:06:12] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:06:16] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:06:19] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:06:23] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:06:26] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:06:30] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:06:33] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:06:37] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:06:40] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:06:44] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:06:47] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:06:51] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:06:54] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:06:58] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:07:01] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:07:05] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:07:09] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:07:12] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:07:16] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:07:19] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:07:23] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:07:26] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:07:30] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:07:33] [DEBUG] xrdp_wm_log_msg: connection problem, giving up
[20200509-11:07:33] [DEBUG] Closed socket 19 (AF_UNIX)
[20200509-11:07:33] [DEBUG] xrdp_wm_log_msg: some problem
[20200509-11:07:33] [DEBUG] xrdp_mm_module_cleanup
[20200509-11:07:33] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:54354)

sesman.log

[20200509-11:04:02] [INFO ] A connection received from 127.0.0.1 port 54354
[20200509-11:04:02] [INFO ] ++ created session (access granted): username root, ip 172.16.162.1:4153 - socket: 12
[20200509-11:04:02] [INFO ] starting Xorg session...
[20200509-11:04:02] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5910)
[20200509-11:04:02] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:0)
[20200509-11:04:02] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5911)
[20200509-11:04:02] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:0)
[20200509-11:04:02] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5912)
[20200509-11:04:02] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:0)
[20200509-11:04:02] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5916)
[20200509-11:04:02] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6016)
[20200509-11:04:02] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6216)
[20200509-11:04:02] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20200509-11:04:02] [INFO ] calling auth_start_session from pid 21492
[20200509-11:04:02] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20200509-11:04:02] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20200509-11:04:02] [INFO ] Xorg :16 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log  
[20200509-11:04:12] [ERROR] X server for display 16 startup timeout
[20200509-11:04:12] [CORE ] waiting for window manager (pid 21493) to exit
[20200509-11:04:12] [ERROR] X server for display 16 startup timeout
[20200509-11:04:12] [ERROR] another Xserver might already be active on display 16 - see log
[20200509-11:04:12] [DEBUG] aborting connection...
[20200509-11:04:12] [CORE ] window manager (pid 21493) did exit, cleaning up session
[20200509-11:04:12] [INFO ] calling auth_stop_session and auth_end from pid 21492
[20200509-11:04:12] [DEBUG] cleanup_sockets:
[20200509-11:04:12] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_socket_16
[20200509-11:04:12] [DEBUG] cleanup_sockets: failed to delete /tmp/.xrdp/xrdp_chansrv_socket_16
[20200509-11:04:12] [INFO ] ++ terminated session:  username root, display :16.0, session_pid 21492, ip 172.16.162.1:4153 - socket: 12

xorgxrdp.16.log

[153096.253] 
X.Org X Server 1.19.3
Release Date: 2017-03-15
[153096.253] X Protocol Version 11, Revision 0
[153096.253] Build Operating System:  3.10.0-514.16.1.el7.x86_64 
[153096.253] Current Operating System: Linux devplat7 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Jan 4 01:06:37 UTC 2018 x86_64
[153096.253] Kernel command line: BOOT_IMAGE=/vmlinuz-3.10.0-693.11.6.el7.x86_64 root=UUID=04ce9af1-fc2b-405a-a24b-94a8b569edeb ro rhgb quiet LANG=en_US.UTF-8
[153096.253] Build Date: 05 August 2017  06:19:43AM
[153096.253] Build ID: xorg-x11-server 1.19.3-11.el7 
[153096.253] Current version of pixman: 0.34.0
[153096.253]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[153096.253] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[153096.253] (++) Log file: ".xorgxrdp.16.log", Time: Sat May  9 11:04:02 2020
[153096.254] (++) Using config file: "/etc/X11/xrdp/xorg.conf"
[153096.254] (==) Using config directory: "/etc/X11/xorg.conf.d"
[153096.254] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[153096.254] (==) ServerLayout "X11 Server"
[153096.254] (**) |-->Screen "Screen (xrdpdev)" (0)
[153096.254] (**) |   |-->Monitor "Monitor"
[153096.254] (**) |   |-->Device "Video Card (xrdpdev)"
[153096.254] (**) |-->Input Device "xrdpMouse"
[153096.254] (**) |-->Input Device "xrdpKeyboard"
[153096.254] (**) Option "DontVTSwitch" "on"
[153096.254] (**) Option "IgnoreABI" "True"
[153096.254] (**) Option "AutoAddDevices" "off"
[153096.254] (**) Ignoring ABI Version
[153096.254] (**) Not automatically adding devices
[153096.254] (==) Automatically enabling devices
[153096.254] (==) Automatically adding GPU devices
[153096.254] (==) Automatically binding GPU devices
[153096.254] (==) Max clients allowed: 256, resource mask: 0x1fffff
[153096.254] (==) FontPath set to:
    catalogue:/etc/X11/fontpath.d,
    built-ins
[153096.255] (==) ModulePath set to "/usr/lib64/xorg/modules"
[153096.255] (II) Loader magic: 0x5589a2ac2020
[153096.255] (II) Module ABI versions:
[153096.255]    X.Org ANSI C Emulation: 0.4
[153096.255]    X.Org Video Driver: 23.0
[153096.255]    X.Org XInput driver : 24.1
[153096.255]    X.Org Server Extension : 10.0
[153096.257] (II) xfree86: Adding drm device (/dev/dri/card0)
[153096.257] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[153096.278] (--) PCI:*(0:0:15:0) 15ad:0405:15ad:0405 rev 0, Mem @ 0xe8000000/134217728, 0xfe000000/8388608, I/O @ 0x00001070/16, BIOS @ 0x????????/32768
[153096.278] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[153096.278] (II) LoadModule: "dbe"
[153096.278] (II) Module "dbe" already built-in
[153096.278] (II) LoadModule: "ddc"
[153096.278] (II) Module "ddc" already built-in
[153096.278] (II) LoadModule: "extmod"
[153096.278] (II) Module "extmod" already built-in
[153096.278] (II) LoadModule: "glx"
[153096.279] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[153096.281] (II) Module glx: vendor="X.Org Foundation"
[153096.281]    compiled for 1.19.3, module version = 1.0.0
[153096.281]    ABI class: X.Org Server Extension, version 10.0
[153096.281] (II) LoadModule: "int10"
[153096.281] (II) Loading /usr/lib64/xorg/modules/libint10.so
[153096.281] (II) Module int10: vendor="X.Org Foundation"
[153096.281]    compiled for 1.19.3, module version = 1.0.0
[153096.281]    ABI class: X.Org Video Driver, version 23.0
[153096.281] (II) LoadModule: "record"
[153096.281] (II) Module "record" already built-in
[153096.281] (II) LoadModule: "vbe"
[153096.282] (II) Loading /usr/lib64/xorg/modules/libvbe.so
[153096.282] (II) Module vbe: vendor="X.Org Foundation"
[153096.282]    compiled for 1.19.3, module version = 1.1.0
[153096.282]    ABI class: X.Org Video Driver, version 23.0
[153096.282] (II) LoadModule: "xorgxrdp"
[153096.282] (II) Loading /usr/lib64/xorg/modules/libxorgxrdp.so
[153096.282] (II) Module XORGXRDP: vendor="X.Org Foundation"
[153096.282]    compiled for 1.20.4, module version = 0.2.13
[153096.282]    ABI class: X.Org Video Driver, version 24.0
[153096.282] (WW) xorgxrdp: module ABI major version (24) doesn't match the server's version (23)
[153096.282] xorgxrdpSetup:
[153096.282] (II) LoadModule: "fb"
[153096.282] (II) Loading /usr/lib64/xorg/modules/libfb.so
[153096.283] (II) Module fb: vendor="X.Org Foundation"
[153096.284]    compiled for 1.19.3, module version = 1.0.0
[153096.284]    ABI class: X.Org ANSI C Emulation, version 0.4
[153096.284] (II) LoadModule: "xrdpdev"
[153096.284] (II) Loading /usr/lib64/xorg/modules/drivers/xrdpdev_drv.so
[153096.284] (II) Module XRDPDEV: vendor="X.Org Foundation"
[153096.284]    compiled for 1.20.4, module version = 0.2.13
[153096.284]    ABI class: X.Org Video Driver, version 24.0
[153096.284] (WW) xrdpdev: module ABI major version (24) doesn't match the server's version (23)
[153096.284] xrdpdevSetup:
[153096.284] (II) LoadModule: "xrdpmouse"
[153096.284] (II) Loading /usr/lib64/xorg/modules/input/xrdpmouse_drv.so
[153096.284] (II) Module XRDPMOUSE: vendor="X.Org Foundation"
[153096.284]    compiled for 1.20.4, module version = 0.2.13
[153096.284]    Module class: X.Org XInput Driver
[153096.284]    ABI class: X.Org XInput driver, version 24.1
[153096.284] rdpmousePlug:
[153096.284] (II) LoadModule: "xrdpkeyb"
[153096.284] (II) Loading /usr/lib64/xorg/modules/input/xrdpkeyb_drv.so
[153096.284] (II) Module XRDPKEYB: vendor="X.Org Foundation"
[153096.284]    compiled for 1.20.4, module version = 0.2.13
[153096.284]    Module class: X.Org XInput Driver
[153096.284]    ABI class: X.Org XInput driver, version 24.1
[153096.285] rdpkeybPlug:
[153096.285] rdpIdentify:
[153096.285] (II) XRDPDEV: driver for xrdp: XRDPDEV
[153096.285] rdpDriverFunc: op 10
[153096.285] (WW) Falling back to old probe method for XRDPDEV
[153096.285] rdpProbe:
[153096.285] (II) Loading sub module "fb"
[153096.285] (II) LoadModule: "fb"
[153096.285] (II) Loading /usr/lib64/xorg/modules/libfb.so
[153096.285] (II) Module fb: vendor="X.Org Foundation"
[153096.285]    compiled for 1.19.3, module version = 1.0.0
[153096.285]    ABI class: X.Org ANSI C Emulation, version 0.4
[153096.285] (EE) 
[153096.285] (EE) Backtrace:
[153096.285] (EE) 0: Xorg (xorg_backtrace+0x55) [0x5589a283a655]
[153096.285] (EE) 1: Xorg (0x5589a268e000+0x1b0369) [0x5589a283e369]
[153096.285] (EE) 2: /lib64/libpthread.so.0 (0x7f314c6fa000+0xf5e0) [0x7f314c7095e0]
[153096.285] (EE) 3: Xorg (xf86findOption+0x20) [0x5589a2747490]
[153096.285] (EE) 4: Xorg (xf86findOptionValue+0x9) [0x5589a27475c9]
[153096.285] (EE) 5: /usr/lib64/xorg/modules/drivers/xrdpdev_drv.so (0x7f314737b000+0x248c) [0x7f314737d48c]
[153096.285] (EE) 6: Xorg (xf86BusConfig+0x46) [0x5589a2718326]
[153096.285] (EE) 7: Xorg (InitOutput+0x901) [0x5589a2726441]
[153096.285] (EE) 8: Xorg (0x5589a268e000+0x578ab) [0x5589a26e58ab]
[153096.285] (EE) 9: /lib64/libc.so.6 (__libc_start_main+0xf5) [0x7f314c358c05]
[153096.285] (EE) 10: Xorg (0x5589a268e000+0x41bce) [0x5589a26cfbce]
[153096.285] (EE) 
[153096.285] (EE) Segmentation fault at address 0x7
[153096.285] (EE) 
Fatal server error:
[153096.285] (EE) Caught signal 11 (Segmentation fault). Server aborting
[153096.285] (EE) 
[153096.285] (EE) 
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
[153096.285] (EE) Please also check the log file at ".xorgxrdp.16.log" for additional information.
[153096.285] (EE) 
[153096.285] (EE) Server terminated with error (1). Closing log file.

Can anyone help? Is there a problem with my usage or environment?

Mr-LZG commented 4 years ago

Sorry Resubmit under the xorgxrdp project https://github.com/neutrinolabs/xorgxrdp/issues/165