Opened 5 years ago

Closed 5 years ago

#58170 closed defect (fixed)

go: .../testdata/malformed_macho: Premature end of data, possibly corrupt file

Reported by: dershow Owned by: ci42
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: dbl001 (dbl), rseichter (Ralph Seichter)
Port: go

Description

go seems to install fine. But, when Macports does a binary scan after, I see this:

--->  Cleaning go
--->  Scanning binaries for linking errors
Warning: Error parsing file /opt/local/lib/go/src/cmd/vendor/github.com/google/pprof/internal/binutils/testdata/malformed_macho: Premature end of data, possibly corrupt file

I had go installed fine, and started seeing this parse error recently. I tried to uninstall and reinstall it, and get the same error. I'm not sure exactly what this error means, and if it is really a problem with the go port or not.

Change History (6)

comment:1 Changed 5 years ago by jmroot (Joshua Root)

Cc: ci42 removed
Owner: set to ci42
Status: newassigned

Given that the file is called testdata/malformed_macho I would assume it's a deliberately malformed Mach-O file used for testing purposes. So no surprise that rev-upgrade can't parse it.

If the file is not needed by go at runtime then I guess it could simply not be installed to avoid such user confusion.

comment:2 Changed 5 years ago by mf2k (Frank Schima)

Cc: dbl001 added

Has duplicate #58174.

comment:3 Changed 5 years ago by raimue (Rainer Müller)

Summary: Go has a parse errorgo: .../testdata/malformed_macho: Premature end of data, possibly corrupt file

comment:4 Changed 5 years ago by mouse07410 (Mouse)

So, what's the path forward on this? Would the maintainers remove the offending file from the port?

comment:5 Changed 5 years ago by rseichter (Ralph Seichter)

Cc: rseichter added

comment:6 Changed 5 years ago by ci42

Resolution: fixed
Status: assignedclosed

In 98df7c03566a792aa747e47e0868545dfb8af92a/macports-ports (master):

go: update to version 1.12.1

Don't install malformed Mach-O file which is for testing purposes
only, but can't be parsed by rev-upgrade.

Closes: #58170

Note: See TracTickets for help on using tickets.