Skip to content

"[BUG] Bus Error" on OS X #2

Closed
Closed

Description

@jayzes

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?

Activity

  1. acatighera commented on Jun 16, 2009

    @acatighera

    I'm getting the same thing as well on OS X using ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0] .

  2. jayzes commented on Jun 17, 2009

    @jayzes
    Author

    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.

  3. jodosha commented on Jun 21, 2009

    @jodosha

    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.

  4. tmm1 commented on Oct 13, 2009

    @tmm1
    Owner

    These segfaults should be fixed. Please open a new ticket if you run into more issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions