Closed
Bug 804577
Opened 13 years ago
Closed 3 years ago
nntp fakeserver fails in test_nntpPassword2.js
Categories
(MailNews Core :: Networking: NNTP, defect)
MailNews Core
Networking: NNTP
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: Irving, Unassigned)
References
Details
+++ This bug was initially created as a clone of Bug #803574 +++
While diagnosing bug 803574 I discovered that the NNTP fakeserver was failing during the test, and that the test was succeeding in spite of this.
Irvings-MacBook-Pro% make SOLO_FILE="test_nntpPassword2.js" -C mailnews/news/test check-one
/usr/bin/python2.7 -u /Users/ireid/tbird/comm-central/mozilla/config/pythonpath.py \
-I/Users/ireid/tbird/comm-central/mozilla/build -I../../../mozilla/_tests/mozbase/mozinfo \
/Users/ireid/tbird/comm-central/mozilla/testing/xpcshell/runxpcshelltests.py \
--symbols-path=../../../mozilla/dist/crashreporter-symbols \
--build-info-json=../../../mozilla/mozinfo.json \
--test-path=test_nntpPassword2.js \
--profile-name=thunderbird \
--verbose \
\
/Users/ireid/tbird/obj/comm-central/mozilla/dist/bin/xpcshell \
../../../mozilla/_tests/xpcshell/mailnews/news/test/unit
TEST-INFO | profile dir is /var/folders/13/5v1sbktd1cl05mvkntw3b4gc0000gn/T/thunderbird/xpcshellprofile
TEST-INFO | /Users/ireid/tbird/obj/comm-central/mozilla/_tests/xpcshell/mailnews/news/test/unit/test_nntpPassword2.js | running test ...
TEST-INFO | /Users/ireid/tbird/obj/comm-central/mozilla/_tests/xpcshell/mailnews/news/test/unit/test_nntpPassword2.js | full command: ['/Users/ireid/tbird/obj/comm-central/mozilla/dist/bin/xpcshell', '-g', '/Users/ireid/tbird/obj/comm-central/mozilla/dist/bin', '-a', '/Users/ireid/tbird/obj/comm-central/mozilla/dist/bin', '-r', '/Users/ireid/tbird/obj/comm-central/mozilla/dist/bin/components/httpd.manifest', '-m', '-n', '-s', '-e', 'const _HTTPD_JS_PATH = "/Users/ireid/tbird/obj/comm-central/mozilla/dist/bin/components/httpd.js";', '-e', 'const _HEAD_JS_PATH = "/Users/ireid/tbird/comm-central/mozilla/testing/xpcshell/head.js";', '-f', '/Users/ireid/tbird/comm-central/mozilla/testing/xpcshell/head.js', '-e', 'const _SERVER_ADDR = "localhost"', '-e', 'const _HEAD_FILES = ["/Users/ireid/tbird/obj/comm-central/mozilla/_tests/xpcshell/mailnews/news/test/unit/head_server_setup.js"];', '-e', 'const _TAIL_FILES = ["/Users/ireid/tbird/obj/comm-central/mozilla/_tests/xpcshell/mailnews/news/test/unit/tail_news.js"];', '-e', 'const _TEST_FILE = ["/Users/ireid/tbird/obj/comm-central/mozilla/_tests/xpcshell/mailnews/news/test/unit/test_nntpPassword2.js"];', '-e', '_execute_test(); quit(0);']
TEST-INFO | /Users/ireid/tbird/obj/comm-central/mozilla/_tests/xpcshell/mailnews/news/test/unit/test_nntpPassword2.js | current directory: '/Users/ireid/tbird/obj/comm-central/mozilla/_tests/xpcshell/mailnews/news/test/unit'
TEST-INFO | /Users/ireid/tbird/obj/comm-central/mozilla/_tests/xpcshell/mailnews/news/test/unit/test_nntpPassword2.js | environment: ['XPCOM_MEM_LEAK_LOG=/var/folders/13/5v1sbktd1cl05mvkntw3b4gc0000gn/T/thunderbird/xpcshellprofile/runxpcshelltests_leaks.log', 'XPCSHELL_TEST_PROFILE_DIR=/var/folders/13/5v1sbktd1cl05mvkntw3b4gc0000gn/T/thunderbird/xpcshellprofile', 'DYLD_LIBRARY_PATH=/Users/ireid/tbird/obj/comm-central/mozilla/dist/bin', 'NS_TRACE_MALLOC_DISABLE_STACKS=1', 'XPCOM_DEBUG_BREAK=stack-and-abort', 'MOZ_CRASHREPORTER_NO_REPORT=1']
TEST-PASS | /Users/ireid/tbird/obj/comm-central/mozilla/_tests/xpcshell/mailnews/news/test/unit/test_nntpPassword2.js | test passed (time: 940.078ms)
>>>>>>>
### XPCOM_MEM_LEAK_LOG defined -- logging leaks to /var/folders/13/5v1sbktd1cl05mvkntw3b4gc0000gn/T/thunderbird/xpcshellprofile/runxpcshelltests_leaks.log
TEST-INFO | (xpcshell/head.js) | test 1 pending
Directory request for: NewsD that we (mailDirService.js) are not handling, leaving it to another handler.
Directory request for: MFCaF that we (mailDirService.js) are not handling, leaving it to another handler.
2035865952[11a110070]: (11d57f800) creating
2035865952[11a110070]: (11d57f800) initializing, so unset m_currentGroup
2035865952[11a110070]: (11d57f800) setting busy to 1
2035865952[11a110070]: (11d57f800) ParseURL
2035865952[11a110070]: (11d57f800) opening connection to localhost on port 1143
2035865952[11a110070]: (11d57f800) setting busy to 1
2035865952[11a110070]: (11d57f800) ParseURL
2035865952[11a110070]: (11d57f800) m_messageID =
2035865952[11a110070]: (11d57f800) group = *
2035865952[11a110070]: (11d57f800) m_key = -1
2035865952[11a110070]: (11d57f800) Next state: NNTP_RESPONSE
2035865952[11a110070]: (11d57f800) Receiving: 200 posting allowed
2035865952[11a110070]: (11d57f800) Next state: NNTP_LOGIN_RESPONSE
2035865952[11a110070]: (11d57f800) Next state: NNTP_SEND_MODE_READER
2035865952[11a110070]: (11d57f800) Sending: MODE READER
2035865952[11a110070]: (11d57f800) Next state: NNTP_RESPONSE
2035865952[11a110070]: (11d57f800) Receiving: 200 posting allowed
2035865952[11a110070]: (11d57f800) Next state: NNTP_SEND_MODE_READER_RESPONSE
2035865952[11a110070]: (11d57f800) Next state: SEND_FIRST_NNTP_COMMAND
2035865952[11a110070]: (11d57f800) Sending: LIST
2035865952[11a110070]: (11d57f800) Next state: NNTP_RESPONSE
2035865952[11a110070]: (11d57f800) Receiving: 480 Authentication required
2035865952[11a110070]: (11d57f800) Next state: NNTP_BEGIN_AUTHORIZE
2035865952[11a110070]: (11d57f800) Next state: NNTP_SUSPENDED
2035865952[11a110070]: (11d57f800) Next state: NNTP_BEGIN_AUTHORIZE
2035865952[11a110070]: (11d57f800) use testnews as the username
2035865952[11a110070]: (11d57f800) Sending: AUTHINFO user testnews
2035865952[11a110070]: (11d57f800) Next state: NNTP_RESPONSE
2035865952[11a110070]: (11d57f800) Receiving: 381 Password required
2035865952[11a110070]: (11d57f800) Next state: NNTP_AUTHORIZE_RESPONSE
2035865952[11a110070]: (11d57f800) Logging suppressed for this command (it probably contained authentication information)
2035865952[11a110070]: (11d57f800) Next state: NNTP_RESPONSE
2035865952[11a110070]: (11d57f800) Receiving: 281 Authentication Accepted
2035865952[11a110070]: (11d57f800) Next state: NNTP_PASSWORD_RESPONSE
2035865952[11a110070]: (11d57f800) Next state: SEND_FIRST_NNTP_COMMAND
2035865952[11a110070]: (11d57f800) Sending: LIST
InternalError: too much recursion
File: ../../../fakeserver/nntpd.js Line: 409
Stack trace:
.LIST@../../../fakeserver/nntpd.js:409
sub.parent.__noSuchMethod__@../../../fakeserver/nntpd.js:390
.LIST@../../../fakeserver/nntpd.js:409
sub.parent.__noSuchMethod__@../../../fakeserver/nntpd.js:390
.LIST@../../../fakeserver/nntpd.js:409
sub.parent.__noSuchMethod__@../../../fakeserver/nntpd.js:390
.LIST@../../../fakeserver/nntpd.js:409
... hundreds of lines of identical recursive calls
sub.parent.__noSuchMethod__@../../../fakeserver/nntpd.js:390
.LIST@../../../fakeserver/nntpd.js:409
sub.parent.__noSuchMethod__@../../../fakeserver/nntpd.js:390
.LIST@../../../fakeserver/nntpd.js:566
nsMailReader.prototype.onInputStreamReady@../../../fakeserver/maild.js:415
2035865952[11a110070]: (11d57f800) Next state: NNTP_RESPONSE
2035865952[11a110070]: (11d57f800) Receiving: 500 internal server error: InternalError: too much recursion
2035865952[11a110070]: (11d57f800) Next state: SEND_FIRST_NNTP_COMMAND_RESPONSE
2035865952[11a110070]: WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004003: file /Users/ireid/tbird/comm-central/mailnews/news/src/nsNNTPProtocol.cpp, line 1980
WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004003: file /Users/ireid/tbird/comm-central/mailnews/news/src/nsNNTPProtocol.cpp, line 1980
2035865952[11a110070]: (11d57f800) Next state: NNTP_ERROR
2035865952[11a110070]: (11d57f800) ClosingConnection
2035865952[11a110070]: (11d57f800) Sending: QUIT
2035865952[11a110070]: (11d57f800) ClosingSocket()
2035865952[11a110070]: (11d57f800) CleanupAfterRunningUrl()
2035865952[11a110070]: (11d57f800) setting busy to 0
2035865952[11a110070]: (11d57f800) ClosingSocket()
2035865952[11a110070]: (11d57f800) CleanupAfterRunningUrl()
2035865952[11a110070]: (11d57f800) setting busy to 0
TEST-PASS | /Users/ireid/tbird/obj/comm-central/mozilla/_tests/xpcshell/mailnews/news/test/unit/head_server_setup.js | [do_check_transaction : 183] MODE READER,LIST,AUTHINFO user testnews,AUTHINFO pass newstest,LIST == MODE READER,LIST,AUTHINFO user testnews,AUTHINFO pass newstest,LIST
Passed test news:*
TEST-INFO | (xpcshell/head.js) | test 1 finished
TEST-INFO | (xpcshell/head.js) | exiting test
2035865952[11a110070]: (11d57f800) destroying
Directory request for: DefRt that we (mailDirService.js) are not handling, leaving it to another handler.
TEST-PASS | (xpcshell/head.js) | 1 (+ 0) check(s) passed
TEST-INFO | (xpcshell/head.js) | 0 check(s) todo
2035865952[11a110070]: WARNING: nsExceptionService ignoring thread destruction after shutdown: file /Users/ireid/tbird/comm-central/mozilla/xpcom/base/nsExceptionService.cpp, line 166
WARNING: nsExceptionService ignoring thread destruction after shutdown: file /Users/ireid/tbird/comm-central/mozilla/xpcom/base/nsExceptionService.cpp, line 166
2035865952[11a110070]: WARNING: OOPDeinit() without successful OOPInit(): file /Users/ireid/tbird/comm-central/mozilla/toolkit/crashreporter/nsExceptionHandler.cpp, line 2252
WARNING: OOPDeinit() without successful OOPInit(): file /Users/ireid/tbird/comm-central/mozilla/toolkit/crashreporter/nsExceptionHandler.cpp, line 2252
nsStringStats
=> mAllocCount: 4321
=> mReallocCount: 709
=> mFreeCount: 4321
=> mShareCount: 9334
=> mAdoptCount: 321
=> mAdoptFreeCount: 321
<<<<<<<
INFO | Result summary:
INFO | Passed: 1
INFO | Failed: 0
INFO | Todo: 0
Comment 1•3 years ago
|
||
I don't see any error when running ./mach test --verbose /path/to/test_nntpPassword2.js
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•