Hi Nick,

 

You are right, probably there is no more error happening.

 

The thing is, Valgrind tend to log the summary just before it exit. If the 
process is killed (this is what our test engineers did because there is no 
console for it anymore), then the summary is not writen to the log file. In 
order to get the summary, we have to bring the process to the foreground with 
the same console, and do Ctrl-C. Maybe there is a way to bring a process 
started with another console to the front of a new console, but I don't know 
the way yet.

 

 

Thanks,

Anlin.
 
> Date: Fri, 6 Mar 2009 08:25:39 +1100
> Subject: Re: [Valgrind-users] Valgrind stops printing logs into log file
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> 
> On Fri, Mar 6, 2009 at 6:05 AM, Anlin Zhang <[email protected]> wrote:
> > Hi,
> >
> > We run valgrind in back ground like this:
> >
> > nohup valgrind --log-file=/opt/log/MyApp.val.log --error-limit=no -v
> > /opt/bin/MyApp &
> >
> > The MyApp is a server handling client requests through TCP. But it sometimes
> > crash (randomly) so we want to use valgrind to debug.
> >
> > But after some time the log file size stops increasing. MyApp is still
> > running as it is still responding to the client programs' request. We
> > haven't re-produced the crash with valgrind so far.
> >
> > I'm wondering if it's normal or something wrong with our setup.
> 
> It's hard to know what could be wrong with this limited information.
> But if MyApp is still running then Valgrind must also still be
> running. And you're using --error-limit=no. It could just be that
> Valgrind isn't finding anything more worth complaining about.
> 
> It might be worth addressing any Valgrind complaints that are present
> in the log file.
> 
> Nick

_________________________________________________________________
Show them the way! Add maps and directions to your party invites. 
http://www.microsoft.com/windows/windowslive/products/events.aspx
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to