gmediaserver-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gmediaserver-devel] AMD64 server stops with "memory exhausted" erro


From: Oskar Liljeblad
Subject: Re: [gmediaserver-devel] AMD64 server stops with "memory exhausted" error
Date: Sun, 19 Feb 2006 20:49:38 +0100
User-agent: Mutt/1.5.11+cvs20060126

On Monday, January 30, 2006 at 20:50, Joerg wrote:

Hi Joerg!

> I compiled gmediaserver 0.9.0 on box running  2.6.14-gentoo-r5 x86_64 kernel.
> gcc (GCC) 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)
> 
> gmediaserver stopped with a "memory exhausted" error. I found that there is a 
> 64/32 bit variable-size problem , the location children_size is only 32bit 
> initialized. 
> 
> In metadata.c: add_playlist_child  i changed the line
>  children->list = xmalloc((*children_size) * sizeof(int32_t));
> to
>  children->list = xmalloc((uint32_t)(*children_size) * sizeof(int32_t));
> 
> That solved the problem for me. I have a NOXON box , streaming mp3 files to 
> it works fine.

Thanks. I fixed the problem by changing type of children_size in
scan_playlist_file from uint32_t to size_t.

Regards,

Oskar




reply via email to

[Prev in Thread] Current Thread [Next in Thread]