Issue #11006 has been updated by Nobuyoshi Nakada.

File bug-11006.log added
Description updated
Priority changed from Urgent to Normal

----------------------------------------
Bug #11006: Segmentation fault on Ruby 2.2.1
https://bugs.ruby-lang.org/issues/11006#change-51954

* Author: Pubudu Kodikara
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 2.2.1
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
I built a photo hosting app where people can upload and sell photos. I just tried to test the site. Everything worked earlier but now when I try to upload a photo (I use carrierwave) the rails server stops (It crash and shuts down). The error is so long that I can't even see the start of it. The development log doesn't get this error. Here's the error I get :

~~~
SQL (0.3ms)  UPDATE "photos" SET "tempfile" = $1, "width" = $2, "height" = $3, "resolution" = $4, "filetype" = $5, "tempthumb" = $6, "user_id" = $7, "originalname" = $8, "id" = $9, "created_at" = $10, "updated_at" = $11 WHERE "photos"."id" = $12  [["tempfile", "istockseller-49055024-wallhaven-164660.jpg"], ["width", 4636], ["height", 3076], ["resolution", 72], ["filetype", "jpg"], ["tempthumb", "istockseller-thumb-59694024-wallhaven-164660.jpg"], ["user_id", 1], ["originalname", "wallhaven-164660.jpg"], ["id", 59694024], ["created_at", "2015-03-27 08:33:15.999380"], ["updated_at", "2015-03-27 08:33:15.999380"], ["id", 59694024]]
  SQL (0.3ms)  UPDATE "photos" SET "tempfile" = $1, "width" = $2, "height" = $3, "resolution" = $4, "filetype" = $5, "tempthumb" = $6, "user_id" = $7, "originalname" = $8, "id" = $9, "created_at" = $10, "updated_at" = $11 WHERE "photos"."id" = $12  [["tempfile", "istockseller-49055024-wallhaven-164660.jpg"], ["width", 4636], ["height", 3076], ["resolution", 72], ["filetype", "jpg"], ["tempthumb", "istockseller-thumb-59694024-wallhaven-164660.jpg"], ["user_id", 1], ["originalname", "wallhaven-164660.jpg"], ["id", 59694024], ["created_at", "2015-03-27 08:33:15.999380"], ["updated_at", "2015-03-27 08:33:15.999380"], ["id", 59694024]]
  SQL (0.3ms)  UPDATE "photos" SET "tempfile" = $1, "width" = $2, "height" = $3, "resolution" = $4, "filetype" = $5, "tempthumb" = $6, "user_id" = $7, "originalname" = $8, "id" = $9, "created_at" = $10, "updated_at" = $11 WHERE "photos"."id" = $12  [["tempfile", "istockseller-49055024-wallhaven-164660.jpg"], ["width", 4636], ["height", 3076], ["resolution", 72], ["filetype", "jpg"], ["tempthumb", "istockseller-thumb-59694024-wallhaven-164660.jpg"], ["user_id", 1], ["originalname", "wallhaven-164660.jpg"], ["id", 59694024], ["created_at", "2015-03-27 08:33:15.999380"], ["updated_at", "2015-03-27 08:33:15.999380"], ["id", 59694024]]
  SQL (0.3ms)  UPDATE "photos" SET "tempfile" = $1, "width" = $2, "height" = $3, "resolution" = $4, "filetype" = $5, "tempthumb" = $6, "user_id" = $7, "originalname" = $8, "id" = $9, "created_at" = $10, "updated_at" = $11 WHERE "photos"."id" = $12  [["tempfile", "istockseller-49055024-wallhaven-164660.jpg"], ["width", 4636], ["height", 3076], ["resolution", 72], ["filetype", "jpg"], ["tempthumb", "istockseller-thumb-59694024-wallhaven-164660.jpg"], ["user_id", 1], ["originalname", "wallhaven-164660.jpg"], ["id", 59694024], ["created_at", "2015-03-27 08:33:15.999380"], ["updated_at", "2015-03-27 08:33:15.999380"], ["id", 59694024]]
/home/pubudu/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/connection_adapters/postgresql/utils.rb:67: [BUG] Segmentation fault at 0x007f2a1cf61008
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
(snip)


~~~


---Files--------------------------------
bug-11006.log (1.27 MB)


-- 
https://bugs.ruby-lang.org/