Project

General

Profile

Actions

Bug #3941

closed

Segmentation fault ruby 1.9.2p0 [x86_64-linux]

Added by modsaid (mahmoud said) over 13 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2p0 [x86_64-linux]
Backport:
[ruby-core:32770]

Description

=begin
Greetings

I'm using The latest ruby 1.9.2 via rvm. on my ubuntu 10.04 64bit AMD machine.
In my rails project. I have a rake tasks that scrapes some web pages using curl based libraries. It randomly fails with the following stack trace

h3. Error message:

/usr/local/rvm/gems/ruby-1.9.2-head/gems/activerecord-2.3.8/lib/active_record/attribute_methods.rb:272: [BUG] Segmentation fault
ruby 1.9.2p0 (2010-08-18 revision 29034) [x86_64-linux]
-- control frame ----------
c:0082 p:0034 s:0332 b:0331 l:000330 d:000330 METHOD /usr/local/rvm/gems/ruby-1.9.2-head/gems/activerecord-2.3.8/lib/active_record/attribute_methods.rb:272
c:0081 p:0013 s:0325 b:0325 l:000324 d:000324 METHOD /usr/local/rvm/gems/ruby-1.9.2-head/gems/activerecord-2.3.8/lib/active_record/base.rb:2807
c:0080 p:0041 s:0320 b:0318 l:000309 d:000317 BLOCK /usr/local/rvm/gems/ruby-1.9.2-head/gems/activerecord-2.3.8/lib/active_record/base.rb:2889

Attached is the full stack trace and control frame data
=end


Files

ruby-segmentation-fault-report.txt (23.3 KB) ruby-segmentation-fault-report.txt full error information modsaid (mahmoud said), 10/13/2010 06:51 PM
other-segfault-report.txt (30.9 KB) other-segfault-report.txt aguynamedryan (Ryan Duryea), 11/16/2010 05:15 AM
yet-another-segfault-report.txt (35.3 KB) yet-another-segfault-report.txt aguynamedryan (Ryan Duryea), 11/16/2010 05:32 AM

Related issues 1 (0 open1 closed)

Is duplicate of Backport192 - Backport #3910: SEGV at fptr_finalizeClosedyugui (Yuki Sonoda)10/06/2010Actions
Actions #1

Updated by naruse (Yui NARUSE) over 13 years ago

  • ruby -v set to ruby 1.9.2p0 [x86_64-linux]

=begin

=end

Actions #2

Updated by naruse (Yui NARUSE) over 13 years ago

=begin
Can you show reproducible code?
And can you show bucktrace made by a ruby built with -g option.
http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#Debugging-Options
=end

Actions #3

Updated by naruse (Yui NARUSE) over 13 years ago

  • Status changed from Open to Feedback

=begin

=end

Actions #4

Updated by aguynamedryan (Ryan Duryea) over 13 years ago

=begin
I think my install of RVM has ruby built with -ggdb so I'm going to attach my own report on the chance that it is helpful.

Until today, I have never encountered this problem. I've been running the same version of ruby for many weeks (I don't recall exactly, but it's been over a month). The only change I can think of is that I updated to Mac OS X 10.6.5 over the weekend. After I encountered the problem this morning, I completely wiped out and reinstalled rvm and all my gems, but the problem persists.

So far the problem seems limited to one action in one controller in my rails app. Even when I pass identical requests to my rails app, roughly two out of three requests will succeed and one will fail. Because of the problem's intermittent nature, I have yet to isolate a good piece of reproducible code.
=end

Actions #5

Updated by aguynamedryan (Ryan Duryea) over 13 years ago

=begin
I ran into the same problem running the same action as I mentioned before, but the segfault appears to occur in a different place. I've attached another report.
=end

Actions #6

Updated by nobu (Nobuyoshi Nakada) over 13 years ago

  • Status changed from Feedback to Closed

=begin
Thank you.
The backtrace showed that it's a duplicate of #3910 and so on.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0