Closed Bug 433530 Opened 17 years ago Closed 4 years ago

Thunderbird segfaults on strtok in LDAP calls - crash

Categories

(Thunderbird :: Address Book, defect)

x86
Linux
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: brett, Unassigned)

References

Details

(Keywords: crash, Whiteboard: [core issue in bug 292127])

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5) Gecko/2008032619 Firefox/3.0b5 Build Identifier: Thunderbird 2.0.0.14, Copyright (c) 1998-2008 mozilla.org Thunderbird just segfaults when I try and run it. Running thunderbird -g Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb70fa720 (LWP 10422)] 0xb732bcc5 in strtok () from /lib/i686/cmov/libc.so.6 (gdb) bt full #0 0xb732bcc5 in strtok () from /lib/i686/cmov/libc.so.6 No symbol table info available. #1 0xb75f9514 in ldap_str2charray () from ./libldap50.so No symbol table info available. #2 0xb6f079d4 in ?? () from /usr/lib/libldap_r-2.4.so.2 No symbol table info available. #3 0xb6f1bc3b in ?? () from /usr/lib/libldap_r-2.4.so.2 No symbol table info available. #4 0xb6f1b5ec in ?? () from /usr/lib/libldap_r-2.4.so.2 No symbol table info available. #5 0x00000000 in ?? () No symbol table info available. Reproducible: Always Steps to Reproduce: 1. Start thunderbird. Actual Results: Segfualt
Wrong version of some library? Might need libstdc++.so.5
It's there. $ ls -l /usr/lib/libstdc++.so.5 lrwxrwxrwx 1 root root 18 2008-04-08 13:11 /usr/lib/libstdc++.so.5 -> libstdc++.so.5.0.7 $ ldd thunderbird-bin linux-gate.so.1 => (0xffffe000) libmozjs.so => /usr/lib/libmozjs.so (0xb7e2b000) libxpcom.so => not found libxpcom_core.so => not found libplds4.so => /usr/lib/libplds4.so (0xb7e27000) libplc4.so => /usr/lib/libplc4.so (0xb7e23000) libnspr4.so => /usr/lib/libnspr4.so (0xb7df0000) libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7dd8000) libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7dd3000) libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7a5d000) libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb79d9000) libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb79be000) libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb79a6000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0xb799e000) libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0xb7993000) libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb7955000) libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb7919000) libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb7915000) libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7865000) libX11.so.6 => /usr/lib/libX11.so.6 (0xb7778000) libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb7774000) libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb774f000) libsmime3.so => not found libssl3.so => not found libnss3.so => not found libsoftokn3.so => not found libldap50.so => not found libprldap50.so => not found libXt.so.6 => /usr/lib/libXt.so.6 (0xb76fe000) libXft.so.2 => /usr/lib/libXft.so.2 (0xb76eb000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb767c000) libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7674000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb764b000) libxpcom_compat.so => not found libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb7590000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7583000) libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7435000) /lib/ld-linux.so.2 (0xb7eee000) libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb742b000) libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xb7428000) libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb7424000) libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb741f000) libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb73be000) libXext.so.6 => /usr/lib/libXext.so.6 (0xb73b0000) libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb73ad000) libXi.so.6 => /usr/lib/libXi.so.6 (0xb73a4000) libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb739e000) libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb7395000) libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb736d000) libselinux.so.1 => /lib/libselinux.so.1 (0xb7354000) libpcre.so.3 => /usr/lib/libpcre.so.3 (0xb732c000) libXau.so.6 => /usr/lib/libXau.so.6 (0xb7329000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7324000) librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb731b000) libSM.so.6 => /usr/lib/libSM.so.6 (0xb7313000) libICE.so.6 => /usr/lib/libICE.so.6 (0xb72fb000) libz.so.1 => /usr/lib/libz.so.1 (0xb72e6000) libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb72c6000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb72a3000) libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb727a000)
Still seeing segfaults even using latest 2.0.0.21?
Version: unspecified → 2.0
Yes, I think this bug is related to Bug 292127.
is there a helpful signature we can put in the summary? (please add keyword=crash to crashes)
Status: UNCONFIRMED → NEW
Depends on: 292127
Ever confirmed: true
Keywords: crash
Summary: Thunderbird segfaults on strtok in LDAP calls → Thunderbird segfaults on strtok in LDAP calls - crash
not found as top of stack in any recent v3 crashes. But, that's not surprising for linux :(
I have the same problem, with the openSUSE provided thunderbird package as well as with a official Mozilla package. GDB prints this when terminating the program: Program received signal SIGSEGV, Segmentation fault. strtok_r () at ../sysdeps/x86_64/strtok.S:190 190 movb $0, (%rdx) /* Terminate string. */ The stack trace looks like this (I attached the full one): #0 strtok_r () at ../sysdeps/x86_64/strtok.S:190 #1 0x00007ffff1ee9ef0 in ldap_str2charray (str=0x7fffeb1b27cc "ldap://localhost/", brkstr=0x7fffeb1b252c ", ") at charray.c:218 #2 0x00007fffeb19e2c6 in ldap_url_parselist_int (ludlist=0x7fffeb3bcf60, url=<value optimized out>, sep=<value optimized out>, flags=11) at url.c:1293 #3 0x00007fffeb19fcc1 in ldap_int_initialize_global_options (gopts=0x7fffeb3bcea0, dbglvl=<value optimized out>) at init.c:528 #4 0x00007fffeb19fe4d in ldap_int_initialize (gopts=0x7fffeb3bcea0, dbglvl=<value optimized out>) at init.c:643 #5 0x00007fffeb185855 in ldap_create (ldp=0x7fffffffa3b8) at open.c:106 #6 0x00007fffeb185bff in ldap_initialize (ldp=0x7fffeb5d3360, url=0x7fffeb5d3b92 "ldap://intern.wagner-net") at open.c:223 #7 0x00007fffeb3c301f in do_init_session () at ldap-nss.c:1051 #8 do_init () at ldap-nss.c:1350 #9 0x00007fffeb3c438a in _nss_ldap_search_s (args=0x7fffffffbdb0, filterprot=0x7fffeb5d81a0 "(&(objectClass=posixAccount)(uid=%s))", sel=LM_PASSWD, user_attrs=0x0, sizelimit=1, res=0x7fffffffbd40) at ldap-nss.c:3086 #10 0x00007fffeb3c5b6d in _nss_ldap_getbyname (args=0x7fffffffbdb0, result=0x7fffffffc040, buffer=0x7fffed65a800 "+", buflen=1024, errnop=0x7ffff7fc1798, filterprot=<value optimized out>, sel=LM_PASSWD, parser=0x7fffeb3c5f00 <_nss_ldap_parse_pw>) at ldap-nss.c:3520 #11 0x00007fffeb3c6297 in _nss_ldap_getpwnam_r (name=<value optimized out>, result=<value optimized out>, buffer=<value optimized out>, buflen=<value optimized out>, errnop=<value optimized out>) at ldap-pwd.c:245 #12 0x00007fffeb7f9f15 in getpwnam_plususer (name=0x7fffffffedcf "gerhard", result=0x7fffffffc040, ent=0x7fffffffbeb0, buffer=0x7fffed65a800 "+", buflen=1024, errnop=0x7ffff7fc1798) at nss_compat/compat-pwd.c:504 #13 0x00007fffeb7fabbb in internal_getpwnam_r (name=0x7fffffffedcf "gerhard", pwd=0x7fffffffc040, buffer=0x7fffed65a800 "+", buflen=1024, errnop=0x7ffff7fc1798) at nss_compat/compat-pwd.c:839 #14 _nss_compat_getpwnam_r (name=0x7fffffffedcf "gerhard", pwd=0x7fffffffc040, buffer=0x7fffed65a800 "+", buflen=1024, errnop=0x7ffff7fc1798) at nss_compat/compat-pwd.c:873 #15 0x00007ffff0697705 in __getpwnam_r (name=0x7fffffffedcf "gerhard", resbuf=0x7fffffffc040, buffer=0x7fffed65a800 "+", buflen=1024, result=0x7fffffffc078) at ../nss/getXXbyYY_r.c:253 #16 0x00007ffff34586cd in ?? () from /lib64/libglib-2.0.so.0 #17 0x00007ffff3459535 in g_get_home_dir () from /lib64/libglib-2.0.so.0 #18 0x00007ffff5ad8d65 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 #19 0x00007ffff5ad8f16 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 #20 0x00007ffff5ad909c in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 #21 0x00007ffff5b85192 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 #22 0x00007ffff3f434a0 in g_type_module_use () from /lib64/libgobject-2.0.so.0 #23 0x00007ffff5b85355 in gtk_theme_engine_get () from /usr/lib64/libgtk-x11-2.0.so.0 #24 0x00007ffff5b0cde9 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 #25 0x00007ffff5b0dc00 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 #26 0x00007ffff5b0dd91 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 #27 0x00007ffff5b0c5ff in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 #28 0x00007ffff5b0dc00 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 #29 0x00007ffff5b0dd91 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 #30 0x00007ffff5b0e237 in gtk_rc_reparse_all_for_settings () from /usr/lib64/libgtk-x11-2.0.so.0 #31 0x00007ffff5b2b195 in gtk_settings_get_for_screen () from /usr/lib64/libgtk-x11-2.0.so.0 #32 0x00007ffff5b3fdb9 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 #33 0x00007ffff3f40413 in g_type_create_instance () from /lib64/libgobject-2.0.so.0 #34 0x00007ffff3f1dcbc in ?? () from /lib64/libgobject-2.0.so.0 #35 0x00007ffff3f20fe1 in g_object_newv () from /lib64/libgobject-2.0.so.0 #36 0x00007ffff3f21cdc in g_object_new () from /lib64/libgobject-2.0.so.0 #37 0x00007ffff5bddfcd in gtk_widget_get_default_style () from /usr/lib64/libgtk-x11-2.0.so.0 #38 0x00007ffff5bde075 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 #39 0x00007ffff3f401b8 in g_type_create_instance () from /lib64/libgobject-2.0.so.0 #40 0x00007ffff3f1dcbc in ?? () from /lib64/libgobject-2.0.so.0 #41 0x00007ffff5aacd6b in ?? () from /usr/lib64/libgtk-x11-2.0.so.0 #42 0x00007ffff3f20fe1 in g_object_newv () from /lib64/libgobject-2.0.so.0 #43 0x00007ffff3f21cdc in g_object_new () from /lib64/libgobject-2.0.so.0 #44 0x00000000005f8b4a in nsLookAndFeel::InitWidget (this=0x7fffed6c7160) at nsLookAndFeel.h:96 #45 0x00000000005f8b1c in nsLookAndFeel::nsLookAndFeel (this=0x7fffed6c7160) at nsLookAndFeel.cpp:82 #46 0x00000000005f7974 in nsLookAndFeelConstructor (aOuter=<value optimized out>, aIID=..., aResult=0x7fffffffd220) at nsWidgetFactory.cpp:93 #47 0x00007ffff7439bb7 in nsComponentManagerImpl::CreateInstance (this=<value optimized out>, aClass=<value optimized out>, aDelegate=0x0, aIID=..., aResult=0x7fffffffd220) at nsComponentManager.cpp:1597 #48 0x00007ffff743a500 in nsComponentManagerImpl::GetService (this=0x7fffeddba160, aClass=..., aIID=..., result=0x7fffffffd2a8) at nsComponentManager.cpp:1901 #49 0x00007ffff740eca6 in nsGetServiceByCID::operator() (this=<value optimized out>, aIID=<value optimized out>, aInstancePtr=0x7fffffffd2a8) at nsComponentManagerUtils.cpp:256 #50 0x00007ffff740e3da in nsCOMPtr_base::assign_from_gs_cid (this=0x7fffffffd2d0, gs=..., iid=<value optimized out>) at nsCOMPtr.cpp:114 #51 0x0000000000b45260 in nsChromeRegistry::CheckForOSAccessibility (this=0x7fffedd85340) at nsChromeRegistry.cpp:549 #52 0x0000000000448592 in ScopedXPCOMStartup::SetWindowCreator (this=<value optimized out>, native=<value optimized out>) at nsAppRunner.cpp:1232 #53 0x000000000044b83a in XRE_main (argc=<value optimized out>, argv=<value optimized out>, aAppData=<value optimized out>) at nsAppRunner.cpp:3290 #54 0x00000000004473c5 in main (argc=1, argv=0x7fffffffded8) at nsMailApp.cpp:104 The system is configured for LDAP logins and works with those as expected. This is not a Thunderbird profile issue, as the problem stays the same with a fresh profile.
and I forgot, this happens for me with Thunderbird 3.1.10
I have seen (most likely) the same with Seamonkey 2.1rc2 on openSUSE. A fresh install of the whole system (unrelated to this particular problem) solved it. (In reply to comment #9) > and I forgot, this happens for me with Thunderbird 3.1.10 Philipp, can you make sure your system is updated correctly? I'd say it is a library version mismatch as Magnus suggested in comment #1.
I believe this is a duplicate of bug 292127, the evidence I've seen in this bug points to the same issue.
@Petr Cerny: I did a new installation of openSUSE 11.4, not an upgrade. @Mark Banner: might be, I'll read through it and try to follow-up there if possible.
The core issue is bug 292127 and this issue depends on it, i.e. this issue is in the Thunderbird product to be easy to find.
Whiteboard: [core issue in bug 292127]
Blocks: 605483

bug 292127 comment 94 states workaround "sudo apt install nscd"

We're now using a different ldap implementation

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: