-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8345676: [ubsan] ProcessImpl_md.c:561:40: runtime error: applying zero offset to null pointer on macOS aarch64 #22910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
👋 Welcome back mbaesken! A progress list of the required criteria for merging this PR into |
|
@MBaesken This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
RogerRiggs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, thanks
|
Hi Roger, thanks for the review ! /integrate |
|
Going to push as commit 0285020.
Your commit was automatically rebased without conflicts. |
When starting :tier1 jdk jtreg tests with
/jtreg_latest/bin/jtreg
this error is show when running ubsanized binaries on macOS aarch64 (XCode 13.1 and 15.4 show this)
src/java.base/unix/native/libjava/ProcessImpl_md.c:561:40: runtime error: applying zero offset to null pointer
#0 0x102a6552c in startChild ProcessImpl_md.c:621
#1 0x102a64480 in Java_java_lang_ProcessImpl_forkAndExec ProcessImpl_md.c:721
#2 0x13f53c4fc ()
#3 0x13f5387cc ()
#4 0x13f53894c ()
#5 0x13f5386dc ()
#6 0x13f5386dc ()
#7 0x13f5386dc ()
#8 0x13f53894c ()
#9 0x13f53894c ()
#10 0x13f534110 ()
#11 0x107de60e0 in JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*) javaCalls.cpp:416
#12 0x107ebf778 in jni_invoke_static(JNIEnv_, JavaValue, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, JavaThread*) jni.cpp:885
#13 0x107ec2778 in jni_CallStaticVoidMethod jni.cpp:1714
#14 0x102e86210 in invokeStaticMainWithArgs java.c:392
#15 0x102e884e8 in JavaMain java.c:640
#16 0x102e8d79c in ThreadJavaMain java_md_macosx.m:679
#17 0x19d38ef90 in _pthread_start+0x84 (libsystem_pthread.dylib:arm64e+0x6f90)
#18 0x19d389d30 in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d30)
Looks similar to
https://www.reddit.com/r/C_Programming/comments/133oxnc/null_0_is_ub_this_is_not_what_you_would_expect/?rdt=41590
and
https://trac.ffmpeg.org/changeset/9c0b3eddf4262f9dcea479091f1307444e614e88/ffmpeg
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22910/head:pull/22910$ git checkout pull/22910Update a local copy of the PR:
$ git checkout pull/22910$ git pull https://git.openjdk.org/jdk.git pull/22910/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 22910View PR using the GUI difftool:
$ git pr show -t 22910Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22910.diff
Using Webrev
Link to Webrev Comment