Closed Bug 352146 Opened 18 years ago Closed 18 years ago

Thunderbird crashes when opening an email AND setup the use of an LDAP addressbook [@ nsAddrDatabase::GetRowFromAttribute]

Categories

(Thunderbird :: Address Book, defect)

defect
Not set
critical

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 165296

People

(Reporter: marinus, Assigned: mscott)

References

()

Details

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060808 Epiphany/2.14 SeaMonkey/1.0.3
Build Identifier: Thunderbird nl 1.5.0.5

When I create an account and setup the use of an LDAP addressbook (autocompletion)
Thunderbird will crash as soon as I try to open an existing email in my mailbox
The strange thing is that some users don't have this problem but other users do.
Deleting the profile and setup a new one helps. But as soon as I start using LDAP
again the problem is back. So I can't use our central addressbook.

More detailed information: http://forums.mozillazine.org/viewtopic.php?t=462303

Reproducible: Sometimes

Steps to Reproduce:
1. Create a new profile
2. make sure it uses an LDAP addressbook (OpenLDAP, in my case)
3. Open an existing email from your inbox

Actual Results:  
A segmentation fault. TB crashes.

Expected Results:  
My email would be opened

I posted the problem on the forums:
http://forums.mozillazine.org/viewtopic.php?t=462303

I also added strace information there. I hope that is helpfull.
No, I'm using Gentoo. Fot the most part uptodate ;)
Sorry I forgot to mention that.
*** Bug 352296 has been marked as a duplicate of this bug. ***
well, the problem i've seen is generally related to openldap and netscape ldap being in the same process and having similar function names.

if you have time, you can try:

