Skip to content

testsuite occationally deadlocks #226

@ncopa

Description

@ncopa

When building alpine 3.22 we have observed deadlocks when running ctest. This has been seen on multiple architectures, riscv64, x86_64, ppc64le.

I was able to reproduce it on my desktop i9:

[56/68] Creating library symlink libks2.so
[57/68] Linking C executable tests/testjson
[58/68] Linking C executable tests/testlog
[59/68] Linking C executable tests/teststring
[60/68] Linking C executable tests/testwebsock2
[61/68] Linking C executable tests/testwebsock
[62/68] Linking C executable tests/testsock2
[63/68] Linking C executable tests/testsock
[64/68] Linking C executable tests/testhash
[65/68] Linking C executable tests/testthreadpools
[66/68] Linking C executable tests/testacl
[67/68] Linking C executable tests/testrealloc
[68/68] Linking C executable tests/testpools
Test project /home/ncopa/aports/main/libks/src/libks-2.0.6
      Start  1: testpools
      Start  2: testrealloc
      Start  3: testacl
      Start  4: testthreadpools
      Start  5: testhash
      Start  6: testsock
      Start  7: testsock2
      Start  8: testwebsock
      Start  9: testwebsock2
      Start 10: teststring
      Start 11: testlog
      Start 12: testjson
 1/12 Test  #1: testpools ........................   Passed    0.01 sec
 2/12 Test  #2: testrealloc ......................   Passed    0.01 sec
 3/12 Test  #3: testacl ..........................   Passed    0.01 sec
 4/12 Test  #7: testsock2 ........................   Passed    0.00 sec
 5/12 Test #10: teststring .......................   Passed    0.00 sec
 6/12 Test #12: testjson .........................   Passed    0.00 sec
 7/12 Test  #9: testwebsock2 .....................   Passed    0.02 sec
 8/12 Test  #8: testwebsock ......................   Passed    0.12 sec
 9/12 Test  #6: testsock .........................   Passed    2.04 sec
10/12 Test  #4: testthreadpools ..................   Passed    5.01 sec
11/12 Test  #5: testhash .........................   Passed    9.01 sec

And there it hangs.

It appears to be the test #11 that deadlocks, testlog.

I have no idea how to debug it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions