Issue #3549 has been updated by Yusuke Endoh.

Status changed from Open to Third Party's Issue

Hi,

2010/7/8 David Kelso <redmine / ruby-lang.org>:
> I'm running into this segfault when trying to start god.
> http://pastie.org/1035298

Looks like a god's bug.
Please contact to the developper/maintainer of god.
Here is a patch (note that I did not test it):


diff --git a/ext/god/netlink_handler.c b/ext/god/netlink_handler.c
index ce056a3..8609504 100644
--- a/ext/god/netlink_handler.c
+++ b/ext/god/netlink_handler.c
@@ -79,10 +79,10 @@ nlh_handle_events()
         }
         
         extra_data = rb_hash_new();
-        rb_hash_aset(extra_data, rb_intern("parent_pid"), INT2FIX(event->event_data.fork.parent_pid));
-        rb_hash_aset(extra_data, rb_intern("parent_thread_group_id"), INT2FIX(event->event_data.fork.parent_tgid));
-        rb_hash_aset(extra_data, rb_intern("child_pid"), INT2FIX(event->event_data.fork.child_pid));
-        rb_hash_aset(extra_data, rb_intern("child_thread_group_id"), INT2FIX(event->event_data.fork.child_tgid));
+        rb_hash_aset(extra_data, ID2SYM(rb_intern("parent_pid")), INT2FIX(event->event_data.fork.parent_pid));
+        rb_hash_aset(extra_data, ID2SYM(rb_intern("parent_thread_group_id")), INT2FIX(event->event_data.fork.parent_tgid));
+        rb_hash_aset(extra_data, ID2SYM(rb_intern("child_pid")), INT2FIX(event->event_data.fork.child_pid));
+        rb_hash_aset(extra_data, ID2SYM(rb_intern("child_thread_group_id")), INT2FIX(event->event_data.fork.child_tgid));
       
         rb_funcall(cEventHandler, m_call, 3, INT2FIX(event->event_data.fork.parent_pid), ID2SYM(proc_fork), extra_data);
         return INT2FIX(1);

-- 
Yusuke Endoh <mame / tsg.ne.jp>
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3549

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