[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] a dead looping bug when changing system time backward
- To: libevent maillist <libevent-users@xxxxxxxx>
- Subject: [Libevent-users] a dead looping bug when changing system time backward
- From: 卓宜黄 <zhuoyihuang@xxxxxxxxx>
- Date: Tue, 10 Apr 2012 11:44:39 +0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Mon, 09 Apr 2012 23:44:48 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=DCsLFWZTDLDdecX/6WMzOHm6htzx4yQGtpQ1PH/DrAY=; b=oH9M5fCEUaqjBQQBfVJYxEspSYSR2fwVAQTc+UTkW38akQBwftUkEx/wp43zMMoiMv sDU8sHKO3XGQN4iLt247QfRemxqu4fVZtWFD5J26rco9nn40w5gPidPWcVVbpSzeIaRc ItJ95sUAzw2G03CdmCU3Bm+JwxOzwIoM5IfcURSlXJPDKsNDnakJYPw9/TJeq7bil64Z OiaPyv0OLYwO/kui3Wv3Oh03H2DcLmfizwFQ4qN3IpeRpX5FrtXRBwfe9QldEfjTX4iA 46cBY2ZgXzQU/GlpZmQx1nwyWCx58tywvi855y6A+uskKoklTw2Y0DMdRnPddxLHI1i6 m/Pg==
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
Hi all,
I found an issue that it will trigger the timer callback dramatically
like a dead looping when moving the system time backward for a year
and then moving it forward to the accurate time.
Of course, I had to change the system time for other activities then.
However, I've made a test case for each of libevent's version of
2.0.10, 2.0.12, 2.0.17, unfortunately, those tests had caused the same
issue when the system time was changed in the way I mentioned. Also,
those weren't any stress-testing methodology. I just wanted to reveal
and confirm the appearance. In addition, I did all the test on a
windows platform.
I was appreciated for the reply from Nick that I reported this issue
to. I figured that we won't change the system time manually at the
production phase of a system for sure. But what I worry about is in a
complicated situation that a machine in work would probably be
synchronized its system time with an external standard timer. So, it
could probably cause the issue like this if the time difference is
about 3 ~ 5 seconds, especially for some sort of online game server
which needs a timer to calculate some logical procedures by elapsed
time.
Yours
Jeffrey
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.