Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
REE crashes with SIGABRT or SIGSEGV on Ubuntu 8.04
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Barry Jaspan  
View profile  
 More options Feb 14 2012, 11:28 am
From: Barry Jaspan <barry.jas...@acquia.com>
Date: Tue, 14 Feb 2012 08:28:13 -0800 (PST)
Local: Tues, Feb 14 2012 11:28 am
Subject: REE crashes with SIGABRT or SIGSEGV on Ubuntu 8.04
We are experiencing fairly frequent crashes of REE on Ubuntu 8.04.
Some of the time we get an error message saying the crash is a
segfault on a specific line of Ruby code which calls
IO::readpartial():

          ready = IO.select(rds.keys, nil, nil, nil)
          ready[0].each do |io|
            begin
              data = io.readpartial(8192)

It appears that reducing the readpartial buffer size from 8192 to 2048
helps, but of course it should never segfault. Other times, we get an
abort. We just changed our server config to save coredumps, and so far
we have examples of the abort but not the segfault.

We're running on EC2 with Ubuntu's stock 8.04 AMIs. Our Ruby packages
are:

# ruby -v
ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux], MBARI 0x6770,
Ruby Enterprise Edition 2011.03
# dpkg -l | grep ruby
ii  libmysql-ruby1.8
2.7.4-1                           MySQL module for Ruby 1.8
ii  libopenssl-ruby
4.1                               OpenSSL interface for Ruby
ii  libopenssl-ruby1.8
1.8.7.20110415-0bbox2             OpenSSL interface for Ruby 1.8
ii  libreadline-ruby1.8
1.8.7.20110415-0bbox2             Readline interface for Ruby 1.8
ii  libruby1.8
1.8.7.20110415-0bbox2             Libraries necessary to run Ruby 1.8
ii  rdoc
4.1                               Generate documentation from ruby
source file
ii  ruby
4.1                               An interpreter of object-oriented
scripting
ii  ruby1.8
1.8.7.20110415-0bbox2             Interpreter of object-oriented
scripting lan
ii  ruby1.8-dev
1.8.7.20110415-0bbox2             Header files for compiling extension
modules

We do not have debugging symbols, but the stack trace pretty clearly
shows the abort is called during a GC operation inside ruby_xmalloc():

