Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136880 - Rails 1.1.2 plus Selenium on Rails makes Ruby segfault
Summary: Rails 1.1.2 plus Selenium on Rails makes Ruby segfault
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
Depends on:
Reported: 2006-06-15 04:57 UTC by Ian Petersen
Modified: 2006-07-03 04:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Ian Petersen 2006-06-15 04:57:16 UTC
I have a Rails project that runs fine with Rails 1.0.0.  After upgrading to Rails 1.1.2, everything goes screwy.  Running "rake test:units" gives this error message:

/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:99: [BUG] /usr/lib64/ruby/gems/1.8/gems/rails-1.1.2/bin/rails/selenium_on_rails_config
ruby 1.8.4 (2005-12-24) [x86_64-linux]

I _think_ the problem is some sort of interaction between Rails and Selenium on Rails because the bug disappears if I delete the Selenium on Rails plugin directory from my project.

I recompiled glibc and ruby with FEATURES=nostrip and got this backtrace from gdb:

(gdb) run test/unit/press_test.rb
Starting program: /usr/bin/ruby test/unit/press_test.rb
[Thread debugging using libthread_db enabled]
[New Thread 46912506583776 (LWP 26621)]
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:99: [BUG] /usr/lib64/ruby/gems/1.8/gems/rails-1.1.2/bin/rails/selenium_on_rails_config
ruby 1.8.4 (2005-12-24) [x86_64-linux]

Program received signal SIGABRT, Aborted.
[Switching to Thread 46912506583776 (LWP 26621)]
0x00002aaaab2aa799 in raise () from /lib/
(gdb) bt
#0  0x00002aaaab2aa799 in raise () from /lib/
#1  0x00002aaaab2abc3e in abort () from /lib/
#2  0x00002aaaaabea4e0 in rb_bug () from /usr/lib64/
#3  0x00002aaaaabebd7e in rb_sys_fail () from /usr/lib64/
#4  0x00007fffff895890 in ?? ()
#5  0xffffffffff891e28 in ?? ()
#6  0x00002aaaabc3a0b0 in ?? ()
#7  0x00007fffff891320 in ?? ()
#8  0x0000000000000c51 in ?? ()
#9  0x00002aaaab54c008 in ?? ()
#10 0x00002aaaabc39fc0 in ?? ()
#11 0x0000000000000001 in ?? ()
#12 0x00002aaaaabf91fc in rb_call () from /usr/lib64/
#13 0x00002aaaaabf9c93 in vafuncall () from /usr/lib64/
#14 0x00002aaaaabf9f75 in rb_funcall () from /usr/lib64/
#15 0x00002aaaaac599f3 in rb_obj_as_string () from /usr/lib64/
#16 0x00002aaaaabf4a19 in rb_eval () from /usr/lib64/
#17 0x00002aaaaabf510f in rb_eval () from /usr/lib64/
#18 0x00007fffff896dc0 in ?? ()
#19 0x0000000000000021 in ?? ()
#20 0xffff0000ffff037f in ?? ()
#21 0x00002aaa00000000 in ?? ()
#22 0x00007fffff896dc0 in ?? ()
#23 0x0000000000000035 in ?? ()
#24 0x00002aaaab4a0660 in __malloc_initialize_hook () from /lib/
#25 0x0000000000000020 in ?? ()
#26 0x0000000000f48150 in ?? ()
#27 0x0000000000002581 in ?? ()
#28 0x0000000000000009 in ?? ()
#29 0x00002aaaaadbbdc8 in ruby_class () from /usr/lib64/
#30 0x00002aaaab54b4a0 in ?? ()
#31 0x00002aaaab54b3d8 in ?? ()
#32 0x0000000000000000 in ?? ()

I have no idea what that means....

$ emerge --info
Portage 2.1 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-gentoo-r7 x86_64)
System uname: 2.6.15-gentoo-r7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
CFLAGS="-march=athlon64 -O2 -pipe"
CONFIG_PROTECT="/etc /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
FEATURES="autoconfig buildpkg ccache confcache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
USE="amd64 X acpi alsa apache2 asf asterisk avi beagle bitmap-fonts bonobo bzip2 cairo canna cdparanoia cdr cjk cpudetection crypt cups curl dbus dga doc dri dvd dvdr dvi encode examples expat fastcgi fbcon firefox flac foomaticdb gdbm gif gimpprint glitz glut glx gnome gnome-print gphoto2 gpm graphviz gs gstreamer gtk gtk2 guile gzip hal ieee1394 imlib innodb ipv6 isdnlog ithreads javascript jpeg jpeg2k lcms libg++ lighttpd lzw lzw-tiff m17n-lib mmap motif mozdevelop moznocompose moznoirc moznomail moznoroaming mozsvg mp3 mpeg mplayer msn nautilus ncurses netpbm nls no-htdocs no-old-linux nptl nptlonly nvidia offensive ogg on-the-fly-crypt opengl pam pcre pdf perl png postgres pppd python qt quicktime readline reflection rtc ruby screen sdl smp spell ssl svg sysfs tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales utf8 video_cards_nvidia vim-pager vim-with-x vorbis wma wma123 wv xinerama xml xmms xorg xpm xscreensaver xv xvid xvmc zlib elibc_glibc kernel_linux userland_GNU"
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2006-06-15 09:23:55 UTC
I'm not familiar with selenium, but perhaps you can try a newer version of Ruby?  
Comment 2 Ian Petersen 2006-06-15 19:45:43 UTC
I'm not sure exactly what fixed it, but I've made the following upgrades:

 dev-lang/ruby         1.8.4-r1        ->
 dev-ruby/ruby-gettext 1.2.0 (overlay) -> 1.6.0

and, after a _lot_ of source fiddling (in my project), things work now.  Upgrading ruby to 1.8.4-r3 did _not_ fix things--I had to go all the way to

As far as I'm concerned, this bug can be closed.

Thanks for the help,
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2006-07-03 04:55:25 UTC
seems to be fixed.