ruby-core

Mailing list archive

[#118415] [Ruby master Bug#20601] Configuration flags are not properly propagated to assembler — "vo.x (Vit Ondruch) via ruby-core" <ruby-core@...>

Issue #20601 has been reported by vo.x (Vit Ondruch).

7 messages 2024/07/02

[#118467] [Ruby master Feature#20610] Float::INFINITY as IO.select timeout argument — "akr (Akira Tanaka) via ruby-core" <ruby-core@...>

Issue #20610 has been reported by akr (Akira Tanaka).

8 messages 2024/07/07

[#118483] [Ruby master Bug#20614] Integer#size returns incorrect values on 64-bit Windows — surusek via ruby-core <ruby-core@...>

SXNzdWUgIzIwNjE0IGhhcyBiZWVuIHJlcG9ydGVkIGJ5IHN1cnVzZWsgKMWBdWthc3ogU3VyKS4N

10 messages 2024/07/08

[#118577] [Ruby master Bug#20631] Build failure with Xcode 16 beta and macOS 15 (Sequoia) Beta — "hsbt (Hiroshi SHIBATA) via ruby-core" <ruby-core@...>

Issue #20631 has been reported by hsbt (Hiroshi SHIBATA).

9 messages 2024/07/12

[#118682] [Ruby master Misc#20652] Memory allocation for gsub has increased from Ruby 2.7 to 3.3 — "orisano (Nao Yonashiro) via ruby-core" <ruby-core@...>

Issue #20652 has been reported by orisano (Nao Yonashiro).

28 messages 2024/07/25

[ruby-core:118484] [Ruby master Bug#20616] <jemalloc>: Error in munmap(): Invalid argument

From: damuz91 via ruby-core <ruby-core@...>
Date: 2024-07-08 14:59:27 UTC
List: ruby-core #118484
Issue #20616 has been reported by damuz91 (David Mu=F1oz).

----------------------------------------
Bug #20616: <jemalloc>: Error in munmap(): Invalid argument
https://bugs.ruby-lang.org/issues/20616

* Author: damuz91 (David Mu=F1oz)
* Status: Open
* ruby -v: 3.3.2
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
Good day!

Description:

I am getting the following error randomly. I run the offending code every 1=
0 minutes and some times it crashes and some it doesn't, I am clueless.

The error states:

```
<jemalloc>: Error in munmap(): Invalid argument
[BUG] Segmentation fault at 0x0000ffff69bfe000
ruby 3.3.2 (2024-05-30 revision e5a195edf6) [aarch64-linux]
```

I've published the backtrace: https://gist.github.com/damuz91/429bed215c7ff=
13ee33e3968d52a4729

My app runs Sidekiq which runs the offending code, i've submitted the code =
in Sidekiq but maintainer says it's not related to Sidekiq.

```
OS: Amazon Linux 2 aarch64
Ruby version: 3.3.2
Rails version: 7.1.3.4
```

The offending line states:

```
Jul 05 05:00:01 subsystems-sync sidekiq[11766]: c:0048 p:0049 s:0277 e:0002=
76 METHOD /home/ec2-user/production/sync-backend/releases/370/app/services/=
scheduler/partial_sync_scheduler_job.rb:6
```

and my source code looks like this:

```
class Scheduler::PartialSyncSchedulerJob
  include Sidekiq::Job

  def perform(location_ids =3D [])
    locations =3D location_ids.any? ? Location.where(id: location_ids) : Lo=
cation.enabled.should_sync.includes(:customer).where.not(customers: {servic=
e_object: ['xxx', 'yyy']})
    locations.each do |location| # <- Line 6
      if location.use_workflow
        PartialSync::Workflow.perform_async(location.id)
      else
        queue =3D location.customer.service_object.underscore.to_sym
        Sync::PartialSyncJob.set(queue: queue).perform_later(location.id)
      end
    end
  end

end
```

I am not sure where to start looking, I would really appreciate any insight=
 to try to find out if this is indeed a bug in Ruby or if this is a jemallo=
c issue.
Thanks in advance.



--=20
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.rub=
y-lang.org/


In This Thread

Prev Next