From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 6BFA2196000C for ; Fri, 19 Jun 2015 17:18:35 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (smtp.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 146ECB5D8B0 for ; Fri, 19 Jun 2015 17:41:31 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 1F3EE97A827 for ; Fri, 19 Jun 2015 17:41:33 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Authentication-Results: funfun.nagaokaut.ac.jp (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=sendgrid.me Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2D32q3xtE6l1 for ; Fri, 19 Jun 2015 17:41:32 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id F036097A826 for ; Fri, 19 Jun 2015 17:41:32 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id C27D2952441 for ; Fri, 19 Jun 2015 17:41:30 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id D94C0120486; Fri, 19 Jun 2015 17:41:29 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id 3A35C120477 for ; Fri, 19 Jun 2015 17:41:24 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=PUj092TtYxWz40OqmcaEjuExqWw=; b=updT++U4fzEvrzwYNP GxJTBaNQnblv9GV9wqC62+qa8cpB9TKHyrc4ZsFOu/6U7HO0AB5XWNBA+L7pAWT5 XebEUzZn4YQdgmZGWf5GTEGqX0/L9yPUoSsAfv++purMxTdI14rNp5t5IQXOpUvA k6wxpJFsu3gh8vzBtsn/LRPJg= Received: by filter0428p1mdw1.sendgrid.net with SMTP id filter0428p1mdw1.3801.5583D5AD12 2015-06-19 08:41:18.948367283 +0000 UTC Received: from herokuapp.com (ec2-54-146-249-205.compute-1.amazonaws.com [54.146.249.205]) by ismtpd-015 (SG) with ESMTP id 14e0afab390.7b7c.356360 for ; Fri, 19 Jun 2015 08:41:18 +0000 (UTC) Date: Fri, 19 Jun 2015 08:41:18 +0000 From: simon.toivo@telhaug.no To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Redmine-MailingListIntegration-Message-Ids: 44231 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11287 X-Redmine-Issue-Author: simon X-Redmine-Sender: simon X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS4SUv2H2qR3zidskQ+btMYhM9r1aU0+l3acVX ynUVOBRoS1UcT9vJJiWCKcsEfkAYpddVmMpU94GZ8NZ1E1W2qc7cY0jYXpP5wDZSEH0MakfNYcDk7e 299vNkRX//MzU32RPwmIEWlOAdbvpBmrPnNh X-ML-Name: ruby-core X-Mail-Count: 69677 Subject: [ruby-core:69677] =?utf-8?q?=5BRuby_trunk_-_Bug_=2311287=5D_=5BOpen=5D_XML_generat?= =?utf-8?q?ion=2C_App_551_stderr=3A_Segmentation_fault_at_0=C3=97000000000?= =?utf-8?q?00040?= X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11287 has been reported by Simon Toivo Telhaug. ---------------------------------------- Bug #11287: XML generation, App 551 stderr: Segmentation fault at 0=C3=9700= 000000000040 https://bugs.ruby-lang.org/issues/11287 * Author: Simon Toivo Telhaug * Status: Open * Priority: Normal * Assignee:=20 * ruby -v: ruby 2.2.2p95 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- We have a page that should deliver XML. We have newly upgraded ruby from 1.= 9.3 to 2.2.2 and rails 3.2.17 to 4.2.1 Our server is using nginx and passenger to receive requests When we are access our server and get the XML we get the respond=20 notice that all other pages is working ~~~ 500 Internal Server Error=20 ~~~ or Incomplete response received from application Sometimer In Rails production log we get one of the following errors: ~~~ Completed 500 Internal Server Error in 19815ms (ActiveRecord: 17628.6ms) RuntimeError (unsupported: FalseClass): lib/bank_transaction_xml/bt_to_xml.rb:43:in `block (4 levels) in to_xml' lib/bank_transaction_xml/bt_to_xml.rb:31:in `block (3 levels) in to_xml' lib/bank_transaction_xml/bt_to_xml.rb:29:in `block (2 levels) in to_xml' lib/bank_transaction_xml/bt_to_xml.rb:6:in `block in to_xml' lib/bank_transaction_xml/bt_to_xml.rb:5:in `new' lib/bank_transaction_xml/bt_to_xml.rb:5:in `to_xml' lib/bank_transaction_xml/bt_to_xml.rb:227:in `block (3 levels) in list_xml' lib/bank_transaction_xml/bt_to_xml.rb:226:in `each' lib/bank_transaction_xml/bt_to_xml.rb:226:in `block (2 levels) in list_xml' lib/bank_transaction_xml/bt_to_xml.rb:222:in `block in list_xml' lib/bank_transaction_xml/bt_to_xml.rb:221:in `new' lib/bank_transaction_xml/bt_to_xml.rb:221:in `list_xml' app/controllers/balance_report_controller.rb:91:in `block (2 levels) in ind= ex' app/controllers/balance_report_controller.rb:88:in `index' ActiveModel::MissingAttributeError (missing attribute: account_number): lib/bank_transaction_xml/bt_to_xml.rb:7:in `block (3 levels) in to_xml' lib/bank_transaction_xml/bt_to_xml.rb:7:in `block (2 levels) in to_xml' lib/bank_transaction_xml/bt_to_xml.rb:6:in `block in to_xml' ... ArgumentError (string contains null byte): lib/bank_transaction_xml/bt_to_xml.rb:11:in `block (3 levels) in to_xml' lib/bank_transaction_xml/bt_to_xml.rb:11:in `block (2 levels) in to_xml' ... NoMethodError (undefined method `type_cast_from_database' for false:FalseCl= ass): app/models/invoice.rb:1853:in `check_delete_at' lib/bank_transaction_xml/bt_to_xml.rb:34:in `block (5 levels) in to_xml' ... ~~~ Most of the time passenger is logging this, and than we don't get any error= in production log , (uploaded file with log) ~~~ App 551 stderr: /fakturabank_path/shared/bundle/ruby/2.2.0/gems/nokogiri-1.= 6.6.2/lib/nokogiri/xml/document.rb:82: [BUG] App 551 stderr: Segmentation fault at 0=C3=9700000000000040 App 551 stderr: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] =E2=80=A6.. App 551 stderr: App 551 stderr: [NOTE] App 551 stderr: You may have encountered a bug in the Ruby interpreter or e= xtension libraries. App 551 stderr: Bug reports are welcome. App 551 stderr: For details: http://www.ruby-lang.org/bugreport.html App 551 stderr: [ 2015-06-18 09:45:33.5083 25387/7fcac95af700 age/Hel/Req/Utils.cpp:89 ]: [= Client 2-1569] Sending 502 response: application did not send a complete re= sponse [ 2015-06-18 09:45:36.0178 25387/7fcad02f2700 App/Poo/AnalyticsCollection.h= :93 ]: Process (pid=3D1805, group=3D/fakturabank_path/current/public (stagi= ng)#default) no longer exists! Detaching it from the pool. [ 2015-06-18 09:45:36.0180 25387/7fcad02f2700 age/Hel/Main.cpp:732 ]: Disco= nnecting long-running connections for process 1805, application /fakturaban= k_path/current/public (staging)#default App 24184 stdout: ~~~ When we are doing this in development environment it all works good, it sti= ll take time. If we use less data it work on server and on development. And= it nota specific point it breaks. example=20 5 bank transaction always work=20 50 bank transaction work from time to time like 5 out of 10=20 100 bank transaction never work I have tried to downgrade ruby version to 2.1.0, no luck there. Alse I trie= d to downgrade ruby version to 2.0.0, it works a lot better but still not a= ll the time. Why?? I thing it is something with passenger and ruby 2.1 and 2.2?=20 what i can to to keep using ruby 2.2.2 ---Files-------------------------------- nginx_error.log (353 KB) --=20 https://bugs.ruby-lang.org/