Giter Site home page Giter Site logo

Problem with Delayed Job about roadie HOT 17 CLOSED

mange avatar mange commented on August 20, 2024
Problem with Delayed Job

from roadie.

Comments (17)

Mange avatar Mange commented on August 20, 2024

Hi,

Do you have any backtraces for me?
Are you using Roadie with Sass?
How are you handling sending emails through DJ?

Magnus

Den 9 apr 2011 19.35, "lucasefe" <
[email protected]>
skrev:

Hi, rodie works properly when being used alone, but causes delayed job to
crush when both of them are enabled. I think this is happening because works
override the mail method, but I don't know if this happens only to me or is
a know problem.

Any thoughts? Hints?

Thanks in advance.
Lucas

Reply to this email directly or view it on GitHub:
#3

from roadie.

lucasefe avatar lucasefe commented on August 20, 2024

Of course! Beware, it's long!

Backtrace:

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16: [BUG] Segmentation fault
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.1]

-- control frame ----------
c:0062 p:---- s:0298 b:0298 l:000297 d:000297 CFUNC  :inspect
c:0061 p:---- s:0296 b:0296 l:000295 d:000295 CFUNC  :inspect
c:0060 p:---- s:0294 b:0294 l:000293 d:000293 CFUNC  :inspect
c:0059 p:---- s:0292 b:0292 l:000291 d:000291 CFUNC  :inspect
c:0058 p:---- s:0290 b:0290 l:000289 d:000289 CFUNC  :inspect
c:0057 p:---- s:0288 b:0288 l:000287 d:000287 CFUNC  :inspect
c:0056 p:---- s:0286 b:0286 l:000285 d:000285 CFUNC  :inspect
c:0055 p:---- s:0284 b:0284 l:000283 d:000283 CFUNC  :inspect
c:0054 p:---- s:0282 b:0282 l:000281 d:000281 CFUNC  :inspect
c:0053 p:---- s:0280 b:0280 l:000279 d:000279 CFUNC  :inspect
c:0052 p:---- s:0278 b:0278 l:000277 d:000277 CFUNC  :inspect
c:0051 p:---- s:0276 b:0276 l:000275 d:000275 CFUNC  :inspect
c:0050 p:---- s:0274 b:0274 l:000273 d:000273 CFUNC  :inspect
c:0049 p:---- s:0272 b:0272 l:000271 d:000271 CFUNC  :inspect
c:0048 p:0017 s:0269 b:0267 l:000257 d:000266 BLOCK  /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_r
c:0047 p:---- s:0263 b:0263 l:000262 d:000262 FINISH
c:0046 p:---- s:0261 b:0261 l:000260 d:000260 CFUNC  :map
c:0045 p:0018 s:0258 b:0258 l:000257 d:000257 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_r
c:0044 p:0423 s:0254 b:0253 l:000252 d:000252 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_r
c:0043 p:0093 s:0244 b:0244 l:000234 d:000243 BLOCK  /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/template.rb:135
c:0042 p:0056 s:0240 b:0240 l:000239 d:000239 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:54
c:0041 p:0028 s:0235 b:0235 l:000234 d:000234 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/template.rb:127
c:0040 p:0015 s:0228 b:0228 l:0007f8 d:000860 BLOCK  /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:59
c:0039 p:0017 s:0225 b:0225 l:000215 d:000224 BLOCK  /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:52
c:0038 p:0032 s:0223 b:0223 l:000222 d:000222 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications/instrumenter.rb:21
c:0037 p:0036 s:0216 b:0216 l:000215 d:000215 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:52
c:0036 p:0085 s:0211 b:0211 l:0007f8 d:0007f8 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:56
c:0035 p:0199 s:0204 b:0204 l:000203 d:000203 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:26
c:0034 p:0094 s:0197 b:0197 l:000196 d:000196 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/haml-3.0.25/lib/haml/helpers/action_view_mods.rb:13
c:0033 p:0388 s:0191 b:0190 l:000189 d:000189 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.er
c:0032 p:0093 s:0184 b:0184 l:000174 d:000183 BLOCK  /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/template.rb:135
c:0031 p:0056 s:0180 b:0180 l:000179 d:000179 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:54
c:0030 p:0028 s:0175 b:0175 l:000174 d:000174 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/template.rb:127
c:0029 p:0015 s:0168 b:0168 l:000ec8 d:000f30 BLOCK  /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:59
c:0028 p:0017 s:0165 b:0165 l:000155 d:000164 BLOCK  /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:52
c:0027 p:0032 s:0163 b:0163 l:000162 d:000162 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications/instrumenter.rb:21
c:0026 p:0036 s:0156 b:0156 l:000155 d:000155 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:52
c:0025 p:0085 s:0151 b:0151 l:000ec8 d:000ec8 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:56
c:0024 p:0199 s:0144 b:0144 l:000143 d:000143 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:26
c:0023 p:0094 s:0137 b:0137 l:000136 d:000136 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/haml-3.0.25/lib/haml/helpers/action_view_mods.rb:13
c:0022 p:0122 s:0131 b:0131 l:000130 d:000130 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/show_exceptions.rb:88
c:0021 p:0063 s:0123 b:0123 l:000122 d:000122 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/show_exceptions.rb:68
c:0020 p:0102 s:0116 b:0116 l:000115 d:000115 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/show_exceptions.rb:59
c:0019 p:0027 s:0108 b:0108 l:000107 d:000107 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.5/lib/rails/rack/logger.rb:13
c:0018 p:0032 s:0104 b:0104 l:000103 d:000103 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/rack-1.2.2/lib/rack/runtime.rb:17
c:0017 p:0052 s:0095 b:0095 l:000094 d:000094 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/cache/strategy/local_cache.rb:72
c:0016 p:0014 s:0091 b:0091 l:000085 d:000090 BLOCK  /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/rack-1.2.2/lib/rack/lock.rb:11
c:0015 p:0019 s:0089 b:0089 l:000088 d:000088 METHOD <internal:prelude>:10
c:0014 p:0054 s:0086 b:0086 l:000085 d:000085 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/rack-1.2.2/lib/rack/lock.rb:11
c:0013 p:0193 s:0081 b:0081 l:000080 d:000080 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/static.rb:30
c:0012 p:0015 s:0074 b:0074 l:000073 d:000073 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/hoptoad_notifier-2.4.9/lib/hoptoad_notifier/user_informer.rb:12
c:0011 p:0032 s:0066 b:0066 l:000065 d:000065 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.5/lib/rails/application.rb:168
c:0010 p:0021 s:0062 b:0062 l:000061 d:000061 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.5/lib/rails/application.rb:77
c:0009 p:---- s:0057 b:0057 l:000056 d:000056 FINISH
c:0008 p:0015 s:0055 b:0055 l:000054 d:000054 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.5/lib/rails/rack/log_tailer.rb:14
c:0007 p:0015 s:0050 b:0050 l:000049 d:000049 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/rack-1.2.2/lib/rack/content_length.rb:13
c:0006 p:0338 s:0042 b:0042 l:000041 d:000041 METHOD /Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/rack-1.2.2/lib/rack/handler/webrick.rb:52
c:0005 p:0257 s:0030 b:0030 l:000029 d:000029 METHOD /Users/lucasefe/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:111
c:0004 p:0393 s:0020 b:0020 l:000019 d:000019 METHOD /Users/lucasefe/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:70
c:0003 p:0126 s:0009 b:0009 l:001008 d:000008 BLOCK  /Users/lucasefe/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP   
---------------------------
-- Ruby level backtrace information ----------------------------------------
/Users/lucasefe/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
/Users/lucasefe/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/Users/lucasefe/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/rack-1.2.2/lib/rack/handler/webrick.rb:52:in `service'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/rack-1.2.2/lib/rack/content_length.rb:13:in `call'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.5/lib/rails/rack/log_tailer.rb:14:in `call'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.5/lib/rails/application.rb:77:in `method_missing'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.5/lib/rails/application.rb:168:in `call'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/hoptoad_notifier-2.4.9/lib/hoptoad_notifier/user_informer.rb:12:in `call'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/static.rb:30:in `call'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/rack-1.2.2/lib/rack/lock.rb:11:in `call'
<internal:prelude>:10:in `synchronize'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/rack-1.2.2/lib/rack/lock.rb:11:in `block in call'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/rack-1.2.2/lib/rack/runtime.rb:17:in `call'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.5/lib/rails/rack/logger.rb:13:in `call'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/show_exceptions.rb:59:in `call'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/show_exceptions.rb:68:in `render_exception'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/show_exceptions.rb:88:in `rescue_action_locally'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/haml-3.0.25/lib/haml/helpers/action_view_mods.rb:13:in `render_with_haml'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:26:in `render'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:56:in `_render_template'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:52:in `instrument'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:52:in `block in instrument'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:59:in `block in _render_template'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/template.rb:127:in `render'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:54:in `instrument'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/template.rb:135:in `block in render'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb:10:in `___sers_lucasefe__rvm_gems_ruby_______p____gems_actionpack_______lib_action_dispatch_middleware_templates_rescues_diagnostics_erb__363052006572736351_2173550340__4497306155989832136'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/haml-3.0.25/lib/haml/helpers/action_view_mods.rb:13:in `render_with_haml'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:26:in `render'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:56:in `_render_template'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:52:in `instrument'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:52:in `block in instrument'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:59:in `block in _render_template'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/template.rb:127:in `render'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:54:in `instrument'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/template.rb:135:in `block in render'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:27:in `___sers_lucasefe__rvm_gems_ruby_______p____gems_actionpack_______lib_action_dispatch_middleware_templates_rescues__request_and_response_erb__1030383734768880755_2173451540__4497306155989832136'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16:in `debug_hash'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16:in `map'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16:in `block in debug_hash'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16:in `inspect'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16:in `inspect'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16:in `inspect'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16:in `inspect'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16:in `inspect'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16:in `inspect'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16:in `inspect'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16:in `inspect'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16:in `inspect'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16:in `inspect'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16:in `inspect'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16:in `inspect'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16:in `inspect'
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:16:in `inspect'

