Skip to content
New issue

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

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

Already on GitHub? # to your account

cmd/cgo/internal/testplugin: TestMethod2 failures #71030

Open
gopherbot opened this issue Dec 26, 2024 · 1 comment
Open

cmd/cgo/internal/testplugin: TestMethod2 failures #71030

gopherbot opened this issue Dec 26, 2024 · 1 comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.

Comments

@gopherbot
Copy link
Contributor

#!watchflakes
default <- pkg == "cmd/cgo/internal/testplugin" && test == "TestMethod2"

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestMethod2
( GOPATH=$TMPDIR PWD=$TMPDIR/src/testplugin LD_LIBRARY_PATH=$TMPDIR/src/testplugin /Users/swarming/.swarming/w/ir/x/w/goroot/bin/go build -gcflags '' -buildmode=plugin -o method2.so ./method2/plugin.go )
    plugin_test.go:332: /Users/swarming/.swarming/w/ir/x/w/goroot/bin/go build -gcflags  -buildmode=plugin -o method2.so ./method2/plugin.go: exit status 1
        # command-line-arguments
        ../../../../w/goroot/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
        /usr/bin/clang -arch x86_64 -m64 -Wl,-headerpad,1144 -Wl,-flat_namespace -Wl,-bind_at_load -dynamiclib -o a.out.so -Qunused-arguments ../../../go-link-3320883559/go.o ../../../go-link-3320883559/000000.o ../../../go-link-3320883559/000001.o ../../../go-link-3320883559/000002.o ../../../go-link-3320883559/000003.o ../../../go-link-3320883559/000004.o ../../../go-link-3320883559/000005.o ../../../go-link-3320883559/000006.o ../../../go-link-3320883559/000007.o ../../../go-link-3320883559/000008.o ../../../go-link-3320883559/000009.o -O2 -g -lpthread
        ld: warning: -bind_at_load is deprecated on macOS
        0  0x1001acc3b  __assert_rtn + 64
        1  0x1000f146c  ld::AliasAtom::targetOfAliasAtom() const + 236
        2  0x1000cb07f  ld::setAtomDebugFileInfo(ld::Atom const*, mach_o::DebugNoteFileInfo const*) + 79
        3  0x1000aa6ff  ld::AtomPlacement::forEachAtom(void (ld::Atom const*, bool&) block_pointer) const + 287
        4  0x1000c75ef  ld::InputFiles::SliceParser::parseObjectFile(mach_o::Header const*) const + 27951
        5  0x1000d6c91  ld::InputFiles::parseAllFiles(void (ld::AtomFile const*) block_pointer)::$_7::operator()(unsigned long, ld::FileInfo const&) const + 657
        6  0x7ff8047d1066  _dispatch_client_callout2 + 8
        7  0x7ff8047e418f  _dispatch_apply_invoke_and_wait + 213
        8  0x7ff8047e3692  _dispatch_apply_with_attr_f + 1207
        9  0x7ff8047e3847  dispatch_apply + 45
        10  0x1001736b2  ld::AtomFileConsolidator::parseFiles(bool) + 370
        11  0x1000f8597  main + 12471
        ld: Assertion failed: (targetIndex < atoms.size()), function directTargetNoFollow, file Fixup.cpp, line 374.
        clang: error: linker command failed with exit code 1 (use -v to see invocation)
        
--- FAIL: TestMethod2 (1.10s)

watchflakes

@gopherbot gopherbot added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Dec 26, 2024
@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "cmd/cgo/internal/testplugin" && test == "TestMethod2"
2024-12-24 01:53 gotip-darwin-amd64_13 go@772f024c cmd/cgo/internal/testplugin.TestMethod2 (log)
=== RUN   TestMethod2
( GOPATH=$TMPDIR PWD=$TMPDIR/src/testplugin LD_LIBRARY_PATH=$TMPDIR/src/testplugin /Users/swarming/.swarming/w/ir/x/w/goroot/bin/go build -gcflags '' -buildmode=plugin -o method2.so ./method2/plugin.go )
    plugin_test.go:332: /Users/swarming/.swarming/w/ir/x/w/goroot/bin/go build -gcflags  -buildmode=plugin -o method2.so ./method2/plugin.go: exit status 1
        # command-line-arguments
        ../../../../w/goroot/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
        /usr/bin/clang -arch x86_64 -m64 -Wl,-headerpad,1144 -Wl,-flat_namespace -Wl,-bind_at_load -dynamiclib -o a.out.so -Qunused-arguments ../../../go-link-3320883559/go.o ../../../go-link-3320883559/000000.o ../../../go-link-3320883559/000001.o ../../../go-link-3320883559/000002.o ../../../go-link-3320883559/000003.o ../../../go-link-3320883559/000004.o ../../../go-link-3320883559/000005.o ../../../go-link-3320883559/000006.o ../../../go-link-3320883559/000007.o ../../../go-link-3320883559/000008.o ../../../go-link-3320883559/000009.o -O2 -g -lpthread
        ld: warning: -bind_at_load is deprecated on macOS
        0  0x1001acc3b  __assert_rtn + 64
        1  0x1000f146c  ld::AliasAtom::targetOfAliasAtom() const + 236
        2  0x1000cb07f  ld::setAtomDebugFileInfo(ld::Atom const*, mach_o::DebugNoteFileInfo const*) + 79
        3  0x1000aa6ff  ld::AtomPlacement::forEachAtom(void (ld::Atom const*, bool&) block_pointer) const + 287
        4  0x1000c75ef  ld::InputFiles::SliceParser::parseObjectFile(mach_o::Header const*) const + 27951
        5  0x1000d6c91  ld::InputFiles::parseAllFiles(void (ld::AtomFile const*) block_pointer)::$_7::operator()(unsigned long, ld::FileInfo const&) const + 657
        6  0x7ff8047d1066  _dispatch_client_callout2 + 8
        7  0x7ff8047e418f  _dispatch_apply_invoke_and_wait + 213
        8  0x7ff8047e3692  _dispatch_apply_with_attr_f + 1207
        9  0x7ff8047e3847  dispatch_apply + 45
        10  0x1001736b2  ld::AtomFileConsolidator::parseFiles(bool) + 370
        11  0x1000f8597  main + 12471
        ld: Assertion failed: (targetIndex < atoms.size()), function directTargetNoFollow, file Fixup.cpp, line 374.
        clang: error: linker command failed with exit code 1 (use -v to see invocation)
        
--- FAIL: TestMethod2 (1.10s)

watchflakes

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
Status: No status
Development

No branches or pull requests

1 participant