[#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:24802] Re: imported Oni Guruma 3.4.0

From: MIYAMUKO Katsuyuki <k-miyamuko@...>
Date: 2004-11-12 15:05:17 UTC
List: ruby-dev #24802
みやむこです。

> 鬼車 3.4.0 を CVS HEAD に import しました。
> [ruby-dev:23658] の parse.y、re.c へのパッチを当たるように変更して
> 適用してあります。make test, test-all, (鬼車の) test.rb の動作と、
> [ruby-dev:24645] の big regexp テストが 50000 以上動くところまでは
> 一応確認しました。
> 
> 不具合などあれば連絡していただけると助かります。

HP-UX だとマッチが変なようです。

    % ./miniruby -e "p /12345/ =~ '1234567'"
    0
    % ./miniruby -e "p /123456/ =~ '1234567'"
    nil
    % uname -srm
    HP-UX B.11.11 9000/861
    % ./miniruby -v
    ruby 1.9.0 (2004-11-11) [hppa2.0n-hpux11.11]


デバッガで追ってみると RRegexp->ptr->p が変な値になっているので、マッチはするものの
match_at で失敗しているみたいです。

% gdb ./miniruby
HP gdb 2.1
Copyright 1986 - 1999 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 2.1 (based on GDB 5.0-hpwdb-20000630)
Wildebeest 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 Wildebeest.  Type "show warranty" for details.
Wildebeest was built for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.
..
(gdb) break rb_reg_initialize
Breakpoint 1 at 0x98430: file ../re.c, line 1339.
(gdb) run -e "/123456/"
Starting program: /work3/home/miyamuko/src/ruby/build/./miniruby -e "/123456/"

Breakpoint 1, rb_reg_initialize (obj=1074011264, s=0x40084610 "123456", len=6,
    options=0, ce=2) at ../re.c:1339
1339        struct RRegexp *re = RREGEXP(obj);
(gdb) n
1341        if (re->ptr) re_free_pattern(re->ptr);
(gdb)
1342        if (re->str) free(re->str);
(gdb)
1343        re->ptr = 0;
(gdb)
1344        re->str = 0;
(gdb)
1346        switch (options & ~0xf) {
(gdb)
1349            FL_SET(re, reg_kcode);
(gdb)
1350            break;
(gdb)
1365        if (options & ~0xf) {
(gdb)
1368        if (ruby_ignorecase) {
(gdb)
1372        re->ptr = make_regexp(s, len, options & 0xf, ce);
(gdb)
1373        re->str = ALLOC_N(char, len+1);
(gdb)
1374        memcpy(re->str, s, len);
(gdb)
1375        re->str[len] = '\0';
(gdb)
1376        re->len = len;
(gdb)
1377        if (options & ~0xf) {
(gdb)
1380    }
(gdb) p re
$1 = (struct RRegexp *) 0x40041c80
(gdb) p *re
$2 = {basic = {flags = 8, klass = 1074048728}, ptr = 0x40084620, len = 6,
  str = 0x40084808 "123456"}
(gdb) p *re->ptr
$3 = {p = 0x400847a8 "\a", used = 12, alloc = 12, state = 0, num_mem = 0,
  num_repeat = 0, num_null_check = 0, num_call = 0, capture_history = 0,
  bt_mem_start = 0, bt_mem_end = 0, stack_pop_level = 0,
  repeat_range_alloc = 0, repeat_range = 0x0, enc = 0x40006038, options = 0,
  syntax = 0x400066c0, ambig_flag = 1, name_table = 0x0, optimize = 2,
  threshold_len = 6, anchor = 0, anchor_dmin = 0, anchor_dmax = 0,
  sub_anchor = 0, exact = 0x400847f8 "123456", exact_end = 0x400847fe "",
  map = '\006' <repeats 49 times>, "\005\004\003\002\001", '\006' <repeats 202 t
imes>, int_map = 0x0, int_map_backward = 0x0, dmin = 0, dmax = 0, chain = 0x0}
(gdb)


コンパイラの警告は以下の通りです。

	cc -g   -I. -I..  -c ../re.c
cc: "../re.c", line 121: warning 604: Pointers are not assignment-compatible.
cc: "../re.c", line 121: warning 563: Argument #1 is not the correct type.
cc: "../re.c", line 121: warning 604: Pointers are not assignment-compatible.
cc: "../re.c", line 121: warning 563: Argument #2 is not the correct type.
cc: "../re.c", line 129: warning 604: Pointers are not assignment-compatible.
cc: "../re.c", line 129: warning 563: Argument #1 is not the correct type.
cc: "../re.c", line 129: warning 604: Pointers are not assignment-compatible.
cc: "../re.c", line 129: warning 563: Argument #2 is not the correct type.
	cc -g   -I. -I..  -c ../regcomp.c
	cc -g   -I. -I..  -c ../regenc.c
	cc -g   -I. -I..  -c ../regerror.c
cc: "../regerror.c", line 214: warning 604: Pointers are not assignment-compatible.
cc: "../regerror.c", line 245: warning 604: Pointers are not assignment-compatible.
cc: "../regerror.c", line 285: warning 604: Pointers are not assignment-compatible.
cc: "../regerror.c", line 285: warning 563: Argument #2 is not the correct type.
cc: "../regerror.c", line 285: warning 604: Pointers are not assignment-compatible.
cc: "../regerror.c", line 287: warning 604: Pointers are not assignment-compatible.
cc: "../regerror.c", line 308: warning 604: Pointers are not assignment-compatible.
cc: "../regerror.c", line 308: warning 563: Argument #2 is not the correct type.
cc: "../regerror.c", line 309: warning 604: Pointers are not assignment-compatible.
cc: "../regerror.c", line 317: warning 604: Pointers are not assignment-compatible.
cc: "../regerror.c", line 317: warning 563: Argument #2 is not the correct type.
cc: "../regerror.c", line 318: warning 604: Pointers are not assignment-compatible.
	cc -g   -I. -I..  -c ../regexec.c
cc: "../regexec.c", line 3220: warning 604: Pointers are not assignment-compatible.
	cc -g   -I. -I..  -c ../reggnu.c
	cc -g   -I. -I..  -c ../regparse.c
cc: "../regparse.c", line 2338: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 2338: warning 563: Argument #4 is not the correct type.
cc: "../regparse.c", line 2338: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 2338: warning 563: Argument #5 is not the correct type.
cc: "../regparse.c", line 2352: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 2352: warning 563: Argument #4 is not the correct type.
cc: "../regparse.c", line 2352: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 2352: warning 563: Argument #5 is not the correct type.
cc: "../regparse.c", line 2617: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 2617: warning 563: Argument #2 is not the correct type.
cc: "../regparse.c", line 3180: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3180: warning 563: Argument #2 is not the correct type.
cc: "../regparse.c", line 3410: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3411: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3412: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3413: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3414: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3415: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3416: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3417: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3418: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3419: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3420: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3421: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3422: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3446: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3446: warning 563: Argument #4 is not the correct type.
cc: "../regparse.c", line 3481: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3482: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3483: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3484: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3485: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3486: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3487: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3488: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3489: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3490: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3491: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3492: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3493: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3745: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3745: warning 563: Argument #2 is not the correct type.
cc: "../regparse.c", line 3848: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3848: warning 563: Argument #2 is not the correct type.
cc: "../regparse.c", line 3894: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3894: warning 563: Argument #2 is not the correct type.
cc: "../regparse.c", line 3909: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3909: warning 563: Argument #2 is not the correct type.
cc: "../regparse.c", line 3914: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3914: warning 563: Argument #2 is not the correct type.
cc: "../regparse.c", line 3923: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3923: warning 563: Argument #2 is not the correct type.
cc: "../regparse.c", line 3928: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 3928: warning 563: Argument #2 is not the correct type.
cc: "../regparse.c", line 4313: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 4313: warning 563: Argument #4 is not the correct type.
cc: "../regparse.c", line 4313: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 4313: warning 563: Argument #5 is not the correct type.
cc: "../regparse.c", line 4323: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 4323: warning 563: Argument #4 is not the correct type.
cc: "../regparse.c", line 4323: warning 604: Pointers are not assignment-compatible.
cc: "../regparse.c", line 4323: warning 563: Argument #5 is not the correct type.


--

ついでに HP-UX 11.23 ia64 な環境だと以下のようになります。
# こちらは全然追えていません

% uname -srm
HP-UX B.11.23 ia64
% make
   :
../mkconfig.rb:71:in `sub': undefined bytecode (bug): /\.\d+$/ (RegexpError)
	from ../mkconfig.rb:71

In This Thread

Prev Next