-- C level backtrace information -------------------------------------------

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Calling DJ like this:

def notify_parties
Organization::Notifier.delay.donation_notification_to_organization(self)
Organization::Notifier.delay.donation_notification_to_donor(self)
end

SASS?

Of course.

from roadie.

Mange avatar Mange commented on August 20, 2024

Hmm... Looks like we get an error on an error here. Some error occurs inside Roadie, but rack dies when trying to show us the error.

The C errors lead me to believe that Nokogiri / libxml2 is to blame.

Could you please do the following?

  1. Clone roadie to a local directory
  2. Redefine inspect on most Roadie classes to return just the class name instead
  3. Switch your app into using the local version of the gem (possible through Bundler, just add :path => ...)
  4. See if you get the same error

Are you invoking the DJ workers in the same Bundler environment, BTW?

from roadie.

lucasefe avatar lucasefe commented on August 20, 2024

Ok, got it. This is the exception, but as you can see, it's different than
the original.
I tried this on another computer and it still fails, so is not my machine.

We have to remember that this only happens when using both gems (DJ and
Roadie), so this is happening in the DJ context (which is running in the
same bundler env). I am thinking about concurrency. Something weird like
accessing shared memory that has already been released, which is weirder
because the processes are running separately.

Anyway here's the code...

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/core_ext/module/introspection.rb:79:
[BUG] Segmentation fault
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.1]

