<div dir="ltr"><div>Today I found this <a href="https://github.com/elfmaster/ecfs">https://github.com/elfmaster/ecfs</a> that claims to be able to restore a process as well. <br></div>I am looking at creating a a library function that can dump and restore from inside the process.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 13, 2016 at 11:03 AM, Pavel Emelyanov <span dir="ltr">&lt;<a href="mailto:xemul@virtuozzo.com" target="_blank">xemul@virtuozzo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 09/11/2016 05:13 PM, Mike Dupont wrote:<br>
&gt; Dear Criu Hackers,<br>
&gt;<br>
&gt; I am attempting to implement a process capture tool for the gcc to extract  compiler data that the user creates.<br>
&gt; I have been experimenting with  google-coredumper (produced core files that are truncated) and just creating a normal core dump (working)<br>
&gt; Now I am taking a try with criu, and I have gotten it to dump,<br>
&gt; <a href="https://github.com/h4ck3rm1k3/gcc-plugin-cpp-template/blob/master/plugin.cpp#L96" rel="noreferrer" target="_blank">https://github.com/h4ck3rm1k3/<wbr>gcc-plugin-cpp-template/blob/<wbr>master/plugin.cpp#L96</a><br>
&gt;<br>
&gt; but it needs root access. All I would really like is access to the memory of the program that is loadable without using gdb.<br>
&gt; I would like to be able to load the memory back and then use custom code to decode it with help of the programs header files.<br>
&gt;<br>
&gt; Do any of you have some tips for me ? How to get criu to work without root access (this needs to be a tool that can be used<br>
&gt; in the field with only access to the gcc), or how to load in a core file and attach to it without gdb?<br>
<br>
</span>Well, the user-mode of CRIU is something we want ourselves too :)<br>
If you take criu-dev branch, then non-root criu is almost there, i.e. -- criu<br>
compiled from this branch is able to dump something and restore with limitations.<br>
<br>
We will describe this in more details here <a href="https://criu.org/User-mode" rel="noreferrer" target="_blank">https://criu.org/User-mode</a> soon.<br>
<br>
As far as restoring only memory is concerned... Well, this would be called &quot;partial<br>
restore&quot;. This thing is only in plans, but no code for it yet :(<br>
<br>
-- Pavel<br>
<span class=""><br>
&gt; thanks,<br>
&gt; mike<br>
&gt;<br>
&gt; ps <a href="http://sfk16.flossk.org/" rel="noreferrer" target="_blank">http://sfk16.flossk.org/</a> I am help organizing this conference on oct22 if anyone wants to visit kosovo!<br>
&gt;<br>
&gt; --<br>
&gt; James Michael DuPont<br>
&gt; Kansas Linux Fest <a href="http://kansaslinuxfest.us" rel="noreferrer" target="_blank">http://kansaslinuxfest.us</a><br>
&gt; Free/Libre Open Source and Open Knowledge Association of Kansas <a href="http://openkansas.us" rel="noreferrer" target="_blank">http://openkansas.us</a><br>
&gt; Member of Free Libre Open Source Software Kosova <a href="http://www.flossk.org" rel="noreferrer" target="_blank">http://www.flossk.org</a><br>
&gt; Saving Wikipedia(tm) articles from deletion <a href="http://SpeedyDeletion.wikia.com" rel="noreferrer" target="_blank">http://SpeedyDeletion.wikia.<wbr>com</a><br>
&gt;<br>
&gt;<br>
</span>&gt; ______________________________<wbr>_________________<br>
&gt; CRIU mailing list<br>
&gt; <a href="mailto:CRIU@openvz.org">CRIU@openvz.org</a><br>
&gt; <a href="https://lists.openvz.org/mailman/listinfo/criu" rel="noreferrer" target="_blank">https://lists.openvz.org/<wbr>mailman/listinfo/criu</a><br>
&gt;<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>James Michael DuPont<br>Kansas Linux Fest <a href="http://kansaslinuxfest.us" target="_blank">http://kansaslinuxfest.us</a> <br>Free/Libre Open Source and Open Knowledge Association of Kansas <a href="http://openkansas.us" target="_blank">http://openkansas.us</a><br>Member of Free Libre Open Source Software Kosova <a href="http://www.flossk.org" target="_blank">http://www.flossk.org</a><br>Saving Wikipedia(tm) articles from deletion <a href="http://SpeedyDeletion.wikia.com" target="_blank">http://SpeedyDeletion.wikia.com</a><br></div></div></div>
</div>