ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:25564] [Bug #2097] fork NotImplementedError on FreeBSD
@ 2009-09-14  5:16 robert gleeson
  2009-09-14  6:18 ` [ruby-core:25565] " Nobuyoshi Nakada
  0 siblings, 1 reply; 6+ messages in thread
From: robert gleeson @ 2009-09-14  5:16 UTC (permalink / raw
  To: ruby-core

Bug #2097: fork NotImplementedError on FreeBSD
http://redmine.ruby-lang.org/issues/show/2097

Author: robert gleeson
Status: Open, Priority: Normal
ruby -v: ruby 1.9.1p129 (2009-05-12 revision 23412) [x86_64-freebsd7.1]

Hi,

I'm not sure if a fix should be applied via patches to the FreeBSD port of ruby or in ruby itself, but on Ruby 1.9.1(patchlevel 129) you cannot fork a process.

irb(main):002:0> Process.fork
NotImplementedError: fork() function is unimplemented on this machine
        from (irb):2:in `fork'
        from (irb):2
        from /opt/ruby19/bin/irb19:12:in `<main>'

I love ruby, and I love FreeBSD. It'd be great if i can combine both. Thanks!


----------------------------------------
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:25565] Re: [Bug #2097] fork NotImplementedError on FreeBSD
  2009-09-14  5:16 [ruby-core:25564] [Bug #2097] fork NotImplementedError on FreeBSD robert gleeson
@ 2009-09-14  6:18 ` Nobuyoshi Nakada
  2009-09-14  7:39   ` [ruby-core:25569] " Yui NARUSE
                     ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Nobuyoshi Nakada @ 2009-09-14  6:18 UTC (permalink / raw
  To: ruby-core

Hi,

At Mon, 14 Sep 2009 14:16:11 +0900,
robert gleeson wrote in [ruby-core:25564]:
> I'm not sure if a fix should be applied via patches to the
> FreeBSD port of ruby or in ruby itself, but on Ruby
> 1.9.1(patchlevel 129) you cannot fork a process.

On recent *BSD, fork can't work with pthreads, and pthreads is
mandatory to ruby 1.9.  This is caused by the kernel internal.
See <http://www.freebsd.org/cgi/query-pr.cgi?pr=threads/101323>.

> I love ruby, and I love FreeBSD. It'd be great if i can
> combine both. Thanks!

Persuade the BSD maintainers.

-- 
Nobu Nakada

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:25569] [Bug #2097] fork NotImplementedError on FreeBSD
  2009-09-14  6:18 ` [ruby-core:25565] " Nobuyoshi Nakada
@ 2009-09-14  7:39   ` Yui NARUSE
  2009-09-16 11:11   ` [ruby-core:25611] " robert gleeson
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Yui NARUSE @ 2009-09-14  7:39 UTC (permalink / raw
  To: ruby-core

Issue #2097 has been updated by Yui NARUSE.


use Process.spawn.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2097

----------------------------------------
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:25611] [Bug #2097] fork NotImplementedError on FreeBSD
  2009-09-14  6:18 ` [ruby-core:25565] " Nobuyoshi Nakada
  2009-09-14  7:39   ` [ruby-core:25569] " Yui NARUSE
@ 2009-09-16 11:11   ` robert gleeson
  2009-09-16 16:21   ` [ruby-core:25614] " Yui NARUSE
  2009-09-20 10:24   ` [ruby-core:25669] " Yui NARUSE
  3 siblings, 0 replies; 6+ messages in thread
From: robert gleeson @ 2009-09-16 11:11 UTC (permalink / raw
  To: ruby-core

Issue #2097 has been updated by robert gleeson.


Hi,

Thanks for reply. It seems this issue is resolved on FreeBSD 7.2 for anyone who stumbles upon this :-) 
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2097

----------------------------------------
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:25614] [Bug #2097] fork NotImplementedError on FreeBSD
  2009-09-14  6:18 ` [ruby-core:25565] " Nobuyoshi Nakada
  2009-09-14  7:39   ` [ruby-core:25569] " Yui NARUSE
  2009-09-16 11:11   ` [ruby-core:25611] " robert gleeson
@ 2009-09-16 16:21   ` Yui NARUSE
  2009-09-20 10:24   ` [ruby-core:25669] " Yui NARUSE
  3 siblings, 0 replies; 6+ messages in thread
From: Yui NARUSE @ 2009-09-16 16:21 UTC (permalink / raw
  To: ruby-core

Issue #2097 has been updated by Yui NARUSE.


On Ruby 1.9.1 and FreeBSD7.2 fork doesn't work.
But on ruby 1.9.2dev (2009-09-16 trunk 24965) [x86_64-freebsd7.2], fork works.
I don't know why.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2097

----------------------------------------
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:25669] [Bug #2097] fork NotImplementedError on FreeBSD
  2009-09-14  6:18 ` [ruby-core:25565] " Nobuyoshi Nakada
                     ` (2 preceding siblings ...)
  2009-09-16 16:21   ` [ruby-core:25614] " Yui NARUSE
@ 2009-09-20 10:24   ` Yui NARUSE
  3 siblings, 0 replies; 6+ messages in thread
From: Yui NARUSE @ 2009-09-20 10:24 UTC (permalink / raw
  To: ruby-core

Issue #2097 has been updated by Yui NARUSE.


Just information for someone see this,

FreeBSD 7.2 can fork when pthreads doesn't run.
So in trunk, stop timer thread then fork and restart timer.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2097

----------------------------------------
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-09-20 10:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-14  5:16 [ruby-core:25564] [Bug #2097] fork NotImplementedError on FreeBSD robert gleeson
2009-09-14  6:18 ` [ruby-core:25565] " Nobuyoshi Nakada
2009-09-14  7:39   ` [ruby-core:25569] " Yui NARUSE
2009-09-16 11:11   ` [ruby-core:25611] " robert gleeson
2009-09-16 16:21   ` [ruby-core:25614] " Yui NARUSE
2009-09-20 10:24   ` [ruby-core:25669] " Yui NARUSE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).