Hi,
Last week I may have found a bug in Sigar[1]. I think it does not only affect Linux amd64 so I ask for your help to determine on which other platforms it may be present.
I pushed a very simple project on GitHub[2]. You can fork it or simply download source zip file.
Then open a terminal, go to the project directory and run: # mvn clean package # java -cp target/sigar/sigar.jar:target/classes/ test/ProcStateTest
If it runs silently then your platform may not be affected. Otherwise, can you send me the error message and your platform type.
Of course if you think it's not a Sigar bug and that I missed something please tell me. I had no response in Sigar user forum so far.
Thanks for your help!
Regards, Thomas
[1] http://communities.vmware.com/message/2183651#2183651 [2] https://github.com/tsegismont/sigar-procstate-test
Hi, I got:
Exception in thread "main" java.lang.RuntimeException: Expected process to be down at step[0] at test.ProcStateTest.testIsRunning(ProcStateTest.java:118) at test.ProcStateTest.main(ProcStateTest.java:29)
on my Fedora17, 32bit (PAE)
Agent and server were down at that moment. JK
----- Original Message -----
From: "Thomas Segismont" tsegismo@redhat.com To: rhq-devel@lists.fedorahosted.org, rhq-users@lists.fedorahosted.org Sent: Monday, January 28, 2013 12:13:17 PM Subject: Sigar getProcState bug on other platforms?
Hi,
Last week I may have found a bug in Sigar[1]. I think it does not only affect Linux amd64 so I ask for your help to determine on which other platforms it may be present.
I pushed a very simple project on GitHub[2]. You can fork it or simply download source zip file.
Then open a terminal, go to the project directory and run: # mvn clean package # java -cp target/sigar/sigar.jar:target/classes/ test/ProcStateTest
If it runs silently then your platform may not be affected. Otherwise, can you send me the error message and your platform type.
Of course if you think it's not a Sigar bug and that I missed something please tell me. I had no response in Sigar user forum so far.
Thanks for your help!
Regards, Thomas
[1] http://communities.vmware.com/message/2183651#2183651 [2] https://github.com/tsegismont/sigar-procstate-test _______________________________________________ rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
Thanks Jirka. Did you have a look at the test case?
Le 29/01/2013 16:33, Jiri Kremser a écrit :
Hi, I got:
Exception in thread "main" java.lang.RuntimeException: Expected process to be down at step[0] at test.ProcStateTest.testIsRunning(ProcStateTest.java:118) at test.ProcStateTest.main(ProcStateTest.java:29)
on my Fedora17, 32bit (PAE)
Agent and server were down at that moment. JK
----- Original Message -----
From: "Thomas Segismont" tsegismo@redhat.com To: rhq-devel@lists.fedorahosted.org, rhq-users@lists.fedorahosted.org Sent: Monday, January 28, 2013 12:13:17 PM Subject: Sigar getProcState bug on other platforms?
Hi,
Last week I may have found a bug in Sigar[1]. I think it does not only affect Linux amd64 so I ask for your help to determine on which other platforms it may be present.
I pushed a very simple project on GitHub[2]. You can fork it or simply download source zip file.
Then open a terminal, go to the project directory and run: # mvn clean package # java -cp target/sigar/sigar.jar:target/classes/ test/ProcStateTest
If it runs silently then your platform may not be affected. Otherwise, can you send me the error message and your platform type.
Of course if you think it's not a Sigar bug and that I missed something please tell me. I had no response in Sigar user forum so far.
Thanks for your help!
Regards, Thomas
[1] http://communities.vmware.com/message/2183651#2183651 [2] https://github.com/tsegismont/sigar-procstate-test _______________________________________________ rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
Yes, I was looking into the code. Is my exception the one you were expecting or is it an error in the test? It looks like the findProcessPid() method doesn't find any pid, even If I run the bash-watch-echo.sh script in other terminal.
jk
----- Original Message -----
From: "Thomas Segismont" tsegismo@redhat.com To: rhq-users@lists.fedorahosted.org Sent: Tuesday, January 29, 2013 4:37:27 PM Subject: Re: Sigar getProcState bug on other platforms?
Thanks Jirka. Did you have a look at the test case?
Le 29/01/2013 16:33, Jiri Kremser a écrit :
Hi, I got:
Exception in thread "main" java.lang.RuntimeException: Expected process to be down at step[0] at test.ProcStateTest.testIsRunning(ProcStateTest.java:118) at test.ProcStateTest.main(ProcStateTest.java:29)
on my Fedora17, 32bit (PAE)
Agent and server were down at that moment. JK
----- Original Message -----
From: "Thomas Segismont" tsegismo@redhat.com To: rhq-devel@lists.fedorahosted.org, rhq-users@lists.fedorahosted.org Sent: Monday, January 28, 2013 12:13:17 PM Subject: Sigar getProcState bug on other platforms?
Hi,
Last week I may have found a bug in Sigar[1]. I think it does not only affect Linux amd64 so I ask for your help to determine on which other platforms it may be present.
I pushed a very simple project on GitHub[2]. You can fork it or simply download source zip file.
Then open a terminal, go to the project directory and run: # mvn clean package # java -cp target/sigar/sigar.jar:target/classes/ test/ProcStateTest
If it runs silently then your platform may not be affected. Otherwise, can you send me the error message and your platform type.
Of course if you think it's not a Sigar bug and that I missed something please tell me. I had no response in Sigar user forum so far.
Thanks for your help!
Regards, Thomas
[1] http://communities.vmware.com/message/2183651#2183651 [2] https://github.com/tsegismont/sigar-procstate-test _______________________________________________ rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
Yes the exception you got was what I expected as I see no reason for Linux 32 and 64 bit libs to behave differently.
But why do you say findProcessPid has not find any pid? If it was true you would have seen a RuntimeException "process not found" and not "Expected process to be down at step[0]"
Thomas
Le 29/01/2013 16:54, Jiri Kremser a écrit :
Yes, I was looking into the code. Is my exception the one you were expecting or is it an error in the test? It looks like the findProcessPid() method doesn't find any pid, even If I run the bash-watch-echo.sh script in other terminal.
jk
----- Original Message -----
From: "Thomas Segismont" tsegismo@redhat.com To: rhq-users@lists.fedorahosted.org Sent: Tuesday, January 29, 2013 4:37:27 PM Subject: Re: Sigar getProcState bug on other platforms?
Thanks Jirka. Did you have a look at the test case?
Le 29/01/2013 16:33, Jiri Kremser a écrit :
Hi, I got:
Exception in thread "main" java.lang.RuntimeException: Expected process to be down at step[0] at test.ProcStateTest.testIsRunning(ProcStateTest.java:118) at test.ProcStateTest.main(ProcStateTest.java:29)
on my Fedora17, 32bit (PAE)
Agent and server were down at that moment. JK
----- Original Message -----
From: "Thomas Segismont" tsegismo@redhat.com To: rhq-devel@lists.fedorahosted.org, rhq-users@lists.fedorahosted.org Sent: Monday, January 28, 2013 12:13:17 PM Subject: Sigar getProcState bug on other platforms?
Hi,
Last week I may have found a bug in Sigar[1]. I think it does not only affect Linux amd64 so I ask for your help to determine on which other platforms it may be present.
I pushed a very simple project on GitHub[2]. You can fork it or simply download source zip file.
Then open a terminal, go to the project directory and run: # mvn clean package # java -cp target/sigar/sigar.jar:target/classes/ test/ProcStateTest
If it runs silently then your platform may not be affected. Otherwise, can you send me the error message and your platform type.
Of course if you think it's not a Sigar bug and that I missed something please tell me. I had no response in Sigar user forum so far.
Thanks for your help!
Regards, Thomas
[1] http://communities.vmware.com/message/2183651#2183651 [2] https://github.com/tsegismont/sigar-procstate-test _______________________________________________ rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
I got the same exception as Jiri on Mac OS X, b4 bit.
On Jan 29, 2013, at 11:37 AM, Thomas Segismont tsegismo@redhat.com wrote:
Yes the exception you got was what I expected as I see no reason for Linux 32 and 64 bit libs to behave differently.
But why do you say findProcessPid has not find any pid? If it was true you would have seen a RuntimeException "process not found" and not "Expected process to be down at step[0]"
Thomas
Le 29/01/2013 16:54, Jiri Kremser a écrit :
Yes, I was looking into the code. Is my exception the one you were expecting or is it an error in the test? It looks like the findProcessPid() method doesn't find any pid, even If I run the bash-watch-echo.sh script in other terminal.
jk
----- Original Message -----
From: "Thomas Segismont" tsegismo@redhat.com To: rhq-users@lists.fedorahosted.org Sent: Tuesday, January 29, 2013 4:37:27 PM Subject: Re: Sigar getProcState bug on other platforms?
Thanks Jirka. Did you have a look at the test case?
Le 29/01/2013 16:33, Jiri Kremser a écrit :
Hi, I got:
Exception in thread "main" java.lang.RuntimeException: Expected process to be down at step[0] at test.ProcStateTest.testIsRunning(ProcStateTest.java:118) at test.ProcStateTest.main(ProcStateTest.java:29)
on my Fedora17, 32bit (PAE)
Agent and server were down at that moment. JK
----- Original Message -----
From: "Thomas Segismont" tsegismo@redhat.com To: rhq-devel@lists.fedorahosted.org, rhq-users@lists.fedorahosted.org Sent: Monday, January 28, 2013 12:13:17 PM Subject: Sigar getProcState bug on other platforms?
Hi,
Last week I may have found a bug in Sigar[1]. I think it does not only affect Linux amd64 so I ask for your help to determine on which other platforms it may be present.
I pushed a very simple project on GitHub[2]. You can fork it or simply download source zip file.
Then open a terminal, go to the project directory and run: # mvn clean package # java -cp target/sigar/sigar.jar:target/classes/ test/ProcStateTest
If it runs silently then your platform may not be affected. Otherwise, can you send me the error message and your platform type.
Of course if you think it's not a Sigar bug and that I missed something please tell me. I had no response in Sigar user forum so far.
Thanks for your help!
Regards, Thomas
[1] http://communities.vmware.com/message/2183651#2183651 [2] https://github.com/tsegismont/sigar-procstate-test _______________________________________________ rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
I'm running Windows 7 64bit
C:\usr\tmp\sigar-procstate-test-master>java -cp .\target\sigar\sigar.jar;target\classes\ test/ProcStateTest
Exception in thread "main" org.hyperic.sigar.SigarException: Incorrect function. at org.hyperic.sigar.Sigar.getProcArgs(Native Method) at test.ProcStateTest.findProcessPid(ProcStateTest.java:128) at test.ProcStateTest.setup(ProcStateTest.java:41) at test.ProcStateTest.main(ProcStateTest.java:28)
with a 32bit jdk: C:\usr\tmp\sigar-procstate-test-master>java -version java version "1.7.0_11" Java(TM) SE Runtime Environment (build 1.7.0_11-b21) Java HotSpot(TM) Client VM (build 23.6-b04, mixed mode, sharing)
I saw something that seemed to indicate this could be due to using a 32bit jvm on a 64bit OS, so I switched to a 64bit jdk but got the same stack trace with this version of java too :-(...
C:\usr\tmp\sigar-procstate-test-master>java -version java version "1.7.0_11" Java(TM) SE Runtime Environment (build 1.7.0_11-b21) Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
----- Original Message -----
I got the same exception as Jiri on Mac OS X, b4 bit.
On Jan 29, 2013, at 11:37 AM, Thomas Segismont tsegismo@redhat.com wrote:
Yes the exception you got was what I expected as I see no reason for Linux 32 and 64 bit libs to behave differently.
But why do you say findProcessPid has not find any pid? If it was true you would have seen a RuntimeException "process not found" and not "Expected process to be down at step[0]"
Thomas
Le 29/01/2013 16:54, Jiri Kremser a écrit :
Yes, I was looking into the code. Is my exception the one you were expecting or is it an error in the test? It looks like the findProcessPid() method doesn't find any pid, even If I run the bash-watch-echo.sh script in other terminal.
jk
----- Original Message -----
From: "Thomas Segismont" tsegismo@redhat.com To: rhq-users@lists.fedorahosted.org Sent: Tuesday, January 29, 2013 4:37:27 PM Subject: Re: Sigar getProcState bug on other platforms?
Thanks Jirka. Did you have a look at the test case?
Le 29/01/2013 16:33, Jiri Kremser a écrit :
Hi, I got:
Exception in thread "main" java.lang.RuntimeException: Expected process to be down at step[0] at test.ProcStateTest.testIsRunning(ProcStateTest.java:118) at test.ProcStateTest.main(ProcStateTest.java:29)
on my Fedora17, 32bit (PAE)
Agent and server were down at that moment. JK
----- Original Message -----
From: "Thomas Segismont" tsegismo@redhat.com To: rhq-devel@lists.fedorahosted.org, rhq-users@lists.fedorahosted.org Sent: Monday, January 28, 2013 12:13:17 PM Subject: Sigar getProcState bug on other platforms?
Hi,
Last week I may have found a bug in Sigar[1]. I think it does not only affect Linux amd64 so I ask for your help to determine on which other platforms it may be present.
I pushed a very simple project on GitHub[2]. You can fork it or simply download source zip file.
Then open a terminal, go to the project directory and run: # mvn clean package # java -cp target/sigar/sigar.jar:target/classes/ test/ProcStateTest
If it runs silently then your platform may not be affected. Otherwise, can you send me the error message and your platform type.
Of course if you think it's not a Sigar bug and that I missed something please tell me. I had no response in Sigar user forum so far.
Thanks for your help!
Regards, Thomas
[1] http://communities.vmware.com/message/2183651#2183651 [2] https://github.com/tsegismont/sigar-procstate-test _______________________________________________ rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
Great, looks like getProcArgs is not working on Windows 7...
Anybody else on Windows 7? XP? Windows Server?
Le 30/01/2013 01:32, Charles Crouch a écrit :
I'm running Windows 7 64bit
C:\usr\tmp\sigar-procstate-test-master>java -cp .\target\sigar\sigar.jar;target\classes\ test/ProcStateTest
Exception in thread "main" org.hyperic.sigar.SigarException: Incorrect function. at org.hyperic.sigar.Sigar.getProcArgs(Native Method) at test.ProcStateTest.findProcessPid(ProcStateTest.java:128) at test.ProcStateTest.setup(ProcStateTest.java:41) at test.ProcStateTest.main(ProcStateTest.java:28)
with a 32bit jdk: C:\usr\tmp\sigar-procstate-test-master>java -version java version "1.7.0_11" Java(TM) SE Runtime Environment (build 1.7.0_11-b21) Java HotSpot(TM) Client VM (build 23.6-b04, mixed mode, sharing)
I saw something that seemed to indicate this could be due to using a 32bit jvm on a 64bit OS, so I switched to a 64bit jdk but got the same stack trace with this version of java too :-(...
C:\usr\tmp\sigar-procstate-test-master>java -version java version "1.7.0_11" Java(TM) SE Runtime Environment (build 1.7.0_11-b21) Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
----- Original Message -----
I got the same exception as Jiri on Mac OS X, b4 bit.
On Jan 29, 2013, at 11:37 AM, Thomas Segismont tsegismo@redhat.com wrote:
Yes the exception you got was what I expected as I see no reason for Linux 32 and 64 bit libs to behave differently.
But why do you say findProcessPid has not find any pid? If it was true you would have seen a RuntimeException "process not found" and not "Expected process to be down at step[0]"
Thomas
Le 29/01/2013 16:54, Jiri Kremser a écrit :
Yes, I was looking into the code. Is my exception the one you were expecting or is it an error in the test? It looks like the findProcessPid() method doesn't find any pid, even If I run the bash-watch-echo.sh script in other terminal.
jk
----- Original Message -----
From: "Thomas Segismont" tsegismo@redhat.com To: rhq-users@lists.fedorahosted.org Sent: Tuesday, January 29, 2013 4:37:27 PM Subject: Re: Sigar getProcState bug on other platforms?
Thanks Jirka. Did you have a look at the test case?
Le 29/01/2013 16:33, Jiri Kremser a écrit :
Hi, I got:
Exception in thread "main" java.lang.RuntimeException: Expected process to be down at step[0] at test.ProcStateTest.testIsRunning(ProcStateTest.java:118) at test.ProcStateTest.main(ProcStateTest.java:29)
on my Fedora17, 32bit (PAE)
Agent and server were down at that moment. JK
----- Original Message ----- > From: "Thomas Segismont" tsegismo@redhat.com > To: rhq-devel@lists.fedorahosted.org, > rhq-users@lists.fedorahosted.org > Sent: Monday, January 28, 2013 12:13:17 PM > Subject: Sigar getProcState bug on other platforms? > > Hi, > > Last week I may have found a bug in Sigar[1]. I think it does > not > only > affect Linux amd64 so I ask for your help to determine on which > other > platforms it may be present. > > I pushed a very simple project on GitHub[2]. You can fork it or > simply > download source zip file. > > Then open a terminal, go to the project directory and run: > # mvn clean package > # java -cp target/sigar/sigar.jar:target/classes/ > test/ProcStateTest > > If it runs silently then your platform may not be affected. > Otherwise, > can you send me the error message and your platform type. > > Of course if you think it's not a Sigar bug and that I missed > something > please tell me. I had no response in Sigar user forum so far. > > Thanks for your help! > > Regards, > Thomas > > [1] http://communities.vmware.com/message/2183651#2183651 > [2] https://github.com/tsegismont/sigar-procstate-test > _______________________________________________ > rhq-users mailing list > rhq-users@lists.fedorahosted.org > https://lists.fedorahosted.org/mailman/listinfo/rhq-users > _______________________________________________ rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
Thomas,
I see the same on my Win7 64b machine.
On 1/29/2013 7:32 PM, Charles Crouch wrote:
I'm running Windows 7 64bit
C:\usr\tmp\sigar-procstate-test-master>java -cp .\target\sigar\sigar.jar;target\classes\ test/ProcStateTest
Exception in thread "main" org.hyperic.sigar.SigarException: Incorrect function. at org.hyperic.sigar.Sigar.getProcArgs(Native Method) at test.ProcStateTest.findProcessPid(ProcStateTest.java:128) at test.ProcStateTest.setup(ProcStateTest.java:41) at test.ProcStateTest.main(ProcStateTest.java:28)
with a 32bit jdk: C:\usr\tmp\sigar-procstate-test-master>java -version java version "1.7.0_11" Java(TM) SE Runtime Environment (build 1.7.0_11-b21) Java HotSpot(TM) Client VM (build 23.6-b04, mixed mode, sharing)
I saw something that seemed to indicate this could be due to using a 32bit jvm on a 64bit OS, so I switched to a 64bit jdk but got the same stack trace with this version of java too :-(...
C:\usr\tmp\sigar-procstate-test-master>java -version java version "1.7.0_11" Java(TM) SE Runtime Environment (build 1.7.0_11-b21) Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
----- Original Message -----
I got the same exception as Jiri on Mac OS X, b4 bit.
On Jan 29, 2013, at 11:37 AM, Thomas Segismont tsegismo@redhat.com wrote:
Yes the exception you got was what I expected as I see no reason for Linux 32 and 64 bit libs to behave differently.
But why do you say findProcessPid has not find any pid? If it was true you would have seen a RuntimeException "process not found" and not "Expected process to be down at step[0]"
Thomas
Le 29/01/2013 16:54, Jiri Kremser a écrit :
Yes, I was looking into the code. Is my exception the one you were expecting or is it an error in the test? It looks like the findProcessPid() method doesn't find any pid, even If I run the bash-watch-echo.sh script in other terminal.
jk
----- Original Message -----
From: "Thomas Segismont" tsegismo@redhat.com To: rhq-users@lists.fedorahosted.org Sent: Tuesday, January 29, 2013 4:37:27 PM Subject: Re: Sigar getProcState bug on other platforms?
Thanks Jirka. Did you have a look at the test case?
Le 29/01/2013 16:33, Jiri Kremser a écrit :
Hi, I got:
Exception in thread "main" java.lang.RuntimeException: Expected process to be down at step[0] at test.ProcStateTest.testIsRunning(ProcStateTest.java:118) at test.ProcStateTest.main(ProcStateTest.java:29)
on my Fedora17, 32bit (PAE)
Agent and server were down at that moment. JK
----- Original Message ----- > From: "Thomas Segismont" tsegismo@redhat.com > To: rhq-devel@lists.fedorahosted.org, > rhq-users@lists.fedorahosted.org > Sent: Monday, January 28, 2013 12:13:17 PM > Subject: Sigar getProcState bug on other platforms? > > Hi, > > Last week I may have found a bug in Sigar[1]. I think it does > not > only > affect Linux amd64 so I ask for your help to determine on which > other > platforms it may be present. > > I pushed a very simple project on GitHub[2]. You can fork it or > simply > download source zip file. > > Then open a terminal, go to the project directory and run: > # mvn clean package > # java -cp target/sigar/sigar.jar:target/classes/ > test/ProcStateTest > > If it runs silently then your platform may not be affected. > Otherwise, > can you send me the error message and your platform type. > > Of course if you think it's not a Sigar bug and that I missed > something > please tell me. I had no response in Sigar user forum so far. > > Thanks for your help! > > Regards, > Thomas > > [1] http://communities.vmware.com/message/2183651#2183651 > [2] https://github.com/tsegismont/sigar-procstate-test > _______________________________________________ > rhq-users mailing list > rhq-users@lists.fedorahosted.org > https://lists.fedorahosted.org/mailman/listinfo/rhq-users > _______________________________________________ rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
RHEL 6.3 on Xeon
$ java -d64 -cp target/sigar/sigar.jar:target/classes/ test/ProcStateTest Exception in thread "main" java.lang.RuntimeException: Expected process to be down at step[0] at test.ProcStateTest.testIsRunning(ProcStateTest.java:118) at test.ProcStateTest.main(ProcStateTest.java:29) [hrupp@pintsize sigar-procstate-test-master]$ uname -a Linux pintsize.home.pilhuhn.de 2.6.32-279.14.1.el6.x86_64 #1 SMP Mon Oct 15 13:44:51 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux [hrupp@pintsize sigar-procstate-test-master]$ java -version java version "1.7.0_09-icedtea" OpenJDK Runtime Environment (rhel-2.3.3.el6_3.1-x86_64) OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
Am 29.01.2013 um 22:26 schrieb John Sanda:
I got the same exception as Jiri on Mac OS X, b4 bit.
Same here on
snert:/tmp/sigar-procstate-test-master hrupp$ java -version java version "1.7.0_11" Java(TM) SE Runtime Environment (build 1.7.0_11-b21) Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode) snert:/tmp/sigar-procstate-test-master hrupp$ uname -a Darwin snert 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
On Jan 29, 2013, at 11:37 AM, Thomas Segismont tsegismo@redhat.com wrote:
Yes the exception you got was what I expected as I see no reason for Linux 32 and 64 bit libs to behave differently.
But why do you say findProcessPid has not find any pid? If it was true you would have seen a RuntimeException "process not found" and not "Expected process to be down at step[0]"
Thomas
Le 29/01/2013 16:54, Jiri Kremser a écrit :
Yes, I was looking into the code. Is my exception the one you were expecting or is it an error in the test? It looks like the findProcessPid() method doesn't find any pid, even If I run the bash-watch-echo.sh script in other terminal.
jk
----- Original Message -----
From: "Thomas Segismont" tsegismo@redhat.com To: rhq-users@lists.fedorahosted.org Sent: Tuesday, January 29, 2013 4:37:27 PM Subject: Re: Sigar getProcState bug on other platforms?
Thanks Jirka. Did you have a look at the test case?
Le 29/01/2013 16:33, Jiri Kremser a écrit :
Hi, I got:
Exception in thread "main" java.lang.RuntimeException: Expected process to be down at step[0] at test.ProcStateTest.testIsRunning(ProcStateTest.java:118) at test.ProcStateTest.main(ProcStateTest.java:29)
on my Fedora17, 32bit (PAE)
Agent and server were down at that moment. JK
----- Original Message -----
From: "Thomas Segismont" tsegismo@redhat.com To: rhq-devel@lists.fedorahosted.org, rhq-users@lists.fedorahosted.org Sent: Monday, January 28, 2013 12:13:17 PM Subject: Sigar getProcState bug on other platforms?
Hi,
Last week I may have found a bug in Sigar[1]. I think it does not only affect Linux amd64 so I ask for your help to determine on which other platforms it may be present.
I pushed a very simple project on GitHub[2]. You can fork it or simply download source zip file.
Then open a terminal, go to the project directory and run: # mvn clean package # java -cp target/sigar/sigar.jar:target/classes/ test/ProcStateTest
If it runs silently then your platform may not be affected. Otherwise, can you send me the error message and your platform type.
Of course if you think it's not a Sigar bug and that I missed something please tell me. I had no response in Sigar user forum so far.
Thanks for your help!
Regards, Thomas
[1] http://communities.vmware.com/message/2183651#2183651 [2] https://github.com/tsegismont/sigar-procstate-test _______________________________________________ rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
Thanks Heiko and John. At least we can imagine we don't have so many users with Mac OS X server for RHQ...
Heiko, John quickly reviewed the test case yesterday. Can you please also have a look at it?
Thanks Thomas
Le 30/01/2013 11:37, Heiko W.Rupp a écrit :
Am 29.01.2013 um 22:26 schrieb John Sanda:
I got the same exception as Jiri on Mac OS X, b4 bit.
Same here on
snert:/tmp/sigar-procstate-test-master hrupp$ java -version java version "1.7.0_11" Java(TM) SE Runtime Environment (build 1.7.0_11-b21) Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode) snert:/tmp/sigar-procstate-test-master hrupp$ uname -a Darwin snert 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
On Jan 29, 2013, at 11:37 AM, Thomas Segismont tsegismo@redhat.com wrote:
Yes the exception you got was what I expected as I see no reason for Linux 32 and 64 bit libs to behave differently.
But why do you say findProcessPid has not find any pid? If it was true you would have seen a RuntimeException "process not found" and not "Expected process to be down at step[0]"
Thomas
Le 29/01/2013 16:54, Jiri Kremser a écrit :
Yes, I was looking into the code. Is my exception the one you were expecting or is it an error in the test? It looks like the findProcessPid() method doesn't find any pid, even If I run the bash-watch-echo.sh script in other terminal.
jk
----- Original Message -----
From: "Thomas Segismont" tsegismo@redhat.com To: rhq-users@lists.fedorahosted.org Sent: Tuesday, January 29, 2013 4:37:27 PM Subject: Re: Sigar getProcState bug on other platforms?
Thanks Jirka. Did you have a look at the test case?
Le 29/01/2013 16:33, Jiri Kremser a écrit :
Hi, I got:
Exception in thread "main" java.lang.RuntimeException: Expected process to be down at step[0] at test.ProcStateTest.testIsRunning(ProcStateTest.java:118) at test.ProcStateTest.main(ProcStateTest.java:29)
on my Fedora17, 32bit (PAE)
Agent and server were down at that moment. JK
----- Original Message ----- > From: "Thomas Segismont" tsegismo@redhat.com > To: rhq-devel@lists.fedorahosted.org, > rhq-users@lists.fedorahosted.org > Sent: Monday, January 28, 2013 12:13:17 PM > Subject: Sigar getProcState bug on other platforms? > > Hi, > > Last week I may have found a bug in Sigar[1]. I think it does not > only > affect Linux amd64 so I ask for your help to determine on which > other > platforms it may be present. > > I pushed a very simple project on GitHub[2]. You can fork it or > simply > download source zip file. > > Then open a terminal, go to the project directory and run: > # mvn clean package > # java -cp target/sigar/sigar.jar:target/classes/ > test/ProcStateTest > > If it runs silently then your platform may not be affected. > Otherwise, > can you send me the error message and your platform type. > > Of course if you think it's not a Sigar bug and that I missed > something > please tell me. I had no response in Sigar user forum so far. > > Thanks for your help! > > Regards, > Thomas > > [1] http://communities.vmware.com/message/2183651#2183651 > [2] https://github.com/tsegismont/sigar-procstate-test > _______________________________________________ > rhq-users mailing list > rhq-users@lists.fedorahosted.org > https://lists.fedorahosted.org/mailman/listinfo/rhq-users > _______________________________________________ rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users@lists.stg.fedorahosted.org