Skip to content

[BUG]: unable to kill all the SystemStackError introduced by installing the gem #4891

@bf4

Description

@bf4

Tracer Version(s)

2.20.0

Ruby Version(s)

C ruby 3.3.6 (2024-11-05 revision 75015d4c1f)

Relevent Library and Version(s)

multiple

Bug Report

I'm creating a new issue since #2348 while still open is 3 years old and reads like it's rack-mini-profiler specific

Since adding gem "datadog", require: "datadog/auto_instrument" to our Gemfile
our application began, for the first time, regularly experiencing SystemStackError both in production and in development.

In response, we added DD_TRACE_PG_ENABLED=false DD_TRACE_HTTP_ENABLED=false to our spec helper since we couldn't get certain tests to run otherwise without it.

And we removed

  • rack-mini-profiler (we tried both the require: ["prepend_pg_patch", "prepend_net_http_patch"]-- this was only ever in the development group
  • scout_apm
  • memory_profiler
  • stackprof

And changed

And we're still experiencing some methods which trigger a SystemStackError from the datadog code such as

https://github.com/DataDog/dd-trace-rb/blob/v2.20.0/lib/datadog/tracing/span_operation.rb#L114-L117

gems/datadog-2.20.0/lib/datadog/tracing/span_operation.rb:120:in `name='

This is pretty frustrating that there's all this advice to change how we require other gems, when the one common factor for the SystemStackError we have is the datadog gem

We talked to our DataDog repo and created an internal ticket as well. I'll be sharing this GitHub issue with them.

Reproduction Code

No response

Configuration Block

No response

Error Logs

No response

Operating System

No response

How does Datadog help you?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugInvolves a bugcommunityWas opened by a community member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions