Bug 238736 - x11-drivers/xorgxrdp: segfault on X startup
Summary: x11-drivers/xorgxrdp: segfault on X startup
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Koichiro Iwao
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-21 07:55 UTC by Felix Palmen
Modified: 2019-08-09 01:58 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (meta)


Attachments
log of crashing Xorg (13.05 KB, text/plain)
2019-06-21 07:55 UTC, Felix Palmen
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Palmen 2019-06-21 07:55:11 UTC
Created attachment 205250 [details]
log of crashing Xorg

Trying to use xrdp with the xorgxrdp driver, the X server segfaults on startup.

uname -a:
FreeBSD greg.home.palmen-it.de 12.0-RELEASE-p4 FreeBSD 12.0-RELEASE-p4 #1 r347608M: Wed May 15 11:23:38 CEST 2019     root@vmhost:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

xrdp: 0.9.10_2,1
xorgxrdp: 0.2.10

Xorg.log (excerpt):

[3157239.885] rdpRRSetRdpOutputs: add output 0 left 0 top 0 width 1600 height 960
[3157239.885] rdpLoadLayout: keylayout 0x00000407 variant  display 12
[3157239.916] rdpkeybChangeKeyboardControl:
[3157239.916] rdpkeybChangeKeyboardControl: autoRepeat on
[3157239.917] rdpkeybChangeKeyboardControl:
[3157239.917] rdpkeybChangeKeyboardControl: autoRepeat on
[3157239.921] (EE) 
[3157239.922] (EE) Backtrace:
[3157239.926] (EE) 0: /usr/local/bin/Xorg (?+0x0) [0x40ebc0]
[3157239.990] (EE) 1: /lib/libthr.so.3 (?+0x0) [0x8009fb3e0]
[3157239.994] (EE) 2: /lib/libthr.so.3 (?+0x0) [0x8009fa8e0]
[3157239.997] (EE) 3: ? (?+0x0) [0x7ffffffff193]
[3157240.001] (EE) 4: /usr/local/lib/xorg/modules/libxorgxrdp.so (?+0x0) [0x8019d0450]
[3157240.004] (EE) 5: /usr/local/lib/xorg/modules/libxorgxrdp.so (?+0x0) [0x8019ceb70]
[3157240.008] (EE) 6: /usr/local/lib/xorg/modules/libxorgxrdp.so (?+0x0) [0x8019cd9f0]
[3157240.011] (EE) 7: /usr/local/lib/xorg/modules/libxorgxrdp.so (?+0x0) [0x8019cccf0]
[3157240.014] (EE) 8: /usr/local/bin/Xorg (?+0x0) [0x406070]
[3157240.018] (EE) 9: /usr/local/bin/Xorg (?+0x0) [0x285e70]
[3157240.021] (EE) 10: /usr/local/bin/Xorg (?+0x0) [0x290450]
[3157240.025] (EE) 11: /usr/local/bin/Xorg (?+0x0) [0x279000]
[3157240.028] (EE) 12: ? (?+0x0) [0x80044b000]
[3157240.028] (EE) 
[3157240.028] (EE) Segmentation fault at address 0xffffffffffffffff

I'm attaching the full log just in case.
Comment 1 Koichiro Iwao freebsd_committer 2019-06-21 08:03:57 UTC
Is it installed by pkg? built from ports?
Comment 2 Felix Palmen 2019-06-21 08:15:35 UTC
It's built from ports using poudriere. No special options are set, but I have a global

DEFAULT_VERSIONS+= ssl=libressl samba=4.8 php=7.2 pgsql=10 linux=c7
Comment 3 Felix Palmen 2019-06-21 08:28:46 UTC
I now tried building with

x11-drivers_xorgxrdp_SET+=	DEBUG

but the stacktrace gets worse:

[3159592.537] (EE) Backtrace:
[3159592.542] (EE) 0: ? (?+0xf4d090) [0x80135bc50]
[3159592.546] (EE) 1: ? (?+0xf4d090) [0x1001948470]
[3159592.550] (EE) 2: ? (?+0xf4d090) [0x1001947970]
[3159592.554] (EE) 3: ? (?+0xf4d090) [0x800800f4c223]
[3159592.558] (EE) 4: ? (?+0xf4d090) [0x100291f710]
[3159592.561] (EE) 5: ? (?+0xf4d090) [0x100291dc60]
[3159592.565] (EE) 6: ? (?+0xf4d090) [0x100291ca40]
[3159592.569] (EE) 7: ? (?+0xf4d090) [0x100291bb20]
[3159592.572] (EE) 8: ? (?+0xf4d090) [0x801353100]
[3159592.576] (EE) 9: ? (?+0xf4d090) [0x8011d2f00]
[3159592.580] (EE) 10: ? (?+0xf4d090) [0x8011dd4e0]
[3159592.583] (EE) 11: ? (?+0xf4d090) [0x8011c6090]
[3159592.587] (EE) 12: ? (?+0xf4d090) [0x1001398090]
[3159592.587] (EE) 
[3159592.587] (EE) Segmentation fault at address 0xffffffffffffffff

Do I need to build any other packages with debugging as well to get a meaningful stacktrace here?
Comment 4 Koichiro Iwao freebsd_committer 2019-06-23 02:26:10 UTC
(In reply to Felix Palmen from comment #3)
Yes, the stacktrace is not helpful yet.
Comment 5 Felix Palmen 2019-06-23 07:52:08 UTC
(In reply to Koichiro Iwao from comment #4)
I see that of course ;) Any hint how I could get a useful one? Enabling DEBUG on xorgxrdp made it worse (not even showing filenames any more), and x11-servers/xorg-server doesn't have a DEBUG knob. Am I looking in the wrong place?
Comment 6 Koichiro Iwao freebsd_committer 2019-08-09 01:58:13 UTC
(In reply to Felix Palmen from comment #5)
Can you confirm if your issue is identical to reported to upstream?
https://github.com/neutrinolabs/xorgxrdp/issues/121