Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10442 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

[PATCH] Actionpack Benchmarking.rb fix for NoMemoryError on 64 bit system

Reported by: wrb Assigned to: core
Priority: normal Milestone: 2.x
Component: ActionPack Version: edge
Severity: normal Keywords:
Cc:

Description

Error: NoMemoryError (negative allocation size (or too big)

Caused by use of "%d" in sprintf() on a floating point argument. Changed to "%.0f". This seems only to be a problem when running on a 64 bit linux OS (FC6). This was also a problem under rails 1.2.5 and 1.2.6; Ruby version 1.8.5.

Attachments

benchmark_crash.patch (0.7 kB) - added by wrb on 12/10/07 02:25:21.

Change History

12/10/07 02:25:21 changed by wrb

  • attachment benchmark_crash.patch added.

12/10/07 02:33:17 changed by wrb

  • summary changed from Actionpack Benchmarking.rb fix for NoMemoryError on 64 bit system to [PATCH] Actionpack Benchmarking.rb fix for NoMemoryError on 64 bit system.

12/10/07 02:45:17 changed by bitsweat

  • status changed from new to closed.
  • resolution set to fixed.

(In [8355]) Fix strange NoMemoryError on amd64. Closes #10442 [wrb]

12/10/07 02:57:23 changed by bitsweat

(In [8356]) Merge [8355] from trunk: fix strange NoMemoryError on amd64. References #10442 [wrb]