Hi Joshua,
    I tried it locally, using pstack, which seems to be the same
as gstack, but on Ubuntu instead of SUSE.  I do:
 dmtcp_restart ckpt_a.out_*.dmtcp  [for a ckpt image of a.out]
It does fail for me, but with the following message:

> gene@dekaksi:/tmp/gene$ pstack 12805
> Could not read /proc/12805/cmdline: Success
> 
> 12805: (command line?)
> could not find _DYNAMIC symbol

I then looked at /proc/12805/cmdline, and it was indeed empty.
This seems to be why pstack/gstack is failing.
 /proc/*/cmdline is non-empty prior to checkpoint, but not on restart.
So, it fails on restart.

Kapil,
    Had you looked into recreating /proc/*/cmdline on restart?  I remember
you did something like that with the proc filesystem, but I've forgotten
the details.  In any case, ps is showing [mtcp_restart] for the process
name, and no cmdline, with a trival a.out application.  Do you know
the current status?

Thanks,
- Gene

On Tue, Aug 20, 2013 at 08:44:17PM +0000, Louie, Joshua D wrote:
> Hi,
>                 I was wondering if you knew why when I try to run gstack on 
> an mtcp_restart process it crashes? I have tried with very simple programs, 
> and as soon as I do gstack it just dies. It does not seem to me that gstack 
> sends any particular signal.
> 
> Simple program:
> #include <dmtcpaware.h>
> 
> int main()
> {
>     /* Checkpoint */
>     int result = dmtcpCheckpoint();
> 
>    /* Loop forever so we can do gstack on the PID */
>     while (1);
>     return 0;
> }
> 
> I have tried this on both the trunk version and earlier versions (like 
> 1.2.4), all of them result in it killing the restarted process.
> 
> Joshua Louie
> 

> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and 
> AppDynamics. Performance Central is your source for news, insights, 
> analysis and resources for efficient Application Performance Management. 
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk

> _______________________________________________
> Dmtcp-forum mailing list
> Dmtcp-forum@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dmtcp-forum


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Dmtcp-forum mailing list
Dmtcp-forum@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dmtcp-forum

Reply via email to