Skip to content

Profiler Fatal Error: signal SIGSEGV: segmentation violation #1250

Open

Description

Hi all!
We are having the following fatal error sporadically(every day or 2 days):

unexpected fault address 0x0
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0xb105c6]
goroutine 82 [running]:
runtime.throw({0xe506af, 0x4})
/usr/local/go/src/runtime/panic.go:1198 +0x71 fp=0xc001284e80 sp=0xc001284e50 pc=0x437811
runtime.sigpanic()
/usr/local/go/src/runtime/signal_unix.go:742 +0x2f6 fp=0xc001284ed0 sp=0xc001284e80 pc=0x44da56
github.com/google/pprof/profile.(*profileMerger).mapLocation(0xc001285368, 0x736d203328202e38)
/go/pkg/mod/github.com/google/pprof@v0.0.0-20211204230040-2007db6d4f53/profile/merge.go:233 +0x46 fp=0xc001284fe8 sp=0xc001284ed0 pc=0xb105c6
github.com/google/pprof/profile.(*profileMerger).mapSample(0xc001285368, 0xc002b7c180)
/go/pkg/mod/github.com/google/pprof@v0.0.0-20211204230040-2007db6d4f53/profile/merge.go:164 +0x249 fp=0xc001285228 sp=0xc001284fe8 pc=0xb0f849
github.com/google/pprof/profile.Merge({0xc001285b08, 0x2, 0x4})
/go/pkg/mod/github.com/google/pprof@v0.0.0-20211204230040-2007db6d4f53/profile/merge.go:75 +0x4e7 fp=0xc001285a78 sp=0xc001285228 pc=0xb0f387
gopkg.in/DataDog/dd-trace-go.v1/profiler/internal/pprofutils.Delta.Convert({{0xc000220800, 0x2a790, 0x0}}, 0xc00019ea00, 0xc00027a640)
/go/pkg/mod/gopkg.in/!data!dog/dd-trace-go.v1@v1.37.1/profiler/internal/pprofutils/delta.go:61 +0x146 fp=0xc001285b28 sp=0xc001285a78 pc=0xb1f186
gopkg.in/DataDog/dd-trace-go.v1/profiler.(*profiler).deltaProfile(0xc0002b25f0, {0x0, {0xe4fb6e, 0x4}, {0xe55cb2, 0xa}, 0xc00000e6c0, 0xe96b50}, {0xc0037ae000, 0x2a790, ...})
/go/pkg/mod/gopkg.in/!data!dog/dd-trace-go.v1@v1.37.1/profiler/profile.go:265 +0x14d fp=0xc001285bb0 sp=0xc001285b28 pc=0xb236cd
gopkg.in/DataDog/dd-trace-go.v1/profiler.(*profiler).runProfile(0xc0002b25f0, 0x0)
/go/pkg/mod/gopkg.in/!data!dog/dd-trace-go.v1@v1.37.1/profiler/profile.go:221 +0x35e fp=0xc001285dc0 sp=0xc001285bb0 pc=0xb2313e
gopkg.in/DataDog/dd-trace-go.v1/profiler.(*profiler).collect(0xc0002b25f0, 0xc000510660)
/go/pkg/mod/gopkg.in/!data!dog/dd-trace-go.v1@v1.37.1/profiler/profiler.go:191 +0x287 fp=0xc001285f78 sp=0xc001285dc0 pc=0xb25947
gopkg.in/DataDog/dd-trace-go.v1/profiler.(*profiler).run.func1()
/go/pkg/mod/gopkg.in/!data!dog/dd-trace-go.v1@v1.37.1/profiler/profiler.go:163 +0xda fp=0xc001285fe0 sp=0xc001285f78 pc=0xb255ba
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc001285fe8 sp=0xc001285fe0 pc=0x46aaa1
created by gopkg.in/DataDog/dd-trace-go.v1/profiler.(*profiler).run
/go/pkg/mod/gopkg.in/!data!dog/dd-trace-go.v1@v1.37.1/profiler/profiler.go:158 +0xf2

We are using dd-trace-go.v1@v1.37.1 and golang1.17 with alpine3.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions