En recherche goggle j'ai eu ça. à la place des liens

bonjour,

j’aurai aimer savoir ce que veut dire ce charabia alors que je faisait des recherches sur goggle, à la place de la page de liens habituelles,j’ai eu ça=

Subject: [BUG] thread failure after trap
From: Jakub Travnik <j.travnik sh.cvut.cz>
Date: Wed, 15 May 2002 02:29:43 +0900
Hello,

I have encountered bug in ruby threads.
It can be demonstrated by following script:

----simplebug.rb--------------------------
require ‘socket’

PORT=8080

def handle_client(sock)
5.times{ sock.write(sock.readline) } # echo few lines
sock.close
end

trap(‘HUP’) {
puts ‘Got SIGHUP’
}

server = TCPserver.open(PORT)
while true do
sock = server.accept
puts ‘client accepted’
Thread.start do
handle_client(sock)
end
end

Run script, run telnet session to talk with it.
Send SIGHUP signal to script.
Now ruby is doing blocking accept call (instead of select
which is required for ruby threads to work).
Test on telnet session that no more lines are echoed back.
If you initiate another new telnet session, blocking accept
will stop blocking and things will continue to work correctly
(till next SIGHUP signal).

This bug applies to following ruby versions:
ruby 1.6.7 (2002-05-10) [i686-linux]
ruby 1.6.7 (2002-03-19) [i386-linux]

I have been searching the BUG for a few hours.

First obvious BUG:
----part of file eval.c---------------------
n = select(max+1, &readfds, &writefds, &exceptfds, delay_ptr);
if (n < 0) {
if (rb_trap_pending) rb_trap_exec();
if (errno == EINTR) goto again;
#ifdef ERESTART
if (errno == ERESTART) goto again;
#endif

If rb_trap_exec is executed, errno is no longer valid

simple fix:

     n = select(max+1, &amp;readfds, &amp;writefds, &amp;exceptfds, delay_ptr);
     if (n < 0) {
         int tmperrno=errno;
         if (rb_trap_pending) rb_trap_exec();
         if (tmperrno == EINTR) goto again;

#ifdef ERESTART
if (tmperrno == ERESTART) goto again;
#endif

However this does not solve problem in the script above.
Problem is probably in thread switching somewhere.

call tree for rb_trap_exec
rb_trap_exec:
call signal_exec
rb_signal_exec:
call rb_thread_trap_eval
rb_thread_trap_eval: call rb_thread_ready
rb_thread_trap_eval: call rb_thread_restore_context

I currently don’t have much time to dig in ruby source due to
school work.

Jakub Travnik
jabber://jtra@jabber.com
You can contact me also at irc.openprojects.net #ruby-lang

A tes souhaits … http://smilies.sofrayt.com/^/aiw/patsak.gif

c’est un mail çà

donc çà dépend si t’es aller sur cette page
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/40337
ou cette page
http://blade.nagaokaut.ac.jp/cgi-bin/rcat.rb/ruby/ruby-talk/40337
bah c’est normal…

vous repondez pas à ma question.
j’ai fait un copier-coller de la page d’affichage qui était à la place de celle de goggle.
depuis le temp que je parcours ce forum je sais quand meme faire la part des choses…

c’est quoi, un bug et un developpeur de goggle envoi ça?
expliquez_moi

c’est pas goggle c’est google…

“je sais quand meme faire la part des choses”

Ouais, on dirait bien [:matleflou]

[:dunk]

Au passage :stuck_out_tongue:

oué mé je demand pas de critik sur mé fote juste ke on mesplik ce ke ca veu dir mé si vs savé po tan pi merci lé gars

c’est un gars (le sieur Jakub Travnik)(qui décrit un bug sur 1 page de ce site et c’est tout!

Subject: [BUG] thread failure after trap
From: --> luiii là! :Jakub Travnik <j.travnik sh.cvut.cz>
Date: Wed, 15 May 2002 02:29:43 +0900 (pas récent récent :lol:)

Hello,
I have encountered bug in ruby threads.
It can be demonstrated by following script: … blablabla

va sur la racine du site

http://www.ruby-talk.org/
ou là (houlà! aussi)
http://blade.nagaokaut.ac.jp/ruby/ruby-talk/index.shtml

(késako ce site? il n’y a pratiquement que des mails)

Mé sait bi1 le moter 2 recherch ke tu ve avouar oo pa? Parcke le moter sé GOOGLE.COM et pa GOGGLE.COM.

COGGLE.COM sé un sit parazit ki na ri1 avouar avek le moter 2 recherch! Sé 1 ni a spaïllouèr et a skript malissieux, beuggés en + alor oobli.

Gros effort là, je sais pas comment il font ceux qui écrivent comme ça en permanence [:keuss]

ok merci pour votre aide

Eux ils font pas d’effort, c’est inné sans cerveau … [:sticoum:3]