Page MenuHome GnuPG

AIX 6.1 gpg2 Segmentation fault
Closed, ResolvedPublic

Description

Trying to start the agent I get the following error:

gpg-connect-agent 'getinfo version' /bye

Segmentation fault(coredump)

Please find attached the core dump file.

Details

Version
2.0.26

Event Timeline

miclovan renamed this task from AIX 6.1 Segmentation fault to AIX 6.1 gpg2 Segmentation fault.Jul 14 2015, 4:59 PM
miclovan added a project: gnupg.

Since you have a corefile, you probably have debugging symbols. Could you just
attach gdb and get a backtrace? Thanks!

gdb `which gpg-connect-agent`
run 'getinfo version' /bye

$> gdb which gpg-connect-agent
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc64-ibm-aix6.1.2.0".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/gpg-connect-agent...(no debugging symbols
found)...done.
(gdb)
Starting program: /usr/bin/gpg-connect-agent 'getinfo version' /bye
[New Thread 1]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1]
0xd12727f8 in int_vasprintf () from /opt/freeware/lib/libassuan.a
(libassuan.so.0)

(gdb) backtrace
#0 0xd12727f8 in int_vasprintf () from /opt/freeware/lib/libassuan.a
(libassuan.so.0)
#1 0xd12727a0 in _assuan_vasprintf () from /opt/freeware/lib/libassuan.a
(libassuan.so.0)
#2 0xd1272630 in _assuan_debug () from /opt/freeware/lib/libassuan.a
(libassuan.so.0)
#3 0xd1271398 in assuan_new_ext () from /opt/freeware/lib/libassuan.a
(libassuan.so.0)
#4 0x10004300 in ?? ()
#5 0x10000d08 in ?? ()
#6 0x100001b4 in ?? ()

Thanks for doing this. Unfortunately, It seems that you don't have fully
debuging symbols. Can you please at least recompile Assuan with debugging
symbols so that the backtrace includes filenames and line numbers. Thanks!

iirc, we have another bug report related to this. Right now I am looking into
AIX problems.

Which libassuan version are you using?
libassuan-config --version
should show it.

werner lowered the priority of this task from High to Normal.Sep 9 2015, 4:14 PM

I don't think it makes sense to wait longer for a response.

What we can take with from this report and similar in the past is that the
asprintf emulation (von gnulib) is troublesome. We should eventually replace
them by the libgpg-error printf functions. It is a dependency anyway. We only
need to bump up the required version.

werner claimed this task.