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 421410 - gnome-keyring-daemon crashed with SIGSEGV in strcmp()
gnome-keyring-daemon crashed with SIGSEGV in strcmp()
Status: RESOLVED FIXED
Product: gnome-keyring
Classification: Core
Component: general
0.7.x
Other Linux
: Normal critical
: ---
Assigned To: GNOME keyring maintainer(s)
GNOME keyring maintainer(s)
: 404551 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-03-22 10:00 UTC by Sebastien Bacher
Modified: 2009-03-03 03:59 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Sebastien Bacher 2007-03-22 10:00:44 UTC
The bug has been opened on https://launchpad.net/bugs/94612

"Binary package hint: gnome-keyring

I was remove a key...

ProblemType: Crash
Architecture: i386
Date: Wed Mar 21 21:50:32 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/gnome-keyring-daemon
Package: gnome-keyring 0.8.0-0ubuntu1
PackageArchitecture: i386
ProcCmdline: /usr/bin/gnome-keyring-daemon
...
.

Thread 1 (process 5267)

  • #0 strcmp
    from /lib/tls/i686/cmov/libc.so.6
  • #1 find_keyring
    at gnome-keyring-daemon.c line 670
  • #2 update_keyrings_from_disk
    at gnome-keyring-daemon-file.c line 940
  • #3 gnome_keyring_client_state_machine
    at gnome-keyring-daemon-io.c line 451
  • #4 gnome_keyring_client_io
    at gnome-keyring-daemon-io.c line 368
  • #5 g_io_unix_dispatch
    at giounix.c line 162
  • #6 IA__g_main_context_dispatch
    at gmain.c line 2045
  • #7 g_main_context_iterate
    at gmain.c line 2677
  • #8 IA__g_main_loop_run
    at gmain.c line 2881
  • #9 main
    at gnome-keyring-daemon.c line 3003
  • #10 __libc_start_main
    from /lib/tls/i686/cmov/libc.so.6
  • #11 _start

Corresponding code line:
"		if (strcmp (keyring->keyring_name, name) == 0) {"

gdb on the crash:

(gdb) p *keyring
$1 = {file = 0x6d6f682f <Address 0x6d6f682f out of bounds>, file_mtime = 1969958757,
  password = 0x696d7572 <Address 0x696d7572 out of bounds>, locked = 1731080046, asking_password = 1701670766,
  salt = "2/keyrin", hash_iterations = 29543, keyring_name = 0x0, items = 0x19, ctime = 134627384, mtime = 134635088,
  lock_on_idle = 1768781170, lock_timeout = 12142}
Comment 1 Stef Walter 2007-04-07 14:38:09 UTC
*** Bug 404551 has been marked as a duplicate of this bug. ***
Comment 2 Marc-Andre Lureau 2007-05-17 15:41:28 UTC
Easy to reproduce, create and desktroy keyrings result in this
Valgrind report:

==5106== Invalid read of size 4
==5106==    at 0x8050B92: find_keyring (gnome-keyring-daemon.c:670)
==5106==    by 0x805420B: update_default (gnome-keyring-daemon-file.c:874)
==5106==    by 0x80552E8: update_keyrings_from_disk (gnome-keyring-daemon-file.c:958)
==5106==    by 0x80560E8: gnome_keyring_client_state_machine (gnome-keyring-daemon-io.c:451)
==5106==    by 0x80564AD: gnome_keyring_client_io (gnome-keyring-daemon-io.c:368)
==5106==    by 0x407BC0C: g_io_unix_dispatch (giounix.c:162)
==5106==    by 0x4052651: g_main_context_dispatch (gmain.c:2045)
==5106==    by 0x405562E: g_main_context_iterate (gmain.c:2677)
==5106==    by 0x40559D8: g_main_loop_run (gmain.c:2881)
==5106==    by 0x8053A4E: main (gnome-keyring-daemon.c:3003)
==5106==  Address 0x426C7D8 is 32 bytes inside a block of size 56 free'd
==5106==    at 0x402123A: free (vg_replace_malloc.c:233)
==5106==    by 0x4059990: g_free (gmem.c:187)
==5106==    by 0x8053048: op_delete_keyring_execute (gnome-keyring-daemon.c:1146)
==5106==    by 0x805630D: gnome_keyring_client_state_machine (gnome-keyring-daemon-io.c:498)
==5106==    by 0x80564AD: gnome_keyring_client_io (gnome-keyring-daemon-io.c:368)
==5106==    by 0x407BC0C: g_io_unix_dispatch (giounix.c:162)
==5106==    by 0x4052651: g_main_context_dispatch (gmain.c:2045)
==5106==    by 0x405562E: g_main_context_iterate (gmain.c:2677)
==5106==    by 0x40559D8: g_main_loop_run (gmain.c:2881)
==5106==    by 0x8053A4E: main (gnome-keyring-daemon.c:3003)
Comment 3 Marc-Andre Lureau 2007-05-17 15:58:28 UTC
And this is gnome-keyring-manager bug
Comment 4 Stef Walter 2007-06-22 12:58:56 UTC
Are you sure? The crash is in gnome-keyring-daemon. Can you duplicate this with 2.19.4?
Comment 5 André Klapper 2008-11-15 18:14:14 UTC
gnome-keyring-manager has been deprecated and superseded by Seahorse more than one year ago.
There has not been any active code development for more than a year.

This bug will probably soon be closed as WONTFIX or OBSOLETE.
Comment 6 Germán Poo-Caamaño 2008-11-15 19:50:16 UTC
Thanks for taking the time to report this bug.
However, gnome-keyring-manager won't be developed anymore and it has
been superseded by Seahorse.
Comment 7 Pedro Villavicencio 2008-11-17 14:53:33 UTC
re-assigning to gnome-keyring, since the bug was an issue with the daemon not with the manager. thanks.
Comment 8 Stef Walter 2009-03-03 03:59:27 UTC
I believe this has been fixed in recent versions of gnome-keyring. Tons of crashers have been fixed. In addition the above valgrind errors are no longer produced by creating or deleting keyrings.