Program terminated with signal 6, Aborted.
[New process 24549]
#0  0x00007f11414c2095 in raise () from /lib/libc.so.6
(gdb) where
#0  0x00007f11414c2095 in raise () from /lib/libc.so.6
#1  0x00007f11414c3af0 in abort () from /lib/libc.so.6
#2  0x00007f1142302f18 in rb_bug () from /usr/lib/libruby1.8.so.1.8
#3  0x00007f114236ccef in ?? () from /usr/lib/libruby1.8.so.1.8
#4  <signal handler called>
#5  0x00007f114236f8a7 in st_foreach () from /usr/lib/libruby1.8.so.
1.8
#6  0x00007f11423276ab in rb_gc_mark () from /usr/lib/libruby1.8.so.
1.8
#7  0x00007f1142327848 in ?? () from /usr/lib/libruby1.8.so.1.8
#8  0x00007f1142327a55 in ?? () from /usr/lib/libruby1.8.so.1.8
#9  0x00007f114232869e in ?? () from /usr/lib/libruby1.8.so.1.8
#10 0x00007f114232891c in ruby_xmalloc () from /usr/lib/libruby1.8.so.
1.8
#11 0x00007f1142371237 in ?? () from /usr/lib/libruby1.8.so.1.8
#12 0x00007f1142333b7b in ?? () from /usr/lib/libruby1.8.so.1.8
#13 0x00007f1142333d3b in ?? () from /usr/lib/libruby1.8.so.1.8
#14 0x00007f1142310ecb in ?? () from /usr/lib/libruby1.8.so.1.8
#15 0x00007f1142311208 in ?? () from /usr/lib/libruby1.8.so.1.8
#16 0x00007f114231bbf2 in ?? () from /usr/lib/libruby1.8.so.1.8
#17 0x00007f114231bc5d in ?? () from /usr/lib/libruby1.8.so.1.8
#18 0x00007f11423125e3 in ?? () from /usr/lib/libruby1.8.so.1.8
#19 0x00007f114230c7d0 in ?? () from /usr/lib/libruby1.8.so.1.8
#20 0x00007f114230f0c9 in ?? () from /usr/lib/libruby1.8.so.1.8
#21 0x00007f11422efb41 in rb_ary_each () from /usr/lib/libruby1.8.so.
1.8
#22 0x00007f1142310ecb in ?? () from /usr/lib/libruby1.8.so.1.8
#23 0x00007f1142311208 in ?? () from /usr/lib/libruby1.8.so.1.8
#24 0x00007f114231bbf2 in ?? () from /usr/lib/libruby1.8.so.1.8
#25 0x00007f114231c456 in ?? () from /usr/lib/libruby1.8.so.1.8
#26 0x00007f114230e01a in ?? () from /usr/lib/libruby1.8.so.1.8
#27 0x00007f114230c66c in ?? () from /usr/lib/libruby1.8.so.1.8
#28 0x00007f114230f0c9 in ?? () from /usr/lib/libruby1.8.so.1.8
#29 0x00007f114230c66c in ?? () from /usr/lib/libruby1.8.so.1.8
#30 0x00007f114230f0c9 in ?? () from /usr/lib/libruby1.8.so.1.8
#31 0x00007f114230ff1e in ?? () from /usr/lib/libruby1.8.so.1.8
#32 0x00007f1142310ecb in ?? () from /usr/lib/libruby1.8.so.1.8
#33 0x00007f1142311208 in ?? () from /usr/lib/libruby1.8.so.1.8
#34 0x00007f114231bbf2 in ?? () from /usr/lib/libruby1.8.so.1.8
#35 0x00007f114230de63 in ?? () from /usr/lib/libruby1.8.so.1.8
#36 0x00007f114230c66c in ?? () from /usr/lib/libruby1.8.so.1.8
#37 0x00007f114230de63 in ?? () from /usr/lib/libruby1.8.so.1.8
#38 0x00007f1142310e23 in ?? () from /usr/lib/libruby1.8.so.1.8
#39 0x00007f1142311208 in ?? () from /usr/lib/libruby1.8.so.1.8
#40 0x00007f114231bbf2 in ?? () from /usr/lib/libruby1.8.so.1.8
#41 0x00007f114231c456 in ?? () from /usr/lib/libruby1.8.so.1.8
#42 0x00007f1142310e23 in ?? () from /usr/lib/libruby1.8.so.1.8
#43 0x00007f1142311208 in ?? () from /usr/lib/libruby1.8.so.1.8
#44 0x00007f114231bbf2 in ?? () from /usr/lib/libruby1.8.so.1.8
#45 0x00007f114231c456 in ?? () from /usr/lib/libruby1.8.so.1.8
#46 0x00007f114230ca6d in ?? () from /usr/lib/libruby1.8.so.1.8
#47 0x00007f114230d365 in ?? () from /usr/lib/libruby1.8.so.1.8
#48 0x00007f11423125e3 in ?? () from /usr/lib/libruby1.8.so.1.8
#49 0x00007f114230c7d0 in ?? () from /usr/lib/libruby1.8.so.1.8
#50 0x00007f1142310e23 in ?? () from /usr/lib/libruby1.8.so.1.8
#51 0x00007f1142311208 in ?? () from /usr/lib/libruby1.8.so.1.8
#52 0x00007f114231bbf2 in ?? () from /usr/lib/libruby1.8.so.1.8
#53 0x00007f114231c456 in ?? () from /usr/lib/libruby1.8.so.1.8
#54 0x00007f114230ca6d in ?? () from /usr/lib/libruby1.8.so.1.8
#55 0x00007f11423125e3 in ?? () from /usr/lib/libruby1.8.so.1.8
#56 0x00007f114230c7d0 in ?? () from /usr/lib/libruby1.8.so.1.8
#57 0x00007f114230de63 in ?? () from /usr/lib/libruby1.8.so.1.8
---Type <return> to continue, or q <return> to quit---
#58 0x00007f114230c66c in ?? () from /usr/lib/libruby1.8.so.1.8
#59 0x00007f1142310e23 in ?? () from /usr/lib/libruby1.8.so.1.8
#60 0x00007f1142311208 in ?? () from /usr/lib/libruby1.8.so.1.8
#61 0x00007f114231b957 in ?? () from /usr/lib/libruby1.8.so.1.8
#62 0x00007f114231b9c0 in ?? () from /usr/lib/libruby1.8.so.1.8
#63 0x00007f11423125e3 in ?? () from /usr/lib/libruby1.8.so.1.8
#64 0x00007f114230c7d0 in ?? () from /usr/lib/libruby1.8.so.1.8
#65 0x00007f114230c66c in ?? () from /usr/lib/libruby1.8.so.1.8
#66 0x00007f1142310e23 in ?? () from /usr/lib/libruby1.8.so.1.8
#67 0x00007f1142311208 in ?? () from /usr/lib/libruby1.8.so.1.8
#68 0x00007f114231b957 in ?? () from /usr/lib/libruby1.8.so.1.8
#69 0x00007f114230f0c9 in ?? () from /usr/lib/libruby1.8.so.1.8
#70 0x00007f114232a5c7 in ?? () from /usr/lib/libruby1.8.so.1.8
#71 0x00007f114232abc3 in ?? () from /usr/lib/libruby1.8.so.1.8
#72 0x00007f114236f8b5 in st_foreach () from /usr/lib/libruby1.8.so.
1.8
#73 0x00007f114232c41a in ?? () from /usr/lib/libruby1.8.so.1.8
#74 0x00007f114230b692 in rb_ensure () from /usr/lib/libruby1.8.so.1.8
#75 0x00007f114232ba8f in rb_hash_foreach () from /usr/lib/
libruby1.8.so.1.8
#76 0x00007f114232bef1 in ?? () from /usr/lib/libruby1.8.so.1.8
#77 0x00007f1142310ecb in ?? () from /usr/lib/libruby1.8.so.1.8
#78 0x00007f1142311208 in ?? () from /usr/lib/libruby1.8.so.1.8
#79 0x00007f114231bbf2 in ?? () from /usr/lib/libruby1.8.so.1.8
#80 0x00007f114231c456 in ?? () from /usr/lib/libruby1.8.so.1.8
#81 0x00007f114230c66c in ?? () from /usr/lib/libruby1.8.so.1.8
#82 0x00007f11423125e3 in ?? () from /usr/lib/libruby1.8.so.1.8
#83 0x00007f114230c7d0 in ?? () from /usr/lib/libruby1.8.so.1.8
#84 0x00007f114230de63 in ?? () from /usr/lib/libruby1.8.so.1.8
#85 0x00007f114230e01a in ?? () from /usr/lib/libruby1.8.so.1.8
#86 0x00007f114230c66c in ?? () from /usr/lib/libruby1.8.so.1.8
#87 0x00007f1142310e23 in ?? () from /usr/lib/libruby1.8.so.1.8
#88 0x00007f1142311208 in ?? () from /usr/lib/libruby1.8.so.1.8
#89 0x00007f114231bbf2 in ?? () from /usr/lib/libruby1.8.so.1.8
#90 0x00007f11423125e3 in ?? () from /usr/lib/libruby1.8.so.1.8
#91 0x00007f114230c7d0 in ?? () from /usr/lib/libruby1.8.so.1.8
#92 0x00007f114231fcfb in ?? () from /usr/lib/libruby1.8.so.1.8
#93 0x00007f114231fd45 in ruby_exec () from /usr/lib/libruby1.8.so.1.8
#94 0x00007f114231fd70 in ruby_run () from /usr/lib/libruby1.8.so.1.8
#95 0x0000000000400883 in main ()
(gdb)

