ruby-changes:50619
From: nobu <ko1@a...>
Date: Fri, 16 Mar 2018 21:22:39 +0900 (JST)
Subject: [ruby-changes:50619] nobu:r62777 (trunk): debugging SEGV on Solaris11s
nobu 2018-03-16 21:22:33 +0900 (Fri, 16 Mar 2018) New Revision: 62777 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62777 Log: debugging SEGV on Solaris11s Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 62776) +++ compile.c (revision 62777) @@ -9552,17 +9552,31 @@ rb_iseq_complete(const rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/compile.c#L9552 } #endif +#ifdef __sparc +#define IBF_ISEQ_DEBUG 1 +#endif +#ifndef IBF_ISEQ_DEBUG +#define IBF_ISEQ_DEBUG 0 +#endif + static rb_iseq_t * ibf_load_iseq(const struct ibf_load *load, const rb_iseq_t *index_iseq) { int iseq_index = (int)(VALUE)index_iseq; +#if IBF_ISEQ_DEBUG + fprintf(stderr, "ibf_load_iseq: index_iseq=%p iseq_list=%p\n", + index_iseq, (void *)load->iseq_list); +#endif if (iseq_index == -1) { return NULL; } else { VALUE iseqv = rb_ary_entry(load->iseq_list, iseq_index); +#if IBF_ISEQ_DEBUG + fprintf(stderr, "ibf_load_iseq: iseqv=%p\n", (void *)iseqv); +#endif if (iseqv != Qnil) { return (rb_iseq_t *)iseqv; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/