ささだです。

 OpenBSD で make rdoc がこけます。

 rb_enc_get の中なので、m17n かなぁ、なんて思いますがどうでしょうか。


$ make rdoc
...
                          resolv.rb:
c.............ccc........c..............ccccccccccccmmc
Program received signal SIGSEGV, Segmentation fault.
[Switching to process 6671, thread 0x82ebb000]
rb_enc_get (obj=2357052220) at ../trunk/encoding.c:500
500         return rb_enc_from_index(rb_enc_get_index(obj));
(gdb) bt
#0  rb_enc_get (obj=2357052220) at ../trunk/encoding.c:500
#1  0x1c069e7b in rb_str_substr (str=2357052220, beg=24864, len=1)
    at ../trunk/string.c:806
#2  0x1c08ab5f in call_cfunc (func=0x1c06c900 <rb_str_aref_m>,
    recv=2357052220, len=49729, argc=2, argv=0x7e0d12bc) at
vm_insnhelper.c:278
#3  0x1c08babb in vm_call_cfunc (th=0x80f5a400, reg_cfp=0x7e1508c8,
num=2,
    id=336, recv=2357052220, klass=2095899080, flag=97, mn=0x7cecde80,
    blockptr=0x0) at vm_insnhelper.c:371
#4  0x1c08aed4 in vm_call_method (th=0x80f5a400, cfp=0x7e1508c8, num=2,
    blockptr=0x0, flag=0, id=336, mn=0x7cecde6c, recv=2357052220,
    klass=2095899080) at vm_insnhelper.c:503
#5  0x1c086e78 in vm_eval (th=0x80f5a400, initial=0) at insns.def:1050
#6  0x1c089bae in vm_eval_body (th=0x80f5a400) at ../trunk/vm.c:1148
#7  0x1c08546b in invoke_block (th=0x80f5a400, block=0x7e9b89c0,
    self=2357051320, argc=2, argv=0x7e0d126c, blockptr=0x0)
    at ../trunk/vm.c:573
#8  0x1c085646 in vm_invoke_proc (th=0x80f5a400, proc=0x7e9b89c0,
    self=2357051320, argc=2, argv=0x7e0d126c, blockptr=0x0)
    at ../trunk/vm.c:607
#9  0x1c015988 in proc_call (argc=2, argv=0x7e0d126c, procval=24864)
    at ../trunk/proc.c:441
#10 0x1c08ab5f in call_cfunc (func=0x1c015944 <proc_call>,
recv=2357047100,
    len=49729, argc=2, argv=0x7e0d12bc) at vm_insnhelper.c:278
#11 0x1c08babb in vm_call_cfunc (th=0x80f5a400, reg_cfp=0x7e150a18,
num=2,
    id=7528, recv=2357047100, klass=2095798120, flag=97, mn=0x7ceb5704,
    blockptr=0x0) at vm_insnhelper.c:371
#12 0x1c08aed4 in vm_call_method (th=0x80f5a400, cfp=0x7e150a18, num=2,
    blockptr=0x0, flag=0, id=7528, mn=0x7ceb56dc, recv=2357047100,
    klass=2095798120) at vm_insnhelper.c:503
#13 0x1c086e78 in vm_eval (th=0x80f5a400, initial=0) at insns.def:1050
#14 0x1c089bae in vm_eval_body (th=0x80f5a400) at ../trunk/vm.c:1148
#15 0x1c08546b in invoke_block (th=0x80f5a400, block=0x7e150d74,
    self=2357051340, argc=1, argv=0xcfbc3ebc, blockptr=0x0)
    at ../trunk/vm.c:573
#16 0x1c085532 in vm_yield (th=0xc241, argc=1, argv=0xcfbc3ebc)
    at ../trunk/vm.c:590
#17 0x1c012957 in rb_yield_0 (argc=1, argv=0xcfbc3ebc) at
../trunk/eval.c:909
#18 0x1c0114c6 in rb_f_catch (argc=0, argv=0x7e0d10b0) at
eval_jump.c:118
#19 0x1c08ab5f in call_cfunc (func=0x1c0113fc <rb_f_catch>,
recv=2357051340,
    len=49729, argc=1, argv=0x7e0d12bc) at vm_insnhelper.c:278
#20 0x1c08babb in vm_call_cfunc (th=0x80f5a400, reg_cfp=0x7e150d60,
num=1,
    id=3040, recv=2357051340, klass=2095912500, flag=2145,
mn=0x7cec9f38,
    blockptr=0x7e150d74) at vm_insnhelper.c:371
#21 0x1c08aed4 in vm_call_method (th=0x80f5a400, cfp=0x7e150d60, num=1,
    blockptr=0x7e150d74, flag=8, id=3040, mn=0x7cec9f10,
recv=2357051340,
    klass=2202712700) at vm_insnhelper.c:503
#22 0x1c086e78 in vm_eval (th=0x80f5a400, initial=0) at insns.def:1050
#23 0x1c089bae in vm_eval_body (th=0x80f5a400) at ../trunk/vm.c:1148
#24 0x1c08546b in invoke_block (th=0x80f5a400, block=0x7e150e1c,
    self=2357051340, argc=1, argv=0xcfbc42cc, blockptr=0x0)
    at ../trunk/vm.c:573
#25 0x1c085532 in vm_yield (th=0xc241, argc=1, argv=0xcfbc42cc)
    at ../trunk/vm.c:590
#26 0x1c012957 in rb_yield_0 (argc=1, argv=0xcfbc42cc) at
../trunk/eval.c:909
#27 0x1c0114c6 in rb_f_catch (argc=0, argv=0x7e0d109c) at
eval_jump.c:118
#28 0x1c08ab5f in call_cfunc (func=0x1c0113fc <rb_f_catch>,
recv=2357051340,
    len=49729, argc=1, argv=0x7e0d12bc) at vm_insnhelper.c:278
#29 0x1c08babb in vm_call_cfunc (th=0x80f5a400, reg_cfp=0x7e150e08,
num=1,
    id=3040, recv=2357051340, klass=2095912500, flag=2145,
mn=0x7cec9f38,
    blockptr=0x7e150e1c) at vm_insnhelper.c:371
#30 0x1c08aed4 in vm_call_method (th=0x80f5a400, cfp=0x7e150e08, num=1,
    blockptr=0x7e150e1c, flag=8, id=3040, mn=0x7cec9f10,
recv=2357051340,
    klass=2202712700) at vm_insnhelper.c:503
#31 0x1c086e78 in vm_eval (th=0x80f5a400, initial=0) at insns.def:1050
#32 0x1c089bae in vm_eval_body (th=0x80f5a400) at ../trunk/vm.c:1148
#33 0x1c08546b in invoke_block (th=0x80f5a400, block=0x7e150efc,
    self=2202878380, argc=1, argv=0xcfbc47a0, blockptr=0x0)
    at ../trunk/vm.c:573
#34 0x1c085532 in vm_yield (th=0xc241, argc=1, argv=0xcfbc47a0)
    at ../trunk/vm.c:590
#35 0x1c012957 in rb_yield_0 (argc=1, argv=0xcfbc47a0) at
../trunk/eval.c:909
#36 0x1c01297b in rb_yield (val=2202671580) at ../trunk/eval.c:920
#37 0x1c093807 in each_i (ary=2202866280) at ../trunk/array.c:1135
#38 0x1c013029 in rb_ensure (b_proc=0x1c0937e0 <each_i>,
data1=2202866280,
    e_proc=0x1c0937b8 <each_unlock>, data2=2202866280) at
../trunk/eval.c:1204
#39 0x1c093855 in rb_ary_each (ary=2202866280) at ../trunk/array.c:1159
#40 0x1c08ab5f in call_cfunc (func=0x1c093814 <rb_ary_each>,
recv=2202866280,
    len=49729, argc=0, argv=0x7e0d12bc) at vm_insnhelper.c:278
#41 0x1c08babb in vm_call_cfunc (th=0x80f5a400, reg_cfp=0x7e150ee8,
num=0,
    id=392, recv=2202866280, klass=2095860340, flag=97, mn=0x7cec4380,
    blockptr=0x7e150efc) at vm_insnhelper.c:371
#42 0x1c08aed4 in vm_call_method (th=0x80f5a400, cfp=0x7e150ee8, num=0,
    blockptr=0x7e150efc, flag=0, id=392, mn=0x7cec436c, recv=2202866280,
    klass=2095860340) at vm_insnhelper.c:503
#43 0x1c086e78 in vm_eval (th=0x80f5a400, initial=0) at insns.def:1050
#44 0x1c089bae in vm_eval_body (th=0x80f5a400) at ../trunk/vm.c:1148
#45 0x1c089eb2 in rb_iseq_eval (iseqval=2095736620) at
../trunk/vm.c:1357
#46 0x1c011cf7 in ruby_exec_node (n=0x7cea690c,
    file=0x7c9c7781 "../trunk/bin/rdoc") at ../trunk/eval.c:229
#47 0x1c011d5c in ruby_run_node (n=0x7cea690c) at ../trunk/eval.c:259
#48 0x1c00f656 in main (argc=8, argv=0xcfbc4ee8, envp=0xcfbc4f0c)
    at ../trunk/main.c:36

-- 
// SASADA Koichi at atdot dot net