By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 489

Summary: Pidgin Fails to launch
Product: TDE Reporter: Raevyn <raevyn>
Component: other (any)Assignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: normal CC: bugwatch, darrella, mart1303
Priority: P5    
Version: 3.5.13 [Trinity]   
Hardware: All   
OS: Kubuntu Maverick   
Compiler Version: TDE Version String:
Application Version: Application Name:

Description Raevyn 2011-07-27 16:50:08 CDT
When you start Pidgin, it tries to start but eventually fails, never loading. Going to command line and typing LD_PRELOAD= pidgin does allow it to start, indicating it is a file picker issue.
Comment 1 Timothy Pearson 2011-07-27 17:08:01 CDT
Backtrace and valgrind

gdb pidgin
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/pidgin...Reading symbols from /usr/lib/debug/usr/bin/pidgin...done.
done.
(gdb) r
Starting program: /usr/bin/pidgin
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffe28dc700 (LWP 23570)]

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007fffdea9d046 in freebl_LoadDSO () at loader.c:165
#2  0x00007fffe30c897a in PR_CallOnce (once=0x7fffdecaaab4, func=0x7fffdeaa2b71) at prinit.c:807
#3  0x00007fffdea9b362 in RNG_RNGInit () at loader.c:840
#4  0x00007fffdea7c33b in nsc_CommonInitialize (pReserved=0x7fffffffb8d0, isFIPS=0) at pkcs11.c:2752
#5  0x00007fffdea7c5d7 in NSC_Initialize (pReserved=0x7fffffffb8d0) at pkcs11.c:2880
#6  0x00007fffe3daaefc in secmod_ModuleInit (mod=0x8608e0, reload=0x7fffdeaa2b71, alreadyLoaded=0x7fffffffb96c) at pk11load.c:252
#7  0x00007fffe3dab877 in secmod_LoadPKCS11Module (mod=0x8608e0, oldModule=0x7fffffffba20) at pk11load.c:503
#8  0x00007fffe3dc0a25 in SECMOD_LoadModule (
    modulespec=0x860570 "library= name=\"NSS Internal PKCS #11 Module\" parameters=\"configdir='' certPrefix='' keyPrefix='' secmod='' flags=readOnly,noCertDB,noModDB,forceOpen,optimizeSpace updatedir='' updateCertPrefix='' upda"...,
    parent=<value optimized out>, recurse=<value optimized out>) at pk11pars.c:1108
#9  0x00007fffe3dc0bb0 in SECMOD_LoadModule (
    modulespec=0x85e7e0 "name=\"NSS Internal Module\" parameters=\"configdir='' certPrefix='' keyPrefix='' secmod='' flags=readOnly,noCertDB,noModDB,forceOpen,optimizeSpace updatedir='' updateCertPrefix='' updateKeyPrefix='' upd"...,
    parent=<value optimized out>, recurse=<value optimized out>) at pk11pars.c:1143
#10 0x00007fffe3d8e6b4 in nss_InitModules (configdir=<value optimized out>, certPrefix=<value optimized out>, keyPrefix=<value optimized out>, secmodName=<value optimized out>, updateDir=<value optimized out>,
    updCertPrefix=<value optimized out>, updKeyPrefix=0x7fffe3e7408f "", updateID=0x7fffe3e7408f "", updateName=0x7fffe3e7408f "", initContextPtr=0x0, initParams=0x0, readOnly=1, noCertDB=1, noModDB=1, forceOpen=1, noRootInit=1,
    optimizeSpace=1, noSingleThreadedModules=0, allowAlreadyInitializedModules=0, dontFinalizeModules=0) at nssinit.c:461
#11 nss_Init (configdir=<value optimized out>, certPrefix=<value optimized out>, keyPrefix=<value optimized out>, secmodName=<value optimized out>, updateDir=<value optimized out>, updCertPrefix=<value optimized out>,
    updKeyPrefix=0x7fffe3e7408f "", updateID=0x7fffe3e7408f "", updateName=0x7fffe3e7408f "", initContextPtr=0x0, initParams=0x0, readOnly=1, noCertDB=1, noModDB=1, forceOpen=1, noRootInit=1, optimizeSpace=1,
    noSingleThreadedModules=0, allowAlreadyInitializedModules=0, dontFinalizeModules=0) at nssinit.c:620
