Bug #111850 Contribution: Architecture-agnostic fix for crashes caused by cache coheren ...

Submitted: 21 Jul 2023 23:40 Modified: 22 Jul 2023 5:04
Reporter: OCA Admin (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0 OS:Any
Assigned to: CPU Architecture:Any
Tags: Contribution

[21 Jul 2023 23:40] OCA Admin
Description:
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 2023 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 2023 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 2023 5:04] MySQL Verification Team
Hello Daniel,

Thank you for the report and contribution.

regards,
Umesh
[24 Jul 2023 8:19] Tor Didriksen
Posted by developer:
 
In my patch for
https://bugs.mysql.com/bug.php?id=110752
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'

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.