You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Jared Griffith <jg...@picsauditing.com> on 2013/03/27 18:06:53 UTC
[daemon] jsvc Segmentation Fault
Hello,
i am having a problem trying to migrate our commons daemon application to
1.0.14. I am currently running 1.0.10 with Sun JDK 1.7.0_17. When passing
the same arguments to the new 1.0.14 jsvc binary, it simply exits with a
Segmentation Fault and no more information.
Here is the command that I am trying to run:
/usr/local/jsvc/jsvc -server -outfile /var/log/jsvc/jsvc.out
-Dloglevel=DEBUG -errfile /var/log/jsvc/jsvc.log -java-home
/usr/java/latest -user jsvc -cp
/usr/local/jsvc/jar/lib/commons-daemon-1.0.14.jar:/usr/local/jsvc/jar/lib/*
com.picsauditing.framework.daemon.BackgroundProcesses
I have enabled debug and I don't see anything that jumps out at me when I
run that. Here's the output of when I add -debug to that command line:
http://pastebin.com/AMfGb24Z
Am I missing something?
--
Jared Griffith
Linux Administrator, PICS Auditing, LLC
P: (949) 936-4574
C: (909) 653-7814
*The Contractors' Choice
**17701 Cowan #140 | Irvine, CA | 92614
*
Join PICS on LinkedIn! <http://www.linkedin.com/company/pics-auditing-llc>
Follow PICS on Twitter <https://twitter.com/PICSAuditingLLC>
Re: [daemon] jsvc Segmentation Fault
Posted by Jared Griffith <jg...@picsauditing.com>.
Perfect, problem solved. I just added the export to my init script for
jsvc since I'm running just jsvc without Tomcat.
On Thu, Mar 28, 2013 at 3:14 PM, Ognjen Blagojevic <
ognjen.d.blagojevic@gmail.com> wrote:
> Jared,
>
>
> On 28.3.2013 19:27, Jared Griffith wrote:
>
>> Thanks, for those that might run into it, for whatever reason jsvc daemon
>> is looking for libcap.so, so you have to export LD_LIBRARY_PATH="/lib64"
>> (that's what I had to do), adjust the /lib to where ever your libcap.so
>> exists. Why we have to do this to get it to run is beyond me, maybe there
>> should be a bug report about it?
>>
>
> I believe this is the issue you were looking for:
>
> https://issues.apache.org/**jira/browse/DAEMON-291<https://issues.apache.org/jira/browse/DAEMON-291>
>
> It should be fixed in 1.0.15 that is right now being voted for the release.
>
>
> -Ognjen
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: user-unsubscribe@commons.**apache.org<us...@commons.apache.org>
> For additional commands, e-mail: user-help@commons.apache.org
>
>
--
Jared Griffith
Linux Administrator, PICS Auditing, LLC
P: (949) 936-4574
C: (909) 653-7814
*The Contractors' Choice
**17701 Cowan #140 | Irvine, CA | 92614
*
Join PICS on LinkedIn! <http://www.linkedin.com/company/pics-auditing-llc>
Follow PICS on Twitter <https://twitter.com/PICSAuditingLLC>
Re: [daemon] jsvc Segmentation Fault
Posted by Ognjen Blagojevic <og...@gmail.com>.
Jared,
On 28.3.2013 19:27, Jared Griffith wrote:
> Thanks, for those that might run into it, for whatever reason jsvc daemon
> is looking for libcap.so, so you have to export LD_LIBRARY_PATH="/lib64"
> (that's what I had to do), adjust the /lib to where ever your libcap.so
> exists. Why we have to do this to get it to run is beyond me, maybe there
> should be a bug report about it?
I believe this is the issue you were looking for:
https://issues.apache.org/jira/browse/DAEMON-291
It should be fixed in 1.0.15 that is right now being voted for the release.
-Ognjen
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: [daemon] jsvc Segmentation Fault
Posted by Greg Thomas <gr...@gmail.com>.
On 28 March 2013 18:27, Jared Griffith <jg...@picsauditing.com> wrote:
> Thanks, for those that might run into it, for whatever reason jsvc daemon
> is looking for libcap.so, so you have to export LD_LIBRARY_PATH="/lib64"
> (that's what I had to do), adjust the /lib to where ever your libcap.so
> exists. Why we have to do this to get it to run is beyond me, maybe there
> should be a bug report about it?
At the very least it should probably be more clearly documented than
currently, as it seems that more than one person is tripping up on it ...
Greg
Re: [daemon] jsvc Segmentation Fault
Posted by Jared Griffith <jg...@picsauditing.com>.
Thanks, for those that might run into it, for whatever reason jsvc daemon
is looking for libcap.so, so you have to export LD_LIBRARY_PATH="/lib64"
(that's what I had to do), adjust the /lib to where ever your libcap.so
exists. Why we have to do this to get it to run is beyond me, maybe there
should be a bug report about it?
On Thu, Mar 28, 2013 at 2:17 AM, Ognjen Blagojevic <
ognjen.d.blagojevic@gmail.com> wrote:
> Jared,
>
>
> On 27.3.2013 18:06, Jared Griffith wrote:
>
>> Hello,
>> i am having a problem trying to migrate our commons daemon application to
>> 1.0.14. I am currently running 1.0.10 with Sun JDK 1.7.0_17. When passing
>> the same arguments to the new 1.0.14 jsvc binary, it simply exits with a
>> Segmentation Fault and no more information.
>>
>> Here is the command that I am trying to run:
>> /usr/local/jsvc/jsvc -server -outfile /var/log/jsvc/jsvc.out
>> -Dloglevel=DEBUG -errfile /var/log/jsvc/jsvc.log -java-home
>> /usr/java/latest -user jsvc -cp
>> /usr/local/jsvc/jar/lib/**commons-daemon-1.0.14.jar:/**
>> usr/local/jsvc/jar/lib/*
>> com.picsauditing.framework.**daemon.BackgroundProcesses
>>
>> I have enabled debug and I don't see anything that jumps out at me when I
>> run that. Here's the output of when I add -debug to that command line:
>> http://pastebin.com/AMfGb24Z
>>
>> Am I missing something?
>>
>
> I believe you stumbled at the same issue as I did. Read this thread for
> possible workaround:
>
> http://www.mail-archive.com/**dev@tomcat.apache.org/**msg72315.html<http://www.mail-archive.com/dev@tomcat.apache.org/msg72315.html>
>
> -Ognjen
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: user-unsubscribe@commons.**apache.org<us...@commons.apache.org>
> For additional commands, e-mail: user-help@commons.apache.org
>
>
--
Jared Griffith
Linux Administrator, PICS Auditing, LLC
P: (949) 936-4574
C: (909) 653-7814
*The Contractors' Choice
**17701 Cowan #140 | Irvine, CA | 92614
*
Join PICS on LinkedIn! <http://www.linkedin.com/company/pics-auditing-llc>
Follow PICS on Twitter <https://twitter.com/PICSAuditingLLC>
Re: [daemon] jsvc Segmentation Fault
Posted by Ognjen Blagojevic <og...@gmail.com>.
Jared,
On 27.3.2013 18:06, Jared Griffith wrote:
> Hello,
> i am having a problem trying to migrate our commons daemon application to
> 1.0.14. I am currently running 1.0.10 with Sun JDK 1.7.0_17. When passing
> the same arguments to the new 1.0.14 jsvc binary, it simply exits with a
> Segmentation Fault and no more information.
>
> Here is the command that I am trying to run:
> /usr/local/jsvc/jsvc -server -outfile /var/log/jsvc/jsvc.out
> -Dloglevel=DEBUG -errfile /var/log/jsvc/jsvc.log -java-home
> /usr/java/latest -user jsvc -cp
> /usr/local/jsvc/jar/lib/commons-daemon-1.0.14.jar:/usr/local/jsvc/jar/lib/*
> com.picsauditing.framework.daemon.BackgroundProcesses
>
> I have enabled debug and I don't see anything that jumps out at me when I
> run that. Here's the output of when I add -debug to that command line:
> http://pastebin.com/AMfGb24Z
>
> Am I missing something?
I believe you stumbled at the same issue as I did. Read this thread for
possible workaround:
http://www.mail-archive.com/dev@tomcat.apache.org/msg72315.html
-Ognjen
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org