Bug #109560 "Reduce size of RelWithDebInfo" makes coredump useless for official binaries
Submitted: 9 Jan 2023 20:12 Modified: 10 Jan 2023 6:50
Reporter: Yan Huang (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.30 OS:Any
Assigned to: CPU Architecture:Any

[9 Jan 2023 20:12] Yan Huang
Description:
According to https://github.com/mysql/mysql-server/commit/fd704a8fae525a5eabe0e2c9d9b258732db7cb01, MySQL use compilation options "-g1"

It makes coredump useless for official Linux-generic package:
1. there's no symbols of variables/types/...
2. we could not reproduce compile hosts (pb2-el6-07.regionaliad02.mysql2iad.oraclevcn.com)

Make "-g3" mysqld tar, or make a debuginfo of generic package will help

How to repeat:
1. Install mysqld 8.0.30 by Linux-generic package
2. gdb mysqld
3. "info types" will list nothing

Suggested fix:
Make "-g3" mysqld tar, or make a debuginfo of generic package
[10 Jan 2023 6:50] MySQL Verification Team
Hello Yan Huang,

Thank you for the report and feedback.

Thanks,
Umesh