NS_NOTREACHED("nsImapMockChannel::SetContentCharset");

NEW
Unassigned

Status

MailNews Core
Networking: IMAP
16 years ago
6 years ago

People

(Reporter: timeless, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

16 years ago
nsImapMockChannel::SetContentCharset(nsImapMockChannel * const 0x05fc2498, const 
nsACString & {...}) line 7658 + 21 bytes
nsMimeBaseEmitter::UpdateCharacterSet(nsMimeBaseEmitter * const 0x0611c040, 
const char * 0x05ca6d60) line 594 + 32 bytes
nsMimeBaseEmitter::StartHeader(nsMimeBaseEmitter * const 0x0611c040, int 1, int 
0, const char * 0x0625e778, const char * 0x05ca6d60) line 552
mimeEmitterStartHeader(MimeDisplayOptions * 0x061836e8, int 1, int 0, const char 
* 0x0625e778, const char * 0x05ca6d60) line 1919 + 28 bytes
MimeMessage_write_headers_html(MimeObject * 0x060e02c0) line 703 + 40 bytes
MimeMessage_close_headers(MimeObject * 0x060e02c0) line 405 + 9 bytes
MimeMessage_parse_line(char * 0x05a88028, int 2, MimeObject * 0x060e02c0) line 
271 + 9 bytes
convert_and_send_buffer(char * 0x05a88028, int 2, int 1, int (char *, unsigned 
int, void *)* 0x07718af0 MimeMessage_parse_line(char *, int, MimeObject *), void 
* 0x060e02c0) line 168 + 15 bytes
mime_LineBuffer(const char * 0x06267898, int 879, char * * 0x060e02e8, int * 
0x060e02f0, unsigned int * 0x060e02f8, int 1, int (char *, unsigned int, void 
*)* 0x07718af0 MimeMessage_parse_line(char *, int, MimeObject *), void * 
0x060e02c0) line 255 + 29 bytes
MimeObject_parse_buffer(char * 0x062676c8, int 1343, MimeObject * 0x060e02c0) 
line 260 + 49 bytes
mime_display_stream_write(_nsMIMESession * 0x060e0358, const char * 0x062676c8, 
int 1343) line 909 + 20 bytes
nsStreamConverter::OnDataAvailable(nsStreamConverter * const 0x05f93c70, 
nsIRequest * 0x05fc2498, nsISupports * 0x00000000, nsIInputStream * 0x05ca6f08, 
unsigned int 0, unsigned int 1343) line 908 + 24 bytes
nsDocumentOpenInfo::OnDataAvailable(nsDocumentOpenInfo * const 0x05fc25c0, 
nsIRequest * 0x05fc2498, nsISupports * 0x00000000, nsIInputStream * 0x05ca6f08, 
unsigned int 0, unsigned int 1343) line 243 + 46 bytes
nsStreamListenerTee::OnDataAvailable(nsStreamListenerTee * const 0x0626be80, 
nsIRequest * 0x05fc2498, nsISupports * 0x00000000, nsIInputStream * 0x04a6e7f0, 
unsigned int 0, unsigned int 1343) line 97 + 51 bytes
nsOnDataAvailableEvent0::HandleEvent(nsOnDataAvailableEvent0 * const 0x060be258) 
line 426 + 47 bytes
nsStreamListenerEvent0::HandlePLEvent(PLEvent * 0x060be268) line 113 + 12 bytes
PL_HandleEvent(PLEvent * 0x060be268) line 596 + 10 bytes
PL_ProcessPendingEvents(PLEventQueue * 0x002f9290) line 526 + 9 bytes
_md_EventReceiverProc(HWND__ * 0x00fb0f34, unsigned int 49605, unsigned int 0, 
long 3117712) line 1077 + 9 bytes
USER32! 77e12e98()
USER32! 77e130e0()
USER32! 77e15824()
nsAppShellService::Run(nsAppShellService * const 0x00d44d50) line 451
main1(int 1, char * * 0x00304380, nsISupports * 0x00000000) line 1456 + 32 bytes
main(int 1, char * * 0x00304380) line 1805 + 37 bytes
mainCRTStartup() line 338 + 17 bytes
KERNEL32! 77e97d08(

Comment 1

15 years ago
there exist not any steps to reproduce it
so mark it invalid
Status: NEW → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → INVALID
(Reporter)

Comment 2

15 years ago
there's a stack. unless you can prove that the stack is no longer valid, do not
mark my bugs invalid.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---

Comment 3

15 years ago
hi, timeless,
please explain more in detail. thanks.
(Reporter)

Updated

15 years ago
QA Contact: huang → stephend

Comment 4

15 years ago
I see this constantly, especially when running with spam-filtering goop turned
on.  It appears that a MIME emitter is trying to update the charset on the mock
imap channel.  On the surface (and I say this not knowing the MIME code very
well at all), the MIME code appears reasonable.  I'm wondering if the right fix
might be to implement SetContentCharset on nsImapMockChannel and remove the
assertion.  Comments?
OS: Windows 2000 → All
Hardware: PC → All

Comment 5

15 years ago
More complete stacktrace info from gdb; the interesting part of the stack:

#0  0x40254c13 in nsDebug::Break(char const*, int) (
    aFile=0x42b87520
"/home/dmose/s/main-browser/mozilla/mailnews/imap/src/nsImapProtocol.cpp",
aLine=7920)
    at /home/dmose/s/main-browser/mozilla/xpcom/glue/nsDebug.cpp:344
	assertBehavior = 0xbfffff9d "trap"
#1  0x40254a6c in nsDebug::Assertion(char const*, char const*, char const*, int)
(aStr=0xbfffff00 "a/obj-gcc31-i686-pc-linux-gnu/dist/bin", 
    aExpr=0xbfffff00 "a/obj-gcc31-i686-pc-linux-gnu/dist/bin", 
    aFile=0x42b87520
"/home/dmose/s/main-browser/mozilla/mailnews/imap/src/nsImapProtocol.cpp",
aLine=7920)
    at /home/dmose/s/main-browser/mozilla/xpcom/glue/nsDebug.cpp:280
	buf = "###!!! ASSERTION: nsImapMockChannel::SetContentCharset: 'Not Reached',
file /home/dmose/s/main-browser/mozilla/mailnews/imap/src/nsImapProtocol.cpp,
line
7920\000B°\023À\b\001\000\000\000È\003²\bZ]ÆB\000\004\000\000\234\224\021Bhäÿ¿ ëÈBöÿÿÿ
æÿ¿"...
#2  0x40254edd in nsDebug::NotReached(char const*, char const*, int) (
    aMessage=0xbfffff00 "a/obj-gcc31-i686-pc-linux-gnu/dist/bin", 
    aFile=0xbfffff00 "a/obj-gcc31-i686-pc-linux-gnu/dist/bin", 
    aLine=-1073742080)
    at /home/dmose/s/main-browser/mozilla/xpcom/glue/nsDebug.cpp:457
