ports/132158: ruby port is broken
Eugene Pimenov
libc at libc.st
Fri Feb 27 11:40:02 UTC 2009
>Number: 132158
>Category: ports
>Synopsis: ruby port is broken
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Feb 27 11:40:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Eugene Pimenov
>Release: 7.0, 6.2, 6.1
>Organization:
>Environment:
FreeBSD pictor 7.0-STABLE FreeBSD 7.0-STABLE #0: Mon Jul 28 20:16:11 UTC 2008 sand at pictor.seo-master.org:/usr/obj/usr/src/sys/PICTOR amd64
FreeBSD lynx 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Sep 5 16:51:12 UTC 2007 sand at lynx.seo-master.org:/usr/obj/usr/src/sys/LYNX amd64
FreeBSD lepus 7.0-BETA4 FreeBSD 7.0-BETA4 #3: Fri Dec 21 10:44:50 UTC 2007 sand at lepus.seo-master.org:/usr/obj/usr/src/sys/LEPUS amd64
FreeBSD leo 6.2-RELEASE-p3 FreeBSD 6.2-RELEASE-p3 #0: Wed Apr 18 23:51:35 UTC 2007 root at DTG531:/usr/obj/usr/src/sys/Z i386
FreeBSD vela 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Wed Jan 17 10:29:44 UTC 2007 root at A0013:/usr/obj/usr/src/sys/Z i386
FreeBSD lamba 6.1-RC FreeBSD 6.1-RC #0: Tue Apr 11 08:51:25 UTC 2006 dem at MC101413:/usr/obj/usr/src/sys/GEMINI i386
>Description:
Ruby port includes some patch that makes it broken. I don't know what exactly patch makes it broken, and don't care.
It dumps core on large call stacks. Some code on which it dumps core actually work on Mac OS X and linux (aka anywhere else I tested).
>How-To-Repeat:
1) Install freebsd from ports
2) type: irb
3) type in irb:
def a; a; end; a
4) ????
5) Profit! It outputs "Illegal instruction: 4" and dumps core.
Expected:
SystemStackError: stack level too deep
from (irb):1:in `a'
from (irb):1:in `a'
from (irb):1
>Fix:
curl ftp://ftp.ruby-lang.org:21//pub/ruby/1.8/ruby-1.8.6-p287.tar.bz2 -o ruby-1.8.6-p287.tar.bz2 && \
tar -jxvf ruby-1.8.6-p287.tar.bz2 && \
cd ruby-1.8.6-p287 && \
./configure --prefix=/usr/local/ruby186 --with-iconv-dir=/usr/local && \
make all install
(aka install from source code)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list