Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5B881200CAF for ; Thu, 22 Jun 2017 16:05:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 40537160BF1; Thu, 22 Jun 2017 14:05:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 80B5C160BE5 for ; Thu, 22 Jun 2017 16:05:04 +0200 (CEST) Received: (qmail 17942 invoked by uid 500); 22 Jun 2017 14:05:03 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 17931 invoked by uid 99); 22 Jun 2017 14:05:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2017 14:05:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 150A51AFC68 for ; Thu, 22 Jun 2017 14:05:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id MxQHAjQusZge for ; Thu, 22 Jun 2017 14:05:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 1E1DF5F5CC for ; Thu, 22 Jun 2017 14:05:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 4E18DE00A3 for ; Thu, 22 Jun 2017 14:05:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0A6522193E for ; Thu, 22 Jun 2017 14:05:00 +0000 (UTC) Date: Thu, 22 Jun 2017 14:05:00 +0000 (UTC) From: "Andrea (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (DAEMON-365) Jsvc "Service killed by signal 11" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 22 Jun 2017 14:05:05 -0000 [ https://issues.apache.org/jira/browse/DAEMON-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16059314#comment-16059314 ] Andrea edited comment on DAEMON-365 at 6/22/17 2:04 PM: -------------------------------------------------------- I debugged with gdb and found that the child process goes in segmentation fault in src/native/unix/native/java.c line 307, java_init function. {quote} bool java_init(arg_data *args, home_data *data) { ... symb = (jvm_create_t)dso_symbol(libh, "JNI_CreateJavaVM"); ... ret = (*symb) (&jvm, &env, &arg); <---- line 307 {quote} {quote} (gdb) print jvm $14 = (JavaVM *) 0x0 (gdb) print env $15 = (JNIEnv *) 0x0 (gdb) print arg $16 = { version = 65540, nOptions = 5, options = 0x613b80, ignoreUnrecognized = 0 '\000' (gdb) print arg.options[0] } $3 = { optionString = 0x613be0 "-Djava.class.path=/usr/share/java/commons-daemon.jar:/home/myuser/commons-daemon-1.0.15-src/src/native/unix/native/", extraInfo = 0x0 } (gdb) print arg.options[1] $4 optionString = 0x613c60 "-Dcommons.daemon.process.id=9448", extraInfo = 0x0 (gdb) print arg.options[2] $5 optionString = 0x613c90 "-Dcommons.daemon.process.parent=9447", extraInfo = 0x0 (gdb) print arg.options[3] $6 optionString = 0x613cc0 "-Dcommons.daemon.version=1.0.15-dev", extraInfo = 0x0 (gdb) print arg.options[4] $7 optionString = 0x613cf0 "abort", extraInfo = 0x405730 (gdb) print arg.nOptions $11 = 5 {quote} was (Author: alopumo): I debugged with gdb and found that the child process goes in segmentation fault in src/native/unix/native/java.c line 307, java_init function. {quote} bool java_init(arg_data *args, home_data *data) { ... symb = (jvm_create_t)dso_symbol(libh, "JNI_CreateJavaVM"); ... ret = (*symb) (&jvm, &env, &arg); <---- line 307 {quote} {quote} (gdb) print jvm $14 = (JavaVM *) 0x0 (gdb) print env $15 = (JNIEnv *) 0x0 (gdb) print arg $16 version = 65540, nOptions = 5, options = 0x613b80, ignoreUnrecognized = 0 '\000' (gdb) print arg.options.extraInfo $17 = (void *) 0x0 (gdb) print arg.options.optionString $18 = 0x613be0 "-Djava.class.path=/usr/share/java/commons-daemon.jar:/home/myuser/commons-daemon-1.0.15-src/src/native/unix/native/" {quote} > Jsvc "Service killed by signal 11" > ---------------------------------- > > Key: DAEMON-365 > URL: https://issues.apache.org/jira/browse/DAEMON-365 > Project: Commons Daemon > Issue Type: Bug > Environment: $ cat /etc/lsb-release > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=16.04 > DISTRIB_CODENAME=xenial > DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS" > $ uname -a > Linux server 4.4.0-81-generic #104-Ubuntu SMP Wed Jun 14 08:17:06 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux > $ jsvc --help > [...] > jsvc (Apache Commons Daemon) 1.0.15-dev > Reporter: Andrea > > Jsvc is working fine on my machine and on other machines, however on a > particular one, it is not working. > In the logs I get "Service killed by signal 11". > I am using a simple daemon for tests[1]. I compiled it > with javac -cp /usr/share/java/commons-daemon.jar MyDaemon.java. Jsvc > is installed on Ubuntu 16.04 LTS with apt-get and it is version > 1.0.15-dev. > [1] http://mail-archives.apache.org/mod_mbox/commons-user/201706.mbox/raw/%3CCABxFBzGfNVFOzySFT1CTTwb56GXr1gLsdmU4vnJYKUUrexBzxQ%40mail.gmail.com%3E/3 > When I run it in the logs I only get "Service killed by signal 11". I am using > /usr/bin/jsvc -home /usr/lib/jvm/java-8-oracle/ -cp > /usr/share/java/commons-daemon.jar:$PWD/ -user myuser -pidfile > /tmp/mydaemon.pid -outfile /tmp/test.out.log -errfile '&1' MyDaemon > -one -two > Starting it with -debug, I get no much more[2]. > [2] http://mail-archives.apache.org/mod_mbox/commons-user/201706.mbox/raw/%3CCABxFBzGfNVFOzySFT1CTTwb56GXr1gLsdmU4vnJYKUUrexBzxQ%40mail.gmail.com%3E/2 > I cannot stop it with -stop and I have to kill -9 it. > What should I do? > Do you have any idea? > Thanks! -- This message was sent by Atlassian JIRA (v6.4.14#64029)