Details
-
Bug
-
Resolution: Fixed
-
P4
-
8u232, 11, 14
Description
Unfortunately I couldn't find a way to trigger this code, but a simple inspection reveals that if it ever got called it could not complete:
{
char* dyldpath = getenv("DYLD_LIBRARY_PATH");
char* dypath = strtok(dyldpath, ":");
while (dypath != NULL) {
strcpy(filepath, dypath);
strcat(filepath, filename);
if (exists(filepath)) {
strcpy(rpath, filepath);
return true;
}
dypath = strtok(dyldpath, ":");
}
This code has been in since support for macOS core files was introduced, and survived this long so it's unlikely it was ever executed.
{
char* dyldpath = getenv("DYLD_LIBRARY_PATH");
char* dypath = strtok(dyldpath, ":");
while (dypath != NULL) {
strcpy(filepath, dypath);
strcat(filepath, filename);
if (exists(filepath)) {
strcpy(rpath, filepath);
return true;
}
dypath = strtok(dyldpath, ":");
}
This code has been in since support for macOS core files was introduced, and survived this long so it's unlikely it was ever executed.
Attachments
Issue Links
- relates to
-
JDK-8248879 SA core file support on OSX has some bugs trying to locate the jvm libraries
- Resolved
-
JDK-8003348 SA can not read core file on OS X
- Closed