Issue #5241 has been updated by Lucas Nussbaum.
File freebsd_map_stack.patch added
Hi,
The attached patch fixes the issue. It's a bug in FreeBSD's mmap, that was already reported.
__FreeBSD__ is not defined on Debian GNU/kFreeBSD. Since it uses the FreeBSD kernel with the GNU Libc, semantics be be either those of the FreeBSD kernel, or those of the GNU Libc, so it doesn't make sense to just look at "FreeBSD". Instead, __FreeBSD_kernel__ is defined.
I've looked at other uses of __FreeBSD__ kernel, and try to remember to provide patches for them if I run into issues that could be caused by them.
I've also added a reference to the FreeBSD bug report in the comment.
----------------------------------------
Bug #5241: test_massign.rb:165 fails on Debian GNU/kFreeBSD (amd64)
http://redmine.ruby-lang.org/issues/5241
Author: Lucas Nussbaum
Status: Feedback
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: 1.9.3
Hi,
With a reduced testcase:
# ruby1.9.1 -e "Fiber::new {}.resume"
-e:1:in `resume': can't alloc machine stack to fiber (FiberError)
from -e:1:in `<main>'
That's using svn revision 33077. This might or might not be related to bug #5240.
--
http://redmine.ruby-lang.org