elfmaster / ecfs

extended core file snapshot format
220 stars 58 forks source link

load_core_file failed #18

Open Kyle-Kyle opened 5 years ago

Kyle-Kyle commented 5 years ago
user@host:~/Desktop/test$ ./test2 &
[1] 18690
user@host:~/Desktop/test$ ecfs_snapshot -p $(ps aux | grep test2 | grep -v grep | awk '{print $2}') -o test2
0x00007ffff7ac89a4 in __GI___nanosleep (requested_time=requested_time@entry=0x7fffffffdd40, remaining=remaining@entry=0x7fffffffdd40) at ../sysdeps/unix/sysv/linux/nanosleep.c:28
28  ../sysdeps/unix/sysv/linux/nanosleep.c: No such file or directory.
Saved corefile core.test2.18690
doing mmap
Copying from mem to copy 220928 bytes from 0x7ffff7f4f000 to 0x7ffff7f18000
Writing 220928 bytes
renaming tmp.core.test2.18690 to core.test2.18690
load_core_file failed

BTW, this is an awesome project. And I wonder whether it is still maintained because I really want to have the "snapshot execution" capability in my current project.

Kyle-Kyle commented 5 years ago

The test2 program is just a "sleep and then puts hello world" program

Kyle-Kyle commented 5 years ago

It turns out that the ecfs file generated by ecfs_snapshot is corrupted. The ecfs file generated by sigsegv handler is more correct -> still not able to re-execute it.