No locals.
#3  0x42b511a2 in nsImapMockChannel::SetContentCharset(nsACString const&) (
    this=0x88c0b08, aContentCharset=@0xbfffe800)
    at /home/dmose/s/main-browser/mozilla/mailnews/imap/src/nsImapProtocol.cpp:7920
No locals.
#4  0x476e2dcf in nsMimeBaseEmitter::UpdateCharacterSet(char const*) (
    this=0x8b23478, aCharset=0x88d3700 "gb2312")
    at
/home/dmose/s/main-browser/mozilla/mailnews/mime/emitters/src/nsMimeBaseEmitter.cpp:589
	cPtr = 0x0
	contentType = {<nsCString> = {<nsAFlatCString> = {<nsASingleFragmentCString> =
{<nsACString> = {
          _vptr.nsACString = 0x402811e8}, <No data fields>}, <No data fields>},
<nsStr> = {{mStr = 0xbfffe820 "text/html", mUStr = 0xbfffe820}, mLength = 9, 
      mCapacityAndFlags = 63}, <No data fields>}, 
  mBuffer =
"text/html\000\000\000\224p,@ ëÈB\006\000\000\000\230èÿ¿è\032ÅB\0007\215\b\225\224A\b\006\000\000\000\212lÅB ëÈB\234\224A\b\230èÿ¿@\030ÅB"}
#5  0x42c69b39 in mimeEmitterUpdateCharacterSet (opt=0x8b23478, 
    aCharset=0xbfffff00 "a/obj-gcc31-i686-pc-linux-gnu/dist/bin")
    at /home/dmose/s/main-browser/mozilla/mailnews/mime/src/mimemoz2.cpp:1899
	emitter = (nsIMimeEmitter *) 0xbfffff00
	msd = (mime_stream_data *) 0xbfffff00
#6  0x42c5c77a in MimeMultipart_parse_line (
    line=0x8b23478 "\b×nG\230×nG°×nGÌ×nG\003", length=1, obj=0x8c348d8)
    at /home/dmose/s/main-browser/mozilla/mailnews/mime/src/mimemult.cpp:278
	cset = 0x88d3700 "gb2312"
	ct = 0x8419480 "text/plain; charset=\"gb2312\""
	isBody = 143472384
	isAlternative = 1
	mult = (MimeMultipart *) 0x8c348d8
	status = 0
	boundary = 143472384
#7  0x42c65f4a in convert_and_send_buffer (
    buf=0x8b6a1a0 "\nontent-Transfer-Encoding: quoted-printable\natus:
0001\nX-Mozilla-Status2: 00000000\nReturn-Path:
<sentto-1114339-15964-1034362005-dmose=mozilla.org@returns.groups.yahoo.com>\nReceived:
from inbound0.mv."..., 
    length=143472384, convert_newlines_p=1, 
    per_line_fn=0x42c5c2ee <MimeMultipart_parse_line>, closure=0xbfffff00)
    at /home/dmose/s/main-browser/mozilla/mailnews/mime/src/mimebuf.cpp:168
	newline = 0x8b23478 "\b×nG\230×nG°×nGÌ×nG\003"
#8  0x42c66127 in mime_LineBuffer (net_buffer=0x88d3700 "gb2312", 
    net_buffer_size=6551, bufferP=0x8c34900, buffer_sizeP=0x8c34908, 
    buffer_fpP=0x8c34910, convert_newlines_p=1, 
    per_line_fn=0x42c5c2ee <MimeMultipart_parse_line>, closure=0x8c348d8)
    at /home/dmose/s/main-browser/mozilla/mailnews/mime/src/mimebuf.cpp:253
	net_buffer_end = 0x4b2b2700 <Address 0x4b2b2700 out of bounds>
	newline = 0x8f2ccb5 " 
=B1=BE=D0=C5=CF=A2=D3=C9=C4=B3=BF=C6=D1=D0=B2=BF=C3=C5=B4=FA=C0=ED=C8=BA=B7=\n=A2=A3=AC=BE=B4=C7=EB=D4=AD=C1=C2=A3=AC\n\n=C4=E3=BA=C3=A3=BB=B1=BE=C8=CB=BC=AF=B8=F7=B5=D8=B3=A4=B4=A6=D1=D0=B4=B4=D6=\n=C6"...
	s = 0xbfffff00 "a/obj-gcc31-i686-pc-linux-gnu/dist/bin"
	status = -1073742080
#9  0x42c5d85b in MimeObject_parse_buffer (
    buffer=0xbfffff00 "a/obj-gcc31-i686-pc-linux-gnu/dist/bin", 
    size=-1073742080, obj=0x8c348d8)
    at /home/dmose/s/main-browser/mozilla/mailnews/mime/src/mimeobj.cpp:254
No locals.
#10 0x42c58ac9 in MimeMultipartRelated_parse_eof (obj=0x8b203c8, 
    abort_p=-1073742080)
    at /home/dmose/s/main-browser/mozilla/mailnews/mime/src/mimemrel.cpp:1027
	relobj = (MimeMultipartRelated *) 0x8b203c8
	status = 147015896
	body = (MimeObject *) 0x8c348d8
	ct = 0x0
	dct = 0x8c348d8 "`ØÈBH\030À\bÈ\004²\b"
#11 0x42c4cfaf in MimeContainer_parse_eof (object=0x8a31500, abort_p=0)
    at /home/dmose/s/main-browser/mozilla/mailnews/mime/src/mimecont.cpp:141
	lstatus = -1073742080
	kid = (MimeObject *) 0x4b2b2700
	i = 0
	cont = (MimeContainer *) 0x8a31500
	status = -1073742080
#12 0x42c5a124 in MimeMessage_parse_eof (obj=0x8a31500, abort_p=0)
    at /home/dmose/s/main-browser/mozilla/mailnews/mime/src/mimemsg.cpp:535
	status = -1073742080
	outer_p = -1073747304
	msg = (MimeMessage *) 0x8a31500
#13 0x42c67e8f in mime_display_stream_complete (stream=0xbfffff00)
    at /home/dmose/s/main-browser/mozilla/mailnews/mime/src/mimemoz2.cpp:929
	status = -1073742080
	abortNow = 0
	msd = (mime_stream_data *) 0x8a31500
	obj = (MimeObject *) 0x8a31500
#14 0x42c778f5 in nsStreamConverter::OnStopRequest(nsIRequest*, nsISupports*,
unsigned) (this=0x88326d8, request=0xbfffff00, ctxt=0xbfffff00, 
    status=3221225216)
    at
/home/dmose/s/main-browser/mozilla/mailnews/mime/src/nsStreamConverter.cpp:1070
	tSession = (_nsMIMESession *) 0x8bfc920
#15 0x41a615fa in nsDocumentOpenInfo::OnStopRequest(nsIRequest*, nsISupports*,
unsigned) (this=0x897c1a8, request=0xbfffff00, aCtxt=0xbfffff00, 
    aStatus=3221225216)
    at /home/dmose/s/main-browser/mozilla/uriloader/base/nsURILoader.cpp:256
	listener = {mRawPtr = 0x88326d8}
#16 0x42b4e935 in nsImapCacheStreamListener::OnStopRequest(nsIRequest*,
nsISupports*, unsigned) (this=0x8d2f848, request=0x89e1bbc, aCtxt=0xbfffff00, 
    aStatus=0)
    at /home/dmose/s/main-browser/mozilla/mailnews/imap/src/nsImapProtocol.cpp:7326
	ourRequest = {mRawPtr = 0x88c0b08}
	rv = 3221220264
	loadGroup = {mRawPtr = 0x0}
#17 0x40b0a9cb in nsOnStopRequestEvent::HandleEvent() (this=0x8c34950)
    at
/home/dmose/s/main-browser/mozilla/netwerk/base/src/nsRequestObserverProxy.cpp:212
	rv = 3221225216
	status = 0
	observer = {mRawPtr = 0x8d2f848}
Product: MailNews → Core

Updated

9 years ago
Assignee: mscott → nobody
Status: REOPENED → NEW
(In reply to comment #4)
> I'm wondering if the right fix might be to implement SetContentCharset on nsImapMockChannel

At least, it would be nice to resolve the warning:

[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1b3pre) Gecko/20081127 SeaMonkey/2.0a2pre] (home, debug default) (W2Ksp4)
(http://hg.mozilla.org/mozilla-central/rev/28a7fa014b03
+http://hg.mozilla.org/comm-central/rev/3c516d1c1248 + bug 419592 patch)

{
Begin mail message delivery.
Abort mail message delivery.
Begin mail message delivery.
WARNING: nsImapMockChannel::SetContentCharset() not implemented: file .../mailnews/imap/src/nsImapProtocol.cpp, line 8719
WARNING: nsImapMockChannel::SetContentCharset() not implemented: file .../mailnews/imap/src/nsImapProtocol.cpp, line 8719
End mail message delivery.
WARNING: nsImapMockChannel::SetContentCharset() not implemented: file .../mailnews/imap/src/nsImapProtocol.cpp, line 8719
WARNING: nsImapMockChannel::SetContentCharset() not implemented: file .../mailnews/imap/src/nsImapProtocol.cpp, line 8719
WARNING: nsImapMockChannel::SetContentCharset() not implemented: file .../mailnews/imap/src/nsImapProtocol.cpp, line 8719
WARNING: nsImapMockChannel::SetContentCharset() not implemented: file .../mailnews/imap/src/nsImapProtocol.cpp, line 8719
WARNING: nsImapMockChannel::SetContentCharset() not implemented: file .../mailnews/imap/src/nsImapProtocol.cpp, line 8719
WARNING: nsImapMockChannel::SetContentCharset() not implemented: file .../mailnews/imap/src/nsImapProtocol.cpp, line 8719
}
Flags: wanted-thunderbird3?
QA Contact: stephend → networking.imap
(Assignee)

Updated

9 years ago
Product: Core → MailNews Core
Flags: wanted-thunderbird3?
You need to log in before you can comment on or make changes to this bug.