Overview
Features
Download
Documentation
Community
Add-Ons & Services

Memory leak

Please post support and help requests here.

Memory leak

Postby cx500tc » 31 Jan 2008, 20:35

The HTTPTimeServer sample is leaking memory on QNX6 ( don't know about the other platform )

For each request there are 4 outstanding allocations in the 9-16 size range.

I'm trying to gather more data
cx500tc
 
Posts: 26
Joined: 24 Sep 2007, 17:48

Re: Memory leak

Postby cx500tc » 01 Feb 2008, 04:19

> The HTTPTimeServer sample is leaking memory on QNX6 ( don't know about the other platform )
>
> For each request there are 4 outstanding allocations in the 9-16 size range.
>
> I'm trying to gather more data

The sample TimeServer which uses TCPServer from which HTTPServer derived is not leaking memory, so it seems to be comming either from the sample program or HTTP Server class/familly.

I tried to build it on Windows with 7.1 but when building Foundations it says:

Performing Custom Build Step
MC: may only specify one message file to compile.
MC: may only specify one message file to compile.
MC: may only specify one message file to compile.
MC: may only specify one message file to compile.
MC: may only specify one message file to compile.
MC: may only specify one message file to compile.
MC: may only specify one message file to compile.
MC: may only specify one message file to compile.
MC: may only specify one message file to compile.
MC: may only specify one message file to compile.
MC: may only specify one message file to compile.
MC: may only specify one message file to compile.
MC: may only specify one message file to compile.
MC: may only specify one message file to compile.
MC: may only specify one message file to compile.
Microsoft (R) Message Compiler Version 1.12.3668
Copyright (c) Microsoft Corporation. All rights reserved.
.....

I"m a QNX6 guy and don't know much about windows, suggestions welcome ;-)

cx500tc
 
Posts: 26
Joined: 24 Sep 2007, 17:48

Re: Memory leak

Postby alex » 01 Feb 2008, 17:33

> For each request there are 4 outstanding allocations in the 9-16 size range.

I could not reproduce this behavior on either Windows or Linux, trunk SVN code, MSVC 2005 and gcc 4.1.3.

I have POCO http servers in production on Linux and Windows running 24/7 serving multiple screens containing multiple http requests hitting server at (sub)second frequency and have never had a leak problem, so this sounds like something particular to QNX.

It may have nothing to do with it, but are you by any chance using Dinkumware standard library implementation on your QNX box? I was not able to find any QNX references regarding it, but at one point there was a bug in MSVC standard library (which is Dinkumware) that was manifesting itself in a similar way.

Alex
alex
 
Posts: 1130
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Re: Memory leak

Postby cx500tc » 01 Feb 2008, 20:45

> > For each request there are 4 outstanding allocations in the 9-16 size range.
>
> I could not reproduce this behavior on either Windows or Linux, trunk SVN code, MSVC 2005 and gcc 4.1.3.
>
Ouch that hurts ;-)

> I have POCO http servers in production on Linux and Windows running 24/7 serving multiple screens containing multiple http requests hitting server at (sub)second frequency and have never had a leak problem, so this sounds like something particular to QNX.
>
> It may have nothing to do with it, but are you by any chance using Dinkumware standard library implementation on your QNX box? I was not able to find any QNX references regarding it, but at one point there was a bug in MSVC standard library (which is Dinkumware) that was manifesting itself in a similar way.
>
No, it's using the GCC library.

Thanks I'll keep on looking.

> Alex
cx500tc
 
Posts: 26
Joined: 24 Sep 2007, 17:48

Re: Memory leak

Postby guenter » 03 Feb 2008, 22:25

if you build on Windows, there must not be any spaces in the path to the POCO directory. Otherwise, the Microsoft message compiler (MC) gets confused...
guenter
 
Posts: 1129
Joined: 11 Jul 2006, 16:27
Location: Austria


Return to Support

Who is online

Users browsing this forum: Bing [Bot] and 3 guests