Bug 194572 - lang/ruby20: ruby-2.0.0-p576/lib/mkmf.rb:1820: [BUG] Segmentation fault
Summary: lang/ruby20: ruby-2.0.0-p576/lib/mkmf.rb:1820: [BUG] Segmentation fault
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: ia64 Any
: --- Affects Only Me
Assignee: freebsd-ruby (Nobody)
Depends on:
Reported: 2014-10-24 08:08 UTC by Anton Shterenlikht
Modified: 2015-11-16 19:13 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Anton Shterenlikht 2014-10-24 08:08:36 UTC
on ia64-10 ruby fails to build in poudriere with

library: ncursesw
/wrkdirs/usr/ports/lang/ruby20/work/ruby-2.0.0-p576/lib/mkmf.rb:1820: [BUG] Segmentation fault
ruby 2.0.0p576 (2014-09-19 revision 47628) [ia64-freebsd10]

The full build log:

Comment 1 John Marino freebsd_committer 2014-11-01 11:56:17 UTC
auto-assigner failed due to poor title; it couldn't figure out what port this pertained to.
Comment 2 Steve Wills freebsd_committer 2014-11-12 04:00:46 UTC
This looks to be somewhat ia64 specific, did this just start happening? Any chance you can figure out what's wrong and provide a patch? Otherwise, I'm afraid the only thing I will be able to do is mark it as broken on ia64.
Comment 3 Anton Shterenlikht 2014-11-13 09:10:34 UTC
yes, this is a regression.
The last good version is,1:


The first bad version is,1:


So lang/ruby19 does build, but lang/ruby20 does not.

Anyway, I don't need ruby as such, it is pulled in
by sysutils/libchk. Perhaps libchk can be directed
to use ruby19 on ia64. I don't know how to do this.
Can you help?
Comment 4 Anton Shterenlikht 2014-11-13 09:41:48 UTC
and even ruby19 fails some tests:

test_thread.rb ..................................................
#688 test_method.rb:1012:in `<top (required)>': 
       Process.setrlimit(Process::RLIMIT_STACK, 4_202_496)
       # FreeBSD fails this less than 4M + 8K bytes.
     rescue Exception
     class C
       attr "a" * (10*1024*1024)
  #=> killed by SIGILL (signal 4)  [ruby-dev:31818]
FAIL 1/951 tests failed
*** Error code 1

make[1]: stopped in /usr/ports/lang/ruby19/work/ruby-1.9.3-p547
*** Error code 1
Comment 5 Michael Moll freebsd_committer 2015-11-15 16:41:11 UTC
Unfortunately ia64 is dead and I guess nobody of ruby@ does have the hardware and knowledge to fix this. Also Ruby 1.9 is not in our portstree anymore as it's not supported by upstream now.

If the lang/ruby2* ports don't build/work on ia64, I agree the only thing we can do is marking them BROKEN.

Anton, what's the current status here?
Comment 6 Anton Shterenlikht 2015-11-16 09:12:43 UTC
I've one ia64 box left.
Really all I need from it is subversion.
The box is used as a backup access server to
a disk array.

I've given up on ruby so BROKEN is fine.
Comment 7 commit-hook freebsd_committer 2015-11-16 19:12:19 UTC
A commit references this bug:

Author: mmoll
Date: Mon Nov 16 19:11:47 UTC 2015
New revision: 401783
URL: https://svnweb.freebsd.org/changeset/ports/401783

  lang/ruby2*: mark BROKEN on ia64

  PR:		194572

Comment 8 Michael Moll freebsd_committer 2015-11-16 19:13:09 UTC
Thanks, closing.