Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tcl problem and time warp
Author Message
TsT Offline
Junior Member
**

Posts: 5
Joined: Jun 2010
Reputation: 0
Post: #1
Tcl problem and time warp
I working to provide a safe isolated tcl environment for each sbnc accounts.

I'm working under linux with tcl 8.5.
The tcl have a issue (not only 8.5) about the long calculation like :
expr pow($x,$y) or expr $x**$y
expr 32000**20000 (less 1 minute calculation)
expr 5555500000**55555555 (seems never finish... some days or months of calculation?)

Code:
tcl set test [interp -safe --]
tcl interp limit $test time -seconds [expr {[clock seconds] + 5}]
tcl interp eval $test {expr {32000**20000}; return done}

Code:
13:27:00 <admin> tcl interp eval $test {expr {32000**20000}; return END}
13:27:36 <-sBNC> END
13:27:36 <-sBNC> Time warp detected: 32 seconds
24.06.2010 12:53
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [sBNC 1.2] Problem with away CabaL 1 782 08.11.2010 10:40
Last Post: shroud

Forum Jump:


Contact Us | shroudBNC Home | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication