Skip to content

runtime: deductSweepCredit bad symbol table #73519

Open
@mangalaman93

Description

@mangalaman93

Go version

1.24.2

Output of go env in your module/workspace:

AR='ar'
  CC='gcc'
  CGO_CFLAGS='-O2 -g'
  CGO_CPPFLAGS=''
  CGO_CXXFLAGS='-O2 -g'
  CGO_ENABLED='1'
  CGO_FFLAGS='-O2 -g'
  CGO_LDFLAGS='-O2 -g'
  CXX='g++'
  GCCGO='gccgo'
  GO111MODULE=''
  GOAMD64='v1'
  GOARCH='amd64'
  GOAUTH='netrc'
  GOBIN=''
  GOCACHE='/home/runner/.cache/go-build'
  GOCACHEPROG=''
  GODEBUG=''
  GOENV='/home/runner/.config/go/env'
  GOEXE=''
  GOEXPERIMENT=''
  GOFIPS140='off'
  GOFLAGS=''
  GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build1375479607=/tmp/go-build -gno-record-gcc-switches'
  GOHOSTARCH='amd64'
  GOHOSTOS='linux'
  GOINSECURE=''
  GOMOD='/home/runner/work/dgraph/dgraph/go.mod'
  GOMODCACHE='/home/runner/go/pkg/mod'
  GONOPROXY=''
  GONOSUMDB=''
  GOOS='linux'
  GOPATH='/home/runner/go'
  GOPRIVATE=''
  GOPROXY='https://proxy.golang.org,direct'
  GOROOT='/opt/hostedtoolcache/go/1.24.2/x64'
  GOSUMDB='sum.golang.org'
  GOTELEMETRY='local'
  GOTELEMETRYDIR='/home/runner/.config/go/telemetry'
  GOTMPDIR=''
  GOTOOLCHAIN='auto'
  GOTOOLDIR='/opt/hostedtoolcache/go/1.24.2/x64/pkg/tool/linux_amd64'
  GOVCS=''
  GOVERSION='go1.24.2'
  GOWORK=''
  PKG_CONFIG='pkg-config'

What did you do?

CI was running our integration tests for dgraph, the database. The logs for CI run are available here https://github.com/hypermodeinc/dgraph/actions/runs/14650128041/job/41113653523?pr=9396. I am also attaching the logs because this link may not be valid for too long. job-logs.txt

What did you see happen?

�������i runtime: pcdata is -10 and 3 locals stack map entries for runtime.deductSweepCredit (targetpc=0xc548de)
2025-04-24T19:36:21.9606208Z �������� fatal error: bad symbol table
2025-04-24T19:36:21.9606372Z �������� 
2025-04-24T19:36:21.9606505Z �������� runtime stack:
2025-04-24T19:36:21.9606721Z �������; runtime.throw({0xfb00007ffcd324ab?, 0xac0000000000c874?})
2025-04-24T19:36:21.9607180Z �������� 	/opt/hostedtoolcache/go/1.24.2/x64/src/internal/chacha8rand/chacha8.go:-27 +0x48 fp=0x7ffcd324aa29 sp=0x7ffcd324aa08 pc=0xca2ec8
2025-04-24T19:36:21.9607515Z �������� 
2025-04-24T19:36:21.9607977Z �������M goroutine 1 gp=0xc000004380 m=0 mp=0x34ddd80 [copystack, locked to thread]:
2025-04-24T19:36:21.9608238Z �������% runtime.deductSweepCredit(0x0, 0x0)
2025-04-24T19:36:21.9608731Z �������� 	/opt/hostedtoolcache/go/1.24.2/x64/src/internal/runtime/maps/runtime_fast64_swiss.go:3 +0x21f fp=0xc00007ba67 sp=0xc00007bb98 pc=0xc548df
2025-04-24T19:36:21.9609291Z �������� 
2025-04-24T19:36:21.9609623Z �������6 goroutine 2 gp=0xc000004e00 m=nil [force gc (idle)]:
2025-04-24T19:36:21.9609986Z �������2 runtime.gopark(0xc6c9730000, 0x0, 0x0, 0x0, 0x0)
2025-04-24T19:36:21.9610589Z �������q 	/opt/hostedtoolcache/go/1.24.2/x64/src/runtime/mgcmark.go:33 +0xce fp=0xc000066f9e sp=0xc000066f88 pc=0xca38ce
2025-04-24T19:36:21.9611064Z �������� panic during panic
2025-04-24T19:36:21.9611334Z �������! SIGSEGV: segmentation violation
2025-04-24T19:36:21.9611655Z �������& PC=0xc902a5 m=0 sigcode=1 addr=0x118
2025-04-24T19:36:21.9611911Z �������� 
2025-04-24T19:36:21.9612193Z �������3 goroutine 0 gp=0x34dc080 m=0 mp=0x34ddd80 [idle]:
2025-04-24T19:36:21.9612525Z �������$ runtime.(*unwinder).next(0xc901ec)
2025-04-24T19:36:21.9612906Z �������? 	?:-11 +0x105 fp=0x7ffcd324a290 sp=0x7ffcd324a298 pc=0xc902a5
2025-04-24T19:36:21.9613544Z �������\ runtime: g 0: unexpected return pc for runtime.(*unwinder).next called from 0x7ffcd324a300
2025-04-24T19:36:21.9614171Z �������[ stack: frame={sp:0x7ffcd324a298, fp:0x7ffcd324a290} stack=[0x7ffcd224d000,0x7ffcd324adf0)
2025-04-24T19:36:21.9614679Z �������> 0x00007ffcd324a190:  0x0000000000000002  0x00007ffcd324a29d 
2025-04-24T19:36:21.9615300Z �������> 0x00007ffcd324a1a0:  0x00007ffc00000003  0x0000000000000003 
2025-04-24T19:36:21.9615914Z �������h 0x00007ffcd324a1b0:  0x00007ffcd324a1d8  0x0000000000c7d525 <runtime.writeErrData+0x0000000000000025> 
2025-04-24T19:36:21.9616644Z �������a 0x00007ffcd324a1c0:  0x0000000000000000  0x0000000000ca7e91 <runtime.write+0x0000000000000031> 
2025-04-24T19:36:21.9617186Z �������> 0x00007ffcd324a1d0:  0x0000000000000002  0x00007ffcd324a2de 
2025-04-24T19:36:21.9617766Z �������a 0x00007ffcd324a1e0:  0x00007ffc00000002  0x0000000000ca7e91 <runtime.write+0x0000000000000031> 
2025-04-24T19:36:21.9618302Z �������> 0x00007ffcd324a1f0:  0x0000000000000002  0x00007ffcd324a2f8 
2025-04-24T19:36:21.9618855Z �������a 0x00007ffcd324a200:  0x00007ffc00000008  0x0000000000ca7e91 <runtime.write+0x0000000000000031> 
2025-04-24T19:36:21.9619449Z �������> 0x00007ffcd324a210:  0x0000000000000002  0x00000000025e06f8 
2025-04-24T19:36:21.9619858Z �������> 0x00007ffcd324a220:  0x00007ffc00000001  0x0000000000000001 
2025-04-24T19:36:21.9620464Z �������h 0x00007ffcd324a230:  0x00007ffcd324a258  0x0000000000c7d525 <runtime.writeErrData+0x0000000000000025> 
2025-04-24T19:36:21.9621198Z �������b 0x00007ffcd324a240:  0x0000000000c6b90a <runtime.gwrite+0x00000000000000ea>  0x00007ffcd324a2f8 
2025-04-24T19:36:21.9621770Z �������> 0x00007ffcd324a250:  0x0000000000000008  0x00007ffcd324a290 
2025-04-24T19:36:21.9622366Z �������b 0x00007ffcd324a260:  0x0000000000c6b90a <runtime.gwrite+0x00000000000000ea>  0x00000000025e06f8 
2025-04-24T19:36:21.9622971Z �������> 0x00007ffcd324a270:  0x0000000000000001  0x0000000000000001 
2025-04-24T19:36:21.9628504Z �������> 0x00007ffcd324a280:  0x00007ffcd324a2f8  0x00007ffcd324a300 
2025-04-24T19:36:21.9629021Z �������� 0x00007ffcd324a290: >0x0000000000c901ec <runtime.(*unwinder).next+0x000000000000004c> <0x0000000000c6c034 <runtime.printstring+0x0000000000000054> 
2025-04-24T19:36:21.9629496Z �������> 0x00007ffcd324a2a0:  0x00000000025e06f8  0x0000000000000001 
2025-04-24T19:36:21.9629752Z �������> 0x00007ffcd324a2b0:  0x0000000000000000  0x00000000025e06f8 
2025-04-24T19:36:21.9630103Z �������c 0x00007ffcd324a2c0:  0x00007ffcd324a2e8  0x0000000000c3d551 <runtime.unlock2+0x0000000000000051> 
2025-04-24T19:36:21.9630433Z �������> 0x00007ffcd324a2d0:  0x0000000000000001  0x0000000000000001 
2025-04-24T19:36:21.9630680Z �������> 0x00007ffcd324a2e0:  0x0000000002e69c80  0x00000000032ea300 
2025-04-24T19:36:21.9631196Z �������g 0x00007ffcd324a2f0:  0x0000000000c6b7f5 <runtime.printunlock+0x0000000000000035>  0x000000c000004e00 
2025-04-24T19:36:21.9631641Z �������f 0x00007ffcd324a300:  0x00007ffcd324a560  0x0000000000c91ac5 <runtime.traceback2+0x0000000000000105> 
2025-04-24T19:36:21.9631970Z �������> 0x00007ffcd324a310:  0x00007ffcd324a660  0x00007ffcd324a398 
2025-04-24T19:36:21.9632217Z �������> 0x00007ffcd324a320:  0x000000c000066f9e  0x00000000025e0600 
2025-04-24T19:36:21.9632466Z �������> 0x00007ffcd324a330:  0x00007ffcd324a358  0x00007ffcd324a408 
2025-04-24T19:36:21.9632717Z �������> 0x00007ffcd324a340:  0xffffffff0001062f  0x0000000200000021 
2025-04-24T19:36:21.9632969Z �������> 0x00007ffcd324a350:  0x00000000032ea300  0x000000000000000e 
2025-04-24T19:36:21.9633494Z �������� 0x00007ffcd324a360:  0x0000000000ca3800 <runtime.gopark+0x0000000000000000>  0x0000000000ca38cd <runtime.gopark+0x00000000000000cd> 
2025-04-24T19:36:21.9633883Z �������> 0x00007ffcd324a370:  0x00007ffcd324a5d0  0x0000000000000001 
2025-04-24T19:36:21.9634137Z �������> 0x00007ffcd324a380:  0x0000000000000001  0x0000000000000039 
2025-04-24T19:36:21.9634350Z �������* 0x00007ffcd324a390:  0x0000000000000001 
2025-04-24T19:36:21.9645628Z �������� 
2025-04-24T19:36:21.9645971Z �������M goroutine 1 gp=0xc000004380 m=0 mp=0x34ddd80 [copystack, locked to thread]:
2025-04-24T19:36:21.9646240Z �������% runtime.deductSweepCredit(0x0, 0x0)
2025-04-24T19:36:21.9646713Z �������� 	/opt/hostedtoolcache/go/1.24.2/x64/src/internal/runtime/maps/runtime_fast64_swiss.go:3 +0x21f fp=0xc00007ba67 sp=0xc00007bb98 pc=0xc548df
2025-04-24T19:36:21.9647243Z �������� 
2025-04-24T19:36:21.9647425Z �������6 goroutine 2 gp=0xc000004e00 m=nil [force gc (idle)]:
2025-04-24T19:36:21.9647662Z �������2 runtime.gopark(0xc6c9730000, 0x0, 0x0, 0x0, 0x0)
2025-04-24T19:36:21.9648026Z �������q 	/opt/hostedtoolcache/go/1.24.2/x64/src/runtime/mgcmark.go:33 +0xce fp=0xc000066f9e sp=0xc000066f88 pc=0xca38ce

What did you expect to see?

Not see a panic such as this

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions