*************************************** * 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: 15084 [TST]: round 1/6 [TST]: appending process with pid=15084 [CHP]: appending new process to the queue (pid=15084) [TST]: round 2/6 [TST]: appending process with pid=15084 [CHP]: appending new process to the queue (pid=15084) [TST]: round 3/6 [TST]: appending process with pid=15084 [CHP]: appending new process to the queue (pid=15084) [TST]: round 4/6 [TST]: appending process with pid=15084 [CHP]: appending new process to the queue (pid=15084) [TST]: round 5/6 [TST]: appending process with pid=15084 [CHP]: appending new process to the queue (pid=15084) [CHP]: try registering process with pid=15084 [CHP]: queue contains 5 pids. [CHP]: pid: [15084] cmdline: [/bin/bash] [CHP]: registering the libs needed by the program /bin/bash. => /lib/libdl.so.2 => /lib/libc.so.6 => /lib/ld-linux.so.2 [CHP]: the program needs 3 libs. [CHP]: registering the app.... => 15084:31:9:/tmp/bash_20031115_182414_15084.dump [CHP]: dump signal (31) succesfully sent to target process (pid=15084) [CHP]: wait 10 ms before continuing... [CHP]: integrity status: OK! => 1 child process(es) [CHP]: dump file correctly created (file=/tmp/bash_20031115_182414_15084.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=15084) [CHP]: try registering process with pid=15084 [CHP]: queue contains 4 pids. [CHP]: pid: [15084] cmdline: [/bin/bash] [CHP]: registering the libs needed by the program /bin/bash. => /lib/libdl.so.2 [CHP]: the program needs 1 libs. [CHP]: registering the app.... => 15084:31:9:/tmp/bash_20031115_182419_15084.dump [CHP]: dump signal (31) succesfully sent to target process (pid=15084) [CHP]: wait 10 ms before continuing... [CHP]: integrity status: OK! => 2 child process(es) [CHP]: dump file correctly created (file=/tmp/bash_20031115_182419_15084.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=15084) [CHP]: try registering process with pid=15084 [CHP]: queue contains 3 pids. [CHP]: pid: [15084] cmdline: [/bin/bash] [CHP]: registering the libs needed by the program /bin/bash. => /lib/libdl.so.2 => /lib/libc.so.6 => /lib/ld-linux.so.2 [CHP]: the program needs 3 libs. [CHP]: registering the app.... => 15084:31:9:/tmp/bash_20031115_182424_15084.dump [CHP]: dump signal (31) succesfully sent to target process (pid=15084) [CHP]: wait 10 ms before continuing... [CHP]: integrity status: OK! => 3 child process(es) [CHP]: dump file correctly created (file=/tmp/bash_20031115_182424_15084.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=15084) [CHP]: try registering process with pid=15084 [CHP]: queue contains 2 pids. [CHP]: pid: [15084] cmdline: [/bin/bash] [CHP]: registering the libs needed by the program /bin/bash. => /lib/libdl.so.2 => /lib/libc.so.6 => /lib/ld-linux.so.2 [CHP]: the program needs 3 libs. [CHP]: registering the app.... => 15084:31:9:/tmp/bash_20031115_182429_15084.dump [CHP]: dump signal (31) succesfully sent to target process (pid=15084) [CHP]: wait 10 ms before continuing... [CHP]: integrity status: OK! => 4 child process(es) [CHP]: dump file correctly created (file=/tmp/bash_20031115_182429_15084.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=15084) [CHP]: try registering process with pid=15084 [CHP]: queue contains 1 pids. [CHP]: pid: [15084] cmdline: [/bin/bash] [CHP]: registering the libs needed by the program /bin/bash. => /lib/libdl.so.2 => /lib/libc.so.6 => /lib/ld-linux.so.2 [CHP]: the program needs 3 libs. [CHP]: registering the app.... => 15084:31:9:/tmp/bash_20031115_182435_15084.dump [CHP]: dump signal (31) succesfully sent to target process (pid=15084) [CHP]: wait 10 ms before continuing... [CHP]: integrity status: OK! => 5 child process(es) [CHP]: dump file correctly created (file=/tmp/bash_20031115_182435_15084.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=15084) [TST]: countdown before checking the results: 1 [TST]: list of dump files for the registered process (PID=15084): => Entry #1 Required libs (3 libs found): - (#1) /lib/libdl.so.2 - (#2) /lib/libc.so.6 - (#3) /lib/ld-linux.so.2 Dump filenames (5 dump files found): - (#1) /tmp/bash_20031115_182414_15084.dump - (#2) /tmp/bash_20031115_182419_15084.dump - (#3) /tmp/bash_20031115_182424_15084.dump - (#4) /tmp/bash_20031115_182429_15084.dump - (#5) /tmp/bash_20031115_182435_15084.dump [TST]: please enter the id of the dump file to be used for restoring the process:3 [CHP]: dump signal (SIGKILL) successfully sent to target process (pid=15084) [CHP]: restoring the process... [CHP]: invoking "ld-chpox -v /tmp/bash_20031115_182424_15084.dump" Executing open_chpoxctl trying to open /dev/misc/chpoxctl Executing exec_chpox_dump number of children - 0 Executing install_sigchld_handler Commiting checkpoint