Debian Bug report logs - #847651
doomsday: Segfaults at startup

version graph

Package: doomsday; Maintainer for doomsday is Debian Games Team <pkg-games-devel@lists.alioth.debian.org>; Source for doomsday is src:doomsday (PTS, buildd, popcon).

Reported by: eingousef <eingousef@gmail.com>

Date: Sat, 10 Dec 2016 10:21:01 UTC

Severity: grave

Found in version doomsday/1.15.8-3

Fixed in version doomsday/1.15.8-4

Done: Markus Koschany <apo@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, eingousef@gmail.com, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#847651; Package doomsday. (Sat, 10 Dec 2016 10:21:04 GMT) (full text, mbox, link).


Acknowledgement sent to eingousef <eingousef@gmail.com>:
New Bug report received and forwarded. Copy sent to eingousef@gmail.com, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>. (Sat, 10 Dec 2016 10:21:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: eingousef <eingousef@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: doomsday: Segfaults at startup
Date: Sat, 10 Dec 2016 11:16:50 +0100
Package: doomsday
Version: 1.15.8-3
Severity: important

Dear Maintainer,

Doomsday just segfaults at startup, producting to following output :

$ doomsday
zsh: segmentation fault  doomsday

And I can't compile the dev version or the official source package. Good luck.

Regards,

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (980, 'stable-updates'), (980, 'stable'), (500, 'oldstable-updates'), (500, 'oldstable'), (90, 'experimental'), (90, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages doomsday depends on:
ii  doomsday-common           1.15.8-3
ii  doomsday-data             1.15.8-3
ii  libc6                     2.24-7
ii  libgcc1                   1:6.2.1-5
ii  libgl1-mesa-glx [libgl1]  13.0.2-1
ii  libqt4-network            4:4.8.7+dfsg-11
ii  libqt4-opengl             4:4.8.7+dfsg-11
ii  libqtcore4                4:4.8.7+dfsg-11
ii  libqtgui4                 4:4.8.7+dfsg-11
ii  libsdl2-2.0-0             2.0.5+dfsg1-1
ii  libsdl2-mixer-2.0-0       2.0.1+dfsg1-1
ii  libstdc++6                6.2.1-5

Versions of packages doomsday recommends:
ii  fluid-soundfont-gm  3.1-5.1

doomsday suggests no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#847651; Package doomsday. (Sun, 11 Dec 2016 14:15:06 GMT) (full text, mbox, link).


Acknowledgement sent to James Cowgill <jcowgill@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Games Team <pkg-games-devel@lists.alioth.debian.org>. (Sun, 11 Dec 2016 14:15:06 GMT) (full text, mbox, link).


Message #10 received at 847651@bugs.debian.org (full text, mbox, reply):

From: James Cowgill <jcowgill@debian.org>
To: eingousef <eingousef@gmail.com>, 847651@bugs.debian.org
Subject: Re: Bug#847651: doomsday: Segfaults at startup
Date: Sun, 11 Dec 2016 14:13:46 +0000
[Message part 1 (text/plain, inline)]
Control: severity -1 grave

On 10/12/16 10:16, eingousef wrote:
> Package: doomsday
> Version: 1.15.8-3
> Severity: important
> 
> Dear Maintainer,
> 
> Doomsday just segfaults at startup, producting to following output :
> 
> $ doomsday
> zsh: segmentation fault  doomsday

I can confirm this. Doomsday is fairly useless at the moment.

> And I can't compile the dev version or the official source package. Good luck.

That's probably an issue to report upstream instead of to Debian.

Thanks,
James

[signature.asc (application/pgp-signature, attachment)]

Severity set to 'grave' from 'important' Request was from James Cowgill <jcowgill@debian.org> to 847651-submit@bugs.debian.org. (Sun, 11 Dec 2016 14:15:06 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#847651; Package doomsday. (Thu, 15 Dec 2016 22:18:09 GMT) (full text, mbox, link).


Acknowledgement sent to Markus Koschany <apo@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Games Team <pkg-games-devel@lists.alioth.debian.org>. (Thu, 15 Dec 2016 22:18:09 GMT) (full text, mbox, link).


Message #17 received at 847651@bugs.debian.org (full text, mbox, reply):

From: Markus Koschany <apo@debian.org>
To: 847651@bugs.debian.org
Subject: Re: Bug#847651: doomsday: Segfaults at startup
Date: Thu, 15 Dec 2016 23:16:50 +0100
[Message part 1 (text/plain, inline)]
On Sun, 11 Dec 2016 14:13:46 +0000 James Cowgill <jcowgill@debian.org>
wrote:
> Control: severity -1 grave
> 
> On 10/12/16 10:16, eingousef wrote:
> > Package: doomsday
> > Version: 1.15.8-3
> > Severity: important
> > 
> > Dear Maintainer,
> > 
> > Doomsday just segfaults at startup, producting to following output :
> > 
> > $ doomsday
> > zsh: segmentation fault  doomsday
> 
> I can confirm this. Doomsday is fairly useless at the moment.

That's true. I had a go at this but I can't figure out what is going
wrong here. A rebuild doesn't resolve the issue.

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#847651; Package doomsday. (Tue, 23 May 2017 11:03:04 GMT) (full text, mbox, link).


Acknowledgement sent to Bernhard Übelacker <bernhardu@mailbox.org>:
Extra info received and forwarded to list. Copy sent to Debian Games Team <pkg-games-devel@lists.alioth.debian.org>. (Tue, 23 May 2017 11:03:04 GMT) (full text, mbox, link).


Message #22 received at 847651@bugs.debian.org (full text, mbox, reply):

From: Bernhard Übelacker <bernhardu@mailbox.org>
To: 847651@bugs.debian.org, Markus Koschany <apo@debian.org>, James Cowgill <jcowgill@debian.org>, eingousef <eingousef@gmail.com>
Subject: Re: Bug#847651: doomsday: Segfaults at startup
Date: Tue, 23 May 2017 13:00:05 +0200
[Message part 1 (text/plain, inline)]
Hello,
tried to reproduce the issue.

I think the problem is that in de::File::parent the method maybeAs()
is called on a NULL pointer.

With the attached patch the crash does not happen.

Kind regards,
Bernhard



# apt install doomsday doomsday-dbgsym doomsday-common-dbgsym
$ gdb -q --args doomsday
Reading symbols from doomsday...Reading symbols from /usr/lib/debug/.build-id/41/6978915c5c4686da064c7ff3a539ef4336958c.debug...done.
done.
(gdb) run
Starting program: /usr/games/doomsday 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
                                                                                                                                                                                  
Program received signal SIGSEGV, Segmentation fault.                                                                                                                              
0x00007ffff476092d in __dynamic_cast () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6                                                                                             
(gdb) bt                                                                                                                                                                          
#0  0x00007ffff476092d in __dynamic_cast () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6                                                                                           
#1  0x00007ffff7574d95 in de::filesys::Node::maybeAs<de::Folder>() (this=<optimized out>) at include/de/filesys/../filesys/node.h:88                                              
#2  0x00007ffff7574d95 in de::File::parent() const (this=<optimized out>) at src/filesys/file.cpp:114                                                                             
#3  0x00007ffff757572b in de::File::description() const (this=this@entry=0x5555560e5850) at src/filesys/file.cpp:146
#4  0x00007ffff757a40e in de::FileSystem::interpret(de::File*) (this=<optimized out>, sourceData=sourceData@entry=0x5555560e5850) at src/filesys/filesystem.cpp:147
#5  0x00007ffff7573415 in de::DirectoryFeed::populateFile(de::Folder&, de::String const&) (this=this@entry=0x55555605e410, folder=..., entryName=...) at src/filesys/directoryfeed.cpp:120
#6  0x00007ffff7573849 in de::DirectoryFeed::populate(de::Folder&) (this=0x55555605e410, folder=...) at src/filesys/directoryfeed.cpp:77
#7  0x00007ffff757f011 in de::Folder::populate(de::Folder::PopulationBehavior) (this=0x5555560dcc80, behavior=de::Folder::PopulateFullTree) at src/filesys/folder.cpp:193
#8  0x00007ffff757f069 in de::Folder::populate(de::Folder::PopulationBehavior) (this=0x555556145070, behavior=behavior@entry=de::Folder::PopulateFullTree) at src/filesys/folder.cpp:203
#9  0x00007ffff757c24d in de::FileSystem::refresh() (this=this@entry=0x5555560b2a50) at src/filesys/filesystem.cpp:66
#10 0x00007ffff75e9be9 in de::App::Instance::initFileSystem(bool) (this=0x5555560b2910, allowPlugins=<optimized out>) at src/core/app.cpp:242
#11 0x00007ffff75e5faa in de::App::initSubsystems(QFlags<de::App::SubsystemInitFlag>) (this=this@entry=0x7fffffffdd80, flags=...) at src/core/app.cpp:592
#12 0x00007ffff6a43115 in de::BaseGuiApp::initSubsystems(QFlags<de::App::SubsystemInitFlag>) (this=0x7fffffffdd70, flags=...) at src/baseguiapp.cpp:106
#13 0x00005555555e48a5 in ClientApp::initialize() (this=0x7fffffffdd70) at src/clientapp.cpp:350
#14 0x00005555555c8605 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at src/main_client.cpp:75
[0001-Avoid-crash-after-parent-returning-NULL-pointer.patch (text/x-patch, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#847651; Package doomsday. (Tue, 23 May 2017 14:27:03 GMT) (full text, mbox, link).


Acknowledgement sent to Markus Koschany <apo@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Games Team <pkg-games-devel@lists.alioth.debian.org>. (Tue, 23 May 2017 14:27:03 GMT) (full text, mbox, link).


Message #27 received at 847651@bugs.debian.org (full text, mbox, reply):

From: Markus Koschany <apo@debian.org>
To: Bernhard Übelacker <bernhardu@mailbox.org>
Cc: 847651@bugs.debian.org
Subject: Re: Bug#847651: doomsday: Segfaults at startup
Date: Tue, 23 May 2017 16:24:51 +0200
[Message part 1 (text/plain, inline)]
Control: tags -1 pending

Am 23.05.2017 um 13:00 schrieb Bernhard Übelacker:
> Hello,
> tried to reproduce the issue.
> 
> I think the problem is that in de::File::parent the method maybeAs()
> is called on a NULL pointer.
> 
> With the attached patch the crash does not happen.

Hello,

thank you for the patch! It seems to do the trick. I have just uploaded
a new revision of doomsday to unstable.

Regards,

Markus


[signature.asc (application/pgp-signature, attachment)]

Added tag(s) pending. Request was from Markus Koschany <apo@debian.org> to 847651-submit@bugs.debian.org. (Tue, 23 May 2017 14:27:03 GMT) (full text, mbox, link).


Reply sent to Markus Koschany <apo@debian.org>:
You have taken responsibility. (Tue, 23 May 2017 15:21:06 GMT) (full text, mbox, link).


Notification sent to eingousef <eingousef@gmail.com>:
Bug acknowledged by developer. (Tue, 23 May 2017 15:21:06 GMT) (full text, mbox, link).


Message #34 received at 847651-close@bugs.debian.org (full text, mbox, reply):

From: Markus Koschany <apo@debian.org>
To: 847651-close@bugs.debian.org
Subject: Bug#847651: fixed in doomsday 1.15.8-4
Date: Tue, 23 May 2017 15:18:46 +0000
Source: doomsday
Source-Version: 1.15.8-4

We believe that the bug you reported is fixed in the latest version of
doomsday, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 847651@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Markus Koschany <apo@debian.org> (supplier of updated doomsday package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 23 May 2017 15:08:36 +0200
Source: doomsday
Binary: doomsday doomsday-server doomsday-common doomsday-data
Architecture: source
Version: 1.15.8-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Changed-By: Markus Koschany <apo@debian.org>
Description:
 doomsday   - enhanced version of the legendary DOOM game
 doomsday-common - enhanced version of the legendary DOOM game - common files
 doomsday-data - enhanced version of the legendary DOOM game - data files
 doomsday-server - enhanced version of the legendary DOOM game - server
Closes: 847651
Changes:
 doomsday (1.15.8-4) unstable; urgency=medium
 .
   * Team upload.
   * Add Node-parent-NULL-pointer.patch and fix startup crash.
     Thanks to Bernhard Übelacker for the patch. (Closes: #847651)
Checksums-Sha1:
 1879275eb516f1036af5429e9e172e2c1c44b0ef 3050 doomsday_1.15.8-4.dsc
 e605b305d35cab9d6e7a2dac91f8d6cd2a246be5 16304 doomsday_1.15.8-4.debian.tar.xz
 8ffc2dddcf99b81f824d161db77454cfea08d149 13710 doomsday_1.15.8-4_amd64.buildinfo
Checksums-Sha256:
 74a3b0beebacf6775e0012eb9d4d07fd21fe1a41098650e0b70a828e08367834 3050 doomsday_1.15.8-4.dsc
 6e5becbe07d73c549042dff9e8b5305a188eaf26ee3e483d4bda03cb75e28777 16304 doomsday_1.15.8-4.debian.tar.xz
 db8362d0e49a9f3ebdc231130a1a7faa0c6963f68fb4484574f20e09e613f537 13710 doomsday_1.15.8-4_amd64.buildinfo
Files:
 5364e5687615e69bd4e89597f642c3a0 3050 games optional doomsday_1.15.8-4.dsc
 c10496e8562a57978acda5c2ee0d10b0 16304 games optional doomsday_1.15.8-4.debian.tar.xz
 8b7b300e3944336f1139c3e8bf95d826 13710 games optional doomsday_1.15.8-4_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQKjBAEBCgCNFiEErPPQiO8y7e9qGoNf2a0UuVE7UeQFAlkkRchfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEFD
RjNEMDg4RUYzMkVERUY2QTFBODM1RkQ5QUQxNEI5NTEzQjUxRTQPHGFwb0BkZWJp
YW4ub3JnAAoJENmtFLlRO1HkZgUP/i1n+RWoZ41mGknbDgk8MdmUFZo7hVbj1JX0
eai95Csyl6KRCDvlUs3Bl0ilJo3ktW50+HUO2MGvvnv9Aw4etyDCiCKGh3lCbiSG
KPXiDv0yPy5yq9VOZbrwLVSlQln42vHJH/hrS/dbSJoSJ2feh2PaXFaoOF+KAe58
lEC8fYrk7ZTElUFF7kvi1jfNtbWfmRI48cvCB6oUeRKMV2eaUoAl1gXIcQSJgOOe
VG2aF15Q6Kv/lpy5qDiRlTojiFhnJjBxTjsWt/1EOJaTkMRS6eExbAbJw2J0SYT3
5Vml9jFdg35b4jPOSuK05+pvu11AleDpdXgBpXvTgogCIveR36RMxCDGEBBecVtT
GLnPx6qVw12HjA57JfuEOQHSWAyFXTO5B80OA3qRbmGFuqJcnPdYVeYJXPhtEyfE
L/zS+1tN6so5BdYJbZKnsG22RmEX/YUqc6lGO9F32MqELm09bbBOLxTl7xPJZPZs
67k87oupR95hUUr/c3OnzMLVz/jJIvI6JGB8PllGI3gpfeGuSRHOZirAJOqMCymr
uBvCy14IDqqZJqy6xaiveVDdgiXotKgttQGDcydw4DLejrOQTxgxoIhsYhf3De94
Yo0ndjLntHYMLrfwidlcfrCzZlTg9bKN3EvIiTUCLpPJJtGqB5VVMiW8+I7Gg4FZ
cIbJXxu9
=HFNY
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 21 Jun 2017 07:27:24 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 15:17:56 2023; Machine Name: bembo

Debian 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.