LP #1652912: Test main.bug80134 fails under AddressSanitizer default options

Description

**Reported in Launchpad by Laurynas Biveinis last update 13-02-2017 03:08:58

On 5.5 trunk:

main.bug80134 w3 [ fail ]
Test ended at 2016-12-22 05:19:43

CURRENT_TEST: main.bug80134
mysqltest: At line 21: query 'DELETE t1 FROM t1, t1 AS t4' failed with wrong errno 2013: 'Lost connection to MySQL server during query', instead of 0...
...
==13417==WARNING: AddressSanitizer failed to allocate 0x3fffffffffe0 bytes
==13417==AddressSanitizer's allocator is terminating the process instead of returning 0
==13417==If you don't like this behavior set allocator_may_return_null=1

Since this test specifically tests for OOM, the default ASan mode to crash is unsuitable here. I have added a workaround to Jenkins, but this ASan setting belongs to the server itself, per https://github.com/google/sanitizers/wiki/AddressSanitizerFlags, the proper fix would be adding __asan_default_options source function.

Environment

None

Smart Checklist

Activity

Show:

lpjirasync January 24, 2018 at 10:50 AM

lpjirasync January 24, 2018 at 10:50 AM

**Comment from Launchpad by: Yura Sorokin on: 10-02-2017 13:57:30

This issue does not appear on 5.7 (possibly because of the different memory management routines).
Checked with both gcc and clang ASan.

Done

Details

Assignee

Reporter

Priority

Smart Checklist

Created January 24, 2018 at 10:50 AM
Updated January 24, 2018 at 10:50 AM
Resolved January 24, 2018 at 10:50 AM