Date.parse in 1.9

e$B5WJ]$G$9!#e(B

Date.parse e$B$,e(B 1.9 e$B$GF0$+$J$$$h$&$G$9!#e(B

debian e$B$Ne(B ruby 1.8 e$B$G$Oe(B OKe$B!#e(B

$ /usr/bin/ruby1.8 -v
ruby 1.8.5 (2006-08-25) [i486-linux]
$ /usr/bin/ruby1.8 -r date -e “p Date.parse(‘2005-12-31’)”
#<Date: 4907471/2,0,2299161>

svn e$B$N:G?7$G$Oe(B NGe$B!#e(B

$ ruby -v
ruby 1.9.0 (2007-02-13 patchlevel 0) [i686-linux]
$ ruby -r date -e “p Date.parse(‘2005-12-31’)”
/home/kubo/local/ruby-svn/lib/ruby/1.9/date/format.rb:104:in
instance_variable_set':@_comp’ is not allowed as an instance
variable name (NameError)
from /home/kubo/local/ruby-svn/lib/ruby/1.9/date/format.rb:104:in
method_missing' from /home/kubo/local/ruby-svn/lib/ruby/1.9/date/format.rb:931:in_parse’
from /home/kubo/local/ruby-svn/lib/ruby/1.9/date.rb:1041:in parse' from -e:1:in

patch e$B$J$7$G$9!#Js9p$N$_!#e(Bm(__)m

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:30325] Date.parse in 1.9”
on Wed, 14 Feb 2007 00:38:24 +0900, “KUBO Takehiro”
[email protected] writes:

|Date.parse e$B$,e(B 1.9 e$B$GF0$+$J$$$h$&$G$9!#e(B
|svn e$B$N:G?7$G$Oe(B NGe$B!#e(B

matzrubye$B$+$i$N%P%C%/%]!<%H$rK:$l$F$^$7$?!#e(B

e$B$U$J$P$G$9!#e(B

|Date.parse e$B$,e(B 1.9 e$B$GF0$+$J$$$h$&$G$9!#e(B
|svn e$B$N:G?7$G$Oe(B NGe$B!#e(B

matzrubye$B$+$i$N%P%C%/%]!<%H$rK:$l$F$^$7$?!#e(B

e$B$&$A$G$Oe(B 1.9
e$B$,%S%k%I$G$-$J$$$N$G!“3NG’$G$-$J$$$N$G$9$,!”[email protected][email protected]$He(B
[email protected]$a$+$b$7$l$^$;$s!#e(B

e$B$=$&$G$9$+!#e(B

e$B$I$&$$$&[email protected]$a$J$s$G$7$g$&$+!)e(B
e$B$H$j$"$($:F0$$$F$^$9$,!"LVMeE*$J%F%9%H$O$7$F$J$$$s$G!#e(B

e$B8+$?$H$3$m!"$^$H$b$KF0$/$H$O;W$($J$$$s$G$9$,!"$&$4$$$F$$$k$H$7$?$iIT;We(B
e$B5D$G$9!#e(BDate._parse e$B$N7k2L$b0c$C$F$/$k$H;W$&$s$G$9$,!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:30334] Re: Date.parse in 1.9”
on Wed, 14 Feb 2007 19:22:04 +0900, Tadayoshi F.
[email protected] writes:

|> e$B$H$j$"$($:F0$$$F$^$9$,!“LVMeE*$J%F%9%H$O$7$F$J$$$s$G!#e(B
|
|e$B8+$?$H$3$m!”$^$H$b$KF0$/$H$O;W$($J$$$s$G$9$,!"$&$4$$$F$$$k$H$7$?$iIT;We(B
|e$B5D$G$9!#e(BDate._parse e$B$N7k2L$b0c$C$F$/$k$H;W$&$s$G$9$,!#e(B

e$B$=$NDL$j$G$9!#;d$NL$,@a7j$G$7$?!#e(B
e$B$G!"[email protected]$7$?$b$N$r%3%_%C%H$7$^$7$?!#:#EY$O$b$&>/$7%^e(B
e$B%7$KF0$$$F$$$k$h$&$G$9!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:30329] Re: Date.parse in 1.9”
on Wed, 14 Feb 2007 12:31:08 +0900, Tadayoshi F.
[email protected] writes:

|> matzrubye$B$+$i$N%P%C%/%]!<%H$rK:$l$F$^$7$?!#e(B
|
|e$B$&$A$G$Oe(B 1.9 e$B$,%S%k%I$G$-$J$$$N$G!“3NG’$G$-$J$$$N$G$9$,!”[email protected][email protected]$He(B
|[email protected]$a$+$b$7$l$^$;$s!#e(B

e$B$=$&$G$9$+!#e(B

e$B$I$&$$$&[email protected]$a$J$s$G$7$g$&$+!)e(B
e$B$H$j$"$($:F0$$$F$^$9$,!"LVMeE*$J%F%9%H$O$7$F$J$$$s$G!#e(B

[email protected]$G$9!#e(B

Tadayoshi F. wrote:

e$B$G!"[email protected]$7$?$b$N$r%3%_%C%H$7$^$7$?!#:#EY$O$b$&>/$7%^e(B
e$B%7$KF0$$$F$$$k$h$&$G$9!#e(B

e$B;DG0$J$,$i!"$&$A$G$O%S%k%I$9$i$G$-$J$$$N$G3NG’$G$-$J$$$N$G$9$,!"B>$G$Oe(B
e$B$A$c$s$HF0$$$F$$$k$N$G$9$+$M!#$&$A$Ne(B FreeBSD [email protected]$1$*$+$7$$$N$+$J!#e(B

e$B5nG/$N=U:"[email protected]$C$?$+!"[email protected]$5$s$K?V$$$?$i!":G?7HG$J$iBg>fIW$H$$$o$l$?$Ne(B
[email protected]$1$I!"$&[email protected]$7$?$3$H$J$$!#e(B

e$B!!$"$j$c!"%S%k%I;~$K$I$s$J%(%i!<$,=P$F$$$^$9$+!)e(B

e$B$G!"[email protected]$7$?$b$N$r%3%_%C%H$7$^$7$?!#:#EY$O$b$&>/$7%^e(B
e$B%7$KF0$$$F$$$k$h$&$G$9!#e(B

e$B;DG0$J$,$i!"$&$A$G$O%S%k%I$9$i$G$-$J$$$N$G3NG’$G$-$J$$$N$G$9$,!"B>$G$Oe(B
e$B$A$c$s$HF0$$$F$$$k$N$G$9$+$M!#$&$A$Ne(B FreeBSD
[email protected]$1$*$+$7$$$N$+$J!#e(B

e$B5nG/$N=U:"[email protected]$C$?$+!"[email protected]$5$s$K?V$$$?$i!":G?7HG$J$iBg>fIW$H$$$o$l$?$Ne(B
[email protected]$1$I!"$&[email protected]$7$?$3$H$J$$!#e(B

[email protected]$G$9!#e(B

Tadayoshi F. wrote:

$ make
gcc -g -O2 -rdynamic -L. main.o libruby-static.a -lpthread -lcrypt -lm -o miniruby
/usr/home/tadf/wc-ext/ruby-svn/ruby19/ruby/lib/fileutils.rb:1496:in `singleton_methods’: wrong number of arguments (2 for 1) (ArgumentError)
Fatal error ‘Thread has returned from _thread_switch’ at line 1101 in file /usr/src/lib/libpthread/thread/thr_kern.c (errno = 0)
Abort trap (core dumped)
*** Error code 134

e$B!!$3$l$C$F!"$I$3$Ge(B miniruby [email protected]$m$&!#e(B

e$B!!$=$l$O$H$b$+$/!"e(Blibpthread e$B$G$O$J$/$F!"e(Blibthr
e$B$r;H$&$H$I$&$G$7$g$&$+!#e(B
Makefile e$B$Ne(B -lpthread e$B$re(B -lthr e$B$K$9$k46$8!#e(B

e$B$3$s$J46$8$G$9!#e(B

$ make
gcc -g -O2 -rdynamic -L. main.o libruby-static.a -lpthread -lcrypt
-lm -o miniruby
/usr/home/tadf/wc-ext/ruby-svn/ruby19/ruby/lib/fileutils.rb:1496:in
`singleton_methods’: wrong number of arguments (2 for 1) (ArgumentError)
Fatal error ‘Thread has returned from _thread_switch’ at line 1101 in
file /usr/src/lib/libpthread/thread/thr_kern.c (errno = 0)
Abort trap (core dumped)
*** Error code 134

$ gdb miniruby miniruby.core
Core was generated by `miniruby’.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/lib/libpthread.so.1…done.
Loaded symbols for /usr/lib/libpthread.so.1
Reading symbols from /lib/libcrypt.so.2…done.
Loaded symbols for /lib/libcrypt.so.2
Reading symbols from /lib/libm.so.3…done.
Loaded symbols for /lib/libm.so.3
Reading symbols from /lib/libc.so.5…done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /libexec/ld-elf.so.1…done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x2815c31b in pthread_testcancel () from /usr/lib/libpthread.so.1
(gdb) w
#0 0x2815c31b in pthread_testcancel () from /usr/lib/libpthread.so.1
#1 0x2814d145 in sigaction () from /usr/lib/libpthread.so.1
#2 0x281471dd in pthread_kill () from /usr/lib/libpthread.so.1
#3 0x28146bac in raise () from /usr/lib/libpthread.so.1
#4 0x2824ac1b in abort () from /lib/libc.so.5
#5 0x2815ca7c in pthread_testcancel () from /usr/lib/libpthread.so.1
#6 0x28154efc in pthread_mutexattr_init () from
/usr/lib/libpthread.so.1
#7 0x28158bb4 in pthread_setconcurrency () from
/usr/lib/libpthread.so.1
#8 0x28154169 in pthread_mutexattr_init () from
/usr/lib/libpthread.so.1
#9 0x28152555 in pthread_mutex_unlock () from /usr/lib/libpthread.so.1
#10 0x28151be4 in pthread_mutex_unlock () from /usr/lib/libpthread.so.1
#11 0x2824cb17 in funlockfile () from /lib/libc.so.5
#12 0x2824b904 in fwrite () from /lib/libc.so.5
#13 0x0806589b in rb_write_error2 (mesg=0x6 <Address 0x6 out of bounds>,
len=1)
at io.c:4024
#14 0x080658c0 in rb_write_error (mesg=0x1 <Address 0x1 out of bounds>)
at io.c:4034
#15 0x080594cc in error_print () at eval_error.h:146
#16 0x080598e7 in error_handle (ex=6) at eval_error.h:241
#17 0x08059c8c in ruby_cleanup (ex=6) at eval.c:208
#18 0x08059d06 in ruby_stop (ex=6) at eval.c:247
#19 0x08059d4f in ruby_run () at eval.c:265
#20 0x080568d8 in main (argc=6, argv=0xbfbfe68c, envp=0xbfbfe6a8) at
main.c:47

e$B!!$3$l$C$F!"$I$3$Ge(B miniruby e$B$rF0$+$7$F$k[email protected]$m$&!#e(B

Makefile [email protected]$7$F!"e(Bminiruby e$B$N<B9T$r8+$($k$h$&$K$7$^$7$?!#e(B

$ make
./miniruby ./mkconfig.rb -timestamp=./.rbconfig.time
-install_name=ruby -so_name=ruby rbconfig.rb
/usr/home/tadf/wc-ext/ruby-svn/ruby19/ruby/lib/fileutils.rb:1496:in
`singleton_methods’: Fatal error ‘Thread has returned from
_thread_switch’ at line 1101 in file
/usr/src/lib/libpthread/thread/thr_kern.c (errno = 0)
Abort trap (core dumped)
*** Error code 134

e$B!!$=$l$O$H$b$+$/!"e(Blibpthread e$B$G$O$J$/$F!"e(Blibthr e$B$r;H$&$H$I$&$G$7$g$&$+!#e(B
Makefile e$B$Ne(B -lpthread e$B$re(B -lthr e$B$K$9$k46$8!#e(B

e$B$3$&$J$j$^$7$?!#e(B

$ make
gcc -g -O2 -rdynamic -L. main.o libruby-static.a -lthr -lcrypt -lm
-o miniruby
./miniruby ./mkconfig.rb -timestamp=./.rbconfig.time
-install_name=ruby -so_name=ruby rbconfig.rb
thr_create() == -1
thr_create
Abnormal termination, file: /usr/src/lib/libthr/thread/thr_create.c,
line: 151

FreeBSD 6.2 e$B$K$7$?$i%S%k%I$G$-$^$7$?!#e(B5.x
e$B$,$$$1$J$$$N$+$b$7$l$^$;$s!#e(B
linuxthreads e$B$H$+;n$7$F$_$^$7$?$,!"[email protected]$a$G$9$M!#e(B

[email protected]!"e(B6.2 e$B$K$7$F$b!“e(Brdoc e$B$N<B9T$G!”;`[email protected]$j$7$^$9!#e(B

$ gdb ruby ruby.core
Core was generated by `ruby’.
Program terminated with signal 10, Bus error.
Reading symbols from /lib/libpthread.so.2…done.
Loaded symbols for /lib/libpthread.so.2
Reading symbols from /lib/libcrypt.so.3…done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /lib/libm.so.4…done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libc.so.6…done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /libexec/ld-elf.so.1…done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x281c9e16 in signalcontext () from /lib/libc.so.6
[New Thread 0x8129600 (runnable)]
[New Thread 0x8129400 (LWP 100046)]
[New Thread 0x8129000 (runnable)]
[New LWP 100097]
(gdb) w
#0 0x281c9e16 in signalcontext () from /lib/libc.so.6
#1 0x28158ec8 in pthread_mutexattr_init () from /lib/libpthread.so.2
#2 0x28142450 in ?? ()

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs