ASan: attempting to call malloc_usable_size() for pointer which is not owned

Description

Create a PS debug build with latest 5.7 branch(5.7.23-23) as per following commands:

Note: The cmake command has the option -DWITH_ASAN=ON to add AddressSanitizer in the build.

 

Start Percona Server without initializing data directory

Result: Percona Server starts and goes down.

 

The log/master.err displays the following AddressSanitizer errors:

Remove existing data directory

 

 

Initialize the data directory

 

Contents of data directory

 

 Start the Percona Server

Result: Percona server starts and goes down immediately.

 

The log/master.err displays the following AddressSanitizer errors:

Contents of data directory

Issue: The AddressSanitizer errors should not come and the Percona Server should not go down after data directory initialization.

 

Start the Percona Server again

Result: The Percona Server is able to start and run on the second attempt.

Attached log: master.err

Environment

CentOS7.5

Attachments

1

Smart Checklist

Activity

Show:

Julia Vural March 4, 2025 at 9:06 PM

It appears that this issue is no longer being worked on, so we are closing it for housekeeping purposes. If you believe the issue still exists, please open a new ticket after confirming it's present in the latest release.

roel.vandepaar August 31, 2018 at 10:06 AM

any ideas on the TokuDB init errors?

Manish Chawla August 31, 2018 at 5:34 AM

Yes, this error is coming when PS is started after the data directory is initialized. I checked another build and this error is not coming there, so this might be an issue.

roel.vandepaar August 31, 2018 at 4:44 AM
Edited

Not that it makes a direct difference to the ASAN bug, but  one thing I notice towards the end of the log is this;

This however is after the data init is done - right? Where do you expect it to come from? 

roel.vandepaar August 31, 2018 at 4:38 AM

  please triage - this seems to be a new regression?

Won't Do

Details

Assignee

Reporter

Labels

Time tracking

4h 25m logged

Components

Affects versions

Priority

Smart Checklist

Created August 30, 2018 at 2:40 PM
Updated March 4, 2025 at 9:06 PM
Resolved March 4, 2025 at 9:06 PM