Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #781 from rurban/leak-test#765

Mark --leak-test to be skipped with AddressSanitizer
  • Loading branch information...
commit 976c78ad0a510b707725d6f6b820ae4d8026e3e5 2 parents e4b931d + 7600c8f
Jimmy Zhuo authored
Showing with 3 additions and 1 deletion.
  1. +2 −0  src/exit.c
  2. +1 −1  t/run/options.t
View
2  src/exit.c
@@ -111,6 +111,7 @@ the interpreter is destroyed.
*/
PARROT_COLD
+PARROT_NO_ADDRESS_SAFETY_ANALYSIS
void
Parrot_x_execute_on_exit_handlers(PARROT_INTERP, int status)
{
@@ -134,6 +135,7 @@ Parrot_x_execute_on_exit_handlers(PARROT_INTERP, int status)
node = next;
}
+ /* It could be that the interpreter already is destroyed. See issue 765 */
interp->exit_handler_list = NULL;
/* Re-enable GC, which we will want if GC finalizes */
View
2  t/run/options.t
@@ -116,7 +116,7 @@ like( $output, qr/maximum GC nursery size is 50%/,
is( $exit, 0, '... and should not crash' );
-# Test --leak-test
+# Test --leak-test. See issue GH #765
is( qx{$PARROT --leak-test "$first_pir_file"}, "first\n", '--leak-test' );
# clean up temporary files
Please sign in to comment.
Something went wrong with that request. Please try again.