*************************************** * TESTING CHPOX SUPPORT (ALPHA) * *************************************** [TST]: this code is experimental! :) [TST]: this test is simple: [TST]: 1) you'll be asked for the PID of a process. [TST]: 2) the given process will be registered 5 times (with all the required libs) [TST]: 3) you'll see the list of dump files. [TST]: 4) you'll be asked to choose the dump file for restoring [TST]: 5) the given will be killed (SIGKILL) then will be restored by the choosen dump file. [TST]: please enter the PID of process to be checkpointed: 1939 [TST]: round 1/6 [TST]: appending process with pid=1939 [CHP]: appending new process to the queue (pid=1939) [TST]: round 2/6 [TST]: appending process with pid=1939 [CHP]: appending new process to the queue (pid=1939) [TST]: round 3/6 [TST]: appending process with pid=1939 [CHP]: appending new process to the queue (pid=1939) [TST]: round 4/6 [TST]: appending process with pid=1939 [CHP]: appending new process to the queue (pid=1939) [TST]: round 5/6 [TST]: appending process with pid=1939 [CHP]: appending new process to the queue (pid=1939) [CHP]: try registering process with pid=1939 [CHP]: queue contains 5 pids. [CHP]: pid: [1939] cmdline: [/sbin/omdiscd] [CHP]: registering the libs needed by the program /sbin/omdiscd. => /lib/libc.so.6 [CHP]: the program needs 1 libs. [CHP]: registering the app.... => 1939:31:9:/tmp/omdiscd_20031115_113908_1939.dump [CHP]: dump signal (31) succesfully sent to target process (pid=1939) [CHP]: wait 10 ms before continuing... [CHP]: dump file correctly created (file=/tmp/omdiscd_20031115_113908_1939.dump) [CHP]: added a new entry to the list of registered procs. [CHP]: number of saved dumps for the registered proc: 1 [CHP]: the list of registered procs contains 1 entries. [CHP]: process successfully registered and dumped (pid=1939) [CHP]: try registering process with pid=1939 [CHP]: queue contains 4 pids. [CHP]: pid: [1939] cmdline: [/sbin/omdiscd] [CHP]: registering the libs needed by the program /sbin/omdiscd. => /lib/libc.so.6 [CHP]: the program needs 1 libs. [CHP]: registering the app.... => 1939:31:9:/tmp/omdiscd_20031115_113913_1939.dump [CHP]: dump signal (31) succesfully sent to target process (pid=1939) [CHP]: wait 10 ms before continuing... [CHP]: dump file correctly created (file=/tmp/omdiscd_20031115_113913_1939.dump) [CHP]: proc yet registered: proc entry updated. [CHP]: number of saved dumps for the registered proc: 2 [CHP]: process successfully registered and dumped (pid=1939) [CHP]: try registering process with pid=1939 [CHP]: queue contains 3 pids. [CHP]: pid: [1939] cmdline: [/sbin/omdiscd] [CHP]: registering the libs needed by the program /sbin/omdiscd. => /lib/libc.so.6 [CHP]: the program needs 1 libs. [CHP]: registering the app.... => 1939:31:9:/tmp/omdiscd_20031115_113918_1939.dump [CHP]: dump signal (31) succesfully sent to target process (pid=1939) [CHP]: wait 10 ms before continuing... [CHP]: dump file correctly created (file=/tmp/omdiscd_20031115_113918_1939.dump) [CHP]: proc yet registered: proc entry updated. [CHP]: number of saved dumps for the registered proc: 3 [CHP]: process successfully registered and dumped (pid=1939) [CHP]: try registering process with pid=1939 [CHP]: queue contains 2 pids. [CHP]: pid: [1939] cmdline: [/sbin/omdiscd] [CHP]: registering the libs needed by the program /sbin/omdiscd. => /lib/libc.so.6 [CHP]: the program needs 1 libs. [CHP]: registering the app.... => 1939:31:9:/tmp/omdiscd_20031115_113923_1939.dump [CHP]: dump signal (31) succesfully sent to target process (pid=1939) [CHP]: wait 10 ms before continuing... [CHP]: dump file correctly created (file=/tmp/omdiscd_20031115_113923_1939.dump) [CHP]: proc yet registered: proc entry updated. [CHP]: number of saved dumps for the registered proc: 4 [CHP]: process successfully registered and dumped (pid=1939) [CHP]: try registering process with pid=1939 [CHP]: queue contains 1 pids. [CHP]: pid: [1939] cmdline: [/sbin/omdiscd] [CHP]: registering the libs needed by the program /sbin/omdiscd. => /lib/libc.so.6 => /lib/ld-linux.so.2 [CHP]: the program needs 2 libs. [CHP]: registering the app.... => 1939:31:9:/tmp/omdiscd_20031115_113929_1939.dump [CHP]: dump signal (31) succesfully sent to target process (pid=1939) [CHP]: wait 10 ms before continuing... [CHP]: dump file correctly created (file=/tmp/omdiscd_20031115_113929_1939.dump) [CHP]: proc yet registered: proc entry updated. [CHP]: reached the max number of dumps for the proc! [CHP]: number of saved dumps for the registered proc: 5 [CHP]: process successfully registered and dumped (pid=1939) [TST]: list of dump files for the registered process (PID=1939): => Entry #1 Required libs (1 libs found): - (#1) /lib/libc.so.6 Dump filenames (5 dump files found): - (#1) /tmp/omdiscd_20031115_113908_1939.dump - (#2) /tmp/omdiscd_20031115_113913_1939.dump - (#3) /tmp/omdiscd_20031115_113918_1939.dump - (#4) /tmp/omdiscd_20031115_113923_1939.dump - (#5) /tmp/omdiscd_20031115_113929_1939.dump [TST]: please enter the id of the dump file to be used for restoring the process:1 [CHP]: dump signal (SIGKILL) successfully sent to target process (pid=1939) [CHP]: restoring the process... [CHP]: invoking "ld-chpox /tmp/omdiscd_20031115_113908_1939.dump" CHPOX_IOCTL_CKINIT: Exec format error bash-2.05b# bash-2.05b# ld-chpox /tmp/omdiscd_20031115_113908_1939.dump CHPOX_IOCTL_CKINIT: Exec format error