Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4CC6B10236 for ; Thu, 2 Jan 2014 16:36:33 +0000 (UTC) Received: (qmail 33350 invoked by uid 500); 2 Jan 2014 16:36:18 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 33285 invoked by uid 500); 2 Jan 2014 16:36:16 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 33263 invoked by uid 99); 2 Jan 2014 16:36:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jan 2014 16:36:13 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=FORGED_YAHOO_RCVD,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.138.91.210] (HELO nm22-vm2.bullet.mail.ne1.yahoo.com) (98.138.91.210) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 02 Jan 2014 16:36:05 +0000 Received: from [98.138.100.118] by nm22.bullet.mail.ne1.yahoo.com with NNFMP; 02 Jan 2014 16:35:43 -0000 Received: from [98.138.226.128] by tm109.bullet.mail.ne1.yahoo.com with NNFMP; 02 Jan 2014 16:35:43 -0000 Received: from [127.0.0.1] by smtp215.mail.ne1.yahoo.com with NNFMP; 02 Jan 2014 16:35:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1388680543; bh=zydlR7Yx4pXAXKbig+2Mx5dMg84WbnHdzQyhQJad4ow=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Antivirus:X-Antivirus-Status; b=onLe7bjEBG2TPgYMF3WHZ22Nh/P771rucD1fzr2Bwim99xRviDDoLSYdtR0vUijG0getBGj9EH67vTbefLvHH6UQE8ux9MI/rUSR/3c5aF1964HYkWjrijSemGzO6EYryzIWfZ7kIsl5pvN04x/FK9knZru8Zpb8UDJlBITHH3E= X-Yahoo-Newman-Id: 930463.12348.bm@smtp215.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 2OGUg8cVM1n7r.T5MJfHM9R5SlSrw4zkWvJrcK_WXEOOnnA 0BlsoPQeWKGKqC5qJeaLya8dcHM2o4SXIA0TQCKOcqD3N6dKKmqDQerPAD9Z qDqkcNyuQja0ZYhpHCfs_H5MN3YGHU9kM9lMTL5U_5VoJledKolHA9ACwQe. GZGFb_GPiUdE9gmXtg5jTELZ_antMJzqrrbNew.QO.xQQbaFrS9B62PpDhzv sNO96W2kKg1zzBPau5K9Wf4OTPBJX9_YirsEmqdjgPhyLn9rS3HhC0lYiL16 VJPd0JXMfqHuX4eqHI..Z74Wua.nZLVcjMZqlA9a0ttTMWJJ8paOjZFqb4gn nnsDw55BcyhGtpA1IX.1BBsjyapM1JT2CsNubGfwLYj2RIRlQNpAIcelA3fN AoK25L8OGbuEWZ5aMqojfquNS7VzTkty3vsj648dtqIL_w89KC_u6OkOSyc9 w4OnWGV7w6FfFAA5qnq0K3ADhYsJEo4tTwUx9.LDIJLgDCsp.EXMlTX71.us 1yz.02hUuCYkwSWXL6YmIWSXqpyI4v3jz.FD7VI1.ARVUtB96XNNobcQx X-Yahoo-SMTP: PKuT8k2swBCeFOHzkGy5rTOUTa2hBxlR X-Rocket-Received: from [127.0.0.1] (its_toasted@173.60.41.11 with plain [63.250.193.228]) by smtp215.mail.ne1.yahoo.com with SMTP; 02 Jan 2014 08:35:43 -0800 PST Message-ID: <52C5952F.20409@yahoo.com> Date: Thu, 02 Jan 2014 08:34:55 -0800 From: Mark Eggers User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: JSVC error References: <1388484960.46008.YahooMailNeo@web193503.mail.sg3.yahoo.com> <1388487727.25623.YahooMailNeo@web193501.mail.sg3.yahoo.com> <52C2DCE3.40304@ice-sa.com> <1388646166.38926.YahooMailNeo@web193504.mail.sg3.yahoo.com> In-Reply-To: <1388646166.38926.YahooMailNeo@web193504.mail.sg3.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 140102-0, 01/02/2014), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org On 1/1/2014 11:02 PM, vicky wrote: > > I've build the JSVC on same machine over which I m running my tomcat instance > > I have compiled the JSVC in the following manner but still i'm getting the Segmentation fault exception while executing the startup script, please suggest how to fix this:- > > Step1: > export CFLAGS="-arch i386 -arch x86_64" > export LDFLAGS="-arch i386 -arch x86_64" > Step2: > cd /root/test/commons-daemon-1.0.14-native-src/unix > ./configure > ++++++++++++++++++++++++++++++++++++++++++++++= > *** Current host *** > checking build system type... x86_64-unknown-linux-gnu > checking host system type... x86_64-unknown-linux-gnu > checking cached host system type... ok > *** C-Language compilation tools *** > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ANSI C... none needed > checking for ranlib... ranlib > checking for strip... strip > *** Host support *** > checking C flags dependant on host system type... ok > *** Java compilation tools *** > checking for JDK os include directory... linux > gcc flags added > checking for cap_init in -lcap... no > *** Writing output files *** > configure: creating ./config.status > config.status: creating Makefile > config.status: creating Makedefs > config.status: creating native/Makefile > *** All done *** > Now you can issue "make" > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > Step3: > make > +++++++++++++++++++++command output +++++++++++++++++= > (cd native; make all) > make[1]: Entering directory `/root/test/commons-daemon-1.0.14-native-src/unix/native' > gcc -m64 jsvc-unix.o libservice.a -ldl -lpthread -o ../jsvc > make[1]: Leaving directory `/root/test/commons-daemon-1.0.14-native-src/unix/native' > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > Vicky > From: Andr� Warnier > To: Tomcat Users List > Sent: Tuesday, 31 December 2013 8:34 PM > Subject: Re: JSVC error > > > vicky wrote: >> Even after defining the $CATALINA_PID & $JAVA_HOME variable , i'm still the getting segmentation error(detailed error mentioned below) >> > > In my experience, a "segmentation fault" often occurs when the *binary* that you are > trying to run, is not made for the platform on which you are trying to run it. > For example, you try to use under Solaris a binary made for Linux; or trying to run a > 64-bit binary on a 32-bit platform. Stuff of that kind. > So, are you sure that the "jsvc" that you're using matches your platform ? > What about "file (path_to)/jsvc" ? what does it say ? Vicky, Your CFLAGS and LDFLAGS settings appear that you're trying to compile a "fat" binary on MacOS. Is this true? If so, I don't think MacOS supports a 32 bit JRE any more. I'm not certain, since I don't have a Macintosh, but some people at $work do. They indicate that they can no longer run applets in Chrome (32 bit) but require Firefox or Safari (64 bit). What happens when you don't use those flags (or at least not the -arch 386 for those flags)? . . . just my two cents /mde/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org