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 607423 - crash in Verify Signature: Decrypting message
crash in Verify Signature: Decrypting message
Status: RESOLVED FIXED
Product: seahorse
Classification: Applications
Component: general
2.30.x
Other All
: Normal critical
: ---
Assigned To: Seahorse Maintainer
Seahorse Maintainer
: 600804 605696 607424 609685 609856 614380 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-01-19 09:27 UTC by dabbott
Modified: 2010-06-20 22:50 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28


Attachments
Patch from Sebastien Bacher (2.64 KB, patch)
2010-05-06 21:12 UTC, Wouter Bolsterlee (uws)
accepted-commit_now Details | Review

Description dabbott 2010-01-19 09:27:55 UTC
Version: 2.28.1

What were you doing when the application crashed?
Decrypting message


Distribution: Gentoo Base System release 2.0.1
Gnome Release: 2.28.2 2010-01-13 (Gentoo)
BugBuddy Version: 2.28.0

System: Linux 2.6.32-gentoo-r1 #2 SMP Wed Jan 13 20:21:58 EST 2010 x86_64
X Vendor: The X.Org Foundation
X Vendor Release: 10704000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Clearlooks Gentoo
Icon Theme: gnome-noble
GTK+ Modules: canberra-gtk-module, gnomebreakpad

Memory status: size: 219082752 vsize: 219082752 resident: 20103168 share: 13291520 rss: 20103168 rss_rlim: 18446744073709551615
CPU usage: start_time: 1263893228 rtime: 13 utime: 9 stime: 4 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100

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

[Thread debugging using libthread_db enabled]
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.2200.3-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
0x00007f6c1a7a1b8e in __libc_waitpid (pid=<value optimized out>, stat_loc=
    0x7fff8df80050, options=<value optimized out>)
    at ../sysdeps/unix/sysv/linux/waitpid.c:32
	in ../sysdeps/unix/sysv/linux/waitpid.c

Thread 1 (Thread 0x7f6c1c29d780 (LWP 6668))

  • #0 __libc_waitpid
    at ../sysdeps/unix/sysv/linux/waitpid.c line 32
  • #1 IA__g_spawn_sync
    at gspawn.c line 386
  • #2 IA__g_spawn_command_line_sync
    at gspawn.c line 700
  • #3 bugbuddy_segv_handle(int)
    from /usr/lib64/gtk-2.0/modules/libgnomebreakpad.so
  • #4 <signal handler called>
  • #5 _gpgme_release_result
    at gpgme.c line 229
  • #6 _gpgme_op_reset
    at op-support.c line 80
  • #7 decrypt_verify_start
    at decrypt-verify.c line 51
  • #8 decrypt_start
  • #9 step_operation
  • #10 seahorse_tool_files_process
  • #11 main
A debugging session is active.

	Inferior 1 [process 6668] will be detached.

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


---- Critical and fatal warnings logged during execution ----

