Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error (machine stack overflow) on job retry #6242

Open
romiras opened this issue Mar 24, 2024 · 2 comments
Open

Fatal error (machine stack overflow) on job retry #6242

romiras opened this issue Mar 24, 2024 · 2 comments

Comments

@romiras
Copy link

romiras commented Mar 24, 2024

Ruby version: 2.7.x (latest)
Rails version: 6.0.x (latest)
Sidekiq Pro version: 5.5.x (latest)

I cannot share sidekiq.yml in public, though I can send it in private, on demand. It includes these requires:

require "honeybadger/plugins/sidekiq"
require 'sidekiq/job_logger'
require "sidekiq/throttled"
require 'sidekiq'
require("sidekiq-unique-jobs")
require 'sidekiq/worker_killer'
require 'sidekiq/middlewares/memlog_middleware'
require 'sidekiq/middlewares/mysql_connection_middleware'
require 'sidekiq/middlewares/profile_middleware'
require 'sidekiq/max_rss_calculator'

Exception trace:
Nested Exceptions

handler.call(ex, ctx)

Error message:

fatal: machine stack overflow in critical region

Error trace in Honeybadger:

{
  "context" => "Job raised exception",
  "job" => {
    "retry" => true,
...
    "jid" => "f5b408ccd1efc34d2be7cca7",
    "created_at" => 1711225525.286979,
    "enqueued_at" => 1711225525.2877622
  }
}

This error happens in different time.
I didn't found related in later versions in change log.

@IvanTakarlikov-st
Copy link
Contributor

@mperham We're experiencing the same issue with Ruby 2.7.6, Rails 6.1 and sidekiq-pro 7.2 and sidekiq-cron 1.12.0. Could you please advice where might be an issue, or any details that might help with investigation?

@mperham
Copy link
Collaborator

mperham commented Apr 16, 2024

That’s a bug in Ruby (or possibly a native extension). Upgrade them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants