[#24698] NKF(nkf2)を1.8ブランチに入れました — "NARUSE, Yui" <naruse@...>

naruseです。

14 messages 2004/11/03
[#24734] Re: NKF(nkf2)を1.8ブランチに入れました — 堀川 久 <vzw00011@...> 2004/11/06

こんにちは。

[#24720] メール関係ライブラリの標準添付について — MoonWolf <moonwolf@...>

MoonWolfです。

17 messages 2004/11/05
[#24721] Re: メール関係ライブラリの標準添付について — Yukihiro Matsumoto <matz@...> 2004/11/05

まつもと ゆきひろです

[#24722] Re: メール関係ライブラリの標準添付について — MoonWolf <moonwolf@...> 2004/11/05

MoonWolfです。

[#24804] Re: まつもとさんの負担を減らすために、何ができるだろう — "URABE Shyouhei aka.mput" <root@...>

mput です。 ruby-dev に移動します。

21 messages 2004/11/13
[#24805] Re: まつもとさんの負担を減らすために、何ができるだろう — Tanaka Akira <akr@...17n.org> 2004/11/13

In article <2D6284E3-351D-11D9-B7EF-000393735AAE@mput.dip.jp>,

[#24806] Re: まつもとさんの負担を減らすために、何ができるだろう — "URABE Shyouhei aka.mput" <root@...> 2004/11/13

mput です。

[#24808] Re: まつもとさんの負担を減らすために、何ができるだろう — Masayoshi Takahashi <maki@...> 2004/11/13

高橋征義です。

[#24809] Re: まつもとさんの負担を減らすために、何ができるだろう — "URABE Shyouhei aka.mput" <root@...> 2004/11/13

mput です。

[#24834] Process.getrlimit and Process.setrlimit — Tanaka Akira <akr@...17n.org>

Process.getrlimit と Process.setrlimit が欲しいので実装してみました。

25 messages 2004/11/13

[#24965] sync and stdio buffering — Tanaka Akira <akr@...17n.org>

ちょっとした思いつきなのですが、

12 messages 2004/11/26

[#24993] rb_io_sysread dumps core [BUG] rb_sys_fail() - errno == 0 — Tietew <tietew-ml-ruby-dev@...>

ソケットとスレッドを大量に使うアプリ(具体的には IRCbot です)を

13 messages 2004/11/29

[#25003] IO#flush dumps core again — Tanaka Akira <akr@...17n.org>

次のようにすると core を吐きます。

28 messages 2004/11/30
[#25004] Re: IO#flush dumps core again — nobu@... 2004/11/30

なかだです。

[#25005] Re: IO#flush dumps core again — Yukihiro Matsumoto <matz@...> 2004/11/30

まつもと ゆきひろです

[#25009] Re: IO#flush dumps core again — Tanaka Akira <akr@...17n.org> 2004/12/01

In article <1101836040.635395.27476.nullmailer@x31.priv.netlab.jp>,

[#25014] Re: IO#flush dumps core again — Tanaka Akira <akr@...17n.org> 2004/12/01

In article <1101878558.979715.1359.nullmailer@x31.priv.netlab.jp>,

[#25015] Re: IO#flush dumps core again — Yukihiro Matsumoto <matz@...> 2004/12/01

まつもと ゆきひろです

[#25056] Re: IO#flush dumps core again — Tanaka Akira <akr@...17n.org> 2004/12/05

In article <1101888165.570792.4192.nullmailer@x31.priv.netlab.jp>,

[#25074] Re: IO#flush dumps core again — Tanaka Akira <akr@...17n.org> 2004/12/06

In article <1102293033.356112.2288.nullmailer@x31.priv.netlab.jp>,

[ruby-dev:24737] Re: String#gsub causes core dump again^2

From: Tanaka Akira <akr@...17n.org>
Date: 2004-11-06 15:14:31 UTC
List: ruby-dev #24737
In article <1099753627.606977.17420.nullmailer@x31.priv.netlab.jp>,
  Yukihiro Matsumoto <matz@ruby-lang.org> writes:

> うちでは1.9、1.8.2ともにcoreを吐きません。free()で落ちてるみ
> たいなんでメモリ状態の問題でしょうか。

理由は分かりません。が、boron では再現します。

Z:akr@boron% ./ruby -de '
def make_unlockable_string
 callcc {|$kk|
   dest = nil
   begin
     str = "b" * 37
     n = 0
     dest = str.gsub(/\z/) {
       callcc {|k| $k = k }
      "b" * 28
     }
     n += 1
     $k.call if n == 1
   rescue RuntimeError
     p $!
   end
   $kk.call([dest, lambda { callcc {|$kk| $k.call } }])
 }
end
dest, unlock = make_unlockable_string
r, w = IO.pipe
Thread.new { r.read(dest.length, dest) }
unlock.call
dest.replace ""
loop { w << "a" * 45 }
'
Exception `RuntimeError' at -e:8 - temporal unlocking already unlocked string
#<RuntimeError: temporal unlocking already unlocked string>
Exception `RuntimeError' at -e:22 - temporal unlocking already unlocked string
-e:22:in `read': temporal unlocking already unlocked string (RuntimeError)
        from -e:22
        from -e:22:in `initialize'
        from -e:22:in `new'
        from -e:22
-e:22: [BUG] Segmentation fault
ruby 1.8.2 (2004-11-06) [i686-linux]

zsh: abort (core dumped)  ./ruby -de 
Z:akr@boron% gdb ruby core 
GNU gdb 6.1-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

Core was generated by `./ruby -de 
def make_unlockable_string
 callcc {|$kk|
   dest = nil
   begin
 '.
Program terminated with signal 6, Aborted.

warning: current_sos: Can't read pathname for load map: Input/output error

Reading symbols from /lib/tls/libdl.so.2...Reading symbols from /usr/lib/debug//lib/tls/libdl-2.3.2.so...done.
done.
Loaded symbols for /lib/tls/libdl.so.2
Reading symbols from /lib/tls/libcrypt.so.1...Reading symbols from /usr/lib/debug//lib/tls/libcrypt-2.3.2.so...done.
done.
Loaded symbols for /lib/tls/libcrypt.so.1
Reading symbols from /lib/tls/libm.so.6...Reading symbols from /usr/lib/debug//lib/tls/libm-2.3.2.so...done.
done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/tls/libc.so.6...Reading symbols from /usr/lib/debug//lib/tls/libc-2.3.2.so...done.
done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...Reading symbols from /usr/lib/debug//lib/ld-2.3.2.so...done.
done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x40099ed9 in raise () from /lib/tls/libc.so.6
(gdb) bt
#0  0x40099ed9 in raise () from /lib/tls/libc.so.6
#1  0x4009b771 in abort () from /lib/tls/libc.so.6
#2  0x080cbdf6 in rb_bug (fmt=0x0) at error.c:214
#3  0x080ab592 in sigsegv (sig=11) at signal.c:446
#4  <signal handler called>
#5  0x400e5488 in _int_free () from /lib/tls/libc.so.6
#6  0x400e42a0 in free () from /lib/tls/libc.so.6
#7  0x0806f246 in rb_gc_call_finalizer_at_exit () at gc.c:1850
#8  0x08053d92 in ruby_finalize_1 () at eval.c:1399
#9  0x08053ea3 in ruby_cleanup (ex=1) at eval.c:1434
#10 0x08053fe1 in ruby_stop (ex=0) at eval.c:1465
#11 0x0805404f in ruby_run () at eval.c:1486
#12 0x080521b5 in main (argc=0, argv=0x0, envp=0xbffff944) at main.c:46
(gdb) 
-- 
[田中 哲][たなか あきら][Tanaka Akira]

In This Thread

Prev Next