Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Errors in logs when scoping a go dynamic executable #862

Closed
seanvaleo opened this issue Mar 16, 2022 · 1 comment · Fixed by #863
Closed

Errors in logs when scoping a go dynamic executable #862

seanvaleo opened this issue Mar 16, 2022 · 1 comment · Fixed by #863
Assignees
Labels
bug Something isn't working
Milestone

Comments

@seanvaleo
Copy link
Collaborator

We see the following in scope logs at the default log level:

Scope: readdir(pid:84578): [2022-03-16T14:46:33.330-0400] ERROR: get_file_size:open
Scope: readdir(pid:84578): [2022-03-16T14:46:33.330-0400] ERROR:unmap_all: file size

...when scoping this test application:

package main

import (
	"log"
	"os"
)

func main() {
	// Call syscall.Readdir
	_, err := os.ReadDir(".")
	if err != nil {
		log.Fatal(err)
	}
}
@seanvaleo seanvaleo self-assigned this Mar 16, 2022
@seanvaleo seanvaleo added the bug Something isn't working label Mar 16, 2022
@ghost ghost added this to the Next Maintenance (1.0.3) milestone Mar 16, 2022
@seanvaleo seanvaleo changed the title Errors in logs when running a go static executable Errors in logs when running a go dynamic executable Mar 17, 2022
@seanvaleo seanvaleo changed the title Errors in logs when running a go dynamic executable Errors in logs when scoping a go dynamic executable Mar 17, 2022
@seanvaleo
Copy link
Collaborator Author

seanvaleo commented Mar 17, 2022

QA INSTRUCTIONS

(To run from source):
checkout this branch
make build CMD="make all" && make image
docker VERSION_ID is dev-x86_64

Part 1
Do:

docker run --rm -it cribl/scope:<VERSION_ID>
apt update && apt install -y golang curl file
curl https://pastebin.com/raw/R8P7ZFuD -o test_app.go
go build test_app.go
file test_app
scope test_app
scope logs

Expect:

  • test_app is a statically-linked executable
  • No errors in the logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant