[CRIU] About thread names after restore

Artem Kuzmitskiy artem.kuzmitskiy at gmail.com
Tue Aug 18 08:32:57 PDT 2015


Hi all,

I'm not sure what it's important, but I found that thread names (if were
assigned using prctl\pthread_setname) not restored. Is it bug or not?

Steps for reproduce:
1. Start thread and assign name.
    pthread_create(&thread, NULL, do_nothing, NULL);
    pthread_setname_np(thread, "NOTHING_THREAD");
2. Check name using procfs
$ cat /proc/12857/task/12858/stat
12858 (NOTHING_THREAD) .....
3. Dump process with this thread
4. Restore process
5. Check again
 cat /proc/12857/task/12858/stat
12858 (socketpair) .....

P.S. In pstree.img not include the thread names now, only tid.



-- 
Best regards,
Artem Kuzmitskiy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20150818/59efc615/attachment.html>


More information about the CRIU mailing list