|
Posted by Erwin Moller on 10/13/25 11:39
Lars Eighner wrote:
> What does this me?
>
> /usr/ports/lang/php5-cli/work/php-5.0.5/main/streams/streams.c(1209) :
> Freeing 0x083AC564 (1 bytes), script=/home/webmaster/allphp/main.php
> /usr/ports/lang/php5-cli/work/php-5.0.5/ext/standard/file.c(472) : Actual
> locati on (location was relayed)
> Last leak repeated 5 times
> === Total 6 memory leaks detected ===
>
> Is it my script or is it php? The script output appears
> correct. Should I do something?
>
Hi,
A memoryleak means something like this:
(Mostly coded in C, and in very simple terms)
1) A process wants some bytes to store information (for example a variable)
and asks the kernel to allocate them on behalf of that process.
2) Process does its thing, probably using that just allocated memoryspace.
3) Because of some unexpected behaviour or a plain bug the process ends
without telling the kernel to free the memory it allocated for the process.
(under normal circumstances the process WILL tell the kernel to free the
memory.)
4) Memory will be allocated to a process that is gone. So no other process
can use that memory, hence the name memoryleak.
What you should do about it?
I would report it at http://bugs.php.net/
It is probably way too complex for yourself to fix.
Be sure you give them a detailed report, possibly with an example where it
happens.
You are helping the development of PHP a lot by filing bugs!
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|