[vbox-dev] Floating point exception

James Lucas jimmy at secsme.org.au
Fri Oct 24 06:49:36 GMT 2008

Occasionally I get a Floating point exception from VBoxManage showvminfo 
when it trys to render the value of VRDPThroughputSend. This is on VBox 
1.6.6 however the current SVN sources have the same line.

The line in VBoxManage.cpp is    RTPrintf("VRDPThroughputSend=%llu\n", 
(BytesSent * 1000) / (EndTime - BeginTime) );

VRDPLastStartTime="2008/10/24 00:39:24 UTC"
VRDPLastEndTime="2008/10/24 00:39:24 UTC"
Floating point exception
(Exit code 136)

I guess this is caused because BytesSent = 0 and both EndTime & 
BeginTime are equal (ie 0 div 0). I've only seen this happening when 
external VRDP authentication is turned on and I assume it happens when a 
user enters invalid credentials (server will close client connection 
straight away).

Should this case be checked for? There is at least one other line like 
this which could cause a divide by zero error.

- James

UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender
immediately and delete this message. Any views expressed in this message
are those of the individual sender, except where the sender expressly, and
with authority, states them to be the views the University of Technology,
Sydney. Before opening any attachments, please check them for viruses and

More information about the vbox-dev mailing list