Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
giulianobelinassi opened this issue Apr 22, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@giulianobelinassi
Copy link
Collaborator

  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 
@giulianobelinassi giulianobelinassi added the bug Something isn't working label Apr 22, 2022
@giulianobelinassi
Copy link
Collaborator Author

The expected result is that every patch should SUCCESS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant