Skip to content

upgrade dd-trace-go to v1.41.0 or newer #114

@shota-hizawa

Description

@shota-hizawa

Expected Behavior

Running on Go v 1.19 is supported without errors.

Actual Behavior

I found the program got an error about gc and it exited with a panic.
It seems to be related to dependent module dd-trace-go.

https://github.com/DataDog/datadog-lambda-go/blob/main/go.mod#L13

Please refer this resolved issue; DataDog/dd-trace-go#1455

Specifications

  • Datadog Go Lambda package version: 1.6.0
  • Go version: 1.19

Stacktrace

2022-09-09T15:31:31.249+09:00   panic: Something in this program imports go4.org/unsafe/assume-no-moving-gc to declare that it assumes a non-moving garbage collector, but your version of go4.org/unsafe/assume-no-moving-gc hasn't been updated to assert that it's safe against the go1.19 runtime. If you want to risk it, run with environment variable ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.19 set. Notably, if go1.19 adds a moving garbage collector, this program is unsafe to use.
panic: Something in this program imports go4.org/unsafe/assume-no-moving-gc to declare that it assumes a non-moving garbage collector, but your version of go4.org/unsafe/assume-no-moving-gc hasn't been updated to assert that it's safe against the go1.19 runtime. If you want to risk it, run with environment variable ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.19 set. Notably, if go1.19 adds a moving garbage collector, this program is unsafe to use.

2022-09-09T15:31:31.249+09:00	goroutine 1 [running]:

2022-09-09T15:31:31.249+09:00	go4.org/unsafe/assume-no-moving-gc.init.0()

2022-09-09T15:31:31.249+09:00	/go/pkg/mod/go4.org/unsafe/[email protected]/untested.go:25 +0x1f4

2022-09-09T15:31:31.250+09:00	EXTENSION Name: datadog-agent State: Registered Events: [INVOKE,SHUTDOWN]

2022-09-09T15:31:31.285+09:00	LOGS Name: datadog-agent State: Already subscribed Types: [platform,function,extension]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions