You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug report was migrated from our old Bugzilla tracker.
Reported in version: 1.2.11 Reported for operating system, platform: Linux, x86
Comments on the original bug report:
On 2007-05-15 08:12:19 +0000, Alex wrote:
When memory routines from SDL_malloc.c are used, memory allocation may fail without apparent reasons (despite enough memory available). Subsequent allocations usually succeed.
In my case it was showing up only with SDL_mixer, but I believe it's generic and just triggered by some allocation/deallocation patterns specific to SDL_mixer.
After a bit of debugging, it seems to me that the problem originates from not considering the overhead due to alignment requirements in sys_alloc().
To ensure that size is (at least) enough after applying alignment. I'm not sure it's the best solution though.
On 2007-06-02 13:59:02 +0000, Ryan C. Gordon wrote:
Bumping a bunch of bugs to Priority 1 for consideration for the 1.2.12 release.
--ryan.
On 2007-06-14 23:09:23 +0000, Sam Lantinga wrote:
Is there any chance you can give a simple test case to reproduce the problem? Or lacking that, a step by step trace through the function showing all variable values?
Thanks!
On 2007-07-15 15:16:22 +0000, Sam Lantinga wrote:
Date: Sun, 15 Jul 2007 17:55:33 -0400
From: Doug Lea
To: Sam Lantinga slouken@devolution.com
Subject: Re: SDL_malloc.c bug details (fwd)
A first pass diagnosis is that when alignment is greater than reserved footer space, further padding is necessary. (A quick fix is just to add one alignment's worth to request size, but it is likely that this can be reduced with some thought.)
-Doug
On 2007-07-15 17:11:23 +0000, Sam Lantinga wrote:
The suggested fix was approved by Doug Lea and checked into subversion. "overkill, but safe" He's going to have a new release of his malloc implementation sometime next month and I'll use that when it's released.
The text was updated successfully, but these errors were encountered:
This bug report was migrated from our old Bugzilla tracker.
Reported in version: 1.2.11
Reported for operating system, platform: Linux, x86
Comments on the original bug report:
On 2007-05-15 08:12:19 +0000, Alex wrote:
On 2007-06-02 13:59:02 +0000, Ryan C. Gordon wrote:
On 2007-06-14 23:09:23 +0000, Sam Lantinga wrote:
On 2007-07-15 15:16:22 +0000, Sam Lantinga wrote:
On 2007-07-15 17:11:23 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: