libgit2 / libgit2/libgit2

[1.0.1] Tests fails with segfault

Open
#5,544 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
10.6k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

Here the log:

Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.XKeCwv

  • umask 022
  • cd /builddir/build/BUILD
    ~/build/BUILD/libgit2-1.0.1/my_build ~/build/BUILD/libgit2-1.0.1
  • cd libgit2-1.0.1
  • pushd my_build
  • ctest3 -V -j8 ..
    UpdateCTestConfiguration from :/builddir/build/BUILD/libgit2-1.0.1/my_build/DartConfiguration.tcl
    UpdateCTestConfiguration from :/builddir/build/BUILD/libgit2-1.0.1/my_build/DartConfiguration.tcl
    Test project /builddir/build/BUILD/libgit2-1.0.1/my_build
    Constructing a list of tests
    Done constructing a list of tests
    Updating test list for fixtures
    Added 0 tests to meet fixture requirements
    Checking test dependency graph...
    Checking test dependency graph end
    test 1
    Start 1: offline

1: Test command: /builddir/build/BUILD/libgit2-1.0.1/my_build/libgit2_clar "-v" "-xonline"
1: Test timeout computed to be: 10000000
test 2
Start 2: invasive

2: Test command: /builddir/build/BUILD/libgit2-1.0.1/my_build/libgit2_clar "-v" "-score::ftruncate" "-sfilter::stream::bigfile" "-sodb::largefiles" "-siterator::workdir::filesystem_gunk" "-srepo::init" "-srepo::init::at_filesystem_root"
2: Test timeout computed to be: 10000000
test 3
Start 3: online

3: Test command: /builddir/build/BUILD/libgit2-1.0.1/my_build/libgit2_clar "-v" "-sonline"
3: Test timeout computed to be: 10000000
test 4
Start 4: gitdaemon

4: Test command: /builddir/build/BUILD/libgit2-1.0.1/my_build/libgit2_clar "-v" "-sonline::push"
4: Test timeout computed to be: 10000000
test 5
Start 5: ssh

5: Test command: /builddir/build/BUILD/libgit2-1.0.1/my_build/libgit2_clar "-v" "-sonline::push" "-sonline::clone::ssh_cert" "-sonline::clone::ssh_with_paths" "-sonline::clone::path_whitespace_ssh"
5: Test timeout computed to be: 10000000
test 6
Start 6: proxy

6: Test command: /builddir/build/BUILD/libgit2-1.0.1/my_build/libgit2_clar "-v" "-sonline::clone::proxy"
6: Test timeout computed to be: 10000000
test 7
Start 7: auth_clone

7: Test command: /builddir/build/BUILD/libgit2-1.0.1/my_build/libgit2_clar "-v" "-sonline::clone::cred"
7: Test timeout computed to be: 10000000
test 8
Start 8: auth_clone_and_push

8: Test command: /builddir/build/BUILD/libgit2-1.0.1/my_build/libgit2_clar "-v" "-sonline::clone::push" "-sonline::push"
8: Test timeout computed to be: 10000000
2: Loaded 385 suites:
2: Started (test status codes: OK='.' FAILURE='F' SKIPPED='S')
2:
2: core::ftruncateSS
6: Loaded 385 suites:
6: Started (test status codes: OK='.' FAILURE='F' SKIPPED='S')
6:
2: filter::streamS
1/8 Test #7: auth_clone .......................***Exception: SegFault 0.03 sec
6: online::cloneSSS
2/8 Test #6: proxy ............................***Exception: SegFault 0.03 sec
4: Loaded 385 suites:
4: Started (test status codes: OK='.' FAILURE='F' SKIPPED='S')
4:
3/8 Test #1: offline ..........................***Exception: SegFault 0.04 sec
8: Loaded 385 suites:
8: Started (test status codes: OK='.' FAILURE='F' SKIPPED='S')
8:
8: online::clone
5: Loaded 385 suites:
5: Started (test status codes: OK='.' FAILURE='F' SKIPPED='S')
5:
4/8 Test #3: online ...........................***Exception: SegFault 0.05 sec
2: odb::largefilesSSSSSS
2: iterator::workdirS
5/8 Test #2: invasive .........................***Exception: SegFault 0.09 sec
4: online::pushSSSSSSSSSSSSSSSSSSSSS
4:
6/8 Test #4: gitdaemon ........................ Passed 0.34 sec
8: online::pushSSSSSSSSSSSSSSSSSSSSS
8:
7/8 Test #8: auth_clone_and_push .............. Passed 0.34 sec
5: online::pushSSSSSSSSSSSSSSSSSSSSS
5: online::cloneS
5: online::cloneS
5: online::clone
5:
8/8 Test #5: ssh .............................. Passed 0.35 sec

38% tests passed, 5 tests failed out of 8

Total Test time (real) = 0.36 sec

The following tests FAILED:
1 - offline (SEGFAULT)
2 - invasive (SEGFAULT)
3 - online (SEGFAULT)
6 - proxy (SEGFAULT)
7 - auth_clone (SEGFAULT)
Errors while running CTest

build.log

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with ctest3 -V -j8 .. from the my_build directory, using the linked build log and the libgit2_clar commands as the entry points. Compare the failing offline, invasive, online, proxy, and auth_clone suites with the passing gitdaemon, ssh, and auth_clone_and_push suites. Done means the affected tests no longer segfault and the full CTest run passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.