X2Go Bug report logs - #467
Segfault when using SDL_Init()

version graph

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

Reported by: plutoo@gmx.com

Date: Sat, 29 Mar 2014 18:10:02 UTC

Severity: normal

Merged with 113, 410

Found in version

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

MIME-Version: 1.0
X-Mailer: MIME-tools 5.502 (Entity 5.502)
X-Loop: owner@bugs.x2go.org
From: owner@bugs.x2go.org (X2Go Bug Tracking System)
Subject: Bug#467 closed by Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
 (Re: Bug#410: Segfault of _X11TransWritev in libNX_X11.so.6 with libQtGui)
Message-ID: <handler.467.c.140415858023235.notifdone@bugs.x2go.org>
References: <20140630200258.Horde.6gkZyskLK2m7TMK0dshuGw6@mail.das-netzwerkteam.de>
X-X2go-PR-Message: they-closed 467
X-X2go-PR-Package: nxagent
X-X2go-PR-Source: nx-libs
Date: Mon, 30 Jun 2014 20:05:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1404158702-23445-2"
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your Bug report
which was filed against the nxagent package:

#467: Segfault when using SDL_Init()

It has been closed by Mike Gabriel <mike.gabriel@das-netzwerkteam.de>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Mike Gabriel <mike.gabriel@das-netzwerkteam.de> by
replying to this email.

X2Go Bug Tracking System
Contact owner@bugs.x2go.org with problems
[Message part 2 (message/rfc822, inline)]
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: Sven Willenberger <swillenberger@upsicorp.com>
Cc: 410@bugs.x2go.org, control@bugs.x2go.org
Subject: Re: Bug#410: Segfault of _X11TransWritev in libNX_X11.so.6 with libQtGui
Date: Mon, 30 Jun 2014 20:02:58 +0000
[Message part 3 (text/plain, inline)]
close #410
close #113
close #467

Hi Sven,

On  Mo 30 Jun 2014 15:32:14 UTC, Sven Willenberger wrote:

>> """ (quoted from above...)
>> +       # 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
>> """

> I went ahead and changed the PKGBUILD file (Archlinux's package
> building spec file) to include the symlinks as you pointed out (and as
> are contained as comments in the Makefile) and rebuilt the package. It
> works!! (pyQt, PySide, vlc all work now). That was the fix that was
> needed and will report this to the package maintainers.

Great that we could track this down...

@all: X2Go BTS issues #113, #410 and #467 have been identified as  
packaging issues on Archlinux. For further reference, see here:


Sven, thanks for your help and providing your distro-specific  
expertise on this...

mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

[Message part 4 (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
From: plutoo@gmx.com
To: submit@bugs.x2go.org
Subject: Segfault when using SDL_Init()
Date: Sat, 29 Mar 2014 19:01:01 +0100
Package: nxagent

-- Description --

When using SDL_Init() in SDL2 I get a segfault in libNX_X11.so. This does not happen using SDL1.

OS: Manjaro Linux 64-bit (Arch Linux based)

$ x2goversion 

-- GDB Backtrace --

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4dafcb0 in _X11TransWritev () from /usr/lib/nx/X11/libNX_X11.so.6

#0  0x00007ffff4dafcb0 in _X11TransWritev () from /usr/lib/nx/X11/libNX_X11.so.6
#1  0x00007ffff4d93b8e in _XSend () from /usr/lib/nx/X11/libNX_X11.so.6
#2  0x00007ffff4d88e69 in XQueryExtension () from /usr/lib/nx/X11/libNX_X11.so.6
#3  0x00007ffff4d7eaf2 in XInitExtension () from /usr/lib/nx/X11/libNX_X11.so.6
#4  0x00007ffff50627bb in XextAddDisplay () from /usr/lib/nx/X11/libNX_Xext.so.6
#5  0x00007ffff5271ee1 in XPanoramiXQueryExtension () from /usr/lib/nx/X11/Xinerama/libXinerama.so.1
#6  0x00007ffff7b8d514 in ?? () from /usr/lib/libSDL2-2.0.so.0
#7  0x00007ffff7b906be in ?? () from /usr/lib/libSDL2-2.0.so.0
#8  0x00007ffff7b84181 in ?? () from /usr/lib/libSDL2-2.0.so.0
#9  0x00007ffff7aec5ff in ?? () from /usr/lib/libSDL2-2.0.so.0
#10 0x00000000004006bb in main () at a.c:4

-- Reproduce --

$ gcc -o a a.c -lSDL2 -I/usr/include/SDL2
$ cat a.c 
#include <SDL.h>

int main() {

    return 0;
Segmentation fault (core dumped)

Send a report that this bug log contains spam.

X2Go Developers <owner@bugs.x2go.org>. Last modified: Sat Jun 22 09:25: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.