RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1374198 - Xephyr crashes when launched over ssh X forwarding from Windows
Summary: Xephyr crashes when launched over ssh X forwarding from Windows
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: xorg-x11-server
Version: 7.3
Hardware: x86_64
OS: All
high
medium
Target Milestone: rc
: ---
Assignee: Adam Jackson
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On: 1317869
Blocks: 1298243 1394840
TreeView+ depends on / blocked
 
Reported: 2016-09-08 08:48 UTC by Tomas Pelka
Modified: 2019-12-16 06:40 UTC (History)
7 users (show)

Fixed In Version: xorg-x11-server-1.19.3-2.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1317869
Environment:
Last Closed: 2017-08-01 12:15:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:1905 0 normal SHIPPED_LIVE Xorg X11 server and drivers bug fix and enhancement update 2017-08-01 16:03:51 UTC

Comment 1 Adam Jackson 2016-09-08 17:12:49 UTC
Ashish, can you attach the output from 'xdpyinfo' with this server? My initial suspicion (that missing MIT-SHM was the problem) doesn't seem to be the case, and I'm curious what else is different about this configuration.

Comment 2 Adam Jackson 2017-01-19 22:33:23 UTC
(In reply to Adam Jackson from comment #1)
> Ashish, can you attach the output from 'xdpyinfo' with this server? My
> initial suspicion (that missing MIT-SHM was the problem) doesn't seem to be
> the case, and I'm curious what else is different about this configuration.

Ping.

Comment 4 Adam Jackson 2017-03-01 20:25:25 UTC
(In reply to Adam Jackson from comment #2)
> (In reply to Adam Jackson from comment #1)
> > Ashish, can you attach the output from 'xdpyinfo' with this server? My
> > initial suspicion (that missing MIT-SHM was the problem) doesn't seem to be
> > the case, and I'm curious what else is different about this configuration.
> 
> Ping.

Monthly-ish ping.

Comment 6 Adam Jackson 2017-03-23 15:44:01 UTC
(In reply to Adam Jackson from comment #4)
> (In reply to Adam Jackson from comment #2)
> > (In reply to Adam Jackson from comment #1)
> > > Ashish, can you attach the output from 'xdpyinfo' with this server? My
> > > initial suspicion (that missing MIT-SHM was the problem) doesn't seem to be
> > > the case, and I'm curious what else is different about this configuration.
> > 
> > Ping.
> 
> Monthly-ish ping.

Ping yet again (also in direct email).

Comment 8 Adam Jackson 2017-03-27 19:34:58 UTC
(EE) Backtrace:
(EE) 0: Xephyr (xorg_backtrace+0x55) [0x5b1ea5]
(EE) 1: Xephyr (0x400000+0x1b5f09) [0x5b5f09]
(EE) 2: /usr/lib64/libpthread.so.0 (0x7f1290848000+0xf370) [0x7f1290857370]
(EE) 3: /usr/lib64/libxcb-image.so.0 (xcb_image_create_native+0x38) [0x7f128fa28748]
(EE) 4: Xephyr (0x400000+0x2da9d) [0x42da9d]
(EE) 5: Xephyr (0x400000+0x15bb5e) [0x55bb5e]
(EE) 6: Xephyr (0x400000+0x79f05) [0x479f05]
(EE) 7: Xephyr (EnableDevice+0x1f0) [0x4a8950]
(EE) 8: Xephyr (0x400000+0xa9895) [0x4a9895]
(EE) 9: Xephyr (0x400000+0x767ab) [0x4767ab]
(EE) 10: /usr/lib64/libc.so.6 (__libc_start_main+0xf5) [0x7f128d58bb35]
(EE) 11: Xephyr (0x400000+0x2a159) [0x42a159]
(EE)
(EE) Segmentation fault at address 0x21

We're trying to create a "hardware" cursor here (ie, letting moba's X server draw the cursor image instead of Xephyr painting it into its own framebuffer). The crash is in xcb_image_create_native, in particular:

  case XCB_IMAGE_FORMAT_XY_BITMAP:
      if (depth != 1)
          return 0;
      /* fall through */
  case XCB_IMAGE_FORMAT_XY_PIXMAP:
      if (depth > 1) {
          fmt = find_format_by_depth(setup, depth);
          if (!fmt)
              return 0;
      }
      return xcb_image_create(width, height, format,
                              setup->bitmap_format_scanline_pad,
                              depth, depth, setup->bitmap_format_scanline_unit,
                              setup->image_byte_order,
                              setup->bitmap_format_bit_order,
                              base, bytes, data);

Note that ->bitmap_format_scanline_pad is 0x21 bytes from the start of the connection setup block. So I assume the connection has died for some reason and we're just not noticing until this point. Hmm.

Comment 10 Adam Jackson 2017-04-05 20:15:04 UTC
Got access to a test environment for this. Upstream's Xephyr works fine, so I suspect this may already be fixed in 7.4....

Comment 11 Adam Jackson 2017-04-06 17:31:54 UTC
Bisecting the upstream X server, this is the first "good" commit:

commit d51cce7992508f366758fa13dd93be24df0947ed
Author: Adam Jackson <ajax>
Date:   Tue Jul 5 13:07:09 2016 -0400

    xephyr: Don't crash if the server advertises zero xv adaptors

After this point Xephyr appears to work just fine with mobaxterm, and in particular I am unable to reproduce the crash from comment #7. This was tested with Fedora 25 not RHEL7.4; it's possible that some library in 7.3 (probably libxcb) had an additional bug that causes that crash.

If testing with a 7.4 chroot also fails to reproduce this, I think we can safely call this one fixed.

Comment 12 Adam Jackson 2017-04-06 20:58:24 UTC
(In reply to Adam Jackson from comment #11)

> After this point Xephyr appears to work just fine with mobaxterm,

Ha ha no that's a lie. It still dies, and for essentially the same reason, just at a different point (xserver's mainloop was rewritten between 1.17 and 1.19, which affects when poll() happens and thus when errors are finally raised). The bug is we do not check for the XVideo extension at all before trying to make requests of it, which xcb treats as a connection error.

Comment 15 Radek Duda 2017-06-14 13:59:21 UTC
moving to VERIFIED:

used host:
rhel7.4
xorg-x11-server-1.19.3-7.el7.x86_64

client : win7
MobaXterm Home Edition v10.2

Comment 16 errata-xmlrpc 2017-08-01 12:15:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1905


Note You need to log in before you can comment on or make changes to this bug.