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