青木です。

  In mail "[ruby-dev:24043] [BUG] openssl/x509name"
    Minero Aoki <aamine / loveruby.net> wrote:

> 以下のように、CVS HEAD の openssl が SEGV します。

>   /home/aamine/openssl-bug.rb:14: [BUG] Segmentation fault
>   ruby 1.9.0 (2004-08-09) [i686-linux]

スタックトレース付けるのを忘れてました。

# やっと取れたよ……

(gdb) bt
#0  0x4028a8d9 in BUF_strlcpy (dst=0xbfffd884 "", src=0x0, size=80)
    at buffer.c:186
#1  0x402942a4 in OBJ_obj2txt (buf=0xbfffd884 "", buf_len=80, a=0x40186930, 
    no_name=0) at obj_dat.c:491
#2  0x40298f71 in i2t_ASN1_OBJECT (buf=0xbfffd884 "", buf_len=80, a=0x40186930)
    at a_object.c:176
#3  0x402aca69 in X509_NAME_oneline (a=0x8182860, buf=0x0, len=199)
    at x509_obj.c:109
#4  0x4023f590 in ossl_x509name_to_s (self=136210192)
    at /home/aamine/src/ruby/ext/openssl/ossl_x509name.c:168
#5  0x0806d0c9 in call_cfunc (func=0x4023f520 <ossl_x509name_to_s>, 
    recv=136210192, len=0, argc=0, argv=0x0)
    at /home/aamine/src/ruby/eval.c:5393
#6  0x0805fa63 in rb_call0 (klass=1075481080, recv=136210192, id=3153, 
    oid=3153, argc=0, argv=0x0, body=0x401a8944, nosuper=0)
    at /home/aamine/src/ruby/eval.c:5530
#7  0x080605a8 in rb_call (klass=1075481080, recv=136210192, mid=3153, argc=0, 
    argv=0x0, scope=0) at /home/aamine/src/ruby/eval.c:5751
#8  0x0805a1aa in rb_eval (self=1075567000, n=0x401ad868)
    at /home/aamine/src/ruby/eval.c:3228
#9  0x08059f75 in rb_eval (self=1075567000, n=0x401ad7b4)
    at /home/aamine/src/ruby/eval.c:3222
#10 0x0805de40 in rb_yield_0 (val=345, self=1075567000, klass=0, flags=0, 
    avalue=0) at /home/aamine/src/ruby/eval.c:4731
#11 0x0805e23a in rb_yield (val=345) at /home/aamine/src/ruby/eval.c:4813
#12 0x0808ac63 in int_dotimes (num=2001)
    at /home/aamine/src/ruby/numeric.c:2729
#13 0x0806d0c9 in call_cfunc (func=0x808ac1c <int_dotimes>, recv=2001, len=0, 
    argc=0, argv=0x0) at /home/aamine/src/ruby/eval.c:5393
#14 0x0805fa63 in rb_call0 (klass=1075553080, recv=2001, id=5457, oid=5457, 
    argc=0, argv=0x0, body=0x401ba270, nosuper=0)
    at /home/aamine/src/ruby/eval.c:5530
#15 0x080605a8 in rb_call (klass=1075553080, recv=2001, mid=5457, argc=0, 
    argv=0x0, scope=0) at /home/aamine/src/ruby/eval.c:5751
#16 0x0805a1aa in rb_eval (self=1075567000, n=0x401ada5c)
    at /home/aamine/src/ruby/eval.c:3228
#17 0x08058f66 in rb_eval (self=1075567000, n=0x401adb10)
    at /home/aamine/src/ruby/eval.c:2948
#18 0x080555e2 in eval_node (self=1075567000, node=0x401adb10)
    at /home/aamine/src/ruby/eval.c:1289
#19 0x08055c0a in ruby_exec () at /home/aamine/src/ruby/eval.c:1458
#20 0x08055c8d in ruby_run () at /home/aamine/src/ruby/eval.c:1479
#21 0x08053a43 in main (argc=7, argv=0xbffff614, envp=0xbffff634)
    at /home/aamine/src/ruby/main.c:38
#22 0x400864ad in __libc_start_main () from /lib/libc.so.6

-------------------------------------------------------------------
青木峰郎