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 93447196000C for ; Sat, 20 Jun 2015 06:24:36 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 2B2A3B5D8D4 for ; Sat, 20 Jun 2015 06:47:40 +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 CA8C097A827 for ; Sat, 20 Jun 2015 06:47:40 +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 dc6kep3fvudP for ; Sat, 20 Jun 2015 06:47:40 +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 7CFC597A820 for ; Sat, 20 Jun 2015 06:47:40 +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 C16F4952439 for ; Sat, 20 Jun 2015 06:47:38 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 6298712047B; Sat, 20 Jun 2015 06:47:38 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id 51ECB12046C for ; Sat, 20 Jun 2015 06:47:32 +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=Bg+DbuYysJSFSd1rgl4dkJTsXSE=; b=rq/0T7gqk7J7GFcIUF bu0VA9FpnyZMXFdiU4hWtRZalfUlZQz21Eom0ttTaSHjcxKVqWFKwDk+E8RzE46I i/wWzHOtBEFhLY94Q+7xwZAyS/12XRCJOnlH0guzM05wmQp6cWsarKd/5KYbOAaj M6XOg/+ZvAGUY/e6D3YdF8ld4= Received: by filter0452p1mdw1.sendgrid.net with SMTP id filter0452p1mdw1.13244.55848DEE3 2015-06-19 21:47:27.725728466 +0000 UTC Received: from herokuapp.com (ec2-54-146-249-205.compute-1.amazonaws.com [54.146.249.205]) by ismtpd-003 (SG) with ESMTP id 14e0dca702b.2244.71fe7 for ; Fri, 19 Jun 2015 21:47:27 +0000 (UTC) Date: Fri, 19 Jun 2015 21:47:27 +0000 From: nobu@ruby-lang.org 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: 44243 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11287 X-Redmine-Issue-Author: simon X-Redmine-Sender: nobu 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS6PC2Gv7YW6xloTn5++C099RY6RHSy5vkdw4Z du9zJn4CxCQFO6iKmO7cohllhTQWj+66Raits9FzfqYobSdpxpqJrAB1IjaPuhGemW82OJWJ62+MVF 7RO6TF5eGLRPOBOAAnolMTwpuMHHc4MHuF/J X-SendGrid-Contentd-ID: {"test_id":"1434750448"} X-ML-Name: ruby-core X-Mail-Count: 69684 Subject: [ruby-core:69684] =?utf-8?q?=5BRuby_trunk_-_Bug_=2311287=5D_=5BThird_Party=27s_Iss?= =?utf-8?q?ue=5D_XML_generation=2C_App_551_stderr=3A_Segmentation_fault_at?= =?utf-8?q?_0=C3=9700000000000040?= 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 updated by Nobuyoshi Nakada. Description updated Status changed from Open to Third Party's Issue Seems it happened in Nokogiri. ---------------------------------------- Bug #11287: XML generation, App 551 stderr: Segmentation fault at 0=C3=9700= 000000000040 https://bugs.ruby-lang.org/issues/11287#change-53060 * Author: Simon Toivo Telhaug * Status: Third Party's Issue * 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 ~~~xml 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/