Bug #28284 | Test "mysqlslap" reports "out of memory" | ||
---|---|---|---|
Submitted: | 7 May 2007 15:27 | Modified: | 9 Oct 2007 0:47 |
Reporter: | Joerg Bruehe | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Tests | Severity: | S3 (Non-critical) |
Version: | 5.1.18 | OS: | Linux (RHAS 3 / x86) |
Assigned to: | Georgi Kodinov | CPU Architecture: | Any |
[7 May 2007 15:27]
Joerg Bruehe
[7 Jul 2007 9:35]
Daniel Fischer
Still present in 5.1.20.
[22 Aug 2007 10:46]
Joerg Bruehe
Still present in 5.1.21-beta. Specific to that platform (Linux RHAS3 on x86), occurs in both tar.gz and RPM builds there. The computed values are in the 4 giga range (4294967259, 4294967258, or 4294967257 bytes), this cannot be right on a 32 bit platform. Raising priority (test suite failure !).
[24 Aug 2007 15:06]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/33035 ChangeSet@1.2572, 2007-08-24 18:06:44+03:00, gkodinov@magare.gmz +3 -0 Bug #28284: Test "mysqlslap" reports "out of memory" When locking a "fast" mutex a static variable cpu_count was used as a flag to initialize itself on the first usage by calling sysconf() and setting non-zero value. This is not thread and optimization safe on some platforms. That's why the global initialization needs to be done once in a designated function. This will also speed up the usage (by a small bit) because it won't have to check if it's initialized on every call. Fixed by moving the fast mutexes initialization out of my_pthread_fastmutex_lock() to fastmutex_global_init() and call it from my_init()
[14 Sep 2007 7:44]
Bugs System
Pushed into 5.1.23-beta
[9 Oct 2007 0:47]
Paul DuBois
Noted in 5.1.23 changelog. Fast-mutex locking was not thread-safe and optimization-safe on some platforms, which could cause program failures such as out-of-memory errors.