ruby-changes:50620
From: nobu <ko1@a...>
Date: Fri, 16 Mar 2018 22:29:32 +0900 (JST)
Subject: [ruby-changes:50620] nobu:r62778 (trunk): debugging SEGV on Solaris11s
nobu 2018-03-16 22:29:27 +0900 (Fri, 16 Mar 2018) New Revision: 62778 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62778 Log: debugging SEGV on Solaris11s Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 62777) +++ compile.c (revision 62778) @@ -9582,15 +9582,29 @@ ibf_load_iseq(const struct ibf_load *loa https://github.com/ruby/ruby/blob/trunk/compile.c#L9582 } else { rb_iseq_t *iseq = iseq_imemo_alloc(); +#if IBF_ISEQ_DEBUG + fprintf(stderr, "ibf_load_iseq: new iseq=%p\n", iseq); +#endif FL_SET(iseq, ISEQ_NOT_LOADED_YET); iseq->aux.loader.obj = load->loader_obj; iseq->aux.loader.index = iseq_index; +#if IBF_ISEQ_DEBUG + fprintf(stderr, "ibf_load_iseq: iseq=%p loader_obj=%p index=%d\n", + iseq, (void *)load->loader_obj, iseq_index); +#endif rb_ary_store(load->iseq_list, iseq_index, (VALUE)iseq); #if !USE_LAZY_LOAD +#if IBF_ISEQ_DEBUG + fprintf(stderr, "ibf_load_iseq: loading iseq=%p\n", iseq); +#endif ibf_load_iseq_complete(iseq); #endif /* !USE_LAZY_LOAD */ +#if IBF_ISEQ_DEBUG + fprintf(stderr, "ibf_load_iseq: iseq=%p loaded %p\n", + iseq, load->iseq); +#endif if (load->iseq) { iseq_add_mark_object(load->iseq, (VALUE)iseq); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/