-- control frame ----------
c:0108 p:0013 s:0519 b:0519 l:000518 d:000518 METHOD

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/core_ext/module/introspection.rb:79
c:0107 p:0011 s:0516 b:0516 l:000515 d:000515 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/core_ext/module/introspection.rb:86
c:0106 p:0063 s:0513 b:0513 l:000502 d:000512 BLOCK
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:128
c:0105 p:---- s:0508 b:0508 l:000507 d:000507 FINISH
c:0104 p:---- s:0506 b:0506 l:000505 d:000505 CFUNC :map
c:0103 p:0018 s:0503 b:0503 l:000502 d:000502 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:125
c:0102 p:0031 s:0498 b:0498 l:000497 d:000497 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:592
c:0101 p:0041 s:0492 b:0492 l:000491 d:000491 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:225
c:0100 p:0013 s:0487 b:0487 l:000486 d:000486 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239
c:0099 p:0166 s:0482 b:0482 l:0011e0 d:000048 EVAL
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/state_machine-0.9.4/lib/state_machine/integrations/active_record/locale.rb:8
c:0098 p:---- s:0478 b:0478 l:000477 d:000477 FINISH
c:0097 p:---- s:0476 b:0476 l:000475 d:000475 CFUNC :eval
c:0096 p:0035 s:0470 b:0470 l:0011e0 d:0011e0 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n/backend/base.rb:164
c:0095 p:0112 s:0466 b:0466 l:000465 d:000465 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n/backend/base.rb:156
c:0094 p:0012 s:0460 b:0460 l:000451 d:000459 BLOCK
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n/backend/base.rb:15
c:0093 p:---- s:0457 b:0457 l:000456 d:000456 FINISH
c:0092 p:---- s:0455 b:0455 l:000454 d:000454 CFUNC :each
c:0091 p:0045 s:0452 b:0452 l:000451 d:000451 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n/backend/base.rb:15
c:0090 p:0011 s:0448 b:0448 l:000447 d:000447 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n/backend/simple.rb:55
c:0089 p:0028 s:0445 b:0445 l:000444 d:000444 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n/backend/simple.rb:69
c:0088 p:0062 s:0437 b:0437 l:000436 d:000436 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n/backend/base.rb:26
c:0087 p:0208 s:0427 b:0427 l:000426 d:000426 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n.rb:155
c:0086 p:0066 s:0417 b:0417 l:000416 d:000416 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/helpers/number_helper.rb:116
c:0085 p:0025 s:0405 b:0405 l:000404 d:000404 METHOD
/Users/lucasefe/Programming/work/push-k/app/helpers/common_helper.rb:26
c:0084 p:0866 s:0401 b:0368 l:000367 d:000367 METHOD
/Users/lucasefe/Programming/work/push-k/app/views/organization/notifier/donation_notification_to_donor.html.haml:42
c:0083 p:0093 s:0359 b:0359 l:000349 d:000358 BLOCK
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/template.rb:135
c:0082 p:0056 s:0355 b:0355 l:000354 d:000354 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:54
c:0081 p:0028 s:0350 b:0350 l:000349 d:000349 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/template.rb:127
c:0080 p:0015 s:0343 b:0343 l:000358 d:0003c0 BLOCK
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:59
c:0079 p:0017 s:0340 b:0340 l:000330 d:000339 BLOCK
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:52
c:0078 p:0032 s:0338 b:0338 l:000337 d:000337 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications/instrumenter.rb:21
c:0077 p:0036 s:0331 b:0331 l:000330 d:000330 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:52
c:0076 p:0085 s:0326 b:0326 l:000358 d:000358 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:56
c:0075 p:0199 s:0319 b:0319 l:000318 d:000318 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:26
c:0074 p:0094 s:0312 b:0312 l:000311 d:000311 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/haml-3.0.25/lib/haml/helpers/action_view_mods.rb:13
c:0073 p:0019 s:0306 b:0306 l:000305 d:000305 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/abstract_controller/rendering.rb:115
c:0072 p:0029 s:0302 b:0302 l:000301 d:000301 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/abstract_controller/rendering.rb:109
c:0071 p:0040 s:0298 b:0298 l:000297 d:000297 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/abstract_controller/rendering.rb:102
c:0070 p:0017 s:0292 b:0290 l:000289 d:000289 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/abstract_controller/rendering.rb:93
c:0069 p:0197 s:0285 b:0285 l:000284 d:000284 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/deprecated_api.rb:111
c:0068 p:0040 s:0279 b:0277 l:002498 d:000276 BLOCK
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:712
c:0067 p:---- s:0274 b:0274 l:000273 d:000273 FINISH
c:0066 p:---- s:0272 b:0272 l:000271 d:000271 CFUNC :each
c:0065 p:0068 s:0269 b:0269 l:000259 d:000268 BLOCK
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:727
c:0064 p:---- s:0265 b:0265 l:000264 d:000264 FINISH
c:0063 p:---- s:0263 b:0263 l:000262 d:000262 CFUNC :each
c:0062 p:0025 s:0260 b:0260 l:000259 d:000259 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:722
c:0061 p:0213 s:0254 b:0254 l:002498 d:002498 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:708
c:0060 p:0015 s:0245 b:0245 l:000244 d:000244 METHOD
/Users/lucasefe/Programming/oss/roadie/lib/roadie/action_mailer_extensions.rb:26
c:0059 p:0208 s:0238 b:0238 l:000237 d:000237 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:650
c:0058 p:0030 s:0225 b:0225 l:000224 d:000224 METHOD
/Users/lucasefe/Programming/oss/roadie/lib/roadie/action_mailer_extensions.rb:20
c:0057 p:0077 s:0220 b:0220 l:000219 d:000219 METHOD
/Users/lucasefe/Programming/work/push-k/app/mailers/organization/notifier.rb:37
c:0056 p:0015 s:0216 b:0216 l:000215 d:000215 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/abstract_controller/base.rb:150
c:0055 p:0093 s:0211 b:0211 l:000210 d:000210 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/abstract_controller/base.rb:119
c:0054 p:0084 s:0205 b:0205 l:000204 d:000204 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/abstract_controller/rendering.rb:41
c:0053 p:0026 s:0200 b:0200 l:000199 d:000199 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/old_api.rb:75
c:0052 p:0028 s:0195 b:0195 l:000194 d:000194 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:448
c:0051 p:0051 s:0191 b:0191 l:000190 d:000190 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:443
c:0050 p:---- s:0186 b:0186 l:000185 d:000185 FINISH
c:0049 p:---- s:0184 b:0184 l:000183 d:000183 CFUNC :new
c:0048 p:0040 s:0179 b:0179 l:000178 d:000178 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:427
c:0047 p:---- s:0174 b:0174 l:000173 d:000173 FINISH
c:0046 p:0031 s:0172 b:0172 l:000171 d:000171 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/performable_mailer.rb:6
c:0045 p:0029 s:0169 b:0169 l:000168 d:000168 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/backend/base.rb:87
c:0044 p:0015 s:0165 b:0165 l:0003e8 d:000164 BLOCK (eval):3
c:0043 p:0059 s:0163 b:0163 l:000150 d:000162 BLOCK
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/newrelic_rpm-2.14.1/lib/new_relic/agent/instrumentation/controller_instrumentati
c:0042 p:0102 s:0160 b:0160 l:000159 d:000159 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/newrelic_rpm-2.14.1/lib/new_relic/agent/method_tracer.rb:193
c:0041 p:0150 s:0151 b:0151 l:000150 d:000150 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/newrelic_rpm-2.14.1/lib/new_relic/agent/instrumentation/controller_instrumentati
c:0040 p:0021 s:0145 b:0145 l:0003e8 d:0003e8 METHOD (eval):2
c:0039 p:0011 s:0140 b:0140 l:0006a0 d:000139 BLOCK
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:120
c:0038 p:0109 s:0138 b:0138 l:002500 d:002500 METHOD
/Users/lucasefe/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/timeout.rb:57
c:0037 p:0034 s:0126 b:0126 l:0006a0 d:001c68 BLOCK
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:120
c:0036 p:0024 s:0124 b:0124 l:000123 d:000123 METHOD
/Users/lucasefe/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/benchmark.rb:309
c:0035 p:0017 s:0118 b:0118 l:0006a0 d:0006a0 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:119
c:0034 p:0039 s:0112 b:0112 l:000111 d:000111 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:177
c:0033 p:0009 s:0108 b:0108 l:000100 d:000107 BLOCK
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:104
c:0032 p:---- s:0106 b:0106 l:000105 d:000105 FINISH
c:0031 p:---- s:0104 b:0104 l:000103 d:000103 CFUNC :times
c:0030 p:0026 s:0101 b:0101 l:000100 d:000100 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:103
c:0029 p:0009 s:0095 b:0095 l:001b18 d:000094 BLOCK
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:78
c:0028 p:0024 s:0093 b:0093 l:000092 d:000092 METHOD
/Users/lucasefe/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/benchmark.rb:309
c:0027 p:0021 s:0087 b:0087 l:001b18 d:0022b0 BLOCK
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:77
c:0026 p:---- s:0082 b:0082 l:000081 d:000081 FINISH
c:0025 p:---- s:0080 b:0080 l:000079 d:000079 CFUNC :loop
c:0024 p:0047 s:0077 b:0077 l:001b18 d:001b18 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:74
c:0023 p:0181 s:0074 b:0074 l:000073 d:000073 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/command.rb:105
c:0022 p:0048 s:0068 b:0068 l:001918 d:000067 BLOCK
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/command.rb:83
c:0021 p:---- s:0065 b:0065 l:000064 d:000064 FINISH
c:0020 p:---- s:0063 b:0063 l:000062 d:000062 CFUNC :call
c:0019 p:0053 s:0060 b:0060 l:000428 d:000448 BLOCK
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/daemons-1.1.2/lib/daemons/application.rb:249
c:0018 p:---- s:0058 b:0058 l:000057 d:000057 FINISH
c:0017 p:---- s:0056 b:0056 l:000055 d:000055 CFUNC :call
c:0016 p:0110 s:0053 b:0053 l:000428 d:000428 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/daemons-1.1.2/lib/daemons/application.rb:260
c:0015 p:0178 s:0048 b:0048 l:000047 d:000047 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/daemons-1.1.2/lib/daemons/application.rb:293
c:0014 p:0309 s:0045 b:0045 l:000044 d:000044 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/daemons-1.1.2/lib/daemons/controller.rb:73
c:0013 p:0011 s:0042 b:0042 l:002340 d:000041 BLOCK
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/daemons-1.1.2/lib/daemons.rb:195
c:0012 p:---- s:0040 b:0040 l:000039 d:000039 FINISH
c:0011 p:---- s:0038 b:0038 l:000037 d:000037 CFUNC :call
c:0010 p:0014 s:0035 b:0035 l:000034 d:000034 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/daemons-1.1.2/lib/daemons/cmdline.rb:109
c:0009 p:0175 s:0030 b:0030 l:002340 d:002340 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/daemons-1.1.2/lib/daemons.rb:194
c:0008 p:0039 s:0024 b:0024 l:001918 d:001918 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/command.rb:81
c:0007 p:0045 s:0019 b:0019 l:000010 d:000018 BLOCK
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/command.rb:75
c:0006 p:---- s:0016 b:0016 l:000015 d:000015 FINISH
c:0005 p:---- s:0014 b:0014 l:000013 d:000013 CFUNC :times
c:0004 p:0197 s:0011 b:0011 l:000010 d:000010 METHOD
/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/command.rb:73
c:0003 p:0099 s:0006 b:0006 l:002258 d:000e08 EVAL
script/delayed_job:5
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:002258 d:002258 TOP
---------------------------

