ruby 1.8.4 preview3

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

ruby 1.8.4 preview3

Yukihiro Matsumoto
Hi,

I have just put 1.8.4 preview3 on the server.

  ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.4-preview3.tar.gz
  1ba94874e1a253d3f1373533553080ae

Happy Hacking.

                                                        matz.

Reply | Threaded
Open this post in threaded view
|

[ruby-dev:28097] Re: ruby 1.8.4 preview3

URABE Shyouhei aka. mput
卜部です。

Yukihiro Matsumoto wrote:

>Hi,
>
>I have just put 1.8.4 preview3 on the server.
>
>  ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.4-preview3.tar.gz
>  1ba94874e1a253d3f1373533553080ae
>
>Happy Hacking.
>
> matz.
>  
>

1356 tests, 15401 assertions, 0 failures, 0 errors
[10:06PM shyouhei]% ./miniruby -v
ruby 1.8.4 (2005-12-22) [powerpc-darwin7.9.0]

でした。

Reply | Threaded
Open this post in threaded view
|

[ruby-dev:28098] Re: ruby 1.8.4 preview3

U.Nakamura
In reply to this post by Yukihiro Matsumoto
こんにちは、なかむら(う)です。

In message "[ruby-dev:28095] ruby 1.8.4 preview3"
    on Dec.22,2005 19:34:41, <[hidden email]> wrote:
| I have just put 1.8.4 preview3 on the server.

今回は無事にmswin32版もコンパイルが通りました。


test-all(じゃなくてrunner.rbを実行してるのですが)の結果は以下
の通り。

いずれも既知のFailureで、1)と2)は直さないことにしている(外部
ライブラリの都合なので)ので問題ありません。

3)のOpenSSLがずっと気になったままなのですが、出たり出なかった
りするということと、問題の質が重大ではなさそうということ、そ
してこれも外部ライブラリの都合によるものかもしれない、という
点を考えあわせると、リリースを止めるようなものではないと思い
ます(直れば嬉しいですけど>gotoyuzoさん)。


-*- ここからテスト結果 -*-
Loaded suite test
Started
(中略)
Finished in 196.012 seconds.

  1) Failure:
test_reorganize(TestGDBM) [../ruby-1.8.4/test/gdbm/test_gdbm.rb:591]:
<true> expected but was
<false>.

  2) Failure:
test_s_open_create_new(TestGDBM) [../ruby-1.8.4/test/gdbm/test_gdbm.rb:84]:
<420> expected but was
<438>.

  3) Failure:
test_client_auth(OpenSSL::TestSSL)
    [../ruby-1.8.4/test/openssl/test_ssl.rb:157:in `test_client_auth'
     ../ruby-1.8.4/test/openssl/test_ssl.rb:73:in `start_server'
     ../ruby-1.8.4/test/openssl/test_ssl.rb:156:in `test_client_auth']:
<OpenSSL::SSL::SSLError> exception expected but was
Class: <Errno::ECONNRESET>
Message: <"\212\371\221\266\202\314\220\332\221\261\202\315\203\212\203\202\201[\203g \203z\203X\203g\202\311\213\255\220\247\223I\202\311\220\330\222f\202\263\202\352\202\334\202\265\202\275\201B">
---Backtrace---
../ruby-1.8.4/test/openssl/test_ssl.rb:160:in `connect'
../ruby-1.8.4/test/openssl/test_ssl.rb:160:in `test_client_auth'
../ruby-1.8.4/test/openssl/test_ssl.rb:157:in `test_client_auth'
../ruby-1.8.4/test/openssl/test_ssl.rb:73:in `start_server'
../ruby-1.8.4/test/openssl/test_ssl.rb:156:in `test_client_auth'
---------------

1326 tests, 15230 assertions, 3 failures, 0 errors
-*- ここまでテスト結果 -*-


それでは。
--
U.Nakamura <[hidden email]>
Cygwinのsegvが気になるにゃ



Reply | Threaded
Open this post in threaded view
|

[ruby-dev:28099] Re: ruby 1.8.4 preview3

Shinya Kawaji
In reply to this post by Yukihiro Matsumoto
かわじ、です。


> I have just put 1.8.4 preview3 on the server.

OpenBSD3.8 の結果は、1F0Eでした。

1F については、[ruby-dev:27952] にある通り、マシンのスピードに依存するよう
です。

configure のオプションなどについては、[ruby-dev:27939] に書いたとおりです。
その時は、該当のマシンの“うるう秒”の設定が正しく出来ていなかったのですが、
今日までに直しました。


$ make test-all
[snip]
  1) Failure:
