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 169145 - It was crashed couse I didn't give the password of my key
It was crashed couse I didn't give the password of my key
Status: RESOLVED FIXED
Product: seahorse
Classification: Applications
Component: general
0.7.x
Other other
: Normal normal
: ---
Assigned To: Seahorse Maintainer
Seahorse Maintainer
Depends on:
Blocks:
 
 
Reported: 2005-03-03 22:20 UTC by Kőrösi Csaba
Modified: 2005-05-04 16:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fixes bug (931 bytes, patch)
2005-05-04 00:38 UTC, Adam Schreiber
none Details | Review
Proposed patch (427 bytes, patch)
2005-05-04 02:36 UTC, Stef Walter
none Details | Review

Description Kőrösi Csaba 2005-03-03 22:20:37 UTC
Distribution: Debian 3.1
Package: seahorse
Severity: normal
Version: GNOME2.9.92 0.7.5
Gnome-Distributor: Ubuntu
Synopsis: It was crashed couse I didn't give the password of my key
Bugzilla-Product: seahorse
Bugzilla-Component: general
Bugzilla-Version: 0.7.5
BugBuddy-GnomeVersion: 2.0 (2.9.2)
Description:
Description of the crash:
It was crashed couse I didn't give the password of my key

Steps to reproduce the crash:
1. 
2. 
3. 

Expected Results:


How often does this happen?
At once

Additional Information:



Debugging Information:

Backtrace was generated from '/usr/bin/seahorse'

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
`system-supplied DSO at 0xffffe000' has disappeared; keeping its
symbols.
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1222688640 (LWP 16434)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0xffffe410 in __kernel_vsyscall ()

Thread 1 (Thread -1222688640 (LWP 16434))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/tls/i686/cmov/libpthread.so.0
  • #2 libgnomeui_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 gnome_date_edit_get_type
    from /usr/lib/libgnomeui-2.so.0
  • #5 gnome_date_edit_get_type
    from /usr/lib/libgnomeui-2.so.0
  • #6 g_cclosure_marshal_VOID__VOID
    from /usr/lib/libgobject-2.0.so.0
  • #7 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #8 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #9 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #10 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #11 gtk_button_clicked
    from /usr/lib/libgtk-x11-2.0.so.0
  • #12 _gtk_button_paint
    from /usr/lib/libgtk-x11-2.0.so.0
  • #13 g_cclosure_marshal_VOID__VOID
    from /usr/lib/libgobject-2.0.so.0
  • #14 g_cclosure_new_swap
    from /usr/lib/libgobject-2.0.so.0
  • #15 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #16 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #17 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #18 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #19 gtk_button_released
    from /usr/lib/libgtk-x11-2.0.so.0
  • #20 _gtk_button_paint
    from /usr/lib/libgtk-x11-2.0.so.0
  • #21 _gtk_marshal_BOOLEAN__BOXED
    from /usr/lib/libgtk-x11-2.0.so.0
  • #22 g_cclosure_new_swap
    from /usr/lib/libgobject-2.0.so.0
  • #23 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #24 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #25 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #26 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #27 gtk_widget_send_expose
    from /usr/lib/libgtk-x11-2.0.so.0
  • #28 gtk_propagate_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #29 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #30 _gdk_events_queue
    from /usr/lib/libgdk-x11-2.0.so.0
  • #31 g_main_depth
    from /usr/lib/libglib-2.0.so.0
  • #32 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #33 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #34 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #35 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #36 main
  • #0 __kernel_vsyscall




------- Bug moved to this database by unknown@bugzilla.gnome.org 2005-03-03 17:20 -------


Unknown version 0.7.5 in product seahorse.  Setting version to "0.7.x".
Unknown platform unknown. Setting to default platform "Other".
Unknown milestone "unknown" in product "seahorse".
   Setting to default milestone for this product, '---'
Setting to default status "UNCONFIRMED".
Setting qa contact to the default for this product.
   This bug either had no qa contact or an invalid one.

Comment 1 Adam Schreiber 2005-05-03 23:53:53 UTC
I discovered this same behavior in seahorse-agent.  

Steps to duplicate:
Start seahorse-agent
Perform task that requires passphrase
Hit "OK" without entering text into passphrase window
Cue the assertion.

seahorse-agent -d

** ERROR **: file seahorse-agent-cache.c: line 308 (seahorse_agent_cache_set):
assertion failed: (pass && pass[0])
aborting...
Aborted

I'll work on a patch later.  There must be a similar bug in the seahorse key
manager's code.  I'll try and get a patch for that too.
Comment 2 Adam Schreiber 2005-05-04 00:38:45 UTC
Created attachment 45997 [details] [review]
Fixes bug

It turns out seahorse is great for finals studying avoidance.  This bug solves
the problem by not entering the cache function if a null string is returned. 
It instead behaves as if the cancel button was clicked.  Alternately, we could
be a pain and insert a different string on null that is impossible to enter
into a passphrase so that it just fails out and requeries the user.  I think
this solution works fine because it follows the method of least surprise.
Comment 3 Stef Walter 2005-05-04 00:51:26 UTC
Hmmm, I wonder if we should support zero length passwords. Does GPG support
zero-length passwords, and if so, does it prompt for them? 
Comment 4 Adam Schreiber 2005-05-04 02:06:54 UTC
Yes, GPG supports zero length passphrases.
No, it doesn't prompt for them.  It doesn't trigger seahorse-agent either.

Sure we should support them.  The advanced key generator should allow them, and
currently doesn't.  The assistant should keep requiring matching passphrases.
Comment 5 Stef Walter 2005-05-04 02:36:53 UTC
Created attachment 45998 [details] [review]
Proposed patch

Does this patch work? It may make more sense in the long run... 

Or the other approach would be to not allow empty passphrases in
seahorse-agent, and disable the 'OK' button etc... Given that GPG doesn't
prompt for them, that is.
Comment 6 Adam Schreiber 2005-05-04 03:04:45 UTC
Yes, it works.  I think the error message is sufficient and we don't have to
disable the 'OK' button.
Comment 7 Stef Walter 2005-05-04 16:02:56 UTC
Committed patch. 

In addition, the bug that the bug that the original reporter experienced should
now be fixed due to changes in the expiry date modification code. (see stack trace)