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 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#467: Segfault when using SDL_Init()
Reply-To: plutoo@gmx.com, 467@bugs.x2go.org
Resent-From: plutoo@gmx.com
Resent-To: x2go-dev@lists.berlios.de
Resent-CC: X2Go Developers <x2go-dev@lists.berlios.de>
X-Loop: owner@bugs.x2go.org
Resent-Date: Sat, 29 Mar 2014 18:10:02 +0000
Resent-Message-ID: <handler.467.B.139611636428175@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 467
X-X2Go-PR-Package: nxagent
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.139611636428175
          (code B); Sat, 29 Mar 2014 18:10:02 +0000
Received: (at submit) by bugs.x2go.org; 29 Mar 2014 18:06:04 +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=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM
	autolearn=ham version=3.3.2
X-Greylist: delayed 301 seconds by postgrey-1.34 at ymir; Sat, 29 Mar 2014 19:06:04 CET
Received: from mout.gmx.net (mout.gmx.net [212.227.15.18])
	by ymir (Postfix) with ESMTP id 136295DB1B
	for <submit@bugs.x2go.org>; Sat, 29 Mar 2014 19:06:04 +0100 (CET)
Received: from mailout-eu.gmx.com ([10.1.101.214]) by mrigmx.server.lan
 (mrigmx001) with ESMTP (Nemesis) id 0Lkmks-1X2CS30ZjI-00aY5e for
 <submit@bugs.x2go.org>; Sat, 29 Mar 2014 19:01:03 +0100
Received: (qmail 7257 invoked by uid 0); 29 Mar 2014 18:01:03 -0000
Received: from 213.80.117.195 by rms-eu007 with HTTP
Content-Type: text/plain; charset="utf-8"
Date: Sat, 29 Mar 2014 19:01:01 +0100
From: plutoo@gmx.com
Message-ID: <20140329180101.33720@gmx.com>
MIME-Version: 1.0
To: submit@bugs.x2go.org
X-Flags: 0001
X-Mailer: GMX.com Web Mailer
x-registered: 0
Content-Transfer-Encoding: 8bit
X-GMX-UID: CW9Fc0hseSEqJLqaKnghyd1+IGRvbwCb
Package: nxagent
Version: 3.5.0.22

-- 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 
x2goagent: 3.5.0.22
x2goserver: 4.0.1.13
x2goserver-compat: 4.0.1.13
x2goserver-extensions: 4.0.1.13
x2goserver-fmbindings: 4.0.1.13
x2goserver-printing: 4.0.1.13
x2goserver-pyhoca: 4.0.1.13

-- 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() {
    SDL_Init(SDL_INIT_EVERYTHING);

    SDL_Quit();
    return 0;
}
$./a
Segmentation fault (core dumped)

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Mon Aug 3 23:54:29 2020; 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.