Skip to content

i#2154 Android64: Conditionally compile get_kernel_args()#7240

Merged
jackgallagher-arm merged 5 commits intomasterfrom
i2154-android64-fix-envp-assert
Feb 5, 2025
Merged

i#2154 Android64: Conditionally compile get_kernel_args()#7240
jackgallagher-arm merged 5 commits intomasterfrom
i2154-android64-fix-envp-assert

Conversation

@jackgallagher-arm
Copy link
Copy Markdown
Collaborator

@jackgallagher-arm jackgallagher-arm commented Jan 31, 2025

Since the original 32-bit Android port was done bionic was changed [1] to pass argc, argv, and envp to library _init() functions so when targeting newer versions of Android (>= 8.0, API level 26) we don't need the old workaround.

This fixes several tests which were failing with the error:

  Internal Error: DynamoRIO debug check failure: failed to find envp
  @dynamorio/core/unix/os.c:801 envp != NULL

[1] https://android.googlesource.com/platform/bionic/+/554374693408cd7c74d0cae596fca7349661edea

Issue: #2154

Since the original 32-bit Android port was done bionic was changed [1] to
pass argc, argv, and envp to library _init() functions so we can get rid
of the old workaround.

This fixes several tests which were failing with the error:
```
  Internal Error: DynamoRIO debug check failure: failed to find envp
  @dynamorio/core/unix/os.c:801 envp != NULL
```

[1] https://android.googlesource.com/platform/bionic/+/554374693408cd7c74d0cae596fca7349661edea

Issue: #2154
@jackgallagher-arm jackgallagher-arm changed the title i#2154 Android64: Remove get_kernel_args() i#2154 Android64: Conditionally compile get_kernel_args() Feb 5, 2025
@jackgallagher-arm jackgallagher-arm merged commit 3491c45 into master Feb 5, 2025
@jackgallagher-arm jackgallagher-arm deleted the i2154-android64-fix-envp-assert branch February 5, 2025 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants