Bug#822179: xorg: X.Org X Server starts normally, crashes with Segmentation fault on starting any application
- To: James Clarke <jrtc27@jrtc27.com>
- Cc: Julien Cristau <jcristau@debian.org>, 822179@bugs.debian.org, Matthias <Matthias.L2@web.de>, debian-hurd@lists.debian.org
- Subject: Bug#822179: xorg: X.Org X Server starts normally, crashes with Segmentation fault on starting any application
- From: Samuel Thibault <sthibault@debian.org>
- Date: Sat, 23 Apr 2016 16:06:11 +0200
- Message-id: <[🔎] 20160423140611.GK2829@var.home>
- Mail-followup-to: James Clarke <jrtc27@jrtc27.com>, Julien Cristau <jcristau@debian.org>, 822179@bugs.debian.org, Matthias <Matthias.L2@web.de>, debian-hurd@lists.debian.org
- Reply-to: Samuel Thibault <sthibault@debian.org>, 822179@bugs.debian.org
- In-reply-to: <[🔎] 27ACDA0A-070D-466D-8A99-1A7559B2EA31@jrtc27.com>
- References: <[🔎] 146127336221.1174.4075042082403837664.reportbug@debian> <[🔎] 20160422193220.GD2718@betterave.cristau.org> <[🔎] CAEF8D25-2589-4FF0-A42B-4A79ADEAB424@jrtc27.com> <[🔎] 20160423135526.GH2829@var.home> <[🔎] 27ACDA0A-070D-466D-8A99-1A7559B2EA31@jrtc27.com>
James Clarke, on Sat 23 Apr 2016 15:03:29 +0100, wrote:
> > AIUI, nothing uses XFD_SETSIZE actually, it's just the default value
> > that X uses for FD_SETSIZE in case it's not already defined.
>
> No, in e.g. os/WaitFor.c in xorg-server, there are for loops using
> howmany(XFD_SETSIZE, NFDBITS) to iterate over each element,
Ergl, ok, so XFD_SETSIZE also needs to be fixed.
> These lines are fine; the indexing is guarded by the howmany check, and uses
> the real FD_SETSIZE.
Ah, right. Overlooked the whole thing too fast.
Sorry for the noise,
Samuel
Reply to: