X2Go Bug report logs - #410
Segfault of _X11TransWritev in libNX_X11.so.6 with libQtGui

version graph

Package: nxagent; Maintainer for nxagent is X2Go Developers <x2go-dev@lists.x2go.org>; Source for nxagent is src:nx-libs.

Reported by: Sven Willenberger <swillenberger@upsicorp.com>

Date: Fri, 24 Jan 2014 02:50:02 UTC

Severity: normal

Merged with 113, 467

Found in version 3.5.0.22

Done: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#410: Segfault of _X11TransWritev in libNX_X11.so.6 with libQtGui
Reply-To: Sven Willenberger <swillenberger@upsicorp.com>, 410@bugs.x2go.org
Resent-From: Sven Willenberger <swillenberger@upsicorp.com>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Thu, 26 Jun 2014 20:50:01 +0000
Resent-Message-ID: <handler.410.B410.140381576124155@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 410
X-X2Go-PR-Package: nxagent
X-X2Go-PR-Keywords: 
Received: via spool by 410-submit@bugs.x2go.org id=B410.140381576124155
          (code B ref 410); Thu, 26 Jun 2014 20:50:01 +0000
Received: (at 410) by bugs.x2go.org; 26 Jun 2014 20:49:21 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
	version=3.3.2
X-Greylist: delayed 586 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Thu, 26 Jun 2014 22:49:20 CEST
Received: from mx-gw-ral1.upsicorp.com (mx-gw-ral1.upsicorp.com [209.34.248.10])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 587105DB1B
	for <410@bugs.x2go.org>; Thu, 26 Jun 2014 22:49:20 +0200 (CEST)
Received: from dogpound (cpe-098-026-067-234.nc.res.rr.com [98.26.67.234])
	by mx-gw-ral1.upsicorp.com (Postfix) with ESMTPSA id 499D49D773;
	Thu, 26 Jun 2014 16:35:00 -0400 (EDT)
Date: Thu, 26 Jun 2014 16:39:24 -0400
From: Sven Willenberger <swillenberger@upsicorp.com>
To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Cc: 410@bugs.x2go.org
Message-ID: <20140626163924.4e60b559@dogpound>
In-Reply-To: <20140612220605.Horde.C9kE3LBXZ1cmFL5CtR1WBw9@mail.das-netzwerkteam.de>
References: <20140123213919.0cba2367@dogpound>
	<20140611213358.Horde.
 bMCYnc5b9oRAwyo99c5Txw1@mail.das-netzwerkteam.de>
	<20140612154842.29af0ea1@
 dogpound>
	<20140612220605.Horde.C9kE3LBXZ1cmFL5CtR1WBw9@mail.das-netzwerkteam.de>
Organization: United Pay Systems
X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.24; x86_64-unknown-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=SHA1;
 boundary="Sig_/V6QIQ_GyO_U=Z=OyPY0jJtQ";
 protocol="application/pkcs7-signature"
[Message part 1 (text/plain, inline)]
So this goes into tracker:

I have isolated the problem to the following change in the nx-libs
Makefile between 3.5.0.21 and 3.5.0.22, which persists through HEAD:

--- nx-libs-3.5.0.21/Makefile   2014-06-14 12:45:27.000000000 -0400
+++ nx-libs-HEAD/Makefile       2014-06-12 16:31:48.000000000 -0400
@@ -3,6 +3,7 @@
 INSTALL_DIR=install -d -m 755
 INSTALL_FILE=install -m 644
 INSTALL_PROGRAM=install -m 755
+INSTALL_SYMLINK=ln -s -f
 COPY_SYMLINK=cp -a
 RM_FILE=rm -f
 RM_DIR=rmdir -p --ignore-fail-on-non-empty
@@ -114,6 +115,13 @@
                                "$$(string_rep "$$dirname" nx-X11/.build-exports/include "$(DESTDIR)$(PREFIX)/include/nx")"/ || true; \
            done; \
 
+       # Provide means for Xinerama support in NX/X2Go sessions. This
+       # This also requires two post-install symlinks:
+       # (DESTDIR)$(NXLIBDIR)/X11/Xinerama/libNX_X11.so.6 -> /usr/<libdir>/libX11.so.6
+       # (DESTDIR)$(NXLIBDIR)/X11/Xinerama/libNX_Xext.so.6 -> /usr/<libdir>/libXext.so.6
+       $(INSTALL_DIR) $(DESTDIR)$(NXLIBDIR)/X11/Xinerama
+       $(INSTALL_SYMLINK) ../libNX_Xinerama.so.1 $(DESTDIR)$(NXLIBDIR)/X11/Xinerama/libXinerama.so.1
+
        $(INSTALL_DIR) $(DESTDIR)$(PREFIX)/include/nx/X11/bitmaps
        $(INSTALL_FILE) nx-X11/.build-exports/include/X11/bitmaps/* \
                        $(DESTDIR)$(PREFIX)/include/nx/X11/bitmaps/
 

Commenting out the Xinerama lines and rebuilding results in a clean run
of my (and your) python scripts as well as VLC player.

I have attached a diff (excepting whitespace differences (diff -ub) of
my system's Xinerama.c (xorg's libXinerama 1.1.3) and the one provided
in x2go's source (based on XFree86).

-- 
Sven Willenberger
United Pay Systems International
http://www.upsicorp.com

[Xinerama_c.diff (text/x-patch, attachment)]
[smime.p7s (application/pkcs7-signature, attachment)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Fri Apr 19 14:05:02 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.