After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 632490 - tests fail with "Initialized same module twice, maybe module was not finalized, outstanding refs?"
tests fail with "Initialized same module twice, maybe module was not finalize...
Status: RESOLVED FIXED
Product: gnome-keyring
Classification: Core
Component: general
2.32.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME keyring maintainer(s)
GNOME keyring maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-10-18 18:22 UTC by Pacho Ramos
Modified: 2010-12-18 12:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Pacho Ramos 2010-10-18 18:22:49 UTC
I am able to reproduce this when building from upstream sources and running "make check":

  /gp11_session/login_logout:                                          OK
  /gp11_session/auto_login:                                            OK
  /gp11_object/object_props:                                           OK
  /gp11_object/object_equals_hash:                                     OK
  /gp11_object/create_object:                                          OK
  /gp11_object/destroy_object:                                         **
ERROR:gp11-test-module.c:97:test_C_Initialize: assertion failed: (initialized == FALSE && "Initialized same module twice, maybe module was not finalized, outstanding refs?")
OK
  /gp11_object/get_attributes:                                         Gtk-Message: Failed to load module "gail-gnome": libgail-gnome.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
Gtk-Message: Failed to load module "gnomebreakpad": libgnomebreakpad.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio

warning: Can not parse XML syscalls information; XML support was disabled at compile time.
FAIL
GTester: last random seed: R02Se1e98a4adb0601619fb1f40c88be442e
(pid=23232)
Gtk-Message: Failed to load module "gail-gnome": libgail-gnome.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
Gtk-Message: Failed to load module "gnomebreakpad": libgnomebreakpad.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
  /gp11_object/get_data_attribute:                                     OK
  /gp11_object/set_attributes:                                         OK
  /gp11_object/find_objects:                                           OK
  /gp11_object/explicit_sessions:                                      OK
  /gp11_crypto/encrypt:                                                OK
  /gp11_crypto/decrypt:                                                OK
  /gp11_crypto/login_context_specific:                                 OK
  /gp11_crypto/sign:                                                   OK
  /gp11_crypto/verify:                                                 OK
  /gp11_crypto/generate_key_pair:                                      OK
  /gp11_crypto/wrap_key:                                               **
ERROR:gp11-test-module.c:97:test_C_Initialize: assertion failed: (initialized == FALSE && "Initialized same module twice, maybe module was not finalized, outstanding refs?")
OK
  /gp11_crypto/unwrap_key:                                             Gtk-Message: Failed to load module "gail-gnome": libgail-gnome.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
Gtk-Message: Failed to load module "gnomebreakpad": libgnomebreakpad.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio

warning: Can not parse XML syscalls information; XML support was disabled at compile time.
^Cmake[4]: *** wait: No hay ningún proceso hijo.  Stop.
make[4]: *** Waiting for unfinished jobs....
make[4]: *** wait: No hay ningún proceso hijo.  Stop.
make[3]: *** wait: No hay ningún proceso hijo.  Stop.
make[3]: *** Waiting for unfinished jobs....
make[3]: *** wait: No hay ningún proceso hijo.  Stop.
make[2]: *** wait: No hay ningún proceso hijo.  Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: *** wait: No hay ningún proceso hijo.  Stop.
make[1]: *** wait: No hay ningún proceso hijo.  Stop.
make[1]: *** Waiting for unfinished jobs....
make[1]: *** wait: No hay ningún proceso hijo.  Stop.
make: *** [check-recursive] Error 1


And this backtrace is taken by bug-buddy:
System: Linux 2.6.35-ck-r4 #1 PREEMPT Mon Oct 11 13:37:39 CEST 2010 x86_64
X Vendor: The X.Org Foundation
X Vendor Release: 10707000
Selinux: No
Accessibility: Enabled
GTK+ Theme: Shiki-Gentoo
Icon Theme: gnome-gentoo
GTK+ Modules: canberra-gtk-module, gail-gnome, gnomesegvhandler, gnomebreakpad, gail:atk-bridge

Memory status: size: 237264896 vsize: 237264896 resident: 13012992 share: 10301440 rss: 13012992 rss_rlim: 18446744073709551615
CPU usage: start_time: 1287425994 rtime: 7 utime: 7 stime: 0 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/home/pacho/gnome-keyring-2.32.0/gp11/tests/.libs/run-tests'

[?1034h[Thread debugging using libthread_db enabled]
[New Thread 0x2b8db9fbb710 (LWP 23129)]
[New Thread 0x2b8db9dba710 (LWP 23128)]
0x00000032776c85c3 in poll () from /lib/libc.so.6

Thread 3 (Thread 0x2b8db9dba710 (LWP 23128))

  • #0 waitpid
    from /lib/libpthread.so.0
  • #1 g_spawn_sync
    from /usr/lib64/libglib-2.0.so.0
  • #2 g_spawn_command_line_sync
    from /usr/lib64/libglib-2.0.so.0
  • #3 ??
    from /usr/lib64/gtk-2.0/modules/libgnomesegvhandler.so
  • #4 <signal handler called>
  • #5 raise
    from /lib/libc.so.6
  • #6 abort
    from /lib/libc.so.6
  • #7 g_assertion_message
    from /usr/lib64/libglib-2.0.so.0
  • #8 g_assertion_message_expr
    from /usr/lib64/libglib-2.0.so.0
  • #9 test_C_Initialize
    at gp11-test-module.c line 97
  • #10 gp11_module_initialize
    at gp11-module.c line 755
  • #11 setup_prep_object
    at unit-test-gp11-object.c line 22
  • #12 ??
    from /usr/lib64/libglib-2.0.so.0
  • #13 ??
    from /usr/lib64/libglib-2.0.so.0
  • #14 g_test_run_suite
    from /usr/lib64/libglib-2.0.so.0
  • #15 run
    at test-suite.c line 86
  • #16 testing_thread
    at ../../testing/testing.c line 250
  • #17 ??
    from /usr/lib64/libglib-2.0.so.0
  • #18 start_thread
    from /lib/libpthread.so.0
  • #19 clone
    from /lib/libc.so.6

	Inferior 1 [process 23113] will be detached.

Quit anyway? (y or n) [answered Y; input not from terminal]


----------- .xsession-errors ---------------------
Gtk-Message: Failed to load module "gnomesegvhandler": libgnomesegvhandler.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
Gtk-Message: Failed to load module "gnomebreakpad": libgnomebreakpad.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
(exe:1225): Gdk-WARNING **: XID collision, trouble ahead
(exe:1225): Gdk-WARNING **: XID collision, trouble ahead
** (gnome-session:6603): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
** (gnome-session:6603): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
** (gnome-session:6603): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
** (gnome-session:6603): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
** (gnome-session:6603): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
** (gnome-session:6603): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
** (gnome-session:6603): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
** (gnome-session:6603): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
** (gnome-session:6603): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
--------------------------------------------------
Comment 1 Pacho Ramos 2010-10-24 13:49:46 UTC
Can I help on this? Should I test anything? Please let me know any info you could need. Thanks
Comment 2 Stef Walter 2010-10-25 15:19:12 UTC
Thanks for offering.

What's the contents of your /usr/lib/pkcs11 directory?
Comment 3 Pacho Ramos 2010-10-25 16:10:03 UTC
(In reply to comment #2)
> Thanks for offering.
> 
> What's the contents of your /usr/lib/pkcs11 directory?

I don't have that directory on my system :-/
Comment 4 Stef Walter 2010-10-25 21:54:59 UTC
Not sure how your system is organized, but what's in:

$prefix/lib/pkcs11

or 

$libdir/pkcs11

Where is gnome-keyring installed? What's the prefix?
Comment 5 Pacho Ramos 2010-10-26 17:00:34 UTC
Running "locate pkcs11" I get:

/usr/include/gp11/pkcs11.h
/usr/include/gp11/pkcs11g.h
/usr/include/gp11/pkcs11n.h
/usr/include/neon/ne_pkcs11.h
/usr/include/nss/pkcs11.h
/usr/include/nss/pkcs11f.h
/usr/include/nss/pkcs11n.h
/usr/include/nss/pkcs11p.h
/usr/include/nss/pkcs11t.h
/usr/include/nss/pkcs11u.h
/usr/lib64/gnome-keyring/gnome-keyring-pkcs11.la
/usr/lib64/gnome-keyring/gnome-keyring-pkcs11.so
/usr/lib64/misc/ssh-pkcs11-helper

Regarding gnome-keyring, it's installed under /usr
Comment 6 Pacho Ramos 2010-11-06 14:52:53 UTC
Maybe some dependency is missing on my system? :-/
Comment 7 Pacho Ramos 2010-12-05 15:12:16 UTC
(In reply to comment #6)
> Maybe some dependency is missing on my system? :-/

But, what should I install to provide what gnome-keyring seems to expect? Thanks
Comment 8 Stef Walter 2010-12-13 10:23:50 UTC
I believe the following commit will fix your problem:


commit f397c297c7a150eadfb4d1ab29d13a15cbadbf60
Author: Stef Walter <stefw@collabora.co.uk>
Date:   Mon Dec 6 20:59:48 2010 +0000

    [gck] Don't load *.la files as PKCS#11 modules.
    
    grumble, grumble, libtool, grumble.
Comment 9 Pacho Ramos 2010-12-18 12:48:03 UTC
Looks like it's a bit difficult to backport it to 2.32, will need to wait for the next cycle then.

Thanks for fixing it :-)