Bug #111850 Contribution: Architecture-agnostic fix for crashes caused by cache coheren ...
Submitted: 21 Jul 23:40 Modified: 22 Jul 5:04
Reporter: OCA Admin (OCA) Email Updates:
Status: Verified Impact on me:
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0 OS:Any
Assigned to: CPU Architecture:Any
Tags: Contribution

[21 Jul 23:40] OCA Admin
This bug tracks a contribution by Daniel Lenski (Github user: dlenski) as described in http://github.com/mysql/mysql-server/pull/485

How to repeat:
See description

Suggested fix:
See contribution code attached
[21 Jul 23:40] OCA Admin
Contribution submitted via Github - Architecture-agnostic fix for crashes caused by cache coherency_line_size of 0 i 
(*) Contribution by Daniel Lenski (Github dlenski, mysql-server/pull/485#issuecomment-1646324297): This contribution is under the OCA signed by Amazon and covering submissions to the MySQL project.

Contribution: git_patch_1444917312.txt (text/plain), 2.39 KiB.

[22 Jul 1:41] Daniel Lenski
Previous fixes for this issue have been piecemeal and CPU architecture-specific:

- For s390x: BUG#34095278, https://bugs.mysql.com/bug.php?id=107081 → f2d64bf for s390x
- For armhf: https://bugs.mysql.com/bug.php?id=110752
- All other arm variants are also affected (confirmed by us for arm64)
[22 Jul 5:04] MySQL Verification Team
Hello Daniel,

Thank you for the report and contribution.

[24 Jul 8:19] Tor Didriksen
Posted by developer:
In my patch for
I ended up removing the platform ifdefs, similar to what you suggest.
Additionally, we need to test the result of fscanf()
      if (fscanf(p, "%ld", &size) != 1) size = 0;
Debian/Ubuntu builds gave
    error: ignoring return value of 'int fscanf(FILE*, const char*, ...)'
    declared with attribute 'warn_unused_result'