[SERVER-10496] Unit test ExpressionTests::Set failure on Windows and C++11 builds Created: 13/Aug/13 Updated: 11/Jul/16 Resolved: 13/Aug/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Testing Infrastructure |
| Affects Version/s: | None |
| Fix Version/s: | 2.5.2 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Andrew Morrow (Inactive) | Assignee: | Matt Dannenberg |
| Resolution: | Done | Votes: | 0 |
| Labels: | C++11, buildbot | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows, OS X C+11 builds with libc+ |
||
| Operating System: | ALL |
| Participants: |
| Description |
|
Windows and OSX C++11 builders have been failing unit tests recently. Example 1: Windows 64-bit Build #5644 (Aug 9, rev cd81198d) http://buildlogs.mongodb.org/Windows%2064-bit/builds/5644/test/core/test.exe
Example 2: OS X C++11: http://buildlogs.mongodb.org/mci_0.9_osx_108_cxx11_debug/builds/198/test/core_0/test
Windows: http://buildlogs.mongodb.org/mci_0.9_windows_64/builds/481/test/core_0/test.exe The breakage was bisected to: https://github.com/mongodb/mongo/commit/af6828e05aaea88e181cad598cc1274e2838d25a Running the test under valgrind on OS X shows a use after free:
|
| Comments |
| Comment by Matt Dannenberg [ 13/Aug/13 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
This fixed it Author: {u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}Message: | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Matt Kangas [ 13/Aug/13 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
As you might expect, all of the master Windows builders are failing on the same. But I just noticed that the DEBUG builds cough out a significantly more helpful message. (As they should!) Debug message: Windows 64-bit DEBUG Build #957 - buildlogger
Non-debug message: Windows 64-bit 2008R2+ Build #155 - buildlogger
| |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Matt Kangas [ 13/Aug/13 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
All of the nightly Windows failures are due to this. Nightly Windows 64-bit Build #1369 Mon Aug 12 Nightly Windows 64-bit DEBUG Build #433 Tue Aug 13 Nightly Windows 64-bit 2008R2+ Build #131 Tue Aug 13 Nightly Windows 64-bit 2008R2+ DEBUG Build #123 Tue Aug 13 | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrew Morrow (Inactive) [ 13/Aug/13 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
Info on building with libc++ on OS X since this may be easier than building on Windows. This assumes you have the XCode command line tools installed, and valgrind via macports or homebrew in your path.
|