Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377261 - mail-client/thunderbird: Segmentation fault on start with nss_ldap
Summary: mail-client/thunderbird: Segmentation fault on start with nss_ldap
Status: RESOLVED DUPLICATE of bug 417687
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
: 391807 (view as bug list)
Depends on:
Reported: 2011-08-01 11:27 UTC by Jaroslav Hron
Modified: 2012-06-04 08:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Hron 2011-08-01 11:27:47 UTC
thunderbird segfaults without any other error message immediately after start

Reproducible: Always

Steps to Reproduce:
1. start thunderbird
Actual Results:  
Segmentation fault

Expected Results:  
run :-)

/usr/lib64/thunderbird/ -g /usr/lib64/thunderbird/thunderbird-bin


/usr/lib64/thunderbird/ line 116: type: ddd: not found
/usr/bin/gdb  --args /usr/lib64/thunderbird/thunderbird-bin
GNU gdb (Gentoo 7.2 p1) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /usr/lib64/thunderbird/thunderbird-bin...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/lib64/thunderbird/thunderbird-bin 
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff50de70b in strtok_r () from /lib64/
(gdb) where
#0  0x00007ffff50de70b in strtok_r () from /lib64/
#1  0x00007ffff2dbbb8f in ldap_str2charray () from /usr/lib64/thunderbird/
#2  0x00007fffe851fde6 in ?? () from /usr/lib64/
#3  0x00007fffe852170b in ldap_int_initialize_global_options () from /usr/lib64/
#4  0x00007fffe852186d in ldap_int_initialize () from /usr/lib64/
#5  0x00007fffe8507e1e in ldap_create () from /usr/lib64/
#6  0x00007fffe850824a in ldap_initialize () from /usr/lib64/
#7  0x00007fffe874485f in ?? () from /usr/lib64/
#8  0x00007fffe87463fc in ?? () from /usr/lib64/
#9  0x00007fffe8747aed in ?? () from /usr/lib64/
#10 0x00007fffe87481f7 in _nss_ldap_getpwnam_r () from /usr/lib64/
#11 0x00007ffff50ffe9d in getpwnam_r () from /lib64/
#12 0x00007ffff03e57d2 in ?? () from /usr/lib64/
#13 0x00007ffff03e6635 in g_get_home_dir () from /usr/lib64/
#14 0x00007fffefeb5036 in ?? () from /usr/lib64/
#15 0x00007fffefeb969f in ?? () from /usr/lib64/
#16 0x00007fffefe69945 in ?? () from /usr/lib64/
#17 0x00007ffff03bee58 in g_option_context_parse () from /usr/lib64/
#18 0x00007fffefe69e28 in gtk_parse_args () from /usr/lib64/
#19 0x00007ffff5c3bc99 in XRE_main () from /usr/lib64/thunderbird/
#20 0x0000000000401ad1 in ?? ()
#21 0x00007ffff507ecdd in __libc_start_main () from /lib64/
#22 0x00000000004018a9 in ?? ()
#23 0x00007fffffffd1a8 in ?? ()
#24 0x000000000000001c in ?? ()
#25 0x0000000000000001 in ?? ()
#26 0x00007fffffffd67a in ?? ()
#27 0x0000000000000000 in ?? ()
Comment 1 Jaroslav Hron 2011-08-01 11:29:21 UTC
seems that solution was to uninstall nss_ldap

emerge --unmerge nss_ldap

then everything works again....
Comment 3 Alexander Bezrukov 2012-04-24 23:14:34 UTC
I can confirm this problem with newly installed thunderbird-10.0.3.
Uninstalling nss_ldap is not a viable solution for me, as I use it for authentication.

The immediate crash happens in a call to strtok_r("ldap://localhost/", ", ", &some_valid_storage_on_stack), so something has got badly broken before.
Comment 4 Jory A. Pratt gentoo-dev 2012-06-01 12:50:15 UTC
*** Bug 391807 has been marked as a duplicate of this bug. ***
Comment 5 Jory A. Pratt gentoo-dev 2012-06-01 12:51:35 UTC
Work is underway in another bug to resolve the conflict and use bundled ldap instead of finding system ldap

*** This bug has been marked as a duplicate of bug 417687 ***
Comment 6 Jaroslav Hron 2012-06-04 08:44:58 UTC
Why not to use system ldap?

Currently my only solution to run thunderbird is:

cd /usr/lib64/thunderbird
ln -s ../ ./