e$B$O$8$a$^$7$F!#DG20$H?=$7$^$9!#e(B
e$BIT6q9g$i$7$-$b$N$rH/8+$7$^$7$?$N$G!"8fJs9p$7$^$9!#e(B
[e$B8=>]e(B]
ruby 1.8.6 (2007-09-24 patchlevel 111)
[sparc-solaris2.9]e$B$G4D6-JQ?t$Ne(B
e$B%5%$%:$,>.$5$$;~$Ke(B Net::SMTP e$B$r;H$&$He(B timeout.rb e$B$,e(B
Segmentation fault
e$B$K$J$j$^$9!#e(B
e$B3NG’$7$?HO0O$G$Oe(B solaris e$B$N$_5/$-e(B FreeBSD,Linux
e$B$G$O5/$-$^$;$s!#e(B
e$B$^$?e(B solaris e$B$G$be(B ruby 1.8.4 e$B$G$O5/$-$^$;$s$G$7$?!#e(B
ruby 1.8.4 sparc-solaris2.9 e$B!{e(B
ruby 1.8.5 i486-linux e$B!{e(B
ruby 1.8.6 i386-freebsd6 e$B!{e(B
ruby 1.8.6 sparc-solaris2.9 e$B!_e(B
% env -i TERM=vt100 bin/ruby test.rb
/admins/home/shiiya/lib/ruby/1.8/timeout.rb:52: [BUG] Segmentation fault
ruby 1.8.6 (2007-09-24) [sparc-solaris2.9]
e$BIT;W5D$J;v$K2<5-$NMM$KM-$kDxEY$N4D6-JQ?t$N%5%$%:$,$“$k$H!”@5>o$KF0:n$7e(B
e$B$^$9!#e(B(e$B$J$N$GIaDL$K%3%^%s%I%i%$%s$+$iB9T$9$k$H@5o$KF0:n$7$^$9!#e(B)
% env -i
TERM=vt1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
bin/ruby test.rb
e$B85!9e(B ruby 1.8.4 e$B$Ge(B cron
e$B$r;H$C$F%a!<%kH/Aw$7$F$$$?$N$G$9$,!“e(B1.8.6 e$B$Ke(B
VerUpe$B$7$?$iF0$+$J$/$J$C$?0Y$KH/8+$7$^$7$?!#e(B
e$B%=!<%9$rGA$-$^$7$?$,<j$KIi$($J$$46$8$J$N$G!”?=$7Lu$"$j$^$;$s$,<1<T$NBPe(B
e$B1~$r$*4j$$$G$-$J$$$G$7$g$&$+!#e(B
[e$B%F%9%H%W%m%0%i%`e(B]
#!usr/local/bin/ruby
require ‘net/smtp’
addr = “[email protected]”
Net::SMTP.start( ‘localhost’, 25 ) {|smtp|
smtp.send_mail <<EndOfMail, addr, addr
From: #{addr}
To: #{addr}
Subject: test mail
This is test mail.
EndOfMail
}
[backtrace]
#0 0xff2a04f8 in _libc_kill () from /lib/libc.so.1
#1 0xff236d18 in abort () from /lib/libc.so.1
#2 0x0009a25c in rb_bug (fmt=0xb2778 “Segmentation fault”) at
error.c:214
#3 0x00079058 in sigsegv (sig=11) at signal.c:622
#4
#5 0xff3887d4 in seg0 () from
/usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1
#6 0xff247174 in realloc () from /lib/libc.so.1
#7 0x0002d890 in rb_thread_save_context (th=0x11e7c8) at eval.c:10234
#8 0x0002fd00 in rb_thread_start_0 (fn=0x30080 <rb_thread_yield>,
arg=0xde168, th=0x182d10) at defines.h:215
#9 0x00031aa0 in call_cfunc (func=0x30230 <rb_thread_start>,
recv=1097592,
len=-2, argc=1584400, argv=0x0) at eval.c:5688
#10 0x00025838 in rb_call0 (klass=1097568, recv=1097592, id=5057,
oid=5057,
argc=0, argv=0x0, body=0x10bed0, flags=0) at eval.c:5847
#11 0x00026360 in rb_call (klass=1097568, recv=1097592, mid=5057,
argc=0,
argv=0x0, scope=0, self=925416) at eval.c:6094
#12 0x000204a8 in rb_eval (self=925416, n=0x0) at ruby.h:679
#13 0x0001f8a0 in rb_eval (self=925416, n=0xe30d0) at eval.c:3203
#14 0x0001fdf4 in rb_eval (self=925416, n=0xe30a0) at eval.c:3658
#15 0x0001fd40 in rb_eval (self=925416, n=0xe33e8) at eval.c:3337
#16 0x00025b68 in rb_call0 (klass=925176, recv=925416, id=11361,
oid=11361,
argc=0, argv=0xffbfbd80, body=0xe33e8, flags=0) at eval.c:5998
#17 0x00026360 in rb_call (klass=925176, recv=925416, mid=11361,
argc=2,
argv=0xffbfbd78, scope=0, self=924024) at eval.c:6094
#18 0x000204a8 in rb_eval (self=924024, n=0x2) at ruby.h:679
#19 0x0002b894 in block_pass (self=924024, node=0xe2a28) at eval.c:8904
#20 0x000210e8 in rb_eval (self=924024, n=0xe2ae8) at eval.c:3189
#21 0x00025b68 in rb_call0 (klass=1116552, recv=924024, id=11361,
oid=11361,
argc=0, argv=0xffbfc81c, body=0xe2ae8, flags=2) at eval.c:5998
#22 0x00026360 in rb_call (klass=1116552, recv=924024, mid=11361,
argc=1,
argv=0xffbfc818, scope=1, self=924024) at eval.c:6094
#23 0x000204a8 in rb_eval (self=924024, n=0xffbfc818) at ruby.h:679
#24 0x0001f8a0 in rb_eval (self=924024, n=0xe9dd8) at eval.c:3203
#25 0x0001fdf4 in rb_eval (self=924024, n=0xe9da8) at eval.c:3658
#26 0x00025b68 in rb_call0 (klass=922920, recv=924024, id=10809,
oid=10809,
argc=0, argv=0xffbfd4d4, body=0xe9da8, flags=0) at eval.c:5998
#27 0x00026360 in rb_call (klass=922920, recv=924024, mid=10809, argc=5,
argv=0xffbfd4c0, scope=0, self=909840) at eval.c:6094
#28 0x000204a8 in rb_eval (self=909840, n=0x5) at ruby.h:679
#29 0x0001feb0 in rb_eval (self=909840, n=0xf70e0) at eval.c:3678
#30 0x0001fd40 in rb_eval (self=909840, n=0xf6618) at eval.c:3337
#31 0x00025b68 in rb_call0 (klass=912360, recv=909840, id=10769,
oid=10769,
argc=0, argv=0xffbfe178, body=0xf6618, flags=2) at eval.c:5998
#32 0x00026360 in rb_call (klass=912360, recv=909840, mid=10769, argc=4,
argv=0xffbfe168, scope=1, self=909840) at eval.c:6094
#33 0x000204a8 in rb_eval (self=909840, n=0xffbfe168) at ruby.h:679
#34 0x0001fd40 in rb_eval (self=909840, n=0xf73e0) at eval.c:3337
#35 0x00025b68 in rb_call0 (klass=912360, recv=909840, id=5057,
oid=5057,
argc=0, argv=0xffbfeac8, body=0xf73e0, flags=0) at eval.c:5998
#36 0x00026360 in rb_call (klass=912360, recv=909840, mid=5057, argc=4,
argv=0xffbfeab8, scope=0, self=912360) at eval.c:6094
#37 0x000204a8 in rb_eval (self=912360, n=0x4) at ruby.h:679
#38 0x0002b894 in block_pass (self=912360, node=0xf81a8) at eval.c:8904
#39 0x000210e8 in rb_eval (self=912360, n=0xf8328) at eval.c:3189
#40 0x00025b68 in rb_call0 (klass=912288, recv=912360, id=5057,
oid=5057,
argc=0, argv=0xffbff578, body=0xf8328, flags=0) at eval.c:5998
#41 0x00026360 in rb_call (klass=912288, recv=912360, mid=5057, argc=2,
argv=0xffbff570, scope=0, self=1110552) at eval.c:6094
#42 0x000204a8 in rb_eval (self=1110552, n=0x2) at ruby.h:679
#43 0x0001f8a0 in rb_eval (self=1110552, n=0xffbff940) at eval.c:3203
#44 0x0001c2d0 in ruby_exec_internal () at eval.c:1634
#45 0x0001c31c in ruby_exec () at eval.c:1654
#46 0x0001c34c in ruby_run () at eval.c:1664
#47 0x0001a1dc in main (argc=2, argv=0xffbfff2c, envp=0xffbfff38) at
main.c:48