Details
-
Bug
-
Resolution: Fixed
-
P4
-
23
-
b25
-
generic
-
linux
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8333878 | 21.0.5 | Matthias Baesken | P4 | Resolved | Fixed | b01 |
JDK-8339405 | 17.0.14 | Matthias Baesken | P4 | Resolved | Fixed | master |
Description
/jdk/src/java.base/unix/native/libjava/ProcessImpl_md.c:562:5: runtime error: null pointer passed as argument 2, which is declared to never be null
#0 0x7fd95bec78d8 in spawnChild /jdk/src/java.base/unix/native/libjava/ProcessImpl_md.c:562
#1 0x7fd95bec78d8 in startChild /jdk/src/java.base/unix/native/libjava/ProcessImpl_md.c:612
#2 0x7fd95bec78d8 in Java_java_lang_ProcessImpl_forkAndExec /jdk/src/java.base/unix/native/libjava/ProcessImpl_md.c:712
#3 0x7fd93797a06d (<unknown module>)
this is the memcpy call getting an unexpected null pointer :
memcpy(buf+offset, c->pdir, sp.dirlen); gets a second parameter null.
Something similar was discussed and fixed here https://bugs.python.org/issue27570 for Python .
Attachments
Issue Links
- backported by
-
JDK-8333878 ubsan: unix/native/libjava/ProcessImpl_md.c:562:5: runtime error: null pointer passed as argument 2, which is declared to never be null
-
- Resolved
-
-
JDK-8339405 ubsan: unix/native/libjava/ProcessImpl_md.c:562:5: runtime error: null pointer passed as argument 2, which is declared to never be null
-
- Resolved
-
- relates to
-
JDK-8332473 ubsan: growableArray.hpp:290:10: runtime error: null pointer passed as argument 1, which is declared to never be null
-
- Resolved
-
- links to
-
Commit openjdk/jdk21u-dev/e55dd270
-
Commit openjdk/jdk/16dba04e
-
Commit(master) openjdk/jdk17u-dev/90b0fb02
-
Review openjdk/jdk21u-dev/677
-
Review openjdk/jdk/19329
-
Review(master) openjdk/jdk17u-dev/2834