[Bug #2648] Mac OS X 10.6/10.5$B$G(B--enable-pthread$B$N$H$-(Btest-all$B$G(BSEGV$B$9$k(B

Bug #2648: Mac OS X
10.6/10.5e$B$Ge(B–enable-pthreade$B$N$H$-e(Btest-alle$B$Ge(BSEGVe$B$9$ke(B
http://redmine.ruby-lang.org/issues/show/2648

e$B5/I<<Te(B: Wataru Kimura
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
ruby -v: ruby 1.8.8dev (2010-01-22 revision 26374) [i386-darwin10.2.0]

#2603(NetBSD
5.0e$B0J9_$Ge(Bpthreade$B$N=hM}$KM3Mh$9$kIT6q9ge(B)e$B$H;w$?8=>]$J$N$G$9$,!"e(B
Mac OS Xe$B>e$Ge(B1.8 (trunk
r26382)e$B$*$h$Se(B1.8.7-p249e$B$re(B–enable-pthreade$B$Ge(B
configuree$B$7$F%S%k%I$7$?$H$-!"e(Bmake
test-alle$B$GB??t$Ne(Bsegmentation faulte$B$,H/@8$7$^$9!#e(B

test-alle$B$N=PNO$rE:IU$7$^$7$?!#e(B8e$B;~4V$[$I$7$F$b=*N;$7$J$+$C$?$N$GESCf$^$G$N$b$N$G$9!#e(B
e$B0lItH4?h$7$^$9!#e(B

====
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./runruby.rb
–extout=.ext – “./test/runner.rb” --basedir=“./test” --runner=console
Loaded suite .
Started
…/Volumes/CHome/kimuraw/work/ruby_1_8/lib/drb/extservm.rb:85:
[BUG] Segmentation fault
ruby 1.8.8dev (2010-01-22 revision 26374) [i386-darwin10.2.0]

EEEEEEE/Volumes/CHome/kimuraw/work/ruby_1_8/lib/drb/extservm.rb:85:
[BUG] Segmentation fault
ruby 1.8.8dev (2010-01-22 revision 26374) [i386-darwin10.2.0]

EEEEEEEEEEEEEE/Volumes/CHome/kimuraw/work/ruby_1_8/lib/drb/extservm.rb:85:
[BUG] Segmentation fault
ruby 1.8.8dev (2010-01-22 revision 26374) [i386-darwin10.2.0]

E/Volumes/CHome/kimuraw/work/ruby_1_8/lib/drb/extservm.rb:85: [BUG]
Segmentation fault
ruby 1.8.8dev (2010-01-22 revision 26374) [i386-darwin10.2.0]

  • –enable-pthreade$B$7$J$$$H$-e(BSEGVe$B$7$^$;$se(B
  • 1.8.7-p174e$B$G$Oe(BSEGVe$B$7$^$;$se(B
  • Mac OS X 10.6.2e$B$*$h$Se(B10.5.8e$B$G3NG’$7$^$7$?e(B
  • #2603e$B$GDs<($5$l$F$$$k:G>.$N:F8=%1!<%9$G$O:F8=$7$^$;$s$G$7$?e(B
    • ./ruby -e’Thread.new{sleep};./ruby -e"1"
    • ./ruby -e’Thread.new{sleep};fork{}’

#2603e$B$Ne(Bpatch-2e$B$Ne(B__NetBSD__e$B$Ke(B__APPLE__e$B$r2C$($Fe(BMace$B$G$bM-8z$K$7$?$b$N$re(B
trunk r26370e$B$KEv$F$k$He(BSEGVe$B$OH/@8$7$J$/$J$j$^$7$?!#e(B

e$B%A%1%C%He(B #2648 e$B$,99?7$5$l$^$7$?!#e(B (by Wataru Kimura)

e$B%U%!%$%ke(B patch-bug2648.diff e$BDI2Ce(B

Mac OS Xe$B>e$Ge(B1.8 (trunk r26382)e$B$*$h$Se(B1.8.7-p249e$B$re(B–enable-pthreade$B$Ge(B
e$B$3$N!Ve(B1.8 (trunk r26382)e$B!W$C$Fe(B 1.9 e$B$G$9$+e(B?

e$B$9$_$^$;$s!De(B1.8e$B$O%V%i%s%A$G$9$M!#e(B1.9e$B$G$J$/e(B1.8e$B$N$D$b$j$G=q$-$^$7$?!#e(B

1.8 e$B$NJ}$Oe(B r26371 e$B$N=$@5$Ne(B NetBSD e$B$Ke(B APPLE e$B$r2C$($k$H$I$&$G$9$+e(B ?
e$B$H$j$“$($:e(B 1.8 e$B$K$D$$$F$O!”$=$NJ}8~$Ge(B ruby_1_8 e$B%V%i%s%A$KBP$7$FF0:n$r3NG’$7$?%Q%C%A$r:n$C$F$$$?$@$1$l$P<h$j9~$_$^$9!#e(B

1.8e$B$Ne(Br26425e$B$X$N%Q%C%A$r:n@.$7$^$7$?!#e(B

  • Mac OS X 10.6.2e$B$*$h$Se(B10.5.8e$B$Ge(Bmake
    test-alle$B$,e(BSEGVe$B$7$J$/$J$C$?$3$He(B

e$B%Q%C%A:Q$_e(Bpthreade$B$"$je(B/e$B%Q%C%A$J$7e(Bpthreade$B$J$7$N>l9g$Ge(Bmake
test-alle$B$N7k2L$,e(B(e$B$[$\e(B)e$BF1$8$K$J$k$3$He(B
e$B!Je(B10.6.2e$B$Ge(B4F1E/5F1Ee$B!"e(B10.5.8e$B$Ge(B5F2E/5F2Ee$B!Ke(B
e$B$r3NG’$7$^$7$?!#e(B


http://redmine.ruby-lang.org/issues/show/2648

e$B%A%1%C%He(B #2648 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)

Mac OS Xe$B>e$Ge(B1.8 (trunk r26382)e$B$*$h$Se(B1.8.7-p249e$B$re(B–enable-pthreade$B$Ge(B
e$B$3$N!Ve(B1.8 (trunk r26382)e$B!W$C$Fe(B 1.9 e$B$G$9$+e(B?

1.8 e$B$NJ}$Oe(B r26371 e$B$N=$@5$Ne(B NetBSD e$B$Ke(B APPLE
e$B$r2C$($k$H$I$&$G$9$+e(B ?
e$B$H$j$“$($:e(B 1.8 e$B$K$D$$$F$O!”$=$NJ}8~$Ge(B ruby_1_8
e$B%V%i%s%A$KBP$7$FF0:n$r3NG’$7$?%Q%C%A$r:n$C$F$$$?$@$1$l$P<h$j9~$_$^$9!#e(B

http://redmine.ruby-lang.org/issues/show/2648

e$B%A%1%C%He(B #2648 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

This issue was solved with changeset r26437.
Wataru, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


http://redmine.ruby-lang.org/issues/show/2648