test_exit_action(TestSignal) [./ruby/test_signal.rb:50]:
[ruby-dev:26128].
Exception raised:
Class: <Timeout::Error>
Message: <"execution expired">
---Backtrace---
/tmp/ruby-1.8.4/lib/timeout.rb:54:in `test_exit_action'
/tmp/ruby-1.8.4/lib/timeout.rb:56:in `timeout'
./ruby/test_signal.rb:53:in `test_exit_action'
./ruby/test_signal.rb:50:in `test_exit_action'
---------------

1356 tests, 15410 assertions, 1 failures, 0 errors
*** Error code 1
[snip]

$ /tmp/r/bin/ruby -v
ruby 1.8.4 (2005-12-22) [i386-openbsd3.8]



Reply | Threaded
Open this post in threaded view
|

[ruby-dev:28101] Re: ruby 1.8.4 preview3

桑村慎哉
In reply to this post by Yukihiro Matsumoto
桑村です。

>>>>> On Thu, 22 Dec 2005 19:34:41 +0900
>>>>> [hidden email](Yukihiro Matsumoto)  said:
>
> I have just put 1.8.4 preview3 on the server.

Solaris 8 + Sunのコンパイラでは問題ありませんでした。

なお、64ビット版は問題ありですが、32ビット版が動くので問題ないでしょう。
# あれから少し調べてみましたが、どうも既知のstdio周りの問題のようです。

では。
--
    桑村 慎哉  (株) 富士通研究所 ITコア研究所 CAD研究部

Reply | Threaded
Open this post in threaded view
|

[ruby-dev:28102] Re: ruby 1.8.4 preview3

Tanaka Akira
In reply to this post by Yukihiro Matsumoto
In article <[hidden email]>,
  Yukihiro Matsumoto <[hidden email]> writes:

> I have just put 1.8.4 preview3 on the server.

ふと思い立って TestDrive の HP-UX 11i v2 (Itanium II) というので試してみたところ、

1. gperf がないのに lex.c を再生成しようとして lex.c が空になる
2. ext/curses の build でコンパイルに失敗する
3. ext/dl の build で miniruby が core を吐く

という結果に終わりました。

td176> pwd
/house/rka/176/184p3
td176> gzcat ~/ruby-1.8.4-preview3.tar.gz|tar xf -
td176> ls
ruby-1.8.4
td176> cd ruby-1.8.4
td176> pwd
/house/rka/176/184p3/ruby-1.8.4
td176> ./configure --prefix=/house/rka/176/184p3 CC=/usr/bin/cc
...
td176> cp lex.c ~       # 後のためにとっておく
td176> ls -l lex.c
-rw-r--r--   1 rka        nis           4480 Sep 28  2002 lex.c
td176> make
...
...
        /usr/bin/cc -g  -DRUBY_EXPORT -DYYMAXDEPTH=300  -I. -I.  -c pack.c
"pack.c", line 1954: warning #2068-D: integer conversion resulted in a change
          of sign
                unsigned long ulmask = 0xfeL << ((sizeof(unsigned long) - 1) * 8);
                                       ^

        gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$ keywords > lex.c || \
        cp "./lex.c" .
sh: gperf:  not found.
cp: ./lex.c and ./lex.c are identical
*** Error exit code 1

Stop.
td176> ls -l lex.c
-rw-r--r--   1 rka        nis              0 Dec 23 09:27 lex.c
td176> cp ~/lex.c .       # lex.c を復活させる
td176> make
...
compiling curses
        /usr/bin/cc +Z -g  -I. -I../.. -I../../. -I../.././ext/curses -DHAVE_CURSES_H -DHAVE_BEEP -DHAVE_BKGD -DHAVE_BKGDSET -DHAVE_CURS_SET -DHAVE_DELETELN -DHAVE_DOUPDATE -DHAVE_FLASH -DHAVE_GETBKGD -DHAVE_GETNSTR -DHAVE_ISENDWIN -DHAVE_KEYNAME -DHAVE_KEYPAD -DHAVE_SCRL -DHAVE_SETSCRREG -DHAVE_UNGETCH -DHAVE_WATTROFF -DHAVE_WATTRON -DHAVE_WATTRSET -DHAVE_WBKGD -DHAVE_WBKGDSET -DHAVE_WDELETELN -DHAVE_WGETNSTR -DHAVE_WSCRL -DHAVE_WSETSCRREG -DHAVE_DEF_PROG_MODE -DHAVE_RESET_PROG_MODE -DHAVE_TIMEOUT -DHAVE_WTIMEOUT -DHAVE_NODELAY -DHAVE_INIT_COLOR -DHAVE_WCOLOR_SET  -c curses.c
"curses.c", line 481: warning #2513-D: a value of type "int" cannot be
          assigned to an entity of type "const char *"
    name = keyname(NUM2INT(c));
         ^

"curses.c", line 922: warning #2550-D: variable "x" was set but never used
      int x, y;
          ^

"curses.c", line 935: warning #2550-D: variable "y" was set but never used
      int x, y;
             ^

"curses.c", line 959: error #2136: struct "__reserved_str1" has no field
          "_maxy"
      return INT2FIX(winp->window->_maxy+1);
             ^

"curses.c", line 980: error #2136: struct "__reserved_str1" has no field
          "_maxx"
      return INT2FIX(winp->window->_maxx+1);
             ^

"curses.c", line 997: error #2136: struct "__reserved_str1" has no field
          "_begy"
      return INT2FIX(winp->window->_begy);
             ^

"curses.c", line 1014: error #2136: struct "__reserved_str1" has no field
          "_begx"
      return INT2FIX(winp->window->_begx);
             ^

"curses.c", line 1258: warning #2111-D: statement is unreachable
    return Qfalse;
    ^

"curses.c", line 1584: error #2020: identifier "A_INVIS" is undefined
      rb_curses_define_const(A_ATTRIBUTES);
      ^

"curses.c", line 1584: error #2020: identifier "A_PROTECT" is undefined
      rb_curses_define_const(A_ATTRIBUTES);
      ^

"curses.c", line 1584: error #2020: identifier "A_ALTCHARSET" is undefined
      rb_curses_define_const(A_ATTRIBUTES);
      ^

"curses.c", line 1584: error #2020: identifier "A_COLOR" is undefined
      rb_curses_define_const(A_ATTRIBUTES);
      ^

"curses.c", line 1623: error #2020: identifier "COLOR_BLACK" is undefined
      rb_curses_define_const(COLOR_BLACK);
      ^

"curses.c", line 1624: error #2020: identifier "COLOR_RED" is undefined
      rb_curses_define_const(COLOR_RED);
      ^

"curses.c", line 1625: error #2020: identifier "COLOR_GREEN" is undefined
      rb_curses_define_const(COLOR_GREEN);
      ^

"curses.c", line 1626: error #2020: identifier "COLOR_YELLOW" is undefined
      rb_curses_define_const(COLOR_YELLOW);
      ^

"curses.c", line 1627: error #2020: identifier "COLOR_BLUE" is undefined
      rb_curses_define_const(COLOR_BLUE);
      ^

"curses.c", line 1628: error #2020: identifier "COLOR_MAGENTA" is undefined
      rb_curses_define_const(COLOR_MAGENTA);
      ^

"curses.c", line 1629: error #2020: identifier "COLOR_CYAN" is undefined
      rb_curses_define_const(COLOR_CYAN);
      ^

"curses.c", line 1630: error #2020: identifier "COLOR_WHITE" is undefined
      rb_curses_define_const(COLOR_WHITE);
      ^

16 errors detected in the compilation of "curses.c".
*** Error exit code 2

Stop.
*** Error exit code 1

