I think I managed to partially get this working! I am now able to see
that Valgrind is indeed launched (with shared-process. Configuring
dedicated-process ignored valgrind!). But there is some problem when
Valgrind is launched...the Wt application process terminates with the
following error in the log file:

[2012-Apr-10 16:27:55.309864] 2829 - [error] "wtfcgi: connect(): No
such file or directory"
[2012-Apr-10 16:27:55.310303] 2829 - [info] "wtfcgi: giving up on
session:  (/var/run/wt/server-2830)"
[2012-Apr-10 16:27:55.310429] 2829 - [error] "wtfcgi: session process
2830 not responding ?"


I am attaching the error log for details. Please could someone help me
understand what the above error means? Why does the Wt application
process terminate so quickly before I am even able to issue command
from gdb to connect to valgrind? Is there some timeout specified for
the Wt application that I need to increase?

Thanks and regards,

~Plug


On Mon, Apr 9, 2012 at 11:20 PM, PLUG GULP <[email protected]> wrote:
> Hi,
>
> How do I debug a deployed app using Valgrind? I have deployed my app
> under Apache. The installation of Wt and Valgrind are under
> non-standard location i.e. in my home directory. I am able to run the
> deployed app and see the output in the web-browser. I now want to
> debug the application i.e. put a breakpoint in the main function and
> do stepwise debugging. I have built the Wt library and my application
> in debug mode (CMAKE_BUILD_TYPE=Debug). Then I set the valgrind-path
> in wt_config.xml as follows:
>
> <valgrind-path>/home/plug/install/bin/valgrind --vgdb=full
> --vgdb-error=0</valgrind-path>
>
> Now when I access my application from web-browser I was hoping to see
> the gdbserver of Valgrind to launch, but nothing happens. The expected
> output of my Wt application is displayed in the web-browser. And when
> I try to connect to the gdbserver from gdb, it fails because no
> gdbserver is running. Please could someone help me understand how to
> debug a deployed Wt application?
>
> Thanks and regards,
>
> ~Plug

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to