Help?

Thanks,

Barry


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options Feb 14 2012, 12:32 pm
From: Hongli Lai <hon...@phusion.nl>
Date: Tue, 14 Feb 2012 18:32:36 +0100
Local: Tues, Feb 14 2012 12:32 pm
Subject: Re: REE crashes with SIGABRT or SIGSEGV on Ubuntu 8.04

Have you already tried version 2012.01?

Sent from my Android phone.
Op 14 feb. 2012 18:12 schreef "Barry Jaspan" <barry.jas...@acquia.com> het
volgende:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Barry Jaspan  
View profile  
 More options Feb 14 2012, 5:53 pm
From: Barry Jaspan <barry.jas...@acquia.com>
Date: Tue, 14 Feb 2012 17:53:38 -0500
Local: Tues, Feb 14 2012 5:53 pm
Subject: Re: REE crashes with SIGABRT or SIGSEGV on Ubuntu 8.04

We have not tried 2012.01 yet. We are using BrightBox's build and they do
not yet have that version. We are currently switching to use Phusion's
version but it will take a bit of work since the installation is set up
differently.

Are there fixes in 2012.01 for memory allocation/gc-related bugs?

Barry

--
Barry Jaspan
Senior Architect | Acquia <http://acquia.com>
barry.jas...@acquia.com | (c) 617.905.2208 | (w) 781-313-8298

Acquia ...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options Feb 15 2012, 3:29 am
From: Hongli Lai <hon...@phusion.nl>
Date: Wed, 15 Feb 2012 09:29:06 +0100
Local: Wed, Feb 15 2012 3:29 am
Subject: Re: REE crashes with SIGABRT or SIGSEGV on Ubuntu 8.04

On Tue, Feb 14, 2012 at 11:53 PM, Barry Jaspan <barry.jas...@acquia.com> wrote:
> We have not tried 2012.01 yet. We are using BrightBox's build and they do
> not yet have that version. We are currently switching to use Phusion's
> version but it will take a bit of work since the installation is set up
> differently.

> Are there fixes in 2012.01 for memory allocation/gc-related bugs?

Yes. A lot of crasher bugs should be fixed in 2012.01.

--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic