Bug 193417 - security/gnome-keyring: Daemon core dumps if libgcrypt is installed stripped
Summary: security/gnome-keyring: Daemon core dumps if libgcrypt is installed stripped
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2014-09-07 08:37 UTC by Jonathan Chen
Modified: 2015-02-02 18:40 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Chen 2014-09-07 08:37:31 UTC
gnome-keyring-daemon from gnome-keyring 2.32.1_5 is dumping core on startup.

> uname -a
FreeBSD osiris.chen.org.nz 10.0-STABLE FreeBSD 10.0-STABLE #0 r267966: Sat Jul 12 21:36:48 NZST 2014     root@osiris.chen.org.nz:/usr/obj/usr/src/sys/OSIRIS  amd64
> gdb -c 1000-gnome-keyring-daemo.core /usr/local/bin/gnome-keyring-daemon
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "amd64-marcel-freebsd"...(no debugging symbols found)...
Attaching to program: /usr/local/bin/gnome-keyring-daemon, process 1000
ptrace: No such process.

warning: core file may not match specified executable file.
Core was generated by `gnome-keyring-daemo'.
Program terminated with signal 4, Illegal instruction.
Reading symbols from /usr/local/lib/libgp11.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libgp11.so.0
Reading symbols from /usr/local/lib/libgmodule-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libgmodule-2.0.so.0
Reading symbols from /lib/libz.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.6
Reading symbols from /usr/local/lib/libffi.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libffi.so.6
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/local/lib/libpcre.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libpcre.so.3
Reading symbols from /usr/local/lib/libgthread-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libgthread-2.0.so.0
Reading symbols from /usr/local/lib/libgio-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libgio-2.0.so.0
Reading symbols from /usr/local/lib/libdbus-1.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libdbus-1.so.3
Reading symbols from /usr/local/lib/libgcrypt.so.20...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libgcrypt.so.20
Reading symbols from /usr/local/lib/libgpg-error.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libgpg-error.so.0
Reading symbols from /usr/local/lib/libgobject-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libgobject-2.0.so.0
Reading symbols from /usr/local/lib/libglib-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libglib-2.0.so.0
Reading symbols from /usr/local/lib/libintl.so.9...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libintl.so.9
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x0000000801ef5a8a in _gcry_sha1_transform_amd64_ssse3 () from /usr/local/lib/libgcrypt.so.20
[New Thread 803806400 (LWP 100512/gnome-keyring-daemo)]

It looks like its dumping core in libcrypt (1.6.1_4)
Comment 1 Jonathan Chen 2014-09-07 08:45:07 UTC
If I rebuild libgcrypt and install without stripping, it doesn't dump core.
Comment 2 Carlos J Puga Medina 2015-02-02 14:36:59 UTC
Can you reproduce it using the following patch?

https://bz-attachments.freebsd.org/attachment.cgi?id=152288
Comment 3 Jonathan Chen 2015-02-02 18:40:13 UTC
libgcrypt 1.6.2 doesn't exhibit the core dump anymore.