Skip to content

[skip ci] Mark test as XFAIL due to LSAN bug on Clang 14 #12018

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

Merged
merged 4 commits into from
Aug 23, 2023

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Aug 22, 2023

No description provided.

@@ -7,6 +7,8 @@ if (!file_exists($extDir . '/opcache.so') && !file_exists($extDir . '/php_opcach
die('skip Opcache shared object not found in extension_dir');
}
?>
--XFAIL--
LSAN bug on Clang 14 marks this as leaking
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this to skipif and only xfail if we're actually using asan.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -7,6 +7,8 @@ if (!file_exists($extDir . '/opcache.so') && !file_exists($extDir . '/php_opcach
die('skip Opcache shared object not found in extension_dir');
}
?>
--SKIPIF--
<?php if (getenv('SKIP_ASAN')) die('xfail LSAN bug on Clang 14 marks this as leaking'); ?>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, and also, it doesn't report a leak, it crashes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, and also use xleak please 😄 Sorry for the fragmented comments.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, also we have trailing whitespaces in the test output so... changed that too

Change formatting of output to not have trailing whitespaces
Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good if tests pass. It would be nice if LSan wasn't crashing, but I don't have a solution...

@Girgias
Copy link
Member Author

Girgias commented Aug 22, 2023

Looks good if tests pass. It would be nice if LSan wasn't crashing, but I don't have a solution...

Yeah that would be ideal :[

@Girgias Girgias merged commit e055e12 into php:master Aug 23, 2023
@Girgias Girgias deleted the xleak-test branch August 23, 2023 12:19
@iluuu1994
Copy link
Member

iluuu1994 commented Aug 23, 2023

Can be reverted in #12034 😄 (or the skipif removed rather)

jorgsowa pushed a commit to jorgsowa/php-src that referenced this pull request Aug 24, 2023
This is due to apparently some combination of glibc and Clang 14 which we are unfortunately hitting
jorgsowa pushed a commit to jorgsowa/php-src that referenced this pull request Aug 24, 2023
This is due to apparently some combination of glibc and Clang 14 which we are unfortunately hitting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants