Bugzilla – Full Text Bug Listing |
Summary: | Multiplication overflow in WaypointMobilityModel::EndMobility method | ||
---|---|---|---|
Product: | ns-3 | Reporter: | Mauro Tortonesi <mauro.tortonesi> |
Component: | mobility models | Assignee: | Pavel Boyko <boyko> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andreev, ns-bugs |
Priority: | P5 | ||
Version: | ns-3.11 | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | Patch fixing WaypointMobilityModel::EndMobility method |
Fixed. Changeset 87a5973bad52 |
Created attachment 1215 [details] Patch fixing WaypointMobilityModel::EndMobility method Calling the WaypointMobilityModel::EndMobility method results in a multiplication overflow: ------------------------------------------------------------------- aborted. cond="(hiPart & MASK_HI) != 0", msg="High precision 128 bits multiplication error: multiplication overflow.", file=../src/core/model/int64x64-128.cc, line=57 ------------------------------------------------------------------- due to an unnecessary conversion between double and uint64_t. The attached patch resolves the issue. My system is a 64-bit Linux machine: ruby-1.9.2-p290:~/opt/ns-3> uname -a Linux vulcan 2.6.39-ARCH #1 SMP PREEMPT Sat Jul 9 14:57:41 CEST 2011 x86_64 Intel(R) Core(TM) i7 CPU M 640 @ 2.80GHz GenuineIntel GNU/Linux Best regards, Mauro Tortonesi