./run-mozilla.sh `which ldd` ./thunderbird-bin
./run-mozilla.sh `which ldd` components/*

you kind of need to do this iteratively iirc.

and similar, and see if you can spot something that pulled in openldap.

alternatively, you can use ./run-mozilla.sh `which strace` -f ./thunderbird-bin and try to spot when openldap appears in your process.

note that the -f to strace is important, not doing it means that you're usually tracing /bin/sh or whatever your shell script host is, which is useless.

and lastly, you can use:
./run-mozilla.sh -g -d gdb ./thunderbird-bin
run
shar

it should list openldap. at which point, this becomes a dupe. and i'll blame gentoo :).
Reporter, do you use LDAP authentication or do you use nss_ldap within your glibc resolver?
Please check
https://bugzilla.novell.com/show_bug.cgi?id=157078
to see how this affects Thunderbird and SUSE Linux.
Wolfgang

I'm not using LDAP for authentication, only as central adderssbook
for outlook/thunderbird and evolution.

http://forums.gentoo.org/viewtopic-t-126278.html
Here is the output of ./run-mozilla.sh `which ldd` ./thunderbird-bin:

mario@leviathan /usr/lib/mozilla-thunderbird $ ./run-mozilla.sh `which ldd` ./thunderbird-bin
        linux-gate.so.1 =>  (0xffffe000)
        libmozjs.so => ./libmozjs.so (0xb7ea0000)
        libxpcom.so => ./libxpcom.so (0xb7e9c000)
        libxpcom_core.so => ./libxpcom_core.so (0xb7df9000)
        libplds4.so.6 => /usr/lib/nspr/libplds4.so.6 (0xb7df6000)
        libplc4.so.6 => /usr/lib/nspr/libplc4.so.6 (0xb7df1000)
        libnspr4.so.6 => /usr/lib/nspr/libnspr4.so.6 (0xb7db7000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7d51000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7d4c000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7a71000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb79f3000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb79da000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb79c4000)
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb79bc000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb7981000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb7923000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb78e9000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb78e6000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7860000)
        libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0xb7859000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb7833000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb773e000)
        libm.so.6 => /lib/libm.so.6 (0xb771b000)
        libstdc++.so.6 => /usr/lib/gcc/i386-pc-linux-gnu/4.1.1/libstdc++.so.6 (0xb763a000)
        libgcc_s.so.1 => /usr/lib/gcc/i386-pc-linux-gnu/4.1.1/libgcc_s.so.1 (0xb762f000)
        libc.so.6 => /lib/libc.so.6 (0xb7513000)
        /lib/ld-linux.so.2 (0xb7f3b000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb74a3000)
        libz.so.1 => /lib/libz.so.1 (0xb7492000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7463000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7443000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb7435000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb742b000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb7423000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb741f000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb7416000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb7411000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb73ee000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb73e4000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb73cc000)
        libXft.so.2 => /usr/lib/libXft.so.2 (0xb73ba000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb73b7000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb73b2000)


./run-mozilla.sh `which ldd` components/* gave an insane amount of
information. I doubt it will be usefull, so I decided not to post it.

This is the information of ./run-mozilla.sh -g -d gdb ./thunderbird-bin

mario@leviathan /usr/lib/mozilla-thunderbird $ ./run-mozilla.sh -g -d gdb ./thunderbird-bin
MOZILLA_FIVE_HOME=.
  LD_LIBRARY_PATH=.:./plugins:.
DISPLAY=:0.0
DYLD_LIBRARY_PATH=.:.
     LIBRARY_PATH=.:./components:.
       SHLIB_PATH=.:.
          LIBPATH=.:.
       ADDON_PATH=.
      MOZ_PROGRAM=./thunderbird-bin
      MOZ_TOOLKIT=
        moz_debug=1
     moz_debugger=gdb
/usr/bin/gdb ./thunderbird-bin -x /tmp/mozargs.9yN1vj
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-pc-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/lib/mozilla-thunderbird/thunderbird-bin
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 7765)]
[New Thread 32769 (LWP 7771)]
[New Thread 16386 (LWP 7772)]
[New Thread 32771 (LWP 7773)]
[New Thread 49156 (LWP 7774)]
[New Thread 65541 (LWP 7775)]
[New Thread 81926 (LWP 7776)]
[New Thread 98311 (LWP 7777)]
[New Thread 114696 (LWP 7779)]
[New Thread 131081 (LWP 7780)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 7765)]
0xb5e582d7 in NSGetModule () from /usr/lib/mozilla-thunderbird/components/libmail.so

(gdb) shar
Symbols already loaded for ./libmozjs.so
Symbols already loaded for ./libxpcom.so
Symbols already loaded for ./libxpcom_core.so
Symbols already loaded for /usr/lib/nspr/libplds4.so.6
Symbols already loaded for /usr/lib/nspr/libplc4.so.6
Symbols already loaded for /usr/lib/nspr/libnspr4.so.6
Symbols already loaded for /lib/libpthread.so.0
Symbols already loaded for /lib/libdl.so.2
Symbols already loaded for /usr/lib/libgtk-x11-2.0.so.0
Symbols already loaded for /usr/lib/libgdk-x11-2.0.so.0
Symbols already loaded for /usr/lib/libatk-1.0.so.0
Symbols already loaded for /usr/lib/libgdk_pixbuf-2.0.so.0
Symbols already loaded for /usr/lib/libpangocairo-1.0.so.0
Symbols already loaded for /usr/lib/libpango-1.0.so.0
Symbols already loaded for /usr/lib/libcairo.so.2
Symbols already loaded for /usr/lib/libgobject-2.0.so.0
Symbols already loaded for /usr/lib/libgmodule-2.0.so.0
Symbols already loaded for /usr/lib/libglib-2.0.so.0
Symbols already loaded for /usr/lib/libpangoxft-1.0.so.0
Symbols already loaded for /usr/lib/libpangoft2-1.0.so.0
Symbols already loaded for /usr/lib/libX11.so.6
Symbols already loaded for /lib/libm.so.6
Symbols already loaded for /usr/lib/gcc/i386-pc-linux-gnu/4.1.1/libstdc++.so.6
Symbols already loaded for /usr/lib/gcc/i386-pc-linux-gnu/4.1.1/libgcc_s.so.1
Symbols already loaded for /lib/libc.so.6
Symbols already loaded for /lib/ld-linux.so.2
Symbols already loaded for /usr/lib/libfreetype.so.6
Symbols already loaded for /lib/libz.so.1
Symbols already loaded for /usr/lib/libfontconfig.so.1
Symbols already loaded for /usr/lib/libexpat.so.1
Symbols already loaded for /usr/lib/libXext.so.6
Symbols already loaded for /usr/lib/libXrender.so.1
Symbols already loaded for /usr/lib/libXi.so.6
Symbols already loaded for /usr/lib/libXrandr.so.2
Symbols already loaded for /usr/lib/libXcursor.so.1
Symbols already loaded for /usr/lib/libXfixes.so.3
Symbols already loaded for /usr/lib/libpng12.so.0
Symbols already loaded for /usr/lib/libSM.so.6
Symbols already loaded for /usr/lib/libICE.so.6
Symbols already loaded for /usr/lib/libXft.so.2
Symbols already loaded for /usr/lib/libXau.so.6
Symbols already loaded for /usr/lib/libXdmcp.so.6
Symbols already loaded for /lib/libnss_compat.so.2
Symbols already loaded for /lib/libnsl.so.1
Symbols already loaded for /lib/libnss_nis.so.2
Symbols already loaded for /lib/libnss_files.so.2
Symbols already loaded for /usr/lib/gconv/ISO8859-1.so
Symbols already loaded for /usr/lib/gconv/UTF-16.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libchrome.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libpref.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libnecko.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libuconv.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libjar50.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/librdf.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libhtmlpars.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libdocshell.so
Symbols already loaded for /usr/lib/libgconf-2.so.4
Symbols already loaded for /usr/lib/libORBit-2.so.0
Symbols already loaded for /usr/lib/libgthread-2.0.so.0
Symbols already loaded for /usr/lib/libgnome-2.so.0
Symbols already loaded for /usr/lib/libgnomevfs-2.so.0
Symbols already loaded for /usr/lib/libbonobo-2.so.0
Symbols already loaded for /usr/lib/libbonobo-activation.so.4
Symbols already loaded for /usr/lib/libesd.so.0
Symbols already loaded for /usr/lib/libaudiofile.so.0
Symbols already loaded for /usr/lib/libpopt.so.0
Symbols already loaded for /usr/lib/libxml2.so.2
Symbols already loaded for /usr/lib/libssl.so.0.9.7
Symbols already loaded for /usr/lib/libcrypto.so.0.9.7
Symbols already loaded for /lib/libresolv.so.2
Symbols already loaded for /lib/libutil.so.1
Symbols already loaded for /lib/librt.so.1
Symbols already loaded for /usr/lib/libORBitCosNaming-2.so.0
Symbols already loaded for /usr/lib/libasound.so.2
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libxpconnect.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libi18n.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libwidget_gtk2.so
Symbols already loaded for ./libgkgfx.so
Symbols already loaded for ./libgtkxtbin.so
Symbols already loaded for /usr/lib/libXt.so.6
Symbols already loaded for /usr/lib/gtk-2.0/2.4.0/engines/libclearlooks.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libtoolkitcomps.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libembedcomponents.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libcaps.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libsystem-pref.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libappcomps.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libnsappshell.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libcommandlines.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libgfx_gtk.so
Symbols already loaded for ./libgfxpsshar.so
Symbols already loaded for /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libimglib2.so
Symbols already loaded for /usr/lib/libjpeg.so.62
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libgklayout.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libwebbrwsr.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libmail.so
Symbols already loaded for ./libxpcom_compat.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libpipboot.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libremoteservice.so
Symbols already loaded for /usr/lib/pango/1.5.0/modules/pango-basic-fc.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/libenigmime.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libeditor.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libtxmgr.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libimgicon.so
Symbols already loaded for /usr/lib/libgnomeui-2.so.0
Symbols already loaded for /usr/lib/libbonoboui-2.so.0
Symbols already loaded for /usr/lib/libgnome-keyring.so.0
Symbols already loaded for /usr/lib/libgnomecanvas-2.so.0
Symbols already loaded for /usr/lib/libart_lgpl_2.so.2
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libxpcom_compat_c.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libmork.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libpipnss.so
Symbols already loaded for /usr/lib/nss/libssl3.so.11
Symbols already loaded for /usr/lib/nss/libsmime3.so.11
Symbols already loaded for /usr/lib/nss/libnss3.so.11
Symbols already loaded for /usr/lib/nss/libsoftokn3.so.11
Symbols already loaded for /usr/lib/nss/libfreebl3.so
Symbols already loaded for /usr/lib/nss/libnssckbi.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libmsgsmime.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libmailcomps.so
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libmozgnome.so
Symbols already loaded for /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-png.so
Symbols already loaded for /lib/libnss_dns.so.2
Symbols already loaded for /usr/lib/mozilla-thunderbird/components/libwallet.so


I have no problem with you blaming Gentoo :) But please, do not forget
that I have this problem with winXP-SP2 machines. It's just nice I can
reproduce this bug on my Gentoobox. After all, Linux has much more tools
to pinpoint the excact problem. I really don't know how to debug with windows :P
Attached file GDB debug information. (deleted) —
A friend of mine (Plors, GParted) suggested to recompile TB with the debug-flag
enabled AND to post the stuff in an attatchment :S
So I recompiled TB with debug enabled, ran it with gdb again and pasted everything
into a textfile. This also contains backtrace information. I hope it is helpfull.
i'm not sure what you tried, but it didn't work, but it does exhonerate ldap.
there are two ways to enable debug:

--enable-debug
--enable-debugger-info-modules

be sure to include --disable-strip (or not to include the opposite)

Whiteboard: DUPEME
Emerging software with the USE-flag 'debug' enabled takes care of the --nostrip
option. However, I had no idea I had to start TB with a --enable-debug flag to
make it produce more debuginfo. So, I gave it another try. I hope I did it right
this time. If not, please tell me how to proceed. I ran:

./run-mozilla.sh -g -d gdb ./thunderbird-bin --enable-debug
run
shar
bt

Now, this problem occurs as soon as I setup the use of an LDAP addressbook.
So, I suspect(!!) this has something to do with LDAP. But I can imagine
that is not neccesarely the case. The strange this is that disabeling the
LDAP addressbook does not fix the problem after it started. I have to delete
the entire profile and setup a new one in order to make it work again.
Obviously without LDAP or it will start all over again.
The strange thing is that it works good at first. But as soon as I setup
a second profile on another computer, the account seems somehow to be cursed
and refuses to work with an LDAP addressbook.
somethinig went wrong, you didn't get symbols. could you try *not* using gentoo's build system? i don't have energy to debug it. (you're free to ask a gentoo channel why you didn't get symbols.)
Attached file Debug info from TB-1.5.0.7 (deleted) —
Ok, sorry for the late response. I was very busy this week.
I downloaded the source of TB-1.5.0.7 I couldn't find the source
of TB-1.5.0.5. But 1.5.0.7 has the same problem. I compiled the source
and used this --disable-strip option.

./configure --disable-strip --enable-application=mail
make

I really hope I did it right. I found 'run-mozilla' and 'thunderbird'
in the dist/bin directiory, so I cd'd there. After that I ran:

./run-mozilla.sh -g -d gdb ./thunderbird-bin --enable-debug
run
shar
bt

I output is in the attachment. Hopefully it's usefull. If not,
please tell me how to proceed.
thanks

*** This bug has been marked as a duplicate of 165296 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
mariourk - basically this is fixed on trunk but not on either branch, i.e. TB2.0 or TB1.5 branches. Look at bug 165296 for progress on when/if it goes into either of those branches (though after 25th September when Mark is back).
Ok, thanks a lot for the help. I will keep an eye on bug 165296.
I tried the latest version I could find (3.x) and it seems to be fixed
indeed. Unfortunately this version showed still some heavily development,
so it wasn't an option to actually use it :)

I hope the bug will be fixed in 1.5.0.8 ;)
Thanks for the help debugging, mariourk.
Hardware: PC → All
Summary: Thunderbird crashes when opening an email AND setup the use of an LDAP addressbook. → Thunderbird crashes when opening an email AND setup the use of an LDAP addressbook [@ nsAddrDatabase::GetRowFromAttribute]
Version: unspecified → 1.5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: