Skip to content

Conversation

MBaesken
Copy link
Member

@MBaesken MBaesken commented Jul 24, 2025


Progress

  • JDK-8360478 needs maintainer approval
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Warning

 ⚠️ Found leading lowercase letter in issue title for 8360478: libjsig related tier3 jtreg tests fail when asan is configured

Issue

  • JDK-8360478: libjsig related tier3 jtreg tests fail when asan is configured (Bug - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk25u.git pull/35/head:pull/35
$ git checkout pull/35

Update a local copy of the PR:
$ git checkout pull/35
$ git pull https://git.openjdk.org/jdk25u.git pull/35/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 35

View PR using the GUI difftool:
$ git pr show -t 35

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk25u/pull/35.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 24, 2025

👋 Welcome back mbaesken! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Jul 24, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot changed the title Backport a23de2ec090628b52532ee5d9bd4364a97499f5b 8360478: libjsig related tier3 jtreg tests fail when asan is configured Jul 24, 2025
@openjdk
Copy link

openjdk bot commented Jul 24, 2025

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required labels Jul 24, 2025
@openjdk
Copy link

openjdk bot commented Jul 24, 2025

⚠️ @MBaesken This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@openjdk openjdk bot added the rfr Pull request is ready for review label Jul 24, 2025
@mlbridge
Copy link

mlbridge bot commented Jul 24, 2025

Webrevs

@tstuefe
Copy link
Member

tstuefe commented Jul 24, 2025

Hmmm...

If ASAN does not come first, libjsig comes first, and libjsig uses malloc, it will use the malloc implementation from the C-Runtime, not the one ASAN interposes. That, in turn, could cause weird errors or crashes when later memory is freed at a place where ASAN interposition of malloc holds, since we use a different free().

I would probably just disable the libjsig tests for ASAN completely.

@MBaesken
Copy link
Member Author

Hmmm...

If ASAN does not come first, libjsig comes first, and libjsig uses malloc, it will use the malloc implementation from the C-Runtime, not the one ASAN interposes. That, in turn, could cause weird errors or crashes when later memory is freed at a place where ASAN interposition of malloc holds, since we use a different free().

I would probably just disable the libjsig tests for ASAN completely.

Hi Thomas, never saw that really happening in practise when running tests with ASAN enabled binaries.
(of course that is no proof that it is technically impossible under special circumstances)

@MBaesken
Copy link
Member Author

Maybe we should just wait some more time with the backport; in case we really see issues with setting this ASAN flag, we can adjust this setting.

@tstuefe
Copy link
Member

tstuefe commented Jul 24, 2025

Also, does this not switch off the warning for all tests, not only the libjsig tests?

@MBaesken
Copy link
Member Author

Also, does this not switch off the warning for all tests, not only the libjsig tests?

For all tests; but the jsig tests are the ones where we really saw this.

@bridgekeeper
Copy link

bridgekeeper bot commented Aug 21, 2025

@MBaesken This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

2 participants