From: "nagachika (Tomoyuki Chikanaga)" Date: 2013-09-12T21:57:51+09:00 Subject: [ruby-core:57159] [ruby-trunk - Bug #8864] sprintf segfaults with too high precision Issue #8864 has been updated by nagachika (Tomoyuki Chikanaga). Backport set to 1.9.3: REQUIRED, 2.0.0: REQUIRED ruby -v set to - ---------------------------------------- Bug #8864: sprintf segfaults with too high precision https://bugs.ruby-lang.org/issues/8864#change-41770 Author: Aaronneyer (Aaron Neyer) Status: Closed Priority: Normal Assignee: Category: Target version: ruby -v: - Backport: 1.9.3: REQUIRED, 2.0.0: REQUIRED In any Ruby version (attempted with 1.8.7, 1.9.3, and 2.0.0), specifying a very large precision in sprintf can cause a segmentation fault. The following code will cause the segmentation fault. `"%.99999f" % 10` The number to cause a segfault is dependent on the system. On my laptop, any number above 1100 would cause it, and on an EC2 micro instance, around 2500 was the limit. -- http://bugs.ruby-lang.org/