Skip to content

trigger --revert-all doesn't work when application has no terminal attached #123

@giulianobelinassi

Description

@giulianobelinassi
  1. Build the project and run make check -j to build all tests.

  2. Open two terminals and cd to build folder. On the first terminal, run:
    for i in $(seq 0 3); do LD_PRELOAD=./lib/.libs/libpulp.so ./tests/manyprocesses & done

On the second terminal, run:
LD_PRELOAD=../lib/.libs/libpulp.so ./tests/manyprocesses

  1. Run
./tools/ulp trigger --revert-all="libmanyprocesses.so.0" tests/.libs/libmanyprocesses_livepatch1.so

You should see:

Summary:
  manyprocesses (pid: 22681):
    SUCCESS tests/.libs/libmanyprocesses_livepatch1.so
  manyprocesses (pid: 22593):
    FAILED tests/.libs/libmanyprocesses_livepatch1.so: Unknown error -512
  manyprocesses (pid: 22592):
    FAILED tests/.libs/libmanyprocesses_livepatch1.so: Unknown error -512
  manyprocesses (pid: 22591):
    FAILED tests/.libs/libmanyprocesses_livepatch1.so: Unknown error -512
  manyprocesses (pid: 22590):
    FAILED tests/.libs/libmanyprocesses_livepatch1.so: Unknown error -512
  1. If you open a third terminal and run reptyr 22593, and rerun the trigger as in 3., you should see:
Summary:
  manyprocesses (pid: 22681):
    SUCCESS tests/.libs/libmanyprocesses_livepatch1.so
  manyprocesses (pid: 22593):
    SUCCESS tests/.libs/libmanyprocesses_livepatch1.so
  manyprocesses (pid: 22592):
    FAILED tests/.libs/libmanyprocesses_livepatch1.so: Unknown error -512
  manyprocesses (pid: 22591):
    FAILED tests/.libs/libmanyprocesses_livepatch1.so: Unknown error -512
  manyprocesses (pid: 22590):
    FAILED tests/.libs/libmanyprocesses_livepatch1.so: Unknown error -512 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions