| From | Sent On | Attachments |
|---|---|---|
| Shannon -jj Behrens | Jul 11, 2002 3:07 pm | |
| Richard Seaman, Jr. | Jul 11, 2002 3:49 pm | |
| Antony T Curtis | Jul 12, 2002 2:16 pm | |
| Shannon -jj Behrens | Jul 15, 2002 12:16 pm | |
| Marc van Kempen | Jul 16, 2002 2:00 am | |
| Antony T Curtis | Jul 16, 2002 7:41 am |
| Subject: | linux JRE 1.4 under linux compatibility only runs as root | |
|---|---|---|
| From: | Shannon -jj Behrens (jj...@nttmcl.com) | |
| Date: | Jul 11, 2002 3:07:26 pm | |
| List: | org.freebsd.freebsd-java | |
I know several other people have run into the problem where the (Linux) JDK or JRE 1.4 will only run as root. Tracing this with 'ktrace', the issue is a statfs call, which returns 'RESTART'. I don't see that errno listed on the man page for statfs, I guess it must come from the linux_statfs in compat/linux.
48927 java CALL statfs(0xbf1f) 48927 java RET statfs RESTART
OK, after having found out that 'ktrace' isn't appropriate for linux executables (use truss or linux_kdump), I found that the culprit is actually:
linux_sched_getscheduler(0xcb18) ERR#1 'Operation not permitted'
when root, this is permitted. When non-root, this is not-permitted.
Suggestions? Is this a problem with the linux emulation? Or is there a permissions difference between linux & freebsd here?
I'm having the same problem. It looks like this has been discussed on -STABLE, -JAVA, -HACKERS, and -QUESTIONS, but to no avail:
I'm sorry for the redundant cross-post, but this looks like a hard one to solve.
-jj
-- Real programmers don't draw flowcharts. Flowcharts are, after all, the illiterate's form of documentation. Cavemen drew flowcharts; look how much good it did them.
To Unsubscribe: send mail to majo...@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message





