Skip to content

FuzzParseDN test was failed on GitHub Actions #472

@t2y

Description

@t2y

I encountered some failures with the result of a job on GitHub Actions.

I will investigate why this error happens on GitHub Actions.

WARNING: DATA RACE
Write at 0x000000c3c628 by goroutine 38:
  github.com/go-ldap/ldap.FuzzParseDN()
      /home/runner/work/ldap/ldap/fuzz_test.go:14 +0x32
  testing.fRunner()
      /opt/hostedtoolcache/go/1.18.10/x64/src/testing/fuzz.go:700 +0x168
  testing.runFuzzTests.func1()
      /opt/hostedtoolcache/go/1.18.10/x64/src/testing/fuzz.go:5[20](https://github.com/go-ldap/ldap/actions/runs/6781841980/job/18432888679#step:5:21) +0x47

Previous read at 0x000000c3c628 by goroutine 76:
  github.com/go-asn1-ber/asn1-ber.readPacket()
      /home/runner/go/pkg/mod/github.com/go-asn1-ber/asn1-ber@v1.5.5/ber.go:352 +0x31b
  github.com/go-asn1-ber/asn1-ber.readPacket()
      /home/runner/go/pkg/mod/github.com/go-asn1-ber/asn1-ber@v1.5.5/ber.go:326 +0x1079
  github.com/go-asn1-ber/asn1-ber.ReadPacket()
      /home/runner/go/pkg/mod/github.com/go-asn1-ber/asn1-ber@v1.5.5/ber.go:[21](https://github.com/go-ldap/ldap/actions/runs/6781841980/job/18432888679#step:5:22)8 +0x2e4
  github.com/go-ldap/ldap.(*Conn).reader()
      /home/runner/work/ldap/ldap/conn.go:598 +0x2be
  github.com/go-ldap/ldap.(*Conn).Start.func1()
      /home/runner/work/ldap/ldap/conn.go:267 +0x39

Goroutine 38 (running) created at:
  testing.runFuzzTests()
      /opt/hostedtoolcache/go/1.18.10/x64/src/testing/fuzz.go:520 +0xdde
  testing.(*M).Run()
      /opt/hostedtoolcache/go/1.18.10/x64/src/testing/testing.go:1720 +0xaf2
  main.main()
      _testmain.go:259 +0x3a9

Goroutine 76 (finished) created at:
  github.com/go-ldap/ldap.(*Conn).Start()
      /home/runner/work/ldap/ldap/conn.go:267 +0x9d
  github.com/go-ldap/ldap.Dialurl("")
      /home/runner/work/ldap/ldap/conn.go:[24](https://github.com/go-ldap/ldap/actions/runs/6781841980/job/18432888679#step:5:25)6 +0x587
  github.com/go-ldap/ldap.TestSearchAsyncAndCancel()
      /home/runner/work/ldap/ldap/ldap_test.go:[37](https://github.com/go-ldap/ldap/actions/runs/6781841980/job/18432888679#step:5:38)8 +0x55
  testing.tRunner()
      /opt/hostedtoolcache/go/1.18.10/x64/src/testing/testing.go:14[39](https://github.com/go-ldap/ldap/actions/runs/6781841980/job/18432888679#step:5:40) +0x213
  testing.(*T).Run.func1()
      /opt/hostedtoolcache/go/1.18.10/x64/src/testing/testing.go:1486 +0x[47](https://github.com/go-ldap/ldap/actions/runs/6781841980/job/18432888679#step:5:48)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions