RFR: 8194154 patch for crash at File.getCanonicalPath() (original) (raw)
Alan Bateman Alan.Bateman at oracle.com
Tue Jan 2 16:42:12 UTC 2018
- Previous message: Adding SocketChannel toString to connection exception messages
- Next message: 回复:RFR: 8194154 patch for crash at File.getCanonicalPath()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 25/12/2017 09:40, Wenqian Pei wrote:
Hi:
Bug: https://bugs.openjdk.java.net/browse/JDK-8194154 We found that if user defines -Duser.dir like "/home/a/b/c/", jvm will crash at File.getCanonicalPath() in java process bootstrap (before invoking user's java code). The native implematation of canonicalizemd.c:collapsible(char *names) has problem in processing double '/', parameter 'names' need normalized before JNICALL. user.dir is a "read-only" property and should never be changed on the command-line or in a running VM (it breaks APIs in other areas to have user.dir be different to the actual working directory). Someday we need to figure out how to enforce this.
In the mean-time, the runtime shouldn't crash so I agree it should be fixed.
-Alan.
- Previous message: Adding SocketChannel toString to connection exception messages
- Next message: 回复:RFR: 8194154 patch for crash at File.getCanonicalPath()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]