[#1884] multiple exceptions for assert_raises — nobu.nokada@...

Hi,

14 messages 2003/12/04

[#1932] --enable-pthread broken? — Nathaniel Talbott <nathaniel@...>

[ruby-talk: 87759] and the surrounding thread seem to indicate that

29 messages 2003/12/11
[#1933] Re: --enable-pthread broken? — matz@... (Yukihiro Matsumoto) 2003/12/11

Hi,

[#1934] Re: --enable-pthread broken? — Nathaniel Talbott <nathaniel@...> 2003/12/11

On Dec 11, 2003, at 11:49, Yukihiro Matsumoto wrote:

[#1935] Re: --enable-pthread broken? — ts <decoux@...> 2003/12/11

>>>>> "N" == Nathaniel Talbott <nathaniel@talbott.ws> writes:

[#1937] Re: --enable-pthread broken? — nobu.nokada@... 2003/12/11

Hi,

[#1938] Re: --enable-pthread broken? — Nathaniel Talbott <nathaniel@...> 2003/12/12

On Dec 11, 2003, at 16:10, nobu.nokada@softhome.net wrote:

[#1939] Re: --enable-pthread broken? — matz@... (Yukihiro Matsumoto) 2003/12/12

Hi,

[#1941] Re: --enable-pthread broken? — matz@... (Yukihiro Matsumoto) 2003/12/12

Hi,

[#1943] Re: --enable-pthread broken? — Nathaniel Talbott <nathaniel@...> 2003/12/12

On Dec 11, 2003, at 20:48, Yukihiro Matsumoto wrote:

[#1953] Re: --enable-pthread broken? — matz@... (Yukihiro Matsumoto) 2003/12/13

Hi,

[#1959] Re: --enable-pthread broken? — ts <decoux@...> 2003/12/14

>>>>> "Y" == Yukihiro Matsumoto <matz@ruby-lang.org> writes:

[#1961] Re: --enable-pthread broken? — matz@... (Yukihiro Matsumoto) 2003/12/15

Hi,

[#1962] Re: --enable-pthread broken? — ts <decoux@...> 2003/12/15

>>>>> "Y" == Yukihiro Matsumoto <matz@ruby-lang.org> writes:

[#1936] Can't define +@ for Symbol (plus ruby install problem) — "T. Onoma" <transami@...>

I wanted to see if the +@ problem was fixed in 1.8.1 preview 3 but when I do

11 messages 2003/12/11

[#1973] Where to install documentation — Dave Thomas <dave@...>

Folks:

48 messages 2003/12/15
[#1982] Re: Where to install documentation — Eric Hodel <drbrain@...7.net> 2003/12/15

Dave Thomas (dave@pragprog.com) wrote:

[#1984] Re: Where to install documentation — Dave Thomas <dave@...> 2003/12/15

[#1991] Re: Where to install documentation — "Gavin Sinclair" <gsinclair@...> 2003/12/16

>

[#1992] Re: Where to install documentation — Dave Thomas <dave@...> 2003/12/16

[#2000] Re: Where to install documentation — Minero Aoki <aamine@...> 2003/12/16

Hi,

[#2002] Re: Where to install documentation — Dave Thomas <dave@...> 2003/12/16

[#2037] --enable-pthread still segfaults... — Nathaniel Talbott <nathaniel@...>

I've finally been able to test my application under load using the

25 messages 2003/12/23
[#2038] Re: --enable-pthread still segfaults... — matz@... (Yukihiro Matsumoto) 2003/12/23

Hi,

[#2039] Re: --enable-pthread still segfaults... — Nathaniel Talbott <nathaniel@...> 2003/12/23

On Dec 23, 2003, at 14:17, Yukihiro Matsumoto wrote:

[#2040] Re: --enable-pthread still segfaults... — matz@... (Yukihiro Matsumoto) 2003/12/23

Hi,

[#2041] Re: --enable-pthread still segfaults... — Nathaniel Talbott <nathaniel@...> 2003/12/23

On Dec 23, 2003, at 14:34, Yukihiro Matsumoto wrote:

[#2042] Re: --enable-pthread still segfaults... — matz@... (Yukihiro Matsumoto) 2003/12/23

Hi,

[#2043] Re: --enable-pthread still segfaults... — Nathaniel Talbott <nathaniel@...> 2003/12/23

On Dec 23, 2003, at 14:44, Yukihiro Matsumoto wrote:

[#2045] Re: --enable-pthread still segfaults... — matz@... (Yukihiro Matsumoto) 2003/12/23

Hi,

[#2046] Re: --enable-pthread still segfaults... — Nathaniel Talbott <nathaniel@...> 2003/12/23

> I'm afraid you're using old configure file. Can you wipe off old

[#2049] Re: --enable-pthread still segfaults... — Nathaniel Talbott <nathaniel@...> 2003/12/23

On Dec 23, 2003, at 15:18, Nathaniel Talbott wrote:

[#2050] Re: --enable-pthread still segfaults... — matz@... (Yukihiro Matsumoto) 2003/12/23

In message "Re: --enable-pthread still segfaults..."

[#2122] Bad interaction between timeout.rb and --enable-pthread — Nathaniel Talbott <nathaniel@...>

Here's a testcase that shows the problem:

13 messages 2003/12/31
[#2123] sleep is broken with --enable-pthread [Was: Bad interaction between timeout.rb and --enable-pthread] — Nathaniel Talbott <nathaniel@...> 2003/12/31

I should have reduced it more before posting...

Re: --enable-pthread broken?

From: ts <decoux@...>
Date: 2003-12-14 14:00:32 UTC
List: ruby-core #1959
>>>>> "Y" == Yukihiro Matsumoto <matz@ruby-lang.org> writes:

Y> LinuxThread has something bad with signal handling, I guess.  This
Y> patch may solve the blocking problem at the cost of potential
Y> performance slow down.  Can you try (with --enable-pthread)?

 If I've well understood it receive a signal when it's in setcontext().

 One way to see it, is with this script (well if you have svg, which must
 be a stupid PC because it can see problem with ruby :-))

svg% cat s.rb
   require 'webrick'
   include WEBrick

   s = HTTPServer.new(
     :Port => 2000,
     :Logger => BasicLog::new('/dev/null'),
     :AccessLog => []
   )

   class HelloServlet < HTTPServlet::AbstractServlet
     def do_GET(req, res)
        $stderr.print "|"
       res.body = "<HTML>hello, world.</HTML>"
       res['Content-Type'] = "text/html"
     end
   end
   s.mount("/hello", HelloServlet)

   trap("INT"){ s.shutdown }
   s.start
svg% 

svg% cat c.rb
require 'thread'
require 'net/http'

threads = []

200.times do
   threads << Thread.new do
      begin
         h = Net::HTTP::new('localhost', 2000)
         loop do
            $stderr.print "- #{threads.size}"
            h.get('/hello')
         end
      rescue Exception
         p $!
         sleep 5
      end
   end
end

threads.each{|t| t.join}
$stderr.puts "========================================"
sleep(60 * 10)
svg% 

svg% ruby s.rb &
[5] 6897
svg%
 
svg% ruby c.rb
- 0- 1- 2- 3- 4- 5- 6- 7- 8- 9- 10- 11- 12- 13- 14||||||||- 15- 15- 15- 15-
15- 15- 15- 15- 15- 16- 17|- 18- 19|||||||||- 20|- 20- 21|- 22|- 22- 22-
22- 22- 22- 22- 22- 22- 22- 23|- 23- 24|- 24- 25- 25- 26- 26- 27- 27- 28-
29- 30- 31- 32- 33- 34- 35- 36- 37- 38- 39- 40- 41||||||||||||||||||- 42-
42- 42- 42- 42- 42- 42- 42- 42- 42- 42- 42- 42- 42- 42- 43- 42- 43- 43- 44-
45- 46- 47- 48- 49- 50- 51- 52- 53|||||||- 55- 55- 55- 55- 55- 55- 55- 55-
56- 56- 57- 57- 58|- 59|||||||- 60||- 61||- 61- 62|- 62|- 62- 63- 63- 63-
64|- 64- 64- 64- 64- 65||- 65|- 65- 65- 66|- 66- 66||- 67||- 68|- 68|||||-
69- 69|||- 70|- 70- 70||- 70- 70- 70- 70- 71||- 71- 72|- 72|- 72- 72- 72-
72- 73||- 73- 73- 73- 74|||- 74- 74|||- 75- 75- 75- 75- 75- 76|- 76|-
76||||||||- 77||- 77|- 77||||- 78- 78- 78- 78||- 78- 78- 78- 79||||- 80||-
80||| 




 it's blocked (sometimes it seems to work)

 Do like rb_trap_immediate for rb_thread_critical ???


Guy Decoux

In This Thread