Self-compiled xorg-server 1.20.0 crashes at startup, buffer overflow

tumtum00 tumtum00@protonmail.com
Mon Jul 30 17:27:00 GMT 2018


Self-compiled xorg-server 1.20.0 crashes at startup, buffer overflow

Hello all,

after building xorg-server 1.20.0 without errors, the XWin binary crashes at startup due to a buffer overflow. XWin 1.20.0 from Cygwin repos works as expected.

Setup:
- Freshly installed Win7 x86_64 VM
- Cygwin x86_64
- Dependencies installed as described in https://x.cygwin.com/docs/cg/prog-build-prerequisites.html, plus xcb-composite-devel
- Applied the following patches to my Cygwin environment, otherwise the build would fail:
  https://github.com/cygwinports/cygport/commit/1072fd872757bd7aa97fa8daf95ed13f70f56291
  https://github.com/cygwinports/cygport/commit/c4e0f0ec5f9a5a691fd19efe2bda3cdf278baef5
- Downloaded patched xorg-server 1.20.0-2 sources as described in https://x.cygwin.com/docs/cg/prog-obtaining-source.html, "Obtaining via Cygwin setup"

Build:
  $ cygport --64 xorg-server.cygport prep
  $ cygport --64 xorg-server.cygport compile

XWin binary
  /usr/src/xorg-server-1.20.0-2.src/xorg-server-1.20.0-2.x86_64/src/xserver-cygwin-1.20.0-2/x86_64-pc-cygwin/hw/xwin/XWin
is then executed.

The `--buildtype=debug` option was added to `cygmeson` in `xorg-server.cygport` to generate the attached reports.

I'm out of ideas on how to continue debugging this. Help would be much appreciated.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-bt-full
Type: application/octet-stream
Size: 6089 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20180730/80ebe5a8/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: XWin.0.log
URL: <http://cygwin.com/pipermail/cygwin/attachments/20180730/80ebe5a8/attachment.log>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygckeck.out
Type: application/octet-stream
Size: 72878 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20180730/80ebe5a8/attachment-0001.obj>
-------------- next part --------------

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list