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 579891 - Import option given on non-key objects
Import option given on non-key objects
Status: RESOLVED FIXED
Product: seahorse
Classification: Applications
Component: general
2.26.x
Other Linux
: Normal major
: 2.26.0
Assigned To: Seahorse Maintainer
Seahorse Maintainer
Depends on:
Blocks:
 
 
Reported: 2009-04-22 23:48 UTC by Andreas Moog
Modified: 2009-04-23 18:21 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
Screenshot of when seahorse crashes. (35.70 KB, image/jpeg)
2009-04-22 23:48 UTC, Andreas Moog
Details
valgrind log (14.43 KB, application/x-gzip)
2009-04-23 01:18 UTC, Andreas Moog
Details

Description Andreas Moog 2009-04-22 23:48:22 UTC
Forwarded from Launchpad:
(https://bugs.launchpad.net/bugs/361928)

I was simply importing Truecrypt public key.

Steps to reproduce the bug: search the key F0D6B1E0, selected the key (but not the first row, select the second one, with id 2-see the image) click "Import" button (or use the context menu).

Result: seahorse crashes

Expected behaviour: I think that seahorse should ignore the request or import the parent key (in this example the first row).

Stacktrace:

  • #0 progress_show
    at seahorse-progress.c line 261
  • #1 g_timeout_dispatch
    at /build/buildd/glib2.0-2.20.1/glib/gmain.c line 3253
  • #2 IA__g_main_context_dispatch
    at /build/buildd/glib2.0-2.20.1/glib/gmain.c line 1814
  • #3 g_main_context_iterate
    at /build/buildd/glib2.0-2.20.1/glib/gmain.c line 2448
  • #4 IA__g_main_loop_run
    at /build/buildd/glib2.0-2.20.1/glib/gmain.c line 2656
  • #5 IA__gtk_main
    at /build/buildd/gtk+2.0-2.16.1/gtk/gtkmain.c line 1205
  • #6 main
    at seahorse-main.c line 103

Comment 1 Andreas Moog 2009-04-22 23:48:53 UTC
Created attachment 133153 [details]
Screenshot of when seahorse crashes.
Comment 2 Andreas Moog 2009-04-23 01:17:02 UTC
I also created a valgrind-log since the program crashed with SIGSEGV, I believe here is the error:

==11783== Invalid read of size 1
==11783==    at 0x80735C7: progress_show (seahorse-progress.c:261)
==11783==    by 0x47162B5: g_timeout_dispatch (gmain.c:3253)
==11783==    by 0x4715B87: g_main_context_dispatch (gmain.c:1814)
==11783==    by 0x47190EA: g_main_context_iterate (gmain.c:2448)
==11783==    by 0x47195B9: g_main_loop_run (gmain.c:2656)
==11783==    by 0x42A97D8: gtk_main (gtkmain.c:1205)
==11783==    by 0x8061B62: main (seahorse-main.c:103)
==11783==  Address 0x18 is not stack'd, malloc'd or (recently) free'd
==11783==
==11783== Process terminating with default action of signal 11 (SIGSEGV)
==11783==  Access not within mapped region at address 0x18
==11783==    at 0x80735C7: progress_show (seahorse-progress.c:261)
==11783==    by 0x47162B5: g_timeout_dispatch (gmain.c:3253)
==11783==    by 0x4715B87: g_main_context_dispatch (gmain.c:1814)
==11783==    by 0x47190EA: g_main_context_iterate (gmain.c:2448)
==11783==    by 0x47195B9: g_main_loop_run (gmain.c:2656)
==11783==    by 0x42A97D8: gtk_main (gtkmain.c:1205)
==11783==    by 0x8061B62: main (seahorse-main.c:103)
Comment 3 Andreas Moog 2009-04-23 01:18:22 UTC
Created attachment 133157 [details]
valgrind log
Comment 4 Adam Schreiber 2009-04-23 18:21:41 UTC
Fixed.

commit b911de1b26c8dc936a8ab79b7d70faa5d952a032
Author: Adam Schreiber <sadam@gnome.org>
Date:   Thu Apr 23 14:00:53 2009 -0400

    Bug 579891 – Import option given on non-key objects
    
    Moved the import context menu item and callbacks to SeahorseViewer
    and added an importable predicate to control the
    visibility/sensitivity of the item.