[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #4834 [Vidalia]: Tor's log lines to stdout don't flush in time for Vidalia to see them?



#4834: Tor's log lines to stdout don't flush in time for Vidalia to see them?
---------------------+------------------------------------------------------
 Reporter:  arma     |          Owner:  chiiph
     Type:  defect   |         Status:  new   
 Priority:  normal   |      Milestone:        
Component:  Vidalia  |        Version:        
 Keywords:           |         Parent:        
   Points:           |   Actualpoints:        
---------------------+------------------------------------------------------

Comment(by rtoepfer):

 Replying to [ticket:4834 arma]:
 > Erinn has a heisenbug where sometimes her TBB notices Tor's log line
 about openssl version, and sometimes it doesn't.
 >
 > My theory is that there's still a gap between when Tor writes logs to
 stdout, and when Vidalia starts being able to handle log events.
 >
 > For example: it looks like Tor's stdout logs don't flush at any
 particular time. So the sequence would be: Vidalia starts Tor, Tor starts
 with a temporary log to stdout, Vidalia connects over the control port and
 asks for log events, Vidalia starts ignoring Tor's stdout, Tor closes its
 temporary logs which flushes all the lines.
 >
 > One way forward would be to try a Vidalia patch that continues listening
 to Tor's stdout after it otherwise would start ignoring it; and then see
 if we get duplicate lines as expected or if we see any new lines we
 otherwise would have missed. Bonus points if the Vidalia logs label lines
 as "S" or "E" (stdout or event) to tell which line was which. I'm putting
 this in the Vidalia component until we've tried this experiment.


 arma what are your hardware specs?  I suspect the Heisenbug is due to
 context switches on slower/older hardware.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4834#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs