[3ddesktop-dev] [kon@iki.fi: Bug#157016: 3ddesktop segfaults if it can't open the X display]

Attached is bug report from a Debian user.  It should be a matter of
checking whether XOpenDisplay returns NULL or not.

Thanks


-- Attached file included as plaintext by Ecartis --

Received: from ifi.informatik.uni-stuttgart.de (ifi.informatik.uni-stuttgart.de 
[129.69.211.1]) by wwwvis.informatik.uni-stuttgart.de (8.11.6/2.2) with ESMTP 
id g7H7X6r02112 for <magallmo@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>; Sat, 17 Aug 
2002 09:33:06 +0200
Received: from master.debian.org (mail@xxxxxxxxxxxxxxxxx [65.125.64.135]) by 
ifi.informatik.uni-stuttgart.de (8.9.3/2.2) with ESMTP id JAA03291 for 
<marcelo.magallon@xxxxxxxxxxxxxxxxxxxxxxxxxxx>; Sat, 17 Aug 2002 09:33:05 +0200 
(MET DST)
Received: from debbugs by master.debian.org with local (Exim 3.12 1 (Debian))
        id 17fy51-0005VU-00; Sat, 17 Aug 2002 02:33:03 -0500
X-Loop: owner@xxxxxxxxxxxxxxx
Subject: Bug#157016: 3ddesktop segfaults if it can't open the X display
Reply-To: Kalle Olavi Niemitalo <kon@xxxxxx>, 157016@xxxxxxxxxxxxxxx
Resent-From: Kalle Olavi Niemitalo <kon@xxxxxx>
Original-Sender: Kalle Olavi Niemitalo <kon@xxxxxx>
Resent-To: debian-bugs-dist@xxxxxxxxxxxxxxxx
Resent-CC: mmagallo@xxxxxxxxxx (Marcelo E. Magallon),
   3ddesktop@xxxxxxxxxxxxxxxxxxxxxx
Resent-Date: Sat, 17 Aug 2002 07:33:01 GMT
Resent-Message-ID: <handler.157016.B.102956876418372@xxxxxxxxxxxxxxx>
X-Debian-PR-Message: report 157016
X-Debian-PR-Package: 3ddesktop
X-Debian-PR-Keywords: 
Received: via spool by submit@xxxxxxxxxxxxxxx id=B.102956876418372
          (code B ref -1); Sat, 17 Aug 2002 07:33:01 GMT
To: Debian Bug Tracking System <submit@xxxxxxxxxxxxxxx>
X-Accept-Language: fi;q=1.0, en;q=0.9, sv;q=0.5, de;q=0.1
From: Kalle Olavi Niemitalo <kon@xxxxxx>
Date: 17 Aug 2002 10:19:21 +0300
Message-ID: <87znvmne9y.fsf@xxxxxxxxxxxxxxxxxxxxxxx>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Sender: Kalle Olavi Niemitalo <kon@xxxxxx>
Delivered-To: submit@xxxxxxxxxxxxxxx
Resent-Sender: Debian BTS <debbugs@xxxxxxxxxxxxxxxxx>
X-Spam-Status: No, hits=0.5 required=5.0 tests=FORGED_RCVD_FOUND version=2.20
X-Spam-Level: 

Package: 3ddesktop
Version: 0.2.0-1
Severity: minor

When 3ddeskd cannot open the X display, it gets a segmentation fault.

kalle@Astalo:~$ env --ignore-environment 3ddeskd
Can not open display
Segmentation fault
kalle@Astalo:~$ env --ignore-environment DISPLAY=3D:0 3ddeskd
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
Can not open display
Segmentation fault
kalle@Astalo:~$ env --ignore-environment DISPLAY=3D:0 XAUTHORITY=3D/home/ka=
lle/.Xauthority 3ddeskd
Daemon started.  Run 3ddesk to activate.
kalle@Astalo:~$=20

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux Astalo 2.4.18-kon.astalo.1 #1 ke kes=E4=A0=A0 26 12:20:32 EES=
T 2002 i686
Locale: LANG=3Dfi_FI.UTF-8@euro, LC_CTYPE=3Dfi_FI.UTF-8@euro

Versions of packages 3ddesktop depends on:
ii  imlib2 [libimlib2]     1.9.14-7          Imlib is an imaging library fo=
r X=20
ii  libc6                  2.2.5-13          GNU C Library: Shared librarie=
s an
ii  libglut3               3.7-15            the OpenGL Utility Toolkit
ii  libimlib2              1.0.5-2           Powerful image loading and ren=
deri
ii  libstdc++2.10-glibc2.2 1:2.95.4-11       The GNU stdc++ library
ii  libttf2                1.4pre.20011029-1 FreeType 1, The FREE TrueType =
Font
ii  xlibmesa3 [libgl1]     4.1.0-17          XFree86 version of Mesa 3D gra=
phic
ii  xlibs                  4.1.0-17          X Window System client librari=
es

-- no debconf information





Other related posts: