You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running OS X 10.5.6, ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0], I keep getting bus errors when I try to profile my Rails app. Whenever the PerfTools::CpuProfiler.stop call runs, either by executing script/server with "CPUPROFILE=my_app_profile RUBYOPT="-rgem which perftools | tail -1" script/server" or using some custom hooks to start/stop profiling from a controller, I get a short and cryptic error message from mongrel as it crashes:
[BUG] Bus Error
ruby 1.8.6 (2008-03-03) [universal-darwin9.0]
<18 connection closed.
Abort trap
I'm a little stumped as to what else to look for - didn't see anything else in the README or Ilya's blog post, and while the GoRuCo talk mentions patching the Ruby interpreter I didn't see any instructions for that in the README. Any ideas as to what could be going on?
One other update on this - I've noticed that it only happens when I try to profile multiple requests. If I set up the start/stop calls in an around filter and only profile a single request, it works fine. If I try multiple requests, I get the bus error.
Activity
acatighera commentedon Jun 16, 2009
I'm getting the same thing as well on OS X using ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0] .
jayzes commentedon Jun 17, 2009
One other update on this - I've noticed that it only happens when I try to profile multiple requests. If I set up the start/stop calls in an around filter and only profile a single request, it works fine. If I try multiple requests, I get the bus error.
jodosha commentedon Jun 21, 2009
Ran into the same issue, my ruby version is:
ruby 1.8.6 (2009-06-08 patchlevel 369) [i686-darwin9.7.0]
With the pl 287 this won't happen. I just tried to run the add_numbers_profile example.
tmm1 commentedon Oct 13, 2009
These segfaults should be fixed. Please open a new ticket if you run into more issues.
prevent explosions when stopping while paused