** seahorse-tool **: seahorse_pgp_operation_init: assertion `GPG_IS_OK (err)' failed 


----------- .xsession-errors (370367 sec old) ---------------------
(firefox:8959): Gdk-WARNING **: XID collision, trouble ahead
(firefox:8959): Gdk-WARNING **: XID collision, trouble ahead
(firefox:8959): Gdk-WARNING **: XID collision, trouble ahead
(firefox:8959): Gdk-WARNING **: XID collision, trouble ahead
(firefox:8959): Gdk-WARNING **: XID collision, trouble ahead
(firefox:8959): Gdk-WARNING **: XID collision, trouble ahead
(firefox:8959): Gdk-WARNING **: XID collision, trouble ahead
...Too much output, ignoring rest...
--------------------------------------------------
Comment 1 Akhil Laddha 2010-01-19 10:28:55 UTC
*** Bug 607424 has been marked as a duplicate of this bug. ***
Comment 2 Akhil Laddha 2010-01-19 10:29:02 UTC
*** Bug 605696 has been marked as a duplicate of this bug. ***
Comment 3 Akhil Laddha 2010-02-12 03:03:54 UTC
*** Bug 609685 has been marked as a duplicate of this bug. ***
Comment 4 Akhil Laddha 2010-02-14 04:39:19 UTC
*** Bug 609856 has been marked as a duplicate of this bug. ***
Comment 5 Akhil Laddha 2010-02-14 04:41:00 UTC
Copying traces from bug 609856

  • #4 <signal handler called>
  • #5 _gpgme_release_result
    at gpgme.c line 229
  • #6 _gpgme_op_reset
    at op-support.c line 80
  • #7 decrypt_verify_start
    at decrypt-verify.c line 51
  • #8 decrypt_start
    at seahorse-tool.c line 525
  • #9 step_operation
    at seahorse-tool-files.c line 787
  • #10 seahorse_tool_files_process
    at seahorse-tool-files.c line 895
  • #11 main
    at seahorse-tool.c line 749

Comment 6 nobled 2010-02-22 15:12:05 UTC
Sorry if I missed it in the trace, but what version of GnuPG and GpgME are in use? It looks like the crash is happening in gpgme.
Comment 7 drac.noc 2010-02-22 17:39:38 UTC
Hi. Here's the versions you wanted

GnuPG (gpg2) - v2.0.12-2.3
gpgme - v1.2.0-2.5
Comment 8 nobled 2010-02-22 21:06:54 UTC
Thanks!

It looks like there are two bugs here: one in seahorse-tool and one in gpgme. seahorse-tool is passing pop->gctx to gpgme, but gctx is NULL, and gpgme is dereferencing it instead of just returning a GPG_ERR_INV_VALUE error.

I filed the gpgme bug as PR 1195:

https://bugs.g10code.com/gnupg/issue1195

I'm not sure how to fix the seahorse bug though. It's something wrong in seahorse-pgp-operation.c:

http://git.gnome.org/browse/seahorse-plugins/tree/libseahorse/seahorse-pgp-operation.h
http://git.gnome.org/browse/seahorse-plugins/tree/libseahorse/seahorse-pgp-operation.c

seahorse_pgp_operation_init() is the function that initializes gctx, but I don't see where it's called from.
Comment 9 Fabio Durán Verdugo 2010-03-30 18:39:50 UTC
*** Bug 614380 has been marked as a duplicate of this bug. ***
Comment 10 Sebastien Bacher 2010-04-08 00:58:59 UTC
The issue is that new gpgme versions require gpgme_check_version() to be called, there is a fix which has been uploaded to ubuntu lucid now for testing, see https://code.edge.launchpad.net/~ubuntu-desktop/seahorse-plugins/ubuntu revision31
Comment 11 Sebastien Bacher 2010-04-08 00:59:54 UTC
the change makes all the nautilus context menu action work again there
Comment 12 Pablo Castellano (IRC: pablog) 2010-04-08 21:35:45 UTC
JFTR: 
http://bazaar.launchpad.net/~ubuntu-desktop/seahorse-plugins/ubuntu/revision/31
Comment 13 Wouter Bolsterlee (uws) 2010-05-06 21:00:06 UTC
Confirming, I'm seeing exactly this issue as well. Seahorse-tool and all the Nautilus context menus are completely broken right now.
Comment 14 Wouter Bolsterlee (uws) 2010-05-06 21:12:15 UTC
Created attachment 160466 [details] [review]
Patch from Sebastien Bacher

This is the patch that is also in Ubuntu, and references above. Let me know if this is ok to push.
Comment 15 Michał Sawicz 2010-05-14 01:35:05 UTC
Works for me in the related bug https://bugzilla.gnome.org/show_bug.cgi?id=600804
Comment 16 Wouter Bolsterlee (uws) 2010-05-14 15:45:28 UTC
*** Bug 600804 has been marked as a duplicate of this bug. ***
Comment 17 Pablo Castellano (IRC: pablog) 2010-06-15 15:32:18 UTC
Review of attachment 160466 [details] [review]:

Works for me too.
Comment 18 Pablo Castellano (IRC: pablog) 2010-06-15 15:32:20 UTC
Review of attachment 160466 [details] [review]:

Works for me too.
Comment 19 Pablo Castellano (IRC: pablog) 2010-06-20 22:50:20 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.

http://git.gnome.org/browse/seahorse-plugins/commit/?id=e99fc5839deb86868fa4fdfbfc2fcadef2a83755