[SERVER-7734] Mac OS X 64-bit DEBUG failing StackChecker check in 'test' program Created: 21/Nov/12  Updated: 11/Jul/16  Resolved: 21/Nov/12

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.3.1

Type: Bug Priority: Major - P3
Reporter: Tad Marshall Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Mac OS X 64-bit debug build slave


Operating System: OS X
Participants:

 Description   

The current 218 * 1024 bytes of stack we check against in non-Windows builds is completely used when running the 'test' program on debug builds on the Mac.

http://buildlogs.mongodb.org/OS%20X%2010.5%2064-bit%20DEBUG/builds/1621/test/recent%20failures/test

TOTALS               | tests: 2089 | fails:    0 | assert calls: 7391060
thread testsuite stack usage was 223232 bytes,  which is the most so far
Tue Nov 20 19:25:41.240 [testsuite] used 223232 bytes, max is 223232 exiting
Tue Nov 20 19:25:41.240 [testsuite]   Fatal Assertion 16151
0x101708285 0x1016cf47b 0x1016ae5e4 0x10102bae2 0x1010205a7 0x1014ee93c 0x1004f6528 0x10024d644 
 0   test                                0x0000000101708285 _ZN5mongo15printStackTraceERSo + 37
 1   test                                0x00000001016cf47b _ZN5mongo10logContextEPKc + 123
 2   test                                0x00000001016ae5e4 _ZN5mongo13fassertFailedEi + 148
 3   test                                0x000000010102bae2 _ZN5mongo12StackChecker5checkEPKc + 642
 4   test                                0x00000001010205a7 _ZN5mongo6Client8shutdownEv + 69
 5   test                                0x00000001014ee93c _ZN5mongo7dbtests10runDbTestsEiPPcSs + 10748
 6   test                                0x00000001004f6528 main + 232
 7   test                                0x000000010024d644 start + 52
Tue Nov 20 19:25:41.252 [testsuite] 
 
***aborting after fassert() failure



 Comments   
Comment by auto [ 21/Nov/12 ]

Author:

{u'date': u'2012-11-21T11:39:55Z', u'email': u'tad@10gen.com', u'name': u'Tad Marshall'}

Message: SERVER-7734 Increase StackChecker limit in Mac OS X build

Test for Mac OS X specifically, as well as Linux, and increase the stack
limit check for Mac only. Platforms other than Windows, Mac and Linux
will get a default size, same as the Linux size for now.
Branch: master
https://github.com/mongodb/mongo/commit/dce8b0b14316588cd186906e4418edd2e18f1649

Comment by Tad Marshall [ 21/Nov/12 ]

Raising the StackChecker limit to 490 KB to see how much is being used, the number is 350240 (just over 342 KB). This makes it worse than Windows

Raising the limit to 362 KB (computed by adding the 16000 padding the test requires plus 4096 for safety and then rounding up to next multiple of 1024 bytes) makes the test pass. For comparison, Linux gets by with 218 KB and Windows requires 322 KB.

Only debug builds run this StackChecker test, and debug builds consume much more stack space than release builds.

Generated at Thu Feb 08 03:15:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.