Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 453494 - ruby Aborts with simple rails apps
Summary: ruby Aborts with simple rails apps
Keywords:
Status: CLOSED DUPLICATE of bug 452825
Alias: None
Product: Fedora
Classification: Fedora
Component: ruby
Version: 9
Hardware: i386
OS: Linux
high
high
Target Milestone: ---
Assignee: Akira TAGOH
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-07-01 00:51 UTC by Anthony Green
Modified: 2008-07-01 01:30 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-01 01:30:33 UTC


Attachments (Terms of Use)

Description Anthony Green 2008-07-01 00:51:46 UTC
Description of problem:
ruby aborts with even the simplest hello world rails app.
Try a simple "hello world" rails app, from any intro rails book, and reload a
few times.  It won't take long before you get an "abort()".
Then I tried a goldberg generated site (with sqlite3) and got the trace below. 
So maybe this is really two bugs.

Version-Release number of selected component (if applicable):
ruby-1.8.6.230-2.fc9.i386
rubygem-rails-2.0.2-2.fc9.noarch

How reproducible:
Always

Steps to Reproduce:
1.Create a "hello world" rails app
2.Load and reload a few times
  
Actual results:
You'll get a simple Abort eventually.

More complex rails apps may result in something like the following:

*** glibc detected *** ruby: double free or corruption (!prev): 0x095fc780 ***
======= Backtrace: =========
/lib/libc.so.6[0x3e87e4]
/lib/libc.so.6(cfree+0x96)[0x3ea846]
/usr/lib/libruby.so.1.8[0x1579d4]
/usr/lib/libruby.so.1.8(ruby_xmalloc+0x7d)[0x157eed]
/usr/lib/libruby.so.1.8[0x19574d]
/usr/lib/libruby.so.1.8(ruby_re_search+0x143)[0x1997f3]
/usr/lib/libruby.so.1.8(rb_reg_search+0xef)[0x1940ef]
/usr/lib/libruby.so.1.8(rb_reg_match+0x45)[0x1944c5]
/usr/lib/libruby.so.1.8[0x13dbbc]
/usr/lib/libruby.so.1.8[0x13e68d]
/usr/lib/libruby.so.1.8[0x142b71]
/usr/lib/libruby.so.1.8[0x142e0a]
/usr/lib/libruby.so.1.8(rb_funcall2+0x73)[0x1437f3]
/usr/lib/libruby.so.1.8(rb_obj_call_init+0x57)[0x143897]
/usr/lib/libruby.so.1.8(rb_class_new_instance+0x3a)[0x1729aa]
/usr/lib/libruby.so.1.8[0x137e50]
/usr/lib/libruby.so.1.8[0x142c6e]
/usr/lib/libruby.so.1.8[0x142e0a]
/usr/lib/libruby.so.1.8[0x13d5b1]
/usr/lib/libruby.so.1.8[0x13e831]
/usr/lib/libruby.so.1.8[0x142b71]
/usr/lib/libruby.so.1.8[0x142e0a]
/usr/lib/libruby.so.1.8[0x143bdc]
/usr/lib/libruby.so.1.8(rb_funcall+0x24)[0x143d54]
/usr/lib/libruby.so.1.8[0x12dabe]
/usr/lib/libruby.so.1.8[0x137e1b]
/usr/lib/libruby.so.1.8[0x142c6e]
/usr/lib/libruby.so.1.8[0x142e0a]
/usr/lib/libruby.so.1.8[0x13d5b1]
/usr/lib/libruby.so.1.8[0x13e68d]
/usr/lib/libruby.so.1.8[0x13ff9e]
/usr/lib/libruby.so.1.8[0x142b71]
/usr/lib/libruby.so.1.8[0x142e0a]
/usr/lib/libruby.so.1.8[0x13d6d1]
/usr/lib/libruby.so.1.8[0x1403d8]
/usr/lib/libruby.so.1.8[0x140535]
/usr/lib/libruby.so.1.8[0x141287]
/usr/lib/libruby.so.1.8[0x141952]
/usr/lib/libruby.so.1.8[0x148551]
/usr/lib/libruby.so.1.8[0x137e70]
/usr/lib/libruby.so.1.8[0x142c6e]
/usr/lib/libruby.so.1.8[0x142e0a]
/usr/lib/libruby.so.1.8[0x13d5b1]
/usr/lib/libruby.so.1.8[0x1409f1]
/usr/lib/libruby.so.1.8[0x142b71]
/usr/lib/libruby.so.1.8[0x142e0a]
/usr/lib/libruby.so.1.8[0x13d6d1]
/usr/lib/libruby.so.1.8[0x14d0ed]
/usr/lib/libruby.so.1.8[0x13eef4]
/usr/lib/libruby.so.1.8[0x13e889]
/usr/lib/libruby.so.1.8[0x141287]
/usr/lib/libruby.so.1.8(rb_yield+0x27)[0x14ca07]
/usr/lib/libruby.so.1.8(rb_ary_each+0x31)[0x122ee1]
/usr/lib/libruby.so.1.8[0x137e32]
/usr/lib/libruby.so.1.8[0x142c6e]
/usr/lib/libruby.so.1.8[0x142e0a]
/usr/lib/libruby.so.1.8[0x13d5b1]
/usr/lib/libruby.so.1.8[0x1409f1]
/usr/lib/libruby.so.1.8[0x1403d8]
/usr/lib/libruby.so.1.8[0x13ff9e]
/usr/lib/libruby.so.1.8[0x141287]
/usr/lib/libruby.so.1.8[0x13d992]
/usr/lib/libruby.so.1.8[0x142b71]
======= Memory map: ========
00110000-00111000 r-xp 00110000 00:00 0          [vdso]
00111000-001e2000 r-xp 00000000 fd:01 852983     /usr/lib/libruby.so.1.8.6
001e2000-001fa000 rw-p 000d1000 fd:01 852983     /usr/lib/libruby.so.1.8.6
001fa000-0020a000 rw-p 001fa000 00:00 0 
0020a000-0020e000 r-xp 00000000 fd:01 434948    
/usr/lib/ruby/1.8/i386-linux/thread.so
0020e000-0020f000 rw-p 00003000 fd:01 434948    
/usr/lib/ruby/1.8/i386-linux/thread.so
0020f000-0021a000 r-xp 00000000 fd:01 434943    
/usr/lib/ruby/1.8/i386-linux/socket.so
0021a000-0021b000 rw-p 0000a000 fd:01 434943    
/usr/lib/ruby/1.8/i386-linux/socket.so
0021b000-0021f000 r-xp 00000000 fd:01 434944    
/usr/lib/ruby/1.8/i386-linux/stringio.so
0021f000-00220000 rw-p 00004000 fd:01 434944    
/usr/lib/ruby/1.8/i386-linux/stringio.so
00220000-0023c000 r-xp 00000000 fd:01 434946    
/usr/lib/ruby/1.8/i386-linux/syck.so
0023c000-0023d000 rw-p 0001c000 fd:01 434946    
/usr/lib/ruby/1.8/i386-linux/syck.so
0023d000-00246000 r-xp 00000000 fd:01 434949    
/usr/lib/ruby/1.8/i386-linux/zlib.so
00246000-00247000 rw-p 00008000 fd:01 434949    
/usr/lib/ruby/1.8/i386-linux/zlib.so
00247000-0024a000 r-xp 00000000 fd:01 434921    
/usr/lib/ruby/1.8/i386-linux/digest.so
0024a000-0024b000 rw-p 00002000 fd:01 434921    
/usr/lib/ruby/1.8/i386-linux/digest.so
0024b000-0024e000 r-xp 00000000 fd:01 434926    
/usr/lib/ruby/1.8/i386-linux/digest/sha2.so
0024e000-0024f000 rw-p 00002000 fd:01 434926    
/usr/lib/ruby/1.8/i386-linux/digest/sha2.so
0024f000-0028a000 r-xp 00000000 fd:01 434936    
/usr/lib/ruby/1.8/i386-linux/openssl.so
0028a000-0028c000 rw-p 0003b000 fd:01 434936    
/usr/lib/ruby/1.8/i386-linux/openssl.so
0028c000-002d3000 r-xp 00000000 fd:01 19447      /lib/libssl.so.0.9.8g
002d3000-002d7000 rw-p 00046000 fd:01 19447      /lib/libssl.so.0.9.8g
002d7000-00304000 r-xp 00000000 fd:01 852407     /usr/lib/libgssapi_krb5.so.2.2
00304000-00306000 rw-p 0002d000 fd:01 852407     /usr/lib/libgssapi_krb5.so.2.2
00306000-00307000 r-xp 00000000 fd:01 434930    
/usr/lib/ruby/1.8/i386-linux/fcntl.so
00307000-00308000 rw-p 00000000 fd:01 434930    
/usr/lib/ruby/1.8/i386-linux/fcntl.so
00308000-0030a000 r-xp 00000000 fd:01 434928    
/usr/lib/ruby/1.8/i386-linux/enumerator.so
0030a000-0030b000 rw-p 00001000 fd:01 434928    
/usr/lib/ruby/1.8/i386-linux/enumerator.so
0030b000-00315000 r-xp 00000000 fd:01 434917    
/usr/lib/ruby/1.8/i386-linux/bigdecimal.so
00315000-00316000 rw-p 00009000 fd:01 434917    
/usr/lib/ruby/1.8/i386-linux/bigdecimal.so
00316000-0034e000 r-xp 00000000 fd:01 434935     /usr/lib/ruby/1.8/i386-linux/nkf.so
0034e000-00350000 rw-p 00038000 fd:01 434935     /usr/lib/ruby/1.8/i386-linux/nkf.so
00350000-00352000 rw-p 00350000 00:00 0 
00352000-00356000 r-xp 00000000 fd:01 434945    
/usr/lib/ruby/1.8/i386-linux/strscan.so
00356000-00357000 rw-p 00004000 fd:01 434945    
/usr/lib/ruby/1.8/i386-linux/strscan.so
00357000-00359000 r-xp 00000000 fd:01 434929     /usr/lib/ruby/1.8/i386-linux/etc.so
00359000-0035a000 rw-p 00001000 fd:01 434929     /usr/lib/ruby/1.8/i386-linux/etc.so
0035b000-00377000 r-xp 00000000 fd:01 16448      /lib/ld-2.8.so
00377000-00378000 r--p 0001c000 fd:01 16448      /lib/ld-2.8.so
00378000-00379000 rw-p 0001d000 fd:01 16448      /lib/ld-2.8.so
0037b000-004de000 r-xp 00000000 fd:01 16450      /lib/libc-2.8.so
004de000-004e0000 r--p 00163000 fd:01 16450      /lib/libc-2.8.so
004e0000-004e1000 rw-p 00165000 fd:01 16450      /lib/libc-2.8.so
004e1000-004e4000 rw-p 004e1000 00:00 0 
004e6000-004e9000 r-xp 00000000 fd:01 16453      /lib/libdl-2.8.so
004e9000-004ea000 r--p 00002000 fd:01 16453      /lib/libdl-2.8.so
004ea000-004eb000 rw-p 00003000 fd:01 16453      /lib/libdl-2.8.so
004ed000-00502000 r-xp 00000000 fd:01 16451      /lib/libpthread-2.8.so
00502000-00503000 r--p 00014000 fd:01 16451      /lib/libpthread-2.8.so
00503000-00504000 rw-p 00015000 fd:01 16451      /lib/libpthread-2.8.so
00504000-00506000 rw-p 00504000 00:00 0 
00508000-0052f000 r-xp 00000000 fd:01 17636      /lib/libm-2.8.so
0052f000-00530000 r--p 00026000 fd:01 17636      /lib/libm-2.8.so
00530000-00531000 rw-p 00027000 fd:01 17636      /lib/libm-2.8.so
00533000-0054d000 r-xp 00000000 fd:01 16454      /lib/libselinux.so.1
0054d000-0054e000 r--p 00019000 fd:01 16454      /lib/libselinux.so.1
0054e000-0054f000 rw-p 0001a000 fd:01 16454      /lib/libselinux.so.1
00551000-00564000 r-xp 00000000 fd:01 17635      /lib/libz.so.1.2.3
00564000-00565000 rw-p 00012000 fd:01 17635      /lib/libz.so.1.2.3
00565000-0069c000 r-xp 00000000 fd:01 19439      /lib/libcrypto.so.0.9.8g
0069c000-006b0000 rw-p 00136000 fd:01 19439      /lib/libcrypto.so.0.9.8g
006b0000-006b3000 rw-p 006b0000 00:00 0 
006b3000-006bd000 r-xp 00000000 fd:01 23398      /lib/libnss_files-2.8.so
006bd000-006be000 r--p 0000a000 fd:01 23398      /lib/libnss_files-2.8.so
006be000-006bf000 rw-p 0000b000 fd:01 23398      /lib/libnss_files-2.8.so
006bf000-006c1000 r-xp 00000000 fd:01 434923    
/usr/lib/ruby/1.8/i386-linux/digest/md5.so
006c1000-006c2000 rw-p 00001000 fd:01 434923    
/usr/lib/ruby/1.8/i386-linux/digest/md5.so
006c2000-006c5000 r-xp 00000000 fd:01 434925    
/usr/lib/ruby/1.8/i386-linux/digest/sha1.so
006c5000-006c6000 rw-p 00002000 fd:01 434925    
/usr/lib/ruby/1.8/i386-linux/digest/sha1.so
006c6000-006c9000 r-xp 00000000 fd:01 434939    
/usr/lib/ruby/1.8/i386-linux/racc/cparse.so
006c9000-006ca000 rw-p 00002000 fd:01 434939    
/usr/lib/ruby/1.8/i386-linux/racc/cparse.so
006ca000-006ce000 r-xp 00000000 fd:01 434932    
/usr/lib/ruby/1.8/i386-linux/iconv.so
006ce000-006cf000 rw-p 00003000 fd:01 434932    
/usr/lib/ruby/1.8/i386-linux/iconv.so
006cf000-006d8000 r-xp 00000000 fd:01 436933    
/usr/lib/ruby/site_ruby/1.8/i386-linux/sqlite3_api.so
006d8000-006d9000 rw-p 00009000 fd:01 436933    
/usr/lib/ruby/site_ruby/1.8/i386-linux/sqlite3_api.so
006d9000-006e6000 r-xp 00000000 fd:01 19308      /lib/libgcc_s-4.3.0-20080428.so.1
006e6000-006e7000 rw-p 0000c000 fd:01 19308      /lib/libgcc_s-4.3.0-20080428.so.1
00d03000-00d05000 r-xp 00000000 fd:01 19442      /lib/libcom_err.so.2.1
00d05000-00d06000 rw-p 00001000 fd:01 19442      /lib/libcom_err.so.2.1
00d08000-00d19000 r-xp 00000000 fd:01 19441      /lib/libresolv-2.8.so
00d19000-00d1a000 r--p 00010000 fd:01 19441      /lib/libresolv-2.8.so
00d1a000-00d1b000 rw-p 00011000 fd:01 19441      /lib/libresolv-2.8.so
00d1b000-00d1d000 rw-p 00d1b000 00:00 0 
00d25000-00d49000 r-xp 00000000 fd:01 852405     /usr/lib/libk5crypto.so.3.1
00d49000-00d4a000 rw-p 00024000 fd:01 852405     /usr/lib/libk5crypto.so.3.1
00d4c000-00d4e000 r-xp 00000000 fd:01 19440      /lib/libkeyutils-1.2.so
00d4e000-00d4f000 rw-p 00001000 fd:01 19440      /lib/libkeyutils-1.2.so
00d51000-00dee000 r-xp 00000000 fd:01 852406     /usr/lib/libkrb5.so.3.3
00dee000-00df1000 rw-p 0009c000 fd:01 852406     /usr/lib/libkrb5.so.3.3
00df3000-00dfb000 r-xp 00000000 fd:01 852404     /usr/lib/libkrb5support.so.0.1
00dfb000-00dfc000 rw-p 00007000 fd:01 852404     /usr/lib/libkrb5support.so.0.1
02da1000-02e11000 r-xp 00000000 fd:01 852434     /usr/lib/libsqlite3.so.0.8.6
02e11000-02e13000 rw-p 0006f000 fd:01 852434     /usr/lib/libsqlite3.so.0.8.6
0363d000-03646000 r-xp 00000000 fd:01 17638      /lib/libcrypt-2.8.so
03646000-03647000 r--p 00009000 fd:01 17638      /lib/libcrypt-2.8.so
03647000-03648000 rw-p 0000a000 fd:01 17638      /lib/libcrypt-2.8.so
03648000-0366f000 rw-p 03648000 00:00 0 
08048000-08049000 r-xp 00000000 fd:01 821202     /usr/bin/ruby
08049000-0804a000 rw-p 00000000 fd:01 821202     /usr/bin/ruby
08be0000-099bb000 rw-p 08be0000 00:00 0          [heap]
b6d00000-b6d21000 rw-p b6d00000 00:00 0 
b6d21000-b6e00000 ---p b6d21000 00:00 0 
b6eb4000-b6eb5000 ---p b6eb4000 00:00 0 
b6eb5000-b7e51000 rw-p b6eb5000 00:00 0 
b7e52000-b809a000 rw-p b7e52000 00:00 0 
b80a0000-b80ab000 rw-p b80a0000 00:00 0 
bfa4e000-bfaaa000 rw-p bffa4000 00:00 0          [stack]
Aborted


Expected results:


Additional info:

Comment 1 Akira TAGOH 2008-07-01 01:30:33 UTC

*** This bug has been marked as a duplicate of 452825 ***


Note You need to log in before you can comment on or make changes to this bug.