[SERVER-11174] csvexport_dates.js failing on Linux 32-bit Created: 14/Oct/13  Updated: 11/Jul/16  Resolved: 15/Oct/13

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

Type: Bug Priority: Major - P3
Reporter: Matt Kangas Assignee: Shaun Verch
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Latest:
3f2c4c4afd01 Linux 32-bit tool
3f2c4c4afd01 Linux 32-bit DEBUG tool

First visible failure:
c1a09966ff05 Linux 32-bit DEBUG tool

log: http://buildlogs.mongodb.org/mci_0.9_linux_32_debug/builds/718/test/tool_0/csvexport_dates.js

Pretty sure this is our culprit:

2013-10-14T05:48:49.551+0000 shell: started program /data/mci/git@github.commongodb/mongo.git/master/mongoexport --out /data/db/jstests_tool_csvexport_date_before_epoch_external/a -d jstests_tool_csvexport_date_before_epoch -c foo --csv -f _id,date --host 127.0.0.1:31000
sh1885| connected to: 127.0.0.1:31000
sh1885| 2013-10-14T05:48:49.616+0000 dev: lastError==0 won't report:Can't handle date values outside of time_t range
sh1885| assertion: 16421 Can't handle date values outside of time_t range



 Comments   
Comment by auto [ 21/Oct/13 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-11203 Reverting changes to time support code to work with negative time_t

Doing this correctly depends on SERVER-11273

Revert "SERVER-11174 Reference db of tool test rather than global db object"
This reverts commit d1c2ae72c4829ed77cb6b7fe42e486910483caff.

Revert "SERVER-11174 Skip tests of negative dates on windows"
This reverts commit 9fcdfeb195c42e91a49e37212a65fea624d71c13.

Revert "SERVER-11174 Skip test for date that cannot be stored on 32 bit systems"
This reverts commit fc3b552e788e027af40523173790a20f49b27ec5.

Revert "SERVER-6058 Fix time_support_test on systems with small time_t"
This reverts commit c1a09966ff05c42c184870715e7a7383d02c477d.

Revert "SERVER-6058 Factor out date to UTC handling code and use in mongoexport"
This reverts commit 0b19be208f91e70c683d60c22011cad14a9fa78c.
Branch: master
https://github.com/mongodb/mongo/commit/a4e7a4f5068c96faaffec93e0b2e86d084f27e92

Comment by auto [ 21/Oct/13 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-11203 Reverting changes to time support code to work with negative time_t

Doing this correctly depends on SERVER-11273

Revert "SERVER-11174 Reference db of tool test rather than global db object"
This reverts commit d1c2ae72c4829ed77cb6b7fe42e486910483caff.

Revert "SERVER-11174 Skip tests of negative dates on windows"
This reverts commit 9fcdfeb195c42e91a49e37212a65fea624d71c13.

Revert "SERVER-11174 Skip test for date that cannot be stored on 32 bit systems"
This reverts commit fc3b552e788e027af40523173790a20f49b27ec5.

Revert "SERVER-6058 Fix time_support_test on systems with small time_t"
This reverts commit c1a09966ff05c42c184870715e7a7383d02c477d.

Revert "SERVER-6058 Factor out date to UTC handling code and use in mongoexport"
This reverts commit 0b19be208f91e70c683d60c22011cad14a9fa78c.
Branch: master
https://github.com/mongodb/mongo/commit/a4e7a4f5068c96faaffec93e0b2e86d084f27e92

Comment by auto [ 21/Oct/13 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-11203 Reverting changes to time support code to work with negative time_t

Doing this correctly depends on SERVER-11273

Revert "SERVER-11174 Reference db of tool test rather than global db object"
This reverts commit d1c2ae72c4829ed77cb6b7fe42e486910483caff.

Revert "SERVER-11174 Skip tests of negative dates on windows"
This reverts commit 9fcdfeb195c42e91a49e37212a65fea624d71c13.

Revert "SERVER-11174 Skip test for date that cannot be stored on 32 bit systems"
This reverts commit fc3b552e788e027af40523173790a20f49b27ec5.

Revert "SERVER-6058 Fix time_support_test on systems with small time_t"
This reverts commit c1a09966ff05c42c184870715e7a7383d02c477d.

Revert "SERVER-6058 Factor out date to UTC handling code and use in mongoexport"
This reverts commit 0b19be208f91e70c683d60c22011cad14a9fa78c.
Branch: master
https://github.com/mongodb/mongo/commit/a4e7a4f5068c96faaffec93e0b2e86d084f27e92

Comment by auto [ 14/Oct/13 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-11174 Reference db of tool test rather than global db object
Branch: master
https://github.com/mongodb/mongo/commit/d1c2ae72c4829ed77cb6b7fe42e486910483caff

Comment by Shaun Verch [ 14/Oct/13 ]

I copied code that checks for the Windows issues from another jstest that tests these dates: https://github.com/mongodb/mongo/blob/master/jstests/aggregation/bugs/server6189.js

Comment by auto [ 14/Oct/13 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-11174 Skip tests of negative dates on windows
Branch: master
https://github.com/mongodb/mongo/commit/9fcdfeb195c42e91a49e37212a65fea624d71c13

Comment by Shaun Verch [ 14/Oct/13 ]

Pushed fix for Linux-32. Will work on fixing the Windows breakage (different issue).

Comment by auto [ 14/Oct/13 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-11174 Skip test for date that cannot be stored on 32 bit systems
Branch: master
https://github.com/mongodb/mongo/commit/fc3b552e788e027af40523173790a20f49b27ec5

Comment by Matt Kangas [ 14/Oct/13 ]

Also here:

3f2c4c4afd01 Windows 64-bit tool (logfile)
3f2c4c4afd01 Windows 64-bit DEBUG tool (logfile)

These failures look a little bit different than above:

http://buildlogs.mongodb.org/mci_0.9_windows_64/builds/1347/test/tool_0/csvexport_dates.js

2013-10-14T04:54:24.440+0000 shell: started program mongoimport.exe --file /data/db/jstests_tool_csvexport_date_before_epoch_external/a -d jstests_tool_csvexport_date_before_epoch -c foo --type csv --headerline --host 127.0.0.1:31000
2013-10-14 00:54:54 EDT	
 m31000| 2013-10-14T04:54:24.466+0000 [initandlisten] connection accepted from 127.0.0.1:53871 #3 (2 connections now open)
sh2820| connected to: 127.0.0.1:31000
sh2820| 2013-10-14T04:54:24.467+0000 imported 0 objects
 m31000| 2013-10-14T04:54:24.468+0000 [conn3] end connection 127.0.0.1:53871 (1 connection now open)
assert.soon failed: 1 == c.count(), msg:after import
Error: Printing Stack Trace
    at printStackTrace (src/mongo/shell/utils.js:38:15)
    at doassert (src/mongo/shell/assert.js:6:5)
    at Function.assert.soon (src/mongo/shell/assert.js:174:60)
    at test (D:\data\mci\git@github.commongodb\mongo.git\master\jstests\tool\csvexport_dates.js:28:12)
    at D:\data\mci\git@github.commongodb\mongo.git\master\jstests\tool\csvexport_dates.js:40:1
2013-10-14T04:54:54.485+0000 assert.soon failed: 1 == c.count(), msg:after import at src/mongo/shell/assert.js:7

http://buildlogs.mongodb.org/mci_0.9_windows_64_debug/builds/1327/test/tool_0/csvexport_dates.js

2013-10-14T05:24:25.581+0000 shell: started program mongoexport.exe --out /data/db/jstests_tool_csvexport_date_before_epoch_external/a -d jstests_tool_csvexport_date_before_epoch -c foo --csv -f _id,date --host 127.0.0.1:31000
 m31000| 2013-10-14T05:24:25.636+0000 [initandlisten] connection accepted from 127.0.0.1:51074 #2 (2 connections now open)
sh732| connected to: 127.0.0.1:31000
sh732| 2013-10-14T05:24:25.639+0000 *** C runtime error: f:\dd\vctools\crt_bld\self_64_amd64\crt\src\strftime.c(652) : Assertion failed: ( ( timeptr->tm_mon >=0 ) && ( timeptr->tm_mon <= 11 ) ), terminating
sh732| 2013-10-14T05:24:25.640+0000 Fatal Assertion 17006
sh732| 2013-10-14T05:24:26.204+0000 mongoexport.exe  ...\src\mongo\util\stacktrace.cpp(169)                       mongo::printStackTrace+0x43
sh732| 2013-10-14T05:24:26.204+0000 mongoexport.exe  ...\src\mongo\util\log.cpp(131)                              mongo::logContext+0xc1
sh732| 2013-10-14T05:24:26.204+0000 mongoexport.exe  ...\src\mongo\util\assert_util.cpp(131)                      mongo::fassertFailed+0xa9
sh732| 2013-10-14T05:24:26.204+0000 mongoexport.exe  ...\src\mongo\util\stacktrace.cpp(285)                       mongo::crtDebugCallback+0x17f
sh732| 2013-10-14T05:24:26.204+0000 mongoexport.exe  f:\dd\vctools\crt_bld\self_64_amd64\crt\src\dbgrptt.c(605)   _VCrtDbgReportW+0x812
sh732| 2013-10-14T05:24:26.204+0000 mongoexport.exe  f:\dd\vctools\crt_bld\self_64_amd64\crt\src\dbgrpt.c(242)    _CrtDbgReportWV+0x43
sh732| 2013-10-14T05:24:26.204+0000 mongoexport.exe  f:\dd\vctools\crt_bld\self_64_amd64\crt\src\dbgrpt.c(258)    _CrtDbgReportW+0x4d
sh732| 2013-10-14T05:24:26.204+0000 mongoexport.exe  f:\dd\vctools\crt_bld\self_64_amd64\crt\src\strftime.c(652)  _expandtime+0xa2c
sh732| 2013-10-14T05:24:26.204+0000 mongoexport.exe  f:\dd\vctools\crt_bld\self_64_amd64\crt\src\strftime.c(380)  _Strftime_l+0x499
sh732| 2013-10-14T05:24:26.204+0000 mongoexport.exe  f:\dd\vctools\crt_bld\self_64_amd64\crt\src\strftime.c(269)  strftime+0x43
sh732| 2013-10-14T05:24:26.204+0000 mongoexport.exe  ...\src\mongo\util\time_support.cpp(116)                     mongo::_dateToISOString+0xd5
sh732| 2013-10-14T05:24:26.204+0000 mongoexport.exe  ...\src\mongo\util\time_support.cpp(158)                     mongo::dateToISOStringUTC+0x19
sh732| 2013-10-14T05:24:26.205+0000 mongoexport.exe  ...\src\mongo\tools\export.cpp(83)                           Export::csvString+0x352
sh732| 2013-10-14T05:24:26.205+0000 mongoexport.exe  ...\src\mongo\tools\export.cpp(199)                          Export::run+0x1768
sh732| 2013-10-14T05:24:26.205+0000 mongoexport.exe  ...\src\mongo\tools\tool.cpp(125)                            mongo::Tool::main+0x5ae
sh732| 2013-10-14T05:24:26.205+0000 mongoexport.exe  ...\src\mongo\tools\tool.cpp(354)                            wmain+0x99
sh732| 2013-10-14T05:24:26.205+0000 mongoexport.exe  f:\dd\vctools\crt_bld\self_64_amd64\crt\src\crt0.c(278)      __tmainCRTStartup+0xe2
sh732| 2013-10-14T05:24:26.205+0000 mongoexport.exe  f:\dd\vctools\crt_bld\self_64_amd64\crt\src\crt0.c(189)      wmainCRTStartup+0xe
sh732| 2013-10-14T05:24:26.205+0000 kernel32.dll                                                                  BaseThreadInitThunk+0xd
sh732| 2013-10-14T05:24:26.205+0000 

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