#12 0x00007fffe3d8edd7 in NSS_NoDB_Init (configdir=<value optimized out>) at nssinit.c:840
#13 0x00007fffe40ae39f in ssl_nss_init_nss (plugin=<value optimized out>) at /build/buildd/pidgin-2.7.3/./libpurple/plugins/ssl/ssl-nss.c:130
#14 plugin_load (plugin=<value optimized out>) at /build/buildd/pidgin-2.7.3/./libpurple/plugins/ssl/ssl-nss.c:979
#15 0x00007ffff497be1f in purple_plugin_load (plugin=0x8136f0) at /build/buildd/pidgin-2.7.3/./libpurple/plugin.c:609
#16 0x00007fffe1cd6a0a in probe_ssl_plugins (plugin=0x83ab10) at /build/buildd/pidgin-2.7.3/./libpurple/plugins/ssl/ssl.c:50
#17 plugin_load (plugin=0x83ab10) at /build/buildd/pidgin-2.7.3/./libpurple/plugins/ssl/ssl.c:65
#18 0x00007ffff497be1f in purple_plugin_load (plugin=0x83ab10) at /build/buildd/pidgin-2.7.3/./libpurple/plugin.c:609
#19 0x00007ffff4999138 in ssl_init () at /build/buildd/pidgin-2.7.3/./libpurple/sslconn.c:50
#20 0x00007ffff4999149 in purple_ssl_init () at /build/buildd/pidgin-2.7.3/./libpurple/sslconn.c:316
#21 0x00007ffff495ff5f in purple_core_init (ui=<value optimized out>) at /build/buildd/pidgin-2.7.3/./libpurple/core.c:173
#22 0x0000000000481f55 in main (argc=1, argv=0x7fffffffe1d8) at /build/buildd/pidgin-2.7.3/./pidgin/gtkmain.c:858
(gdb) q
A debugging session is active.

        Inferior 1 [process 23519] will be killed.

Quit anyway? (y or n) y


valgrind pidgin
==23848== Memcheck, a memory error detector
==23848== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==23848== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==23848== Command: pidgin
==23848==
==23848== Jump to the invalid address stated on the next line
==23848==    at 0x0: ???
==23848==    by 0x1F391045: freebl_LoadDSO (loader.c:165)
==23848==    by 0x1AD39979: PR_CallOnce (prinit.c:807)
==23848==    by 0x1F38F361: RNG_RNGInit (loader.c:840)
==23848==    by 0x1F37033A: nsc_CommonInitialize (pkcs11.c:2752)
==23848==    by 0x1F3705D6: NSC_Initialize (pkcs11.c:2880)
==23848==    by 0x19F94EFB: secmod_ModuleInit (pk11load.c:252)
==23848==    by 0x19F95876: secmod_LoadPKCS11Module (pk11load.c:503)
==23848==    by 0x19FAAA24: SECMOD_LoadModule (pk11pars.c:1108)
==23848==    by 0x19FAABAF: SECMOD_LoadModule (pk11pars.c:1143)
==23848==    by 0x19F786B3: nss_Init (nssinit.c:461)
==23848==    by 0x19F78DD6: NSS_NoDB_Init (nssinit.c:840)
==23848==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23848==
==23848==
==23848== Process terminating with default action of signal 11 (SIGSEGV)
==23848==  Bad permissions for mapped region at address 0x0
==23848==    at 0x0: ???
==23848==    by 0x1F391045: freebl_LoadDSO (loader.c:165)
==23848==    by 0x1AD39979: PR_CallOnce (prinit.c:807)
==23848==    by 0x1F38F361: RNG_RNGInit (loader.c:840)
==23848==    by 0x1F37033A: nsc_CommonInitialize (pkcs11.c:2752)
==23848==    by 0x1F3705D6: NSC_Initialize (pkcs11.c:2880)
==23848==    by 0x19F94EFB: secmod_ModuleInit (pk11load.c:252)
==23848==    by 0x19F95876: secmod_LoadPKCS11Module (pk11load.c:503)
==23848==    by 0x19FAAA24: SECMOD_LoadModule (pk11pars.c:1108)
==23848==    by 0x19FAABAF: SECMOD_LoadModule (pk11pars.c:1143)
==23848==    by 0x19F786B3: nss_Init (nssinit.c:461)
==23848==    by 0x19F78DD6: NSS_NoDB_Init (nssinit.c:840)
==23848==
==23848== HEAP SUMMARY:
==23848==     in use at exit: 1,337,747 bytes in 12,891 blocks
==23848==   total heap usage: 160,533 allocs, 147,642 frees, 7,571,914 bytes allocated
==23848==
==23848== LEAK SUMMARY:
==23848==    definitely lost: 858 bytes in 5 blocks
==23848==    indirectly lost: 416 bytes in 13 blocks
==23848==      possibly lost: 460,149 bytes in 4,597 blocks
==23848==    still reachable: 876,324 bytes in 8,276 blocks
==23848==         suppressed: 0 bytes in 0 blocks
==23848== Rerun with --leak-check=full to see details of leaked memory
==23848==
==23848== For counts of detected and suppressed errors, rerun with: -v
==23848== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 284 from 5)
Killed
Comment 2 Timothy Pearson 2011-07-27 19:13:27 CDT
This crash is caused by the nspr library not being loaded, which prevents kgtk from accessing the "real" version of the PR_FindFunctionSymbol function.  kgtk therefore also depends on nspr when accessing nspr-dependent programs.

This bug has been fixed in the following SVN revisions:
1243491
1243492
1243493
Comment 3 Timothy Pearson 2011-12-21 00:26:32 CST
*** Bug 458 has been marked as a duplicate of this bug. ***