Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old December 26, 2013, 11:25   #1
schuay
Rookie
 
Join Date: Dec 2013
Posts: 3
schuay is on a distinguished road
3.5.0: Double free or corruption in SDL

Hi,

I actually wanted to create a bug on the tracker but there was no 'Register' button to be found anywhere.

On Arch, 3.5.0 causes:

Code:
*** Error in `/usr/bin/angband': double free or corruption (fasttop): 0x0000000000863980 ***
when started with -msdl. SDL versions:

local/sdl 1.2.15-5
local/sdl_ttf 2.0.11-2

Backtrace (without debugging symbols):

Code:
(gdb) bt
#0  0x00007ffff669c319 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff669d718 in abort () from /usr/lib/libc.so.6
#2  0x00007ffff66d9da4 in __libc_message () from /usr/lib/libc.so.6
#3  0x00007ffff66df56e in malloc_printerr () from /usr/lib/libc.so.6
#4  0x00007ffff66e0247 in _int_free () from /usr/lib/libc.so.6
#5  0x00007ffff6f6699c in TTF_CloseFont () from /usr/lib/libSDL_ttf-2.0.so.0
#6  0x000000000055311b in ?? ()
#7  0x000000000055a40b in ?? ()
#8  0x000000000055a79b in ?? ()
#9  0x000000000054d1d9 in ?? ()
#10 0x00007ffff6688b05 in __libc_start_main () from /usr/lib/libc.so.6
#11 0x00000000004043b9 in ?? ()
Our build process: https://projects.archlinux.org/svnto...ckages/angband
schuay is offline   Reply With Quote
Old December 26, 2013, 11:45   #2
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,951
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by schuay View Post
Hi,

I actually wanted to create a bug on the tracker but there was no 'Register' button to be found anywhere.

On Arch, 3.5.0 causes:

Code:
*** Error in `/usr/bin/angband': double free or corruption (fasttop): 0x0000000000863980 ***
when started with -msdl. SDL versions:

local/sdl 1.2.15-5
local/sdl_ttf 2.0.11-2

Backtrace (without debugging symbols):

Code:
(gdb) bt
#0  0x00007ffff669c319 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff669d718 in abort () from /usr/lib/libc.so.6
#2  0x00007ffff66d9da4 in __libc_message () from /usr/lib/libc.so.6
#3  0x00007ffff66df56e in malloc_printerr () from /usr/lib/libc.so.6
#4  0x00007ffff66e0247 in _int_free () from /usr/lib/libc.so.6
#5  0x00007ffff6f6699c in TTF_CloseFont () from /usr/lib/libSDL_ttf-2.0.so.0
#6  0x000000000055311b in ?? ()
#7  0x000000000055a40b in ?? ()
#8  0x000000000055a79b in ?? ()
#9  0x000000000054d1d9 in ?? ()
#10 0x00007ffff6688b05 in __libc_start_main () from /usr/lib/libc.so.6
#11 0x00000000004043b9 in ?? ()
Our build process: https://projects.archlinux.org/svnto...ckages/angband
Is that straight after starting it, or when you exit? We get reports of this kind of stuff on SDL sometimes but they're hard to reproduce.

Also, Angband doesn't depend on libglade - hasn't for ages.
__________________
takkaria whispers something about options. -more-
takkaria is offline   Reply With Quote
Old December 26, 2013, 11:51   #3
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,480
Donated: $60
Nick will become famous soon enoughNick will become famous soon enough
Thanks for the report.

As far as I know, this has not turned up before; there was a bug a while ago with .wav sound files in SDL, but I believe that has gone since they were changed to mp3s.

Is the build process you linked just an example? It says it's for 3.4.1.

If you (or anyone) could get a backtrace with debugging symbols on Arch, that would be helpful.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old December 26, 2013, 12:04   #4
schuay
Rookie
 
Join Date: Dec 2013
Posts: 3
schuay is on a distinguished road
Quote:
Originally Posted by takkaria View Post
Is that straight after starting it, or when you exit?
See the new backtrace below.

Quote:
Originally Posted by takkaria View Post
Also, Angband doesn't depend on libglade - hasn't for ages.
Thanks I'll fix that.

Quote:
Is the build process you linked just an example? It says it's for 3.4.1.
The 3.5.0 one is not released yet, but so far there are no changes other than 3.4.1->3.5.0 and the md5sums.

Quote:
If you (or anyone) could get a backtrace with debugging symbols on Arch, that would be helpful.
Code:
(gdb) bt
#0  0x00007ffff669c319 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff669d718 in abort () from /usr/lib/libc.so.6
#2  0x00007ffff66d9da4 in __libc_message () from /usr/lib/libc.so.6
#3  0x00007ffff66df56e in malloc_printerr () from /usr/lib/libc.so.6
#4  0x00007ffff66e0247 in _int_free () from /usr/lib/libc.so.6
#5  0x00007ffff6f6699c in TTF_CloseFont () from /usr/lib/libSDL_ttf-2.0.so.0
#6  0x000000000055311b in sdl_CheckFont (fontname=0x59bc80 "6x10x.fon", width=0x7fffffffe090, height=0x7fffffffe08c) at main-sdl.c:457
#7  0x000000000055a40b in init_sdl_local () at main-sdl.c:3636
#8  0x000000000055a79b in init_sdl (argc=1, argv=0x7fffffffe5f8) at main-sdl.c:3753
#9  0x000000000054d1d9 in main (argc=1, argv=0x7fffffffe5f8) at main.c:571
schuay is offline   Reply With Quote
Old December 26, 2013, 12:18   #5
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,480
Donated: $60
Nick will become famous soon enoughNick will become famous soon enough
This thread indicates that this may be an SDL bug.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old December 26, 2013, 12:24   #6
schuay
Rookie
 
Join Date: Dec 2013
Posts: 3
schuay is on a distinguished road
Right that seems to be it
schuay is offline   Reply With Quote
Old January 6, 2014, 13:53   #7
PowerWyrm
Prophet
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,955
PowerWyrm is on a distinguished road
Just hit the same problem with my variant: suddenly, the SDL client stopped working. The reason is a bug in FreeType 2.5.2. To fix the problem, either build your SDL port with FreeType 2.5.0.1, or get the source of the 2.5.2 tag, apply the diff from issue #40997 from the git repository and recompile. It worked perfectly for me.
__________________
PWMAngband variant maintainer - check http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Double and triple tiles Nick Vanilla 10 November 4, 2010 10:42
memory corruption in Vanilla jbu Development 9 August 2, 2010 18:18
Double moves Fendell Orcbane Vanilla 15 May 15, 2010 23:39
Double identify? Nightmarjoo Vanilla 7 September 2, 2009 18:36
[Feature Request] Traps and Double Negatives MKula Vanilla 27 March 24, 2008 00:22


All times are GMT +1. The time now is 07:39.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.