-- Ruby level backtrace information

script/delayed_job:5:in `<main>'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/command.rb:73:in
`daemonize'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/command.rb:73:in
`times'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/command.rb:75:in
`block in daemonize'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/command.rb:81:in
`run_process'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/daemons-1.1.2/lib/daemons.rb:194:in
`run_proc'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/daemons-1.1.2/lib/daemons/cmdline.rb:109:in
`catch_exceptions'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/daemons-1.1.2/lib/daemons/cmdline.rb:109:in
`call'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/daemons-1.1.2/lib/daemons.rb:195:in
`block in run_proc'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/daemons-1.1.2/lib/daemons/controller.rb:73:in
`run'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/daemons-1.1.2/lib/daemons/application.rb:293:in
`start'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/daemons-1.1.2/lib/daemons/application.rb:260:in
`start_proc'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/daemons-1.1.2/lib/daemons/application.rb:260:in
`call'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/daemons-1.1.2/lib/daemons/application.rb:249:in
`block in start_proc'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/daemons-1.1.2/lib/daemons/application.rb:249:in
`call'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/command.rb:83:in
`block in run_process'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/command.rb:105:in
`run'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:74:in
`start'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:74:in
`loop'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:77:in
`block in start'

/Users/lucasefe/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/benchmark.rb:309:in
`realtime'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:78:in
`block (2 levels) in start'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:103:in
`work_off'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:103:in
`times'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:104:in
`block in work_off'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:177:in
`reserve_and_run_one_job'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:119:in
`run'

/Users/lucasefe/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/benchmark.rb:309:in
`realtime'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:120:in
`block in run'

/Users/lucasefe/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/timeout.rb:57:in
`timeout'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/worker.rb:120:in
block (2 levels) in run' (eval):2:ininvoke_job_with_newrelic_transaction_trace'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/newrelic_rpm-2.14.1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:248:in
`perform_action_with_newrelic_trace'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/newrelic_rpm-2.14.1/lib/new_relic/agent/method_tracer.rb:193:in
`trace_execution_scoped'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/newrelic_rpm-2.14.1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:253:in
block in perform_action_with_newrelic_trace' (eval):3:inblock in invoke_job_with_newrelic_transaction_trace'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/backend/base.rb:87:in
`invoke_job'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/delayed_job-2.1.4/lib/delayed/performable_mailer.rb:6:in
`perform'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:427:in
`method_missing'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:427:in
`new'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:443:in
`initialize'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:448:in
`process'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/old_api.rb:75:in
`process'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/abstract_controller/rendering.rb:41:in
`process'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/abstract_controller/base.rb:119:in
`process'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/abstract_controller/base.rb:150:in
`process_action'

/Users/lucasefe/Programming/work/push-k/app/mailers/organization/notifier.rb:37:in
`donation_notification_to_donor'

/Users/lucasefe/Programming/oss/roadie/lib/roadie/action_mailer_extensions.rb:20:in
`mail_with_inline_styles'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:650:in
`mail'

/Users/lucasefe/Programming/oss/roadie/lib/roadie/action_mailer_extensions.rb:26:in
`collect_responses_and_parts_order_with_inline_styles'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:708:in
`collect_responses_and_parts_order'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:722:in
`each_template'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:722:in
`each'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:727:in
`block in each_template'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:727:in
`each'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/base.rb:712:in
`block in collect_responses_and_parts_order'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionmailer-3.0.5/lib/action_mailer/deprecated_api.rb:111:in
`render'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/abstract_controller/rendering.rb:93:in
`render'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/abstract_controller/rendering.rb:102:in
`render_to_string'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/abstract_controller/rendering.rb:109:in
`render_to_body'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/abstract_controller/rendering.rb:115:in
`_render_template'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/haml-3.0.25/lib/haml/helpers/action_view_mods.rb:13:in
`render_with_haml'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:26:in
`render'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:56:in
`_render_template'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:52:in
`instrument'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications/instrumenter.rb:21:in
`instrument'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:52:in
`block in instrument'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/render/rendering.rb:59:in
`block in _render_template'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/template.rb:127:in
`render'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/notifications.rb:54:in
`instrument'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/template.rb:135:in
`block in render'

/Users/lucasefe/Programming/work/push-k/app/views/organization/notifier/donation_notification_to_donor.html.haml:42:in
`_app_views_organization_notifier_donation_notification_to_donor_html_haml___3952829671256141674_2204796400_2586591479076942447'

/Users/lucasefe/Programming/work/push-k/app/helpers/common_helper.rb:26:in
`currency'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.0.5/lib/action_view/helpers/number_helper.rb:116:in
`number_to_currency'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n.rb:155:in
`translate'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n/backend/base.rb:26:in
`translate'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n/backend/simple.rb:69:in
`lookup'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n/backend/simple.rb:55:in
`init_translations'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n/backend/base.rb:15:in
`load_translations'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n/backend/base.rb:15:in
`each'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n/backend/base.rb:15:in
`block in load_translations'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n/backend/base.rb:156:in
`load_file'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n/backend/base.rb:164:in
`load_rb'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/i18n-0.5.0/lib/i18n/backend/base.rb:164:in
`eval'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/state_machine-0.9.4/lib/state_machine/integrations/active_record/locale.rb:8:in
`load_rb'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in
`require'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:225:in
`load_dependency'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:592:in
`new_constants_in'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:125:in
`watch_namespaces'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:125:in
`map'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:128:in
`block in watch_namespaces'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/core_ext/module/introspection.rb:86:in
`local_constant_names'

/Users/lucasefe/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.5/lib/active_support/core_ext/module/introspection.rb:79:in
`local_constants'

-- C level backtrace information

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension

libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

[1]    11494 abort      script/delayed_job run




ruby(11512,0x100494ca0) malloc: *** error for object 0x10d590014:

pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
[1] 11512 abort script/delayed_job run

On Mon, Apr 11, 2011 at 4:22 AM, Mange <
[email protected]>wrote:

Hmm... Looks like we get an error on an error here. Some error occurs
inside Roadie, but rack dies when trying to show us the error.

The C errors lead me to believe that Nokogiri / libxml2 is to blame.

Could you please do the following?

  1. Clone roadie to a local directory
  2. Redefine inspect on most Roadie classes to return just the class name
    instead
  3. Switch your app into using the local version of the gem (possible
    through Bundler, just add :path => ...)
  4. See if you get the same error

Are you invoking the DJ workers in the same Bundler environment, BTW?

Reply to this email directly or view it on GitHub:
#3 (comment)

Lucas
http://www.lucasefe.com.ar/
"When life is hard, you have to change. " S. Hoon

from roadie.

Mange avatar Mange commented on August 20, 2024

Looking at the backtrace makes it appear like Roadie was working successfully, but that something in the view broke. I still believe that Roadie is to blame due to your statement about testing it, but I have a hard time figuring out how. I am extending a Rails class, and maybe that conflicts with something DJ does.

Here's what I think is happening: DJ is serializing something that cannot really be serialized. Could you try sending via another class instead so we can avoid most serializations? Something like this:

class DonationNotifier < Struct.new(:donor)
  def perform
    Organization::Notifier.donation_notification_to_organization(donor) 
    Organization::Notifier.donation_notification_to_donor(donor)
  end
end

def notify_parties
  # Even better would be (for troubleshooting) DonationNotifier.new(id) and then Donor.find(id) in the job if possible
  Delayed::Job.enqueue(DonationNotifier.new(self))
end

If this works, try to adjust the serialization to a comfortable level. If not, the problem runs even deeper.

If so, here's some other ideas:

  • Is your app 1.8.7 compatible? Maybe you could try it and see what happens? I haven't tried Roadie in 1.9 yet (although that's the version I use for any new projects today).
  • My last idea is for you to attach a debugger somewhere and start up the worker in the foreground and calmly step through the methods to see where it fails.
  • If I had the time, I would try to start up a new Rails app and try this one in it to see if I could reproduce it. If you could supply a minimal project where this happens, I'd take a look at it.

EDIT: I was still using delay inside the perform method. Whoops.

from roadie.

crystalneth avatar crystalneth commented on August 20, 2024

I've seen segfaults like this caused by large inline attachments.

from roadie.

Mange avatar Mange commented on August 20, 2024

I hadn't even considered inline attachments.

@lucasefe: Do you use any attachments? Inline or otherwise?

from roadie.

robertothais avatar robertothais commented on August 20, 2024

I was having the same problem. Looking around I found a related issue in the Nokogiri repo.

Upgrading libxml2 to its latest version (2.7.8) fixed the problem for me. Not sure exactly what the root of the issue was, though.

from roadie.

crystalneth avatar crystalneth commented on August 20, 2024

I was able to resolve this with the following command adopted from a
comment in that bug. The problem appears to be libxml2 2.7.7 and
upgrading to 2.7.8 resolved the issue for me.

brew install libxml2

gem install nokogiri --
--with-xml2-include=/usr/local/Cellar/libxml2/2.7.8/include/libxml2
--with-xml2-lib=/usr/local/Cellar/libxml2/2.7.8/lib
--with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26

(I'm using brew obviously.)

On Thu, May 5, 2011 at 4:51 PM, rpbertp13
[email protected]
wrote:

I was having the same problem. Looking around I found a related issue Β in the Nokogiri repo.

Upgrading libxml2 to its latest version (2.7.8) fixed the problem for me. Not sure exactly what the root of the issue was, though.

Reply to this email directly or view it on GitHub:
#3 (comment)

Sent from a device that makes me spell badly and write short emails
Alex Neth
Liivid, Inc
www.liivid.com
+1 206 499 4995
+86 13761577188

from roadie.

Mange avatar Mange commented on August 20, 2024

Thanks guys, I'm going to mark this as invalid until I get more feedback from @lucasefe.

from roadie.

lucasefe avatar lucasefe commented on August 20, 2024

Sorry for the delay. Looks like this is working OK with the updated solution.

Thank you all.

from roadie.

nicholaides avatar nicholaides commented on August 20, 2024

I had this same problem and updating libxml2 worked for me. It would be nice to have this written down somewhere like the README.

UDPATE: I spoke too soon... it upgrading my libxml2 didn't fix the problem.

UPDATE 2: I spoke too soon, again.

I was having the malloc eror when running my specs. I fixed it buy updating libxml2 and reinstalling Nokogiri with the explicit references to the new libxml2 locations.

from roadie.

Mange avatar Mange commented on August 20, 2024

I'll add it since it looks like more people are affected by this than I expected.

from roadie.

mhuggins avatar mhuggins commented on August 20, 2024

Thanks for all the info here everyone! I was running into a malloc crash with Roadie as well, and used a modified version of @Allix's solution from above:

brew install libxml2
brew install libxslt
gem install nokogiri -- \
    --with-xml2-include=/usr/local/Cellar/libxml2/2.7.8/include/libxml2 \
    --with-xml2-lib=/usr/local/Cellar/libxml2/2.7.8/lib \
    --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26

Edit: I take it back, I'm still getting malloc errors on my OS X setup. :/

from roadie.

mhuggins avatar mhuggins commented on August 20, 2024

Question - I've been getting this error on OS X and have not pushed my Roadie-based code to my production Linux server yet. Has anyone experienced this problem on any Linux distros, or was it just OS X users?

from roadie.

mhuggins avatar mhuggins commented on August 20, 2024

Weird... after updating to Ruby 1.9.3-p0 and running the commands I included above, the issue appears to be resolved. Not really sure about the cause of it all and if it's truly fixed, which I don't like. But thought I'd share my approach here in case it helps anyone else out.

from roadie.

Mange avatar Mange commented on August 20, 2024

I've had some malloc problems as well, but that was when my RVM became a bit borked; it thought that 1.9.2 was active, but system Ruby was in front in my PATH, so everything ran with 1.8.7. That's a trivial problem and easy to find with ruby --version.

But no, I've not heard about anyone having this problem on Linux. It's much more standard how libraries are handled there, so every part behaves like expected.

from roadie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.