Skip to content

AWS Lambda failing w/ RuntimeError: can't start new thread on 1.40.3 #2741

@thedanfields

Description

@thedanfields

How do you use Sentry?

Self-hosted/on-premise

Version

1.40.3

Steps to Reproduce

Recently upgraded from 1.39.2 to 1.40.3.

Our AWS Lambda executors started failing with:

Traceback (most recent call last):
  < ... omitted ... >
  File "/var/task/sentry_sdk/integrations/threading.py", line 56, in sentry_start
    return old_start(self, *a, **kw)
  File "/var/lang/lib/python3.9/threading.py", line 899, in start
    _start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread

Rolling back to 1.39.2 prevented the RuntimeError: can't start new thread error.

Expected Result

Lambda execution executed as expected.

Actual Result

A run time exception stemming from the sentry_sdk/threading/threading.py module:

File "/var/task/sentry_sdk/integrations/threading.py", line 56, in sentry_start
    return old_start(self, *a, **kw)
File "/var/lang/lib/python3.9/threading.py", line 899, in start
    _start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread

Metadata

Metadata

Assignees

Projects

Status

No status

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions