Closed Bug 280177 Opened 20 years ago Closed 20 years ago

Mozilla dies with X Error in mail composer

Categories

(SeaMonkey :: MailNews: Message Display, defect)

Sun
Solaris
defect
Not set
critical

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 254049

People

(Reporter: martin.gerbershagen, Assigned: sspitzer)

Details

(Keywords: crash)

User-Agent:       Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8a6) Gecko/20050118
Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8a6) Gecko/20050118

Mozilla dies with X Error in the mail composer, if the recipient address
is obtained from the personal address book.

Reproducible: Always

Steps to Reproduce:
1. Open the mail window in IMAP mode and login to the IMAP server.
2. open the local Sent folder.
3. open last message from Sent folder
4. click compose button
5. click address button in composer window and select any address from the
   personal adress book


Actual Results:  
Mozilla dies with different X Errors. In stdout I get the following message:

WARNING: NAME not specified in initial startup message
X Error of failed request:  BadPixmap (invalid Pixmap parameter)
  Major opcode of failed request:  54 (X_FreePixmap)
  Resource id in failed request:  0x6000605
  Serial number of failed request:  24046
  Current serial number in output stream:  24049

Attaching gdb and setting a breakpoint on exit gives this stack:

(gdb) bt
#0  0xfea9fb90 in exit () from /usr/lib/libc.so.1
#1  0xfed50f38 in _XDefaultError () from /usr/lib/libX11.so.4
#2  0xfd6b6b08 in NSGetModule () from
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libwidget_gtk.so
#3  0xfed3c464 in _XError () from /usr/lib/libX11.so.4
#4  0xfed26170 in _XEventsQueued () from /usr/lib/libX11.so.4
#5  0xfed25c68 in XPending () from /usr/lib/libX11.so.4
#6  0xff0cd2a8 in gdk_event_check () from
/ul30/gm0730/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/libgdk-1.2.so.0
#7  0xfee26658 in g_main_iterate () from
/ul30/gm0730/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/libglib-1.2.so.0
#8  0xfee26a10 in g_main_run () from
/ul30/gm0730/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/libglib-1.2.so.0
#9  0xfef62e98 in gtk_main () from
/ul30/gm0730/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/libgtk-1.2.so.0
#10 0xfd69d950 in Flist () from
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libwidget_gtk.so
#11 0xfd762530 in NSGetModule () from
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libappcomps.so
#12 0x00014cdc in _end ()
#13 0x00015868 in main ()

The symptoms indicate a memory corruption, because the behaviour is slightly 
different from case to case. Common to all is the usage of the address selection
window and a subsequent process termination.


Used modern theme. Mozilla was compiled with gcc 3.3.2 under solaris2.8 with
system libz, libjpeg, libpng and gtk 1.2.
The following libraries were used:

/ul30/gm0730/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/libgcc_s.so.1
/ul30/gm0730/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/libgdk-1.2.so.0.9.1
/ul30/gm0730/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/libglib-1.2.so.0.0.9
/ul30/gm0730/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/libgmodule-1.2.so.0.0.9
/ul30/gm0730/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/libgtk-1.2.so.0.9.1
/ul30/gm0730/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/libjpeg.so.62.0.0
/ul30/gm0730/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/libpng.so.3.1.2.7
/ul30/gm0730/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/libstdc++.so.5.0.5
/ul30/gm0730/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/libz.so.1.2.2
/ul30/gm0730/usr/local/lib/mozilla-1.8a5/libnssckbi.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libaddrbook.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libappcomps.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libbayesflt.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libcaps.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libchrome.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libcookie.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libdocshell.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libeditor.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libembedcomponents.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libgfx_gtk.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libgklayout.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libgkplugin.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libhtmlpars.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libi18n.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libimglib2.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libjar50.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libjsd.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/liblocalmail.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libmailnews.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libmailview.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libmime.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libmork.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libmsgcompose.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libmsgdb.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libmsgimap.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libmsgsmime.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libnecko.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libnsappshell.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/liboji.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libp3p.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libpermissions.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libpipboot.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libpipnss.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libpref.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libprofile.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/librdf.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libsroaming.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libtxmgr.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libtypeaheadfind.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libuconv.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libwallet.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libwebbrwsr.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libwidget_gtk.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libxpcom_compat_c.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libxpconnect.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/components/libxremoteservice.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/cpu/sparcv8plus/libnspr_flt4.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libfreebl_hybrid_3.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libgfxpsshar.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libgkgfx.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libgtksuperwin.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libgtkxtbin.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libjsj.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libmozjs.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libmsgbaseutil.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libnspr4.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libnss3.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libplc4.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libplds4.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libsmime3.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libsoftokn3.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libssl3.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libxpcom.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libxpcom_compat.so
/ul30/gm0730/usr/local/lib/mozilla-1.8a6/libxpcom_core.so
/usr/lib/iconv/646%UTF-16BE.so
/usr/lib/iconv/UTF-16BE%646.so
/usr/lib/libaio.so.1
/usr/lib/libc.so.1
/usr/lib/libdl.so.1
/usr/lib/libm.so.1
/usr/lib/libmp.so.2
/usr/lib/libnsl.so.1
/usr/lib/libpthread.so.1
/usr/lib/librt.so.1
/usr/lib/libsocket.so.1
/usr/lib/libthread.so.1
/usr/openwin/lib/libICE.so.6
/usr/openwin/lib/libSM.so.6
/usr/openwin/lib/libX11.so.4
/usr/openwin/lib/libXext.so.0
/usr/openwin/lib/libXt.so.4
/usr/platform/sun4u/lib/libc_psr.so.1
Can you recompile mozilla with -g so we can get a better stack in order to
pinpoint the problem. Stripped stacks are pretty much usless.
(In reply to comment #1)
> Can you recompile mozilla with -g so we can get a better stack in order to
> pinpoint the problem. Stripped stacks are pretty much usless.

I think this doesn't help, this stack looks quite useful (or do you see any
missing function names?).
This looks like the crash in bug 254049 - which has only been recorded on Linux
so far, but the results are similar to what I have seen previously with that bug.

Reporter - there is a patch attached to that bug, as it sounds like you can
compile your own build, would you try applying it and retesting, and report back
on the results please?
Keywords: crash
The suggested patch from bug 254049 helps. I applied the patch and then
the crash bib not occur again.
I am getting the same problem on some Solaris 8 systems on Mozilla 1.7.5, the
build was compiled with Sun Studio 8. The errors i am getting is...

X Error of failed request:  BadAtom (invalid Atom parameter)
  Major opcode of failed request:  17 (X_GetAtomName)
  Atom id in failed request:  0x0
  Serial number of failed request:  13482
  Current serial number in output stream:  13482

I am checking Solaris 8 patch versions to ensure i don't have a library or Xsun
error. 
please try using the information at:
http://www.unixos2.org/sw/pub/docs/porting/debugging.html#xerrors
Based on the symptoms, and Martin's comments (in #4) resolving as duplicate of
bug 254049. Please re-open if the symptoms persist on new builds.

Mick Kelleher: If your symptoms are persisting (although similar, they are
possibly different), please find another similar bug or open a new one. Thanks.

*** This bug has been marked as a duplicate of 254049 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
verified dup
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.