Compiled binaries execute but exit with "Abort"

Errol Casey errol at askerrol.org
Wed Feb 18 14:18:11 CET 2015


 gdb gpg2
GNU gdb 6.6
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 "sparc-sun-solaris2.10"...
(gdb) break abort
Breakpoint 1 at 0x1278fc
(gdb) run
Starting program: /syshome/gecasey/gpg/gnupg-2.0.26/g10/gpg2
warning: Temporarily disabling breakpoints for unloaded shared library
"/usr/lib/ld.so.1"
Breakpoint 1 at 0xfedc28a4
gpg: Go ahead and type your message ...
this is a test
.
gpg: no valid OpenPGP data found.
gpg: processing message failed: Unknown system error

Breakpoint 1, 0xfedc28a4 in abort () from /lib/libc.so.1
(gdb) bt
#0  0xfedc28a4 in abort () from /lib/libc.so.1
#1  0xff15367c in get_lock_object (lockhd=0xff16e3b0) at posix-lock.c:111
#2  0xff1536f8 in _gpgrt_lock_lock (lockhd=0xff16e3b0) at posix-lock.c:155
#3  0xff156a74 in _gpgrt_fflush (stream=0x0) at estream.c:3590
#4  0xff156b0c in do_deinit () at estream.c:490
#5  0xfedc3180 in _exithandle () from /lib/libc.so.1
#6  0xfedb1140 in exit () from /lib/libc.so.1
#7  0x0002717c in g10_exit ()
#8  0x00025de0 in main ()
(gdb)


On Tue, Feb 17, 2015 at 10:53 PM, Werner Koch <wk at gnupg.org> wrote:

> On Tue, 17 Feb 2015 21:12, errol at askerrol.org said:
>
> > But it fails openpgp tests, and all executable exit with an "Abort"
> message.
>
> Please run such an executable under a debugger and privide a stack
> backtrace.  Using gdb you would use:
>
>   gdb g10/gpg
>
>   then enter "break abort", "run", and after it stops "bt".
>
>
> Shalom-Salam,
>
>    Werner
>
> --
> Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
>
>


-- 
Errol Casey
errol at askerrol.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20150218/2e8dd415/attachment.html>


More information about the Gnupg-users mailing list