Test main.bug80134 fails under AddressSanitizer default options

Bug #1652912 reported by Laurynas Biveinis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.5
Fix Released
Medium
Yura Sorokin
5.6
Fix Released
Medium
Yura Sorokin
5.7
Opinion
Undecided
Yura Sorokin

Bug Description

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.

Tags: asan ci
tags: added: asan ci
Revision history for this message
Yura Sorokin (yura-sorokin) wrote :

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

Revision history for this message
Yura Sorokin (yura-sorokin) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-3621

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.