Stop.
td176> rm ext/curses/extconf.rb # とりあえず進めるために削除
td176> make
...
compiling dl
Generating callback.func
Generating cbtable.func
../.././ext/dl/mkcbtable.rb:10: [BUG] Segmentation fault
ruby 1.8.4 (2005-12-22) [ia64-hpux11.23]

sh: 28866 Abort(coredump)
*** Error exit code 134

Stop.
*** Error exit code 1

Stop.
td176> find . -name core -print
./ext/dl/core
td176> file ./ext/dl/core
./ext/dl/core:  ELF-32 core file - IA64 from 'miniruby' - received SIGABRT
td176> gdb miniruby ./ext/dl/core
HP gdb 5.2 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.2 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
Core was generated by `miniruby'.
Program terminated with signal 6, Aborted.
SI_UNKNOWN - signal of unknown origin
#0  0x60000000c0343dd0:0 in kill+0x30 () from /usr/lib/hpux32/libc.so.1
(gdb) bt
#0  0x60000000c0343dd0:0 in kill+0x30 () from /usr/lib/hpux32/libc.so.1
#1  0x60000000c02384b0:0 in raise+0x30 () from /usr/lib/hpux32/libc.so.1
#2  0x60000000c02fcd30:0 in abort+0x190 () from /usr/lib/hpux32/libc.so.1
#3  0x4065be0:0 in rb_bug (fmt=0x4059640 "Segmentation fault") at error.c:214
#4  0x41d1320:0 in sigsegv (sig=11) at signal.c:447
#5  <signal handler called>
#6  0x60000000c01b8560:0 in memmove+0x960 () from /usr/lib/hpux32/libc.so.1
#7  0x60000000c021aaa0:0 in real_realloc+0x1da0 ()
   from /usr/lib/hpux32/libc.so.1
#8  0x60000000c0218b10:0 in _realloc+0xc0 () from /usr/lib/hpux32/libc.so.1
#9  0x60000000c0222110:0 in realloc+0x230 () from /usr/lib/hpux32/libc.so.1
#10 0x40dd000:0 in ruby_xrealloc (ptr=0x401cd6d0, size=91) at gc.c:158
#11 0x41e3630:0 in rb_str_buf_append (str=1073916808, str2=1074073744)
    at string.c:784
#12 0x41e3b60:0 in rb_str_append (str=1073916808, str2=1074073744)
    at string.c:811
#13 0x4082470:0 in rb_eval (self=1074149872, n=0x40051180) at eval.c:3758
#14 0x4080720:0 in rb_eval (self=1074149872, n=0x40050e98) at eval.c:3551
#15 0x40a35d0:0 in rb_call0 (klass=1074155920, recv=1074149872, id=10073,
    oid=10073, argc=0, argv=0x7fdf303c, body=0x40050e98, flags=2)
    at eval.c:5826
#16 0x4095440:0 in rb_call (klass=1074155920, recv=1074149872, mid=10073,
    argc=3, argv=0x7fdf3030, scope=1) at eval.c:5920
---Type <return> to continue, or q <return> to quit---
#17 0x407dd00:0 in rb_eval (self=1074149872, n=0x40050b68) at eval.c:3396
#18 0x407d910:0 in rb_eval (self=1074149872, n=0x40050ad8) at eval.c:3391
#19 0x4096ae0:0 in rb_yield_0 (val=17, self=1074149872, klass=0, flags=0,
    avalue=0) at eval.c:4897
#20 0x409d220:0 in rb_yield (val=17) at eval.c:4979
#21 0x418ac90:0 in range_each (range=1073923720) at range.c:411
#22 0x40a0220:0 in call_cfunc (func=0x40602e0 <.opd+0x2d40>, recv=1073923720,
    len=0, argc=0, argv=0x0) at eval.c:5556
#23 0x40a2230:0 in rb_call0 (klass=1074109528, recv=1073923720, id=3841,
    oid=3841, argc=0, argv=0x0, body=0x40059b20, flags=0) at eval.c:5692
#24 0x4095440:0 in rb_call (klass=1074109528, recv=1073923720, mid=3841,
    argc=0, argv=0x0, scope=0) at eval.c:5920
#25 0x4079e50:0 in rb_eval (self=1074149872, n=0x40050a48) at eval.c:3120
#26 0x4096ae0:0 in rb_yield_0 (val=1, self=1074149872, klass=0, flags=0,
    avalue=0) at eval.c:4897
#27 0x409d220:0 in rb_yield (val=1) at eval.c:4979
#28 0x42226e0:0 in rb_ary_each (ary=1073924416) at array.c:1128
#29 0x40a0220:0 in call_cfunc (func=0x797ff340, recv=1073924416, len=0,
    argc=0, argv=0x0) at eval.c:5556
#30 0x40a2230:0 in rb_call0 (klass=1074120568, recv=1073924416, id=3841,
    oid=3841, argc=0, argv=0x0, body=0x4005c280, flags=0) at eval.c:5692
#31 0x4095440:0 in rb_call (klass=1074120568, recv=1073924416, mid=3841,
    argc=0, argv=0x0, scope=0) at eval.c:5920
---Type <return> to continue, or q <return> to quit---
#32 0x407d4c0:0 in rb_eval (self=1074149872, n=0x40050d60) at eval.c:3381
#33 0x4079b10:0 in rb_eval (self=1074149872, n=0x400513d8) at eval.c:3109
#34 0x40769e0:0 in eval_node (self=1074149872, node=0x400513d8) at eval.c:1368
#35 0x4087e80:0 in ruby_exec_internal () at eval.c:1543
#36 0x4087fc0:0 in ruby_exec () at eval.c:1563
#37 0x4088050:0 in ruby_run () at eval.c:1573
#38 0x40624c0:0 in main (argc=4, argv=0x7ffff86c, envp=0x7ffff880) at main.c:46
(gdb)
--
[田中 哲][たなか あきら][Tanaka Akira]

Reply | Threaded
Open this post in threaded view
|

Re: ruby 1.8.4 preview3

Christian Neukirchen
In reply to this post by Yukihiro Matsumoto
Yukihiro Matsumoto <[hidden email]> writes:

> Hi,
>
> I have just put 1.8.4 preview3 on the server.
>
>   ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.4-preview3.tar.gz
>   1ba94874e1a253d3f1373533553080ae
>
> Happy Hacking.

Darwin lilith 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC  Power Macintosh powerpc

gcc version 3.3 20030304 (Apple Computer, Inc. build 1666)

Builds fine, two minor patches to make the test-suite run completely
are below.

I was *not* yet able to run a Ruby/Tk program yet, since tkutil
doesn't seem to be built at all (but is 'required' all over the
codebase).  Does anymore know more about this?


From nobody Mon Sep 17 00:00:00 2001
Subject: [PATCH] Fix lib/drb/drb.rb to fallback to "localhost"
From: Christian Neukirchen <[hidden email]>
Date: 1135355472 +0100

---

 lib/drb/drb.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

59e15c5c1067eb6f2e1d135a14a7e7443ccd6b61
diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb
index 2177af8..46c2549 100644
--- a/lib/drb/drb.rb
+++ b/lib/drb/drb.rb
@@ -829,7 +829,7 @@ module DRb
       begin
         Socket::gethostbyname(host)[0]
       rescue
-        host
+        'localhost'
       end
     end
 
--
1.0.GIT

From nobody Mon Sep 17 00:00:00 2001
Subject: [PATCH] Increment timeout for Process.waitpid to make the test work on slow machines
From: Christian Neukirchen <[hidden email]>
Date: 1135358549 +0100

---

 test/ruby/test_signal.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

cb36f523a54925194a7f5a21d0e295544cf8bd9c
diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb
index 8daa1cf..43e16b8 100644
--- a/test/ruby/test_signal.rb
+++ b/test/ruby/test_signal.rb
@@ -50,7 +50,7 @@ class TestSignal < Test::Unit::TestCase
       assert_nothing_raised("[ruby-dev:26128]") {
         Process.kill(:USR1, pid)
         begin
-          Timeout.timeout(1) {
+          Timeout.timeout(10) {
             Process.waitpid pid
           }
         rescue Timeout::Error
--
1.0.GIT




Happy hacking and I hope the issues can be fixed until the release.

> matz.
--
Christian Neukirchen  <[hidden email]>  http://chneukirchen.org