Cataclysm-dda: [Linux] Segmentation fault

Created on 18 May 2017  路  7Comments  路  Source: CleverRaven/Cataclysm-DDA

The game throw a segmentation fault with the last code of repository ( the last commit is 166e54c0cdc9dc1f2e28eddf402e3f2946e595e0). It is make with

make RELEASE=1 TILES=1 SOUND=1 LUA=1

The game is not start and this is the output:

md@speccy-laptop ~/Cataclysm-DDA $ ./cataclysm-launcher 
Segmentation fault (core dumped)

The gdb shows:

md@speccy-laptop ~/Cataclysm-DDA $ gdb ./cataclysm-tiles -c core
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./cataclysm-tiles...(no debugging symbols found)...done.
[New LWP 6483]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

warning: the debug information found in "/lib64/ld-2.19.so" does not match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch).

Core was generated by `./cataclysm-tiles'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fc9a596545b in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) quit

My system is:

md@speccy-laptop ~/Cataclysm-DDA $ uname -a
Linux speccy-laptop 3.19.0-32-generic #37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Well, I don't know how I help more you.

Thanks for the awesome game.

core.zip

<Crash / Freeze>

Most helpful comment

Thanks for the additional detail, its an important confirmation of what I
suspected.
Nothing further is required, I know what the solution is.

All 7 comments

Thanks for the report, mostly based on timing i suspect this is related to #17197

I am "walking" back to previous commits in the git and compile for to find the "problematic" commit.

Well, I think that I found the problematic commit: https://github.com/CleverRaven/Cataclysm-DDA/commit/dbf94ea32432320fc874237d93965c069fb674f3

With the previous https://github.com/CleverRaven/Cataclysm-DDA/commit/0f20b5ff894d7ee60d0d98179e9e25593733a3f0, CDDA runs fine

Do you need another something?

Regards.

Thanks for the additional detail, its an important confirmation of what I
suspected.
Nothing further is required, I know what the solution is.

I have made a virtual machine with the last Linux Mint (the 18.1) and in this machine runs fine. My machine has a Linux Mint 17.3.

The configuration of the virtual machine is:

linux-VirtualBox linux # uname -a
Linux linux-VirtualBox 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

linux-VirtualBox linux # dpkg -l | grep g++
ii  g++                                         4:5.3.1-1ubuntu1                           amd64        GNU C++ compiler
ii  g++-5                                       5.4.0-6ubuntu1~16.04.4

linux-VirtualBox linux # dpkg -l | grep lib | grep std |grep c++
ii  libstdc++-5-dev:amd64                       5.4.0-6ubuntu1~16.04.4                     amd64        GNU Standard C++ Library v3 (development files)
ii  libstdc++5:i386                             1:3.3.6-28ubuntu1                          i386         The GNU Standard C++ Library v3
ii  libstdc++6:amd64                            5.4.0-6ubuntu1~16.04.4                     amd64        GNU Standard C++ Library v3
ii  libstdc++6:i386                             5.4.0-6ubuntu1~16.04.4                     i386         GNU Standard C++ Library v3

The real machine (where the CDDA crashs)

md@speccy-laptop ~ $ uname -a
Linux speccy-laptop 3.19.0-32-generic #37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

md@speccy-laptop ~ $ dpkg -l | grep g++
ii  g++                                                   4:4.8.2-1ubuntu6                                         amd64        GNU C++ compiler
ii  g++-4.7                                               4.7.3-12ubuntu1                                          amd64        GNU C++ compiler
ii  g++-4.8                                               4.8.4-2ubuntu1~14.04.3                                   amd64        GNU C++ compiler

md@speccy-laptop ~ $ dpkg -l | grep lib | grep std |grep c++
ii  libstdc++-4.8-dev:amd64                               4.8.4-2ubuntu1~14.04.3                                   amd64        GNU Standard C++ Library v3 (development files)
ii  libstdc++5:i386                                       1:3.3.6-25ubuntu4                                        i386         The GNU Standard C++ Library v3
ii  libstdc++6:amd64                                      4.8.4-2ubuntu1~14.04.3                                   amd64        GNU Standard C++ Library v3
ii  libstdc++6:i386                                       4.8.4-2ubuntu1~14.04.3                                   i386         GNU Standard C++ Library v3
ii  libstdc++6-4.7-dev:amd64                              4.7.3-12ubuntu1                                          amd64        GNU Standard C++ Library v3 (development files)

Pr #21052 should fix this.

Yes, Cataclysm DDA runs. Thanks :beers:

Was this page helpful?
0 / 5 - 0 ratings