gmediaserver-devel
[Top][All Lists]
Advanced

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

[gmediaserver-devel] AMD64 server stops with "memory exhausted" error


From: Joerg
Subject: [gmediaserver-devel] AMD64 server stops with "memory exhausted" error
Date: Mon, 30 Jan 2006 20:42:50 +0100

Hi All

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.




Breakpoint 2, add_playlist_child (parent=0x51f880, children_size=0x7fffff8da574,
    buf=0x51f8b6 "http://64.236.34.196:80/stream/1019";,
    playlist_dir=0x147e2c000000040 <Address 0x147e2c000000040 out of bounds>) 
at metadata.c:331
331               children->list = xmalloc((*children_size) * sizeof(int32_t));
(gdb) display *children_size
1: *children_size = 23072907911495696
(gdb) display (uint32_t)(*children_size)
2: (unsigned int) *children_size = 16
(gdb) cont
Continuing.
/mnt/raid1/Scratch/gmediaserver-0.9.0/src/gmediaserver: memory exhausted

Program exited with code 01.

cheers
George
-- 
http://www.george-ch.ch




reply via email to

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