From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS47066 71.19.144.0/20 X-Spam-Status: No, score=-0.4 required=3.0 tests=AWL,BAYES_00,FREEMAIL_FROM, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=ham version=3.3.2 Path: news.gmane.org!not-for-mail From: Christopher Rigor Newsgroups: gmane.comp.lang.ruby.kgio.general Subject: kgio_ext.so: [BUG] constant not a symbol or string Date: Fri, 27 Dec 2013 14:23:20 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: ger.gmane.org 1388125405 21421 80.91.229.3 (27 Dec 2013 06:23:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Dec 2013 06:23:25 +0000 (UTC) To: kgio@librelist.org Original-X-From: kgio@librelist.org Fri Dec 27 07:23:29 2013 Return-path: Envelope-to: gclrkg-kgio@m.gmane.org In-Reply-To: List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: kgio@librelist.org Xref: news.gmane.org gmane.comp.lang.ruby.kgio.general:246 Archived-At: Received: from zedshaw2.xen.prgmr.com ([71.19.156.177]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VwQpV-00015Z-FI for gclrkg-kgio@m.gmane.org; Fri, 27 Dec 2013 07:23:29 +0100 Received: from zedshaw2.xen.prgmr.com (unknown [IPv6:::1]) by zedshaw2.xen.prgmr.com (Postfix) with ESMTP id 4931174B42 for ; Fri, 27 Dec 2013 06:28:38 +0000 (UTC) Content-Transfer-Encoding: 7bit X-Content-Filtered-By: PublicInbox::Filter 0.0.1 Hi, When I start sidekiq from the command line, it runs correctly. When it is started from monit, I get kgio_ext.so: [BUG] constant not a symbol or string. I'm using kgio 2.8.0 and ruby 2.0.0 p353. I know monit doesn't set some environment variables but I didn't expect to encounter an issue with Ruby internals if an environment variable is missing. Based on the backtrace "kgio-2.8.0/lib/kgio_ext.so(init_kgio_tryopen+0x1a9) [0x7fe93d120359]" I found the code where the error came from. http://repo.or.cz/w/kgio.git/blob/8be51237720fd18cb45188f29c717bbac0ca1964:/ext/kgio/tryopen.c#l173 1. Is this an error on kgio? 2. Did I give enough information to pinpoint the issue? 3. How can I debug this? What tools do you use for this kind of problems? Regards, Christopher