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

Thread blocked indefinitely in an STM transaction #601

Open
newhoggy opened this issue Oct 28, 2020 · 5 comments
Open

Thread blocked indefinitely in an STM transaction #601

newhoggy opened this issue Oct 28, 2020 · 5 comments
Assignees

Comments

@newhoggy
Copy link
Contributor

The "SetGlobalMinimalSeverity" test fails with "thread blocked indefinitely in an STM transaction" on Windows when built with ghc-8.6.5 and ghc-8.10.2

See https://github.com/input-output-hk/iohk-monitoring-framework/pull/597/checks?check_run_id=1318822544

@newhoggy
Copy link
Contributor Author

I was not able to reproduce locally, but out of multiple local runs, I did get this other failure:

  Testing Trace
    Unit tests
      forked traces:                                               FAIL (0.06s)
        test\Cardano\BM\Test\Trace.lhs:492:
        Consecutive loggernames are not different: ["test.work1","test.work1","test.work0","test.work0","test.work1","test.work0"]

@newhoggy
Copy link
Contributor Author

I spotted this failure in CI:

    Unit tests
      forked traces:                                               FAIL (0.10s)
        test/Cardano/BM/Test/Trace.lhs:492:
        Consecutive loggernames are not different: ["test.work1","test.work1","test.work0","test.work0","test.work1","test.work0"]

See https://github.com/input-output-hk/iohk-monitoring-framework/pull/597/checks?check_run_id=1324590355

@newhoggy
Copy link
Contributor Author

There are also concurrency issues in file access on Windows. On Windows, by default, multiple processes cannot open handles to the same file and open files cannot be deleted.

      private messages should not be logged into private files:    FAIL

        Exception: D:\a\_temp\private.log: DeleteFile "\\\\?\\D:\\a\\_temp\\private.log": permission denied (The process cannot access the file because it is being used by another process.)

also

      default_scribe_must_log:                                     FAIL

        Exception: out-test.txt: DeleteFile "\\\\?\\D:\\a\\iohk-monitoring-framework\\iohk-monitoring-framework\\iohk-monitoring\\out-test.txt": permission denied (The process cannot access the file because it is being used by another process.)

See https://github.com/input-output-hk/iohk-monitoring-framework/pull/597/checks?check_run_id=1324590371

@newhoggy
Copy link
Contributor Author

@deepfire
Copy link
Contributor

deepfire commented Dec 2, 2020

Yes, I've definitely seen it to happen as well -- several times and recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants