[Pidgin] #442: Program received signal SIGSEGV on startup, pidgin-2.0.0beta7 on FreeBSD (compiled manually, not through Ports)

Pidgin trac at pidgin.im
Mon Apr 30 15:58:22 EDT 2007


#442: Program received signal SIGSEGV on startup, pidgin-2.0.0beta7 on FreeBSD
(compiled manually, not through Ports)
------------------------+---------------------------------------------------
 Reporter:  fongsaiyuk  |       Type:  defect
   Status:  new         |   Priority:  minor 
Component:  libpurple   |    Version:  2.0   
 Keywords:              |  
------------------------+---------------------------------------------------
 pidgin-2.0.0beta7 segfaults immediately at startup. I compiled pidgin on
 FreeBSD 6.2-RELEASE-p0 using the beta7 source tarball available on
 Sourceforge. I compiled pidgin with the following commands/options:


 {{{
 env CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib
 --prefix=/usr/opt --enable-debug=yes --enable-mcheck=yes --disable-
 startup-notification=yes ./configure
 }}}

 configure displayed the following options:


 {{{
 pidgin 2.0.0beta7

 Build GTK+ 2.x UI............. : yes
 Build console UI.............. : no

 Protocols to build dynamically : bonjour gg irc jabber msn novell oscar qq
 simple yahoo zephyr
 Protocols to link statically.. :

 Build with GStreamer support.. : yes
 Build with D-Bus support...... : yes
 D-Bus services directory...... : /usr/opt/share/dbus-1/services
 Build with NetworkManager..... : no
 SSL Library/Libraries......... : Mozilla NSS and GnuTLS
 Build with Cyrus SASL support. : no
 Use kerberos 4 with zephyr.... : no
 Use external libzephyr........ : no
 Has you....................... : yes

 Use XScreenSaver Extension.... : yes
 Use X Session Management...... : yes
 Use startup notification...... : yes
 Build with GtkSpell support... : yes

 Build with plugin support..... : yes
 Build with Mono support....... : no
 Build with Perl support....... : yes
 Build with Tcl support........ : no
 Build with Tk support......... : no

 Print debugging messages...... : no
 Assertions are fatal.......... : no

 Pidgin will be installed in /usr/opt/bin.

 configure complete, now type 'make'
 }}}


 {{{
 gmake
 gmake install
 }}}


 I realize /usr/opt is a nonstandard directory on FreeBSD. I installed
 pidgin there on purpose, as I used the beta7 source tarball rather than
 installing pidgin through Ports (which I expect won't be available until
 2.0.0final).

 I launched pidgin with the command: /usr/opt/bin/pidgin &, and the program
 immediately segfaulted. I obtained the following backtrace:


 {{{
 (gdb) run
 Starting program: /usr/opt/bin/pidgin
 warning: Unable to get location for thread creation breakpoint: generic
 error
 [New LWP 100077]
 [New Thread 0x80e7000 (LWP 100077)]
 [New Thread 0x80e7200 (LWP 100116)]

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 0x80e7000 (LWP 100118)]
 0x291d0139 in PR_Lock () from /usr/local/lib/libplds4.so.1
 (gdb) bt full
 #0  0x291d0139 in PR_Lock () from /usr/local/lib/libplds4.so.1
 No symbol table info available.
 #1  0x291f6698 in PR_CallOnce () from /usr/local/lib/libplc4.so.1
 No symbol table info available.
 #2  0x298d9d92 in RNG_RNGInit () from /usr/local/lib/nss/libfreebl3.so.1
 No symbol table info available.
 #3  0x29522205 in RNG_RNGInit () from /usr/local/lib/nss/libsoftokn3.so.1
 No symbol table info available.
 #4  0x29510009 in nsc_CommonInitialize ()
    from /usr/local/lib/nss/libsoftokn3.so.1
 No symbol table info available.
 #5  0x29510231 in NSC_Initialize () from
 /usr/local/lib/nss/libsoftokn3.so.1
 No symbol table info available.
 #6  0x293dc0d3 in secmod_ModuleInit () from
 /usr/local/lib/nss/libnss3.so.1
 No symbol table info available.
 #7  0x293dc301 in SECMOD_LoadPKCS11Module ()
    from /usr/local/lib/nss/libnss3.so.1
 No symbol table info available.
 #8  0x293e3a77 in SECMOD_LoadModule () from
 /usr/local/lib/nss/libnss3.so.1
 No symbol table info available.
 #9  0x293e3c16 in SECMOD_LoadModule () from
 /usr/local/lib/nss/libnss3.so.1
 No symbol table info available.
 #10 0x293c6ad7 in nss_Init () from /usr/local/lib/nss/libnss3.so.1
 No symbol table info available.
 #11 0x293c6e1c in NSS_NoDB_Init () from /usr/local/lib/nss/libnss3.so.1
 No symbol table info available.
 #12 0x297526be in plugin_load (plugin=0x8148880) at ssl-nss.c:111
 No locals.
 #13 0x2891cc96 in purple_plugin_load (plugin=0x8148880) at plugin.c:619
         loader = (PurplePlugin *) 0x16
         loader_info = (PurplePluginLoaderInfo *) 0x16
         dep_list = (GList *) 0x0
         l = (GList *) 0x0
         __PRETTY_FUNCTION__ = "purple_plugin_load"
 #14 0x2891e2ce in purple_plugins_load_saved (
     key=0x16 <Error reading address 0x16: Bad address>) at plugin.c:1285
         basename = 0x81324c0 "ssl-nss"
         plugin = (PurplePlugin *) 0x8148880
         f = (GList *) 0x82f4b20
         files = (GList *) 0x82f4aa0
         __PRETTY_FUNCTION__ = "purple_plugins_load_saved"
 #15 0x080a49ca in main (argc=1, argv=0xbfbfeb90) at gtkmain.c:747
         opt_help = 0
         opt_login = 0
         opt_nologin = 0
         opt_version = 0
         opt_config_dir_arg = 0x0
         opt_login_arg = 0x0
         opt_session_arg = 0x0
         search_path = 0x8119180 "/usr/opt/lib/pidgin/"
         accounts = (GList *) 0x8119180
         sig_indx = 135369088
         sigset = {__bits = {549895, 0, 0, 0}}
         prev_sig_disp = (void (*)(int)) 0x16
         errmsg =
 "!\v\000\000\000\tk\001X\017(\020k(\000\000\000\000t翿\024\r(\032(S38\a\000\nk(\001\000\000\000\210\032($\016\000\000\000\fk\001\005\r(!!\021(\v(\032(\225\r(\023($\016\000\000\224\001X\017(\020k(\000\000\000\000翿\024\r(!!\021(\017S\216\a\000\vk(\001\000\000\0007(7(\000p\016\b\000\vk(\005N\001\017S\216\a!!\021(X\017(\004\036\021(\000\000\000\000迿\r(H\017(迿\001\000\000\000迿\027q(\000@\020(\000A\020("...
         segfault_message_tmp = 0x8119180 "/usr/opt/lib/pidgin/"
         error = (GError *) 0x0
         opt = 22
         gui_check = 22
         debug_enabled = 0
         migration_failed = 0
         long_options = {{name = 0x80d6934 "config", has_arg = 1, flag =
 0x0,
     val = 99}, {name = 0x80ca47e "debug", has_arg = 0, flag = 0x0, val =
 100},
   {name = 0x80cbbde "help", has_arg = 0, flag = 0x0, val = 104}, {
     name = 0x80c9d3b "login", has_arg = 2, flag = 0x0, val = 108}, {
     name = 0x80d358b "nologin", has_arg = 0, flag = 0x0, val = 110}, {
     name = 0x80d692a "session", has_arg = 1, flag = 0x0, val = 115}, {
     name = 0x80cd545 "version", has_arg = 0, flag = 0x0, val = 118}, {
     name = 0x0, has_arg = 0, flag = 0x0, val = 0}}
 (gdb) quit
 The program is running.  Exit anyway? (y or n) y
 }}}

 I'm new to debugging but would be happy to help in any way I can. Thanks
 for all of your hard work!

-- 
Ticket URL: <http://developer.pidgin.im/ticket/442>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list