[Bug 57433] Re: [Edgy] seahorse crashed at startup (segmentation fault)
** Changed in: seahorse Importance: Unknown = Critical -- [Edgy] seahorse crashed at startup (segmentation fault) https://bugs.launchpad.net/bugs/57433 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 57433] Re: [Edgy] seahorse crashed at startup (segmentation fault)
This still happens in Karmic with Seahorse 2.28.1. If I move ~./ssh Seahorse will start. $ seahorse ** Message: init gpgme version 1.1.8 (seahorse:7813): GLib-CRITICAL **: g_base64_decode: assertion `input_length 1' failed Segmentation fault (core dumped) -- [Edgy] seahorse crashed at startup (segmentation fault) https://bugs.launchpad.net/bugs/57433 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 57433] Re: [Edgy] seahorse crashed at startup (segmentation fault)
** Changed in: seahorse (upstream) Status: Confirmed = Fix Released -- [Edgy] seahorse crashed at startup (segmentation fault) https://launchpad.net/bugs/57433 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 57433] Re: [Edgy] seahorse crashed at startup (segmentation fault)
** Changed in: seahorse (upstream) Status: Unknown = Confirmed -- [Edgy] seahorse crashed at startup (segmentation fault) https://launchpad.net/bugs/57433 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 57433] Re: [Edgy] seahorse crashed at startup (segmentation fault)
I tried the patch (remove the static declaration) on seahorse 0.9.3-0ubuntu1 and seahorse still segfaults: (gdb) bt full #0 0x0044944c in seahorse_ssh_key_get_cannonical_id ( id=value optimized out) at seahorse-ssh-key.c:387 p = (gchar *) 0x5f15db 30:7f:30 hex = (gchar *) 0x5f15d0 openssh:55:30:7f:30 off = 1 ret = value optimized out [...] (gdb) frame 0 #0 0x0044944c in seahorse_ssh_key_get_cannonical_id ( id=value optimized out) at seahorse-ssh-key.c:387 387 p[0 - off] = p[0]; That's exactly the same location as with a clean seahorse 0.9.3-0ubuntu1 -- [Edgy] seahorse crashed at startup (segmentation fault) https://launchpad.net/bugs/57433 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 57433] Re: [Edgy] seahorse crashed at startup (segmentation fault)
Here is a patch: --- seahorse-0.9.3/libseahorse/seahorse-ssh-key.c 2006-08-24 22:13:08.0 +0200 +++ seahorse-0.9.3.patched/libseahorse/seahorse-ssh-key.c 2006-08-28 00:39:39.0 +0200 @@ -384,11 +384,11 @@ seahorse_ssh_key_get_cannonical_id (cons /* Strip out all non alpha numeric chars */ for(p = hex + x + 1; *p; p++) { if (g_ascii_isalnum(*p)) -p[0 - off] = p[0]; +*(p - off) = *p; else off++; } -p[0 - off] = 0; +*(p - off) = 0; /* Shorten where necessary */ l = strlen (hex); -- [Edgy] seahorse crashed at startup (segmentation fault) https://launchpad.net/bugs/57433 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 57433] Re: [Edgy] seahorse crashed at startup (segmentation fault)
And here is a debdiff containing this patch. -- [Edgy] seahorse crashed at startup (segmentation fault) https://launchpad.net/bugs/57433 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 57433] Re: [Edgy] seahorse crashed at startup (segmentation fault)
Thanks, I'll take care of this :) Is this patch upstream already? ** Changed in: seahorse (Ubuntu) Status: Confirmed = In Progress ** Changed in: seahorse (Ubuntu) Assignee: (unassigned) = Sebastian Dröge -- [Edgy] seahorse crashed at startup (segmentation fault) https://launchpad.net/bugs/57433 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 57433] Re: [Edgy] seahorse crashed at startup (segmentation fault)
** Bug watch added: GNOME Bug Tracker #353153 http://bugzilla.gnome.org/show_bug.cgi?id=353153 ** Also affects: seahorse (upstream) via http://bugzilla.gnome.org/show_bug.cgi?id=353153 Importance: Unknown Status: Unknown -- [Edgy] seahorse crashed at startup (segmentation fault) https://launchpad.net/bugs/57433 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 57433] Re: [Edgy] seahorse crashed at startup (segmentation fault)
** Bug watch removed: GNOME Bug Tracker #353153 http://bugzilla.gnome.org/show_bug.cgi?id=353153 ** Bug watch added: GNOME Bug Tracker #352808 http://bugzilla.gnome.org/show_bug.cgi?id=352808 -- [Edgy] seahorse crashed at startup (segmentation fault) https://launchpad.net/bugs/57433 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 57433] Re: [Edgy] seahorse crashed at startup (segmentation fault)
I didn't send the patch upstream yet. I don't understand why the patch helps. But when I install 0.9.3-0ubuntu1 again seahorse segfaults. I also built seahorse several times locally (with and without optimisations) to find the problem but all segfaulted also. Only the builds containing the patch didn't segfault. -- [Edgy] seahorse crashed at startup (segmentation fault) https://launchpad.net/bugs/57433 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 57433] Re: [Edgy] seahorse crashed at startup (segmentation fault)
Ok, I'll debug it further tomorrow and if I don't find the reason I'll upload with your patch for now :) -- [Edgy] seahorse crashed at startup (segmentation fault) https://launchpad.net/bugs/57433 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 57433] Re: [Edgy] seahorse crashed at startup (segmentation fault)
Michael, could you try the patch at the upstream bugreport (comment #9) on a plain seahorse 0.9.3? I don't have access to an amd64 right now... http://bugzilla.gnome.org/show_bug.cgi?id=352808 -- [Edgy] seahorse crashed at startup (segmentation fault) https://launchpad.net/bugs/57433 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 57433] Re: [Edgy] seahorse crashed at startup (segmentation fault)
I have the same problem here on my amd64 with 0.9.3-0ubuntu1. Moving ~/.ssh/ to a new location fixes the problem. Here a backtrace from a debug build: GNU gdb 6.4.90-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as x86_64-linux-gnu...Using host libthread_db library /lib/libthread_db.so.1. (gdb) run Starting program: /usr/bin/seahorse-daemon --no-daemonize [Thread debugging using libthread_db enabled] [New Thread 47500889736480 (LWP 25463)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 47500889736480 (LWP 25463)] 0x0043810c in seahorse_ssh_key_get_cannonical_id (id=value optimized out) at seahorse-ssh-key.c:387 387 seahorse-ssh-key.c: No such file or directory. in seahorse-ssh-key.c (gdb) thread apply all backtrace Thread 1 (Thread 47500889736480 (LWP 25463)): #0 0x0043810c in seahorse_ssh_key_get_cannonical_id (id=value optimized out) at seahorse-ssh-key.c:387 #1 0x0043a0e0 in ssh_key_from_data (ssrc=0x5f7f80, ctx=0x7fff06bf0130, keydata=0x60f910) at seahorse-ssh-source.c:265 #2 0x0043a36e in parsed_public_key (data=0x60f910, arg=0x7fff06bf0130) at seahorse-ssh-source.c:393 #3 0x00437e24 in seahorse_ssh_key_data_parse (data=value optimized out, public_cb=0x43a2f0 parsed_public_key, secret_cb=0, arg=0x7fff06bf0130) at seahorse-ssh-key-data.c:276 #4 0x00437ee9 in seahorse_ssh_key_data_parse_file (filename=value optimized out, public_cb=0x43a2f0 parsed_public_key, secret_cb=0, arg=0x7fff06bf0130, err=value optimized out) at seahorse-ssh-key-data.c:296 #5 0x00439d75 in seahorse_ssh_source_load (sksrc=0x5f7f80, mode=SKSRC_LOAD_ALL, keymatch=0, match=value optimized out) at seahorse-ssh-source.c:511 #6 0x0041ef04 in seahorse_context_load_local_keys (sctx=value optimized out) at seahorse-context.c:724 #7 0x00411f54 in main (argc=2, argv=0x7fff06bf0318) at seahorse-daemon.c:256 (gdb) ** Changed in: seahorse (Ubuntu) Status: Unconfirmed = Confirmed -- [Edgy] seahorse crashed at startup (segmentation fault) https://launchpad.net/bugs/57433 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs