From: Christoph Kappel Date: 2009-10-09T04:58:49+09:00 Subject: [ruby-core:26012] Segfaults after multiple call of ruby_node_run ------=_Part_281_1153095329.1255031712804 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello list, I am just trying to solve the embedding issue (ruby-core:25927) and tried t= o make a small testing program to narrow it down. Actually I stumbled over another thing which I don't understand, why does t= his program segtaults in the second run of the loop: It's started like this: ./test test.rb test.c --------- #include #include #include RUBY_GLOBAL_SETUP int main(int argc, char *argv[]) { void *node =3D NULL; if(2 !=3D argc) { fprintf(stderr, "Usage: %s \n", argv[0]); exit(1); } ruby_sysinit(&argc, &argv); RUBY_INIT_STACK; ruby_init(); node =3D ruby_options(argc, argv); while(1) { ruby_run_node(node); sleep(1); } rb_exit(0); return(0); } test.rb ------------- puts "foobar" ------=_Part_281_1153095329.1255031712804--