[#9052] bang method returns string always — WATANABE Hirofumi <eban@...>

わたなべです.

92 messages 2000/02/01
[#9054] Re: bang method returns string always — matz@... (Yukihiro Matsumoto) 2000/02/01

まつもと ゆきひろです

[#9060] Re: bang method returns string always — WATANABE Hirofumi <eban@...> 2000/02/02

わたなべです.

[#9062] Re: bang method returns string always — matz@... (Yukihiro Matsumoto) 2000/02/02

まつもと ゆきひろです

[#9070] Re: bang method returns string always — Wakou Aoyama <wakou@...> 2000/02/03

青山です。

[#9082] Re: bang method returns string always — "NAKAMURA, Hiroshi" <nakahiro@...> 2000/02/04

なひです.

[#9083] Re: bang method returns string always — matz@... (Yukihiro Matsumoto) 2000/02/04

まつもと ゆきひろです

[#9259] ruby object — Minero Aoki <aamine@...> 2000/02/20

あおきです。

[#9263] Re: ruby object — matz@... (Yukihiro Matsumoto) 2000/02/21

まつもと ゆきひろです

[#9264] Re: ruby object — Minero Aoki <aamine@...> 2000/02/21

あおきです。

[#9266] Re: ruby object — matz@... (Yukihiro Matsumoto) 2000/02/22

まつもと ゆきひろです

[#9084] Re: bang method returns string always — "NAKAMURA, Hiroshi" <nakahiro@...> 2000/02/04

なひです.

[#9096] Re: bang method returns string always — Kazunori NISHI <kazunori@...> 2000/02/04

西@九大です。

[#9100] Re: bang method returns string always — matz@... (Yukihiro Matsumoto) 2000/02/04

まつもと ゆきひろです

[#9154] Re: bang method returns string always — Kazunori NISHI <kazunori@...> 2000/02/08

西@九大です。

[#9158] Re: bang method returns string always — matz@... (Yukihiro Matsumoto) 2000/02/08

まつもと ゆきひろです

[#9170] Re: bang method returns string always — Kazunori NISHI <kazunori@...> 2000/02/09

西@九大です。

[#9171] Re: bang method returns string always — matz@... (Yukihiro Matsumoto) 2000/02/09

まつもと ゆきひろです

[#9173] Re: bang method returns string always — Koji Arai <JCA02266@...> 2000/02/09

新井です。

[#9206] Re: bang method returns string always — nobu.nakada@... 2000/02/13

なかだです。

[#9207] Re: bang method returns string always — "Akinori -Aki- MUSHA" <knu@...> 2000/02/13

 knuです。

[#9208] Re: bang method returns string always — nobu.nakada@... 2000/02/13

なかだです。

[#9211] Re: bang method returns string always — matz@... (Yukihiro Matsumoto) 2000/02/13

まつもと ゆきひろです

[#9212] Re: bang method returns string always — "Akinori -Aki- MUSHA" <knu@...> 2000/02/13

 knuです。

[#9213] Re: bang method returns string always — Kazuhiro Yoshida <moriq.kazuhiro@...> 2000/02/14

もりきゅうです。ゴミまき。

[#9214] Re: bang method returns string always — gotoken@... (GOTO Kentaro) 2000/02/14

ごとけんです

[#9215] Re: bang method returns string always — WATANABE Hirofumi <Hirofumi.Watanabe@...> 2000/02/14

わたなべです.

[#9218] Re: bang method returns string always — Kazuhiro Yoshida <moriq.kazuhiro@...> 2000/02/15

もりきゅうです。

[#9219] Re: bang method returns string always — matz@... (Yukihiro Matsumoto) 2000/02/15

まつもと ゆきひろです

[#9220] Re: bang method returns string always — Kazuhiro Yoshida <moriq.kazuhiro@...> 2000/02/15

もりきゅうです。

[#9222] Re: bang method returns string always — Koji Arai <JCA02266@...> 2000/02/15

新井です。

[#9224] Re: bang method returns string always — matz@... (Yukihiro Matsumoto) 2000/02/15

まつもと ゆきひろです

[#9085] xmalloc() in Windows — "Shigeo Kobayashi" <shigeo@...>

小林です。

38 messages 2000/02/04

[#9134] Re: site_ruby — gotoken@... (GOTO Kentaro)

ごとけんです

24 messages 2000/02/07
[#9135] Re: site_ruby — WATANABE Hirofumi <Hirofumi.Watanabe@...> 2000/02/07

わたなべです.

[#9143] Re: site_ruby — nobu.nakada@... 2000/02/07

なかだです。

[#9161] Re: site_ruby — gotoken@... (GOTO Kentaro) 2000/02/08

In message "[ruby-dev:9143] Re: site_ruby"

[#9290] [fix] String#* with huge string — EGUCHI Osamu <eguchi@...>

えぐち@エスアンドイー です。

17 messages 2000/02/26
[#9293] Re: [fix] String#* with huge string — matz@... (Yukihiro Matsumoto) 2000/02/26

まつもと ゆきひろです

[#9294] Re: [fix] String#* with huge string — EGUCHI Osamu <eguchi@...> 2000/02/27

えぐち@エスアンドイー です。

[#9297] GC Problem ? — "Shigeo Kobayashi" <shigeo@...>

小林です。

23 messages 2000/02/27

[ruby-dev:9304] Re: GC Problem ?

From: "Shigeo Kobayashi" <shigeo@...>
Date: 2000-02-28 16:38:37 UTC
List: ruby-dev #9304
小林です。

----- Original Message ----- 
送信者 : "Yukihiro Matsumoto" <matz@netlab.co.jp>
件名 : [ruby-dev:9300] Re: GC Problem ?


> 
> もしよければデバッガで実行してwhereの実行結果をメールしてく
> ださったりすると分かるかもしれません。
>
1.4.2 での結果を添付しました、よろしく
お願い致します。

# ここでは、引数の内容が壊れているようですが
# pai.rb の内容によって落ちるところが異なるの
# で厄介です。

小林 茂雄
E-Mail: shigeo@tinyforest.gr.jp
Home Page: http://www.tinyforest.gr.jp
 
 

Attachments (2)

debug.txt (2.33 KB, text/plain)
GNU gdb 4.17.0.4 with Linux/x86 hardware watchpoint and FPU support
Copyright 1998 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-redhat-linux"...
Core was generated by `ruby pai.rb'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/libwcsmbs.so.0...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libcrypt.so.1...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /usr/local/lib/ruby/1.4/i586-linux/BigFloat.so...done.
#0  0x4007b811 in __kill ()
(gdb) where
#0  0x4007b811 in __kill ()
#1  0x4007b63f in raise (sig=6) at ../sysdeps/posix/raise.c:27
#2  0x4007c84f in abort () at ../sysdeps/generic/abort.c:83
#3  0x809f834 in rb_check_type (x=134934486, t=-1073749448) at error.c:154
#4  0x808c695 in sigsegv (sig=11) at signal.c:377
#5  <signal handler called>
#6  0x4013b03a in VpDivd (c=0x96bfa80, r=0x96c0a68, a=0x96bf6f0, b=0x96bf6c8)
    at bigfloat.c:2748
#7  0x40138924 in BigFloat_divmod2 (self=1074810908, b=1074810928, n=8081)
    at bigfloat.c:933
#8  0x8056f1c in call_cfunc (func=0x401388a8 <BigFloat_divmod2>, 
    recv=1074810908, len=2, argc=2, argv=0xbfffe414) at eval.c:3722
#9  0x805738e in rb_call0 (klass=1074951568, recv=1074810908, id=8705, argc=2, 
    argv=0xbfffe414, body=0x40127360, nosuper=1) at eval.c:3852
#10 0x8057a2c in rb_call (klass=1074951568, recv=1074810908, mid=8705, argc=2, 
    argv=0xbfffe414, scope=0) at eval.c:4048
#11 0x805392c in rb_eval (self=1075007188, node=0x4012833c) at eval.c:2222
#12 0x80541b8 in rb_eval (self=1075007188, node=0x401283b4) at eval.c:2355
#13 0x8052432 in rb_eval (self=1075007188, node=0x40128300) at eval.c:1756
#14 0x80528b6 in rb_eval (self=1075007188, node=0x40128198) at eval.c:1901
#15 0x8052432 in rb_eval (self=1075007188, node=0x40128170) at eval.c:1756
#16 0x8050c2c in eval_node (self=1075007188) at eval.c:1003
#17 0x8050d1a in ruby_run () at eval.c:1039
#18 0x804fa5c in main (argc=2, argv=0xbffffd20, envp=0xbffffd2c) at main.c:39
(gdb) q
pai.rb (885 Bytes, text/x-ruby)
require 'BigFloat'
#
# PI (Calculates 3.1415.... using J. Machin's formula.
#
sig = 4000 # <== Number of significant figures
tp = Time::now
exp    = -sig
sig    = sig + sig/100    # no theoretical reason
pi     = BigFloat::new("0")
u      = BigFloat::new("1")
two    = BigFloat::new("2")
m25    = BigFloat::new("-0.04")
m57121 = BigFloat::new("-57121")

k = BigFloat::new("1")
w = BigFloat::new("1")
t = BigFloat::new("-80")

n1 = 0
n2 = 0
while (u.exponent >= exp) 
#  GC::start
  n1 += 1
  t = t*m25
  u,r = t.div(k,sig)
  pi = pi + u
  k = k+two
end
u = BigFloat::new("1")
k = BigFloat::new("1")
w = BigFloat::new("1")
t = BigFloat::new("956",sig)
# GC::enable
while (u.exponent >= exp )
# GC::start
  n2 += 1
  t,r = t.div(m57121,sig)
  u,r = t.div(k,sig)
  pi  = pi + u
  k = k+two
end
# p pi   
tp = Time::now-tp
print "# of iterations = ",n1,"+",n2,"Time elapsed=",tp,"\n"
exit

In This Thread