Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upcrashing, double-free memory corruption while trying a new game. #5037
Comments
This comment has been minimized.
This comment has been minimized.
|
I used the instructions from https://wiki.debian.org/HowToGetABacktrace Starting program: /data/shirish/Games/cataclysm-DDA/./cataclysm-tiles Program received signal SIGABRT, Aborted. Thread 2 (Thread 0x7ffff0367700 (LWP 6678)): Thread 1 (Thread 0x7ffff7ee0780 (LWP 6674)):
Quit anyway? (y or n) |
This comment has been minimized.
This comment has been minimized.
|
oh btw, this is the compilation string I'm using to build/compile the game.
I was doing before
but was told/shared that as I'm on 64-bit system :-
The above is better. |
This comment has been minimized.
This comment has been minimized.
|
I was asked by kevingrande to git upto the latest master which I did and still got the memory corruption. This is the latest output via gdb :- Starting program: /data/shirish/Games/cataclysm-DDA/./cataclysm-tiles Program received signal SIGABRT, Aborted. Thread 2 (Thread 0x7ffff0367700 (LWP 6678)): Thread 1 (Thread 0x7ffff7ee0780 (LWP 6674)):
Quit anyway? (y or n) Starting program: /data/shirish/Games/cataclysm-DDA/./cataclysm-tiles Program received signal SIGABRT, Aborted. Thread 2 (Thread 0x7ffff0367700 (LWP 22583)): Thread 1 (Thread 0x7ffff7ee0780 (LWP 22567)):
Quit anyway? (y or n) These are the options I used to generate the above gdb.txt :-
and "show warranty" for details. gives output of corruption then :-
The output from this is shared above. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
lastmikoi
commented
Dec 24, 2013
|
Having the very same issue, under up-to-date ArchLinux 64bit. |
This comment has been minimized.
This comment has been minimized.
lastmikoi
commented
Dec 24, 2013
|
After running valgrind with vgdb-server, I managed to track down the issue :
|
This comment has been minimized.
This comment has been minimized.
|
This looks like this is caused by a bug in It occurs only with windows font files (*.fon) but not with ttf files (I think data/FONTDATA controls this). Downgrading to a previous version of freetype might also help (2.4.11 works fine for me). |
This comment has been minimized.
This comment has been minimized.
|
Ah-ha, thanks for finding that BevapDin. I'd narrowed it down to it being a SDL_ttf issue, since I made a reproducer that's just opening and closing a .fon file, but hadn't managed to find the real issue. |
This comment has been minimized.
This comment has been minimized.
|
Hi all, http://packages.qa.debian.org/f/freetype.html see the changelog :- http://ftp-master.metadata.debian.org/changelogs/main/f/freetype/unstable_changelog freetype (2.5.2-1) unstable; urgency=low
The first one where some fonts made it crash. Although it's also possible that a newer version would be needed for the fix (as the patch shared) was applied in the upstream git repo. on 25th December only. |
This comment has been minimized.
This comment has been minimized.
|
I'm going to close this since it's an upstream bug. |
kevingranade
closed this
Jan 6, 2014
This comment has been minimized.
This comment has been minimized.
|
yup, nothing can be done. I was able to update/upgrade to the latest upstream but hit with the same issue. So either I have to patch it (manually) or await for 2.5.3 release which might happen over due course. |
This comment has been minimized.
This comment has been minimized.
|
Try the workaround I posted, it's not actually a fatal error, it's just |
shirishag75 commentedDec 13, 2013
Hi all,
I am on Debian testing 64-bit. I am using the git master and compiling. The last few days it has been crashing after the game has been compiled in. This is the error I'm getting :-
~/games/cataclysm-DDA$ ./cataclysm-tiles
*** Error in `./cataclysm-tiles': double free or corruption (fasttop): 0x00000000020da420 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7aa16)[0x7feb6cc3da16]
/lib/x86_64-linux-gnu/libc.so.6(+0x7b793)[0x7feb6cc3e793]
/usr/lib/x86_64-linux-gnu/libSDL_ttf-2.0.so.0(TTF_CloseFont+0x2c)[0x7feb6de63b1c]
./cataclysm-tiles[0x9e67ad]
./cataclysm-tiles[0x9e71c8]
./cataclysm-tiles[0x4c4ca1]
./cataclysm-tiles[0x6c19e7]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7feb6cbe4995]
./cataclysm-tiles[0x406fb9]
======= Memory map: ========
00400000-00c3a000 r-xp 00000000 08:08 21239585 /data/shirish/Games/cataclysm-DDA/cataclysm-tiles
00e3a000-00e3f000 rw-p 0083a000 08:08 21239585 /data/shirish/Games/cataclysm-DDA/cataclysm-tiles
00e3f000-00e5f000 rw-p 00000000 00:00 0
02048000-020ea000 rw-p 00000000 00:00 0 [heap]
7feb5c000000-7feb5c021000 rw-p 00000000 00:00 0
7feb5c021000-7feb60000000 ---p 00000000 00:00 0
7feb61270000-7feb61271000 ---p 00000000 00:00 0
7feb61271000-7feb61a71000 rw-p 00000000 00:00 0
7feb65724000-7feb65a72000 rw-s 00000000 00:04 21626900 /SYSV00000000 (deleted)
7feb65a72000-7feb65a77000 r-xp 00000000 08:06 3939697 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7feb65a77000-7feb65c76000 ---p 00005000 08:06 3939697 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7feb65c76000-7feb65c77000 r--p 00004000 08:06 3939697 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7feb65c77000-7feb65c78000 rw-p 00005000 08:06 3939697 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7feb65c78000-7feb65c81000 r-xp 00000000 08:06 3939866 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7feb65c81000-7feb65e80000 ---p 00009000 08:06 3939866 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7feb65e80000-7feb65e81000 r--p 00008000 08:06 3939866 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7feb65e81000-7feb65e82000 rw-p 00009000 08:06 3939866 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7feb65e82000-7feb65e8c000 r-xp 00000000 08:06 3939699 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7feb65e8c000-7feb6608b000 ---p 0000a000 08:06 3939699 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7feb6608b000-7feb6608c000 r--p 00009000 08:06 3939699 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7feb6608c000-7feb6608d000 rw-p 0000a000 08:06 3939699 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7feb6608d000-7feb6608e000 ---p 00000000 00:00 0
7feb6608e000-7feb6688e000 rw-p 00000000 00:00 0 [stack:22199]
7feb6688e000-7feb66a17000 r--p 00000000 08:06 3933273 /usr/lib/locale/locale-archive
7feb66a17000-7feb66a2a000 r-xp 00000000 08:06 8128726 /lib/x86_64-linux-gnu/libresolv-2.17.so
7feb66a2a000-7feb66c2a000 ---p 00013000 08:06 8128726 /lib/x86_64-linux-gnu/libresolv-2.17.so
7feb66c2a000-7feb66c2b000 r--p 00013000 08:06 8128726 /lib/x86_64-linux-gnu/libresolv-2.17.so
7feb66c2b000-7feb66c2c000 rw-p 00014000 08:06 8128726 /lib/x86_64-linux-gnu/libresolv-2.17.so
7feb66c2c000-7feb66c2e000 rw-p 00000000 00:00 0
7feb66c2e000-7feb66c34000 r-xp 00000000 08:06 3938852 /usr/lib/x86_64-linux-gnu/libogg.so.0.8.1
7feb66c34000-7feb66e33000 ---p 00006000 08:06 3938852 /usr/lib/x86_64-linux-gnu/libogg.so.0.8.1
7feb66e33000-7feb66e34000 r--p 00005000 08:06 3938852 /usr/lib/x86_64-linux-gnu/libogg.so.0.8.1
7feb66e34000-7feb66e35000 rw-p 00006000 08:06 3938852 /usr/lib/x86_64-linux-gnu/libogg.so.0.8.1
7feb66e35000-7feb66e61000 r-xp 00000000 08:06 3940257 /usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.5
7feb66e61000-7feb67060000 ---p 0002c000 08:06 3940257 /usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.5
7feb67060000-7feb67061000 r--p 0002b000 08:06 3940257 /usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.5
7feb67061000-7feb67062000 rw-p 0002c000 08:06 3940257 /usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.5
7feb67062000-7feb67315000 r-xp 00000000 08:06 3941862 /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7feb67315000-7feb67514000 ---p 002b3000 08:06 3941862 /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7feb67514000-7feb67530000 r--p 002b2000 08:06 3941862 /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7feb67530000-7feb67531000 rw-p 002ce000 08:06 3941862 /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.8
7feb67531000-7feb67561000 r-xp 00000000 08:06 3937544 /usr/lib/x86_64-linux-gnu/libFLAC.so.8.3.0
7feb67561000-7feb67761000 ---p 00030000 08:06 3937544 /usr/lib/x86_64-linux-gnu/libFLAC.so.8.3.0
7feb67761000-7feb67762000 r--p 00030000 08:06 3937544 /usr/lib/x86_64-linux-gnu/libFLAC.so.8.3.0
7feb67762000-7feb67763000 rw-p 00031000 08:06 3937544 /usr/lib/x86_64-linux-gnu/libFLAC.so.8.3.0
7feb67763000-7feb67778000 r-xp 00000000 08:06 8128742 /lib/x86_64-linux-gnu/libnsl-2.17.so
7feb67778000-7feb67977000 ---p 00015000 08:06 8128742 /lib/x86_64-linux-gnu/libnsl-2.17.so
7feb67977000-7feb67978000 r--p 00014000 08:06 8128742 /lib/x86_64-linux-gnu/libnsl-2.17.so
7feb67978000-7feb67979000 rw-p 00015000 08:06 8128742 /lib/x86_64-linux-gnu/libnsl-2.17.so
7feb67979000-7feb6797b000 rw-p 00000000 00:00 0
7feb6797b000-7feb6798a000 r-xp 00000000 08:06 3949408 /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7feb6798a000-7feb67b89000 ---p 0000f000 08:06 3949408 /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7feb67b89000-7feb67b8a000 r--p 0000e000 08:06 3949408 /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7feb67b8a000-7feb67b8b000 rw-p 0000f000 08:06 3949408 /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
7feb67b8b000-7feb67b90000 r-xp 00000000 08:06 3939264 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7feb67b90000-7feb67d8f000 ---p 00005000 08:06 3939264 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7feb67d8f000-7feb67d90000 rw-p 00004000 08:06 3939264 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7feb67d90000-7feb67d93000 r-xp 00000000 08:06 3939268 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7feb67d93000-7feb67f92000 ---p 00003000 08:06 3939268 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7feb67f92000-7feb67f93000 r--p 00002000 08:06 3939268 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7feb67f93000-7feb67f94000 rw-p 00003000 08:06 3939268 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7feb67f94000-7feb67f98000 r-xp 00000000 08:06 8126632 /lib/x86_64-linux-gnu/libattr.so.1.1.0
7feb67f98000-7feb68197000 ---p 00004000 08:06 8126632 /lib/x86_64-linux-gnu/libattr.so.1.1.0
7feb68197000-7feb68198000 r--p 00003000 08:06 8126632 /lib/x86_64-linux-gnu/libattr.so.1.1.0
7feb68198000-7feb68199000 rw-p 00004000 08:06 8126632 /lib/x86_64-linux-gnu/libattr.so.1.1.0
7feb68199000-7feb6819e000 r-xp 00000000 08:06 3941858 /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7feb6819e000-7feb6839d000 ---p 00005000 08:06 3941858 /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7feb6839d000-7feb6839e000 rw-p 00004000 08:06 3941858 /usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1
7feb6839e000-7feb683ff000 r-xp 00000000 08:06 3946242 /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25
7feb683ff000-7feb685ff000 ---p 00061000 08:06 3946242 /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25
7feb685ff000-7feb68601000 r--p 00061000 08:06 3946242 /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25
7feb68601000-7feb68602000 rw-p 00063000 08:06 3946242 /usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.25
7feb68602000-7feb68606000 rw-p 00000000 00:00 0
7feb68606000-7feb6860f000 r-xp 00000000 08:06 8130060 /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7feb6860f000-7feb6880e000 ---p 00009000 08:06 8130060 /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7feb6880e000-7feb6880f000 r--p 00008000 08:06 8130060 /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7feb6880f000-7feb68810000 rw-p 00009000 08:06 8130060 /lib/x86_64-linux-gnu/libwrap.so.0.7.6
7feb68810000-7feb68811000 rw-p 00000000 00:00 0
7feb68811000-7feb68816000 r-xp 00000000 08:06 3953178 /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
7feb68816000-7feb68a15000 ---p 00005000 08:06 3953178 /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
7feb68a15000-7feb68a16000 r--p 00004000 08:06 3953178 /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
7feb68a16000-7feb68a17000 rw-p 00005000 08:06 3953178 /usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
7feb68a17000-7feb68a1e000 r-xp 00000000 08:06 3940800 /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7feb68a1e000-7feb68c1d000 ---p 00007000 08:06 3940800 /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7feb68c1d000-7feb68c1e000 rw-p 00006000 08:06 3940800 /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7feb68c1e000-7feb68c35000 r-xp 00000000 08:06 3940798 /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7feb68c35000-7feb68e34000 ---p 00017000 08:06 3940798 /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7feb68e34000-7feb68e36000 rw-p 00016000 08:06 3940798 /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7feb68e36000-7feb68e39000 rw-p 00000000 00:00 0
7feb68e39000-7feb68e3a000 r-xp 00000000 08:06 3956082 /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7feb68e3a000-7feb69039000 ---p 00001000 08:06 3956082 /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7feb69039000-7feb6903a000 r--p 00000000 08:06 3956082 /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7feb6903a000-7feb6903b000 rw-p 00001000 08:06 3956082 /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7feb6903b000-7feb69046000 r-xp 00000000 08:06 3939305 /usr/lib/x86_64-linux-gnu/libjbig.so.0.0.0
7feb69046000-7feb69246000 ---p 0000b000 08:06 3939305 /usr/lib/x86_64-linux-gnu/libjbig.so.0.0.0
7feb69246000-7feb69249000 rw-p 0000b000 08:06 3939305 /usr/lib/x86_64-linux-gnu/libjbig.so.0.0.0
7feb69249000-7feb6926b000 r-xp 00000000 08:06 8126504 /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7feb6926b000-7feb6946a000 ---p 00022000 08:06 8126504 /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7feb6946a000-7feb6946b000 r--p 00021000 08:06 8126504 /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7feb6946b000-7feb6946c000 rw-p 00022000 08:06 8126504 /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7feb6946c000-7feb69491000 r-xp 00000000 08:06 8126476 /lib/x86_64-linux-gnu/libtinfo.so.5.9
7feb69491000-7feb69690000 ---p 00025000 08:06 8126476 /lib/x86_64-linux-gnu/libtinfo.so.5.9
7feb69690000-7feb69694000 r--p 00024000 08:06 8126476 /lib/x86_64-linux-gnu/libtinfo.so.5.9
7feb69694000-7feb69695000 rw-p 00028000 08:06 8126476 /lib/x86_64-linux-gnu/libtinfo.so.5.9
7feb69695000-7feb696c4000 r-xp 00000000 08:06 8126473 /lib/x86_64-linux-gnu/libncursesw.so.5.9
7feb696c4000-7feb698c3000 ---p 0002f000 08:06 8126473 /lib/x86_64-linux-gnu/libncursesw.so.5.9
7feb698c3000-7feb698c4000 r--p 0002e000 08:06 8126473 /lib/x86_64-linux-gnu/libncursesw.so.5.9
7feb698c4000-7feb698c5000 rw-p 0002f000 08:06 8126473 /lib/x86_64-linux-gnu/libncursesw.so.5.9
7feb698c5000-7feb699da000 r-xp 00000000 08:06 8126552 /lib/x86_64-linux-gnu/libslang.so.2.2.4
7feb699da000-7feb69bd9000 ---p 00115000 08:06 8126552 /lib/x86_64-linux-gnu/libslang.so.2.2.4
7feb69bd9000-7feb69bdd000 r--p 00114000 08:06 8126552 /lib/x86_64-linux-gnu/libslang.so.2.2.4
7feb69bdd000-7feb69bf7000 rw-p 00118000 08:06 8126552 /lib/x86_64-linux-gnu/libslang.so.2.2.4
7feb69bf7000-7feb69c5b000 rw-p 00000000 00:00 0
7feb69c5b000-7feb69c78000 r-xp 00000000 08:06 3935170 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7feb69c78000-7feb69e77000 ---p 0001d000 08:06 3935170 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7feb69e77000-7feb69e78000 r--p 0001c000 08:06 3935170 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7feb69e78000-7feb69e79000 rw-p 0001d000 08:06 3935170 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7feb69e79000-7feb69ebe000 r-xp 00000000 08:06 8128354 /lib/x86_64-linux-gnu/libdbus-1.so.3.7.6
7feb69ebe000-7feb6a0bd000 ---p 00045000 08:06 8128354 /lib/x86_64-linux-gnu/libdbus-1.so.3.7.6
7feb6a0bd000-7feb6a0be000 r--p 00044000 08:06 8128354 /lib/x86_64-linux-gnu/libdbus-1.so.3.7.6
7feb6a0be000-7feb6a0bf000 rw-p 00045000 08:06 8128354 /lib/x86_64-linux-gnu/libdbus-1.so.3.7.6
7feb6a0bf000-7feb6a0c9000 r-xp 00000000 08:06 8127263 /lib/x86_64-linux-gnu/libjson-c.so.2.0.0
7feb6a0c9000-7feb6a2c8000 ---p 0000a000 08:06 8127263 /lib/x86_64-linux-gnu/libjson-c.so.2.0.0
7feb6a2c8000-7feb6a2c9000 r--p 00009000 08:06 8127263 /lib/x86_64-linux-gnu/libjson-c.so.2.0.0
7feb6a2c9000-7feb6a2ca000 rw-p 0000a000 08:06 8127263 /lib/x86_64-linux-gnu/libjson-c.so.2.0.0
7feb6a2ca000-7feb6a2ce000 r-xp 00000000 08:06 8130042 /lib/x86_64-linux-gnu/libcap.so.2.22
7feb6a2ce000-7feb6a4cd000 ---p 00004000 08:06 8130042 /lib/x86_64-linux-gnu/libcap.so.2.22
7feb6a4cd000-7feb6a4ce000 rw-p 00003000 08:06 8130042 /lib/x86_64-linux-gnu/libcap.so.2.22
7feb6a4ce000-7feb6a538000 r-xp 00000000 08:06 4457036 /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-4.0.so
7feb6a538000-7feb6a737000 ---p 0006a000 08:06 4457036 /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-4.0.so
7feb6a737000-7feb6a738000 r--p 00069000 08:06 4457036 /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-4.0.so
7feb6a738000-7feb6a73a000 rw-p 0006a000 08:06 4457036 /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-4.0.so
7feb6a73a000-7feb6a741000 r-xp 00000000 08:06 8128722 /lib/x86_64-linux-gnu/librt-2.17.so
7feb6a741000-7feb6a940000 ---p 00007000 08:06 8128722 /lib/x86_64-linux-gnu/librt-2.17.so
7feb6a940000-7feb6a941000 r--p 00006000 08:06 8128722 /lib/x86_64-linux-gnu/librt-2.17.so
7feb6a941000-7feb6a942000 rw-p 00007000 08:06 8128722 /lib/x86_64-linux-gnu/librt-2.17.soAborted (core dumped)
I am on the latest master :-
As per documentation, just did a checkout to make sure I'm at the head.
This is/was how I was building it :-
I went to IRC and dv_ and Narc did try to help me out and debug the issue. This was the result of their contribution :-
I still am getting the error. Any help would be nice. If any more info. is needed please lemme know.