Debian Bug report logs - #459567
dirmngr segfaults on hppa architecture

version graph

Package: dirmngr; Maintainer for dirmngr is Debian GnuPG Maintainers <pkg-gnupg-maint@lists.alioth.debian.org>; Source for dirmngr is src:gnupg2 (PTS, buildd, popcon).

Reported by: Helge Deller <helge.deller@sap.com>

Date: Mon, 7 Jan 2008 11:15:02 UTC

Severity: grave

Tags: help

Found in version dirmngr/1.0.1-2

Done: Thomas Viehmann <tv@beamnet.de>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, deller@gmx.de, Peter Eisentraut <petere@debian.org>:
Bug#459567; Package dirmngr. (full text, mbox, link).


Acknowledgement sent to Helge Deller <helge.deller@sap.com>:
New Bug report received and forwarded. Copy sent to deller@gmx.de, Peter Eisentraut <petere@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Helge Deller <helge.deller@sap.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dirmngr segfaults on hppa architecture
Date: Mon, 07 Jan 2008 12:13:07 +0100
Package: dirmngr
Version: 1.0.1-2
Severity: grave

dirmngr segfaults at once on hppa architecture

Example:
3545:~# uname -a
Linux ls3545 2.6.24-rc4 #25 Sat Dec 8 12:36:01 CET 2007 parisc GNU/Linux

ls3545:~# dirmngr
dirmngr[28087]: error opening `/root/.gnupg/dirmngr_ldapservers.conf':
No such file or directory
Segmentation fault

strace shows:
.....
gettimeofday({1199704348, 771319}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, NULL, ~[KILL STOP], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
open("/root/.gnupg/dirmngr.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/root/.gnupg/dirmngr_ldapservers.conf", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
fstat64(2, {st_mode=0, st_size=46673409605637, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x40008000
getpid()                                = 28089
write(2, "dirmngr[28089]: error opening `/"..., 97dirmngr[28089]: error
opening `/root/.gnupg/dirmngr_ldapservers.conf': No such file or
directory
) = 97
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40009000
gettimeofday({1199704348, 777586}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [USR1], [], 8) = 0
rt_sigaction(SIGUSR1, {0x406578fa, [], SA_STACK}, {SIG_DFL}, 8) = 0
sigaltstack({ss_sp=0x40009008, ss_flags=0, ss_size=262144}, {ss_sp=0,
ss_flags=SS_DISABLE, ss_size=0}) = 0
getpid()                                = 28089
kill(28089, SIGUSR1)                    = 0
rt_sigsuspend(~[USR1])                  = -514
--- SIGUSR1 (User defined signal 1) @ 0 (0) ---
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 28089 detached



-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: hppa (parisc)

Kernel: Linux 2.6.24-rc4
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dirmngr depends on:
ii  adduser                 3.105            add and remove users and groups
ii  libc6                   2.7-5            GNU C Library: Shared libraries
ii  libgcrypt11             1.4.0-2          LGPL Crypto library - runtime libr
ii  libgpg-error0           1.4-2            library for common error values an
ii  libksba8                1.0.2-1          X.509 and CMS support library
ii  libldap2                2.1.30.dfsg-13.5 OpenLDAP libraries
ii  libpth20                2.0.7-9          The GNU Portable Threads
ii  lsb-base                3.1-24           Linux Standard Base 3.1 init scrip

dirmngr recommends no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Peter Eisentraut <petere@debian.org>:
Bug#459567; Package dirmngr. (full text, mbox, link).


Acknowledgement sent to Peter Eisentraut <peter_e@gmx.net>:
Extra info received and forwarded to list. Copy sent to Peter Eisentraut <petere@debian.org>. (full text, mbox, link).


Message #10 received at 459567@bugs.debian.org (full text, mbox, reply):

From: Peter Eisentraut <peter_e@gmx.net>
To: Helge Deller <helge.deller@sap.com>, 459567@bugs.debian.org
Subject: Re: Bug#459567: dirmngr segfaults on hppa architecture
Date: Wed, 16 Jan 2008 12:07:49 +0100
Am Montag, 7. Januar 2008 schrieb Helge Deller:
> dirmngr segfaults at once on hppa architecture

Please get a backtrace to see where it crashes.




Information forwarded to debian-bugs-dist@lists.debian.org, Peter Eisentraut <petere@debian.org>:
Bug#459567; Package dirmngr. (full text, mbox, link).


Acknowledgement sent to "Deller, Helge" <helge.deller@sap.com>:
Extra info received and forwarded to list. Copy sent to Peter Eisentraut <petere@debian.org>. (full text, mbox, link).


Message #15 received at 459567@bugs.debian.org (full text, mbox, reply):

From: "Deller, Helge" <helge.deller@sap.com>
To: <459567@bugs.debian.org>, "Peter Eisentraut" <peter_e@gmx.net>
Subject: RE: Bug#459567: dirmngr segfaults on hppa architecture
Date: Wed, 16 Jan 2008 14:24:20 +0100
Not sure if this gdb-backtrace helps:

Program received signal SIGUSR1, User defined signal 1.
0x409efe78 in sigsuspend () from /lib/libc.so.6
(gdb) bt
#0  0x409efe78 in sigsuspend () from /lib/libc.so.6
#1  0x40648d44 in __pth_mctx_set () from /usr/lib/libpth.so.20
#2  0x4064c5bc in pth_spawn () from /usr/lib/libpth.so.20
#3  0x4064cdac in pth_init () from /usr/lib/libpth.so.20
#4  0x00014ddc in ?? ()
#5  0x40173e60 in ?? () from /usr/lib/libgcrypt.so.11
#6  0x4016ed78 in ?? () from /usr/lib/libgcrypt.so.11
#7  0x4016f058 in ?? () from /usr/lib/libgcrypt.so.11
#8  0x4016dc40 in gcry_control () from /usr/lib/libgcrypt.so.11
#9  0x0001618c in main ()




Information forwarded to debian-bugs-dist@lists.debian.org, Peter Eisentraut <petere@debian.org>:
Bug#459567; Package dirmngr. (full text, mbox, link).


Acknowledgement sent to Peter Eisentraut <peter_e@gmx.net>:
Extra info received and forwarded to list. Copy sent to Peter Eisentraut <petere@debian.org>. (full text, mbox, link).


Message #20 received at 459567@bugs.debian.org (full text, mbox, reply):

From: Peter Eisentraut <peter_e@gmx.net>
To: "Deller, Helge" <helge.deller@sap.com>
Cc: 459567@bugs.debian.org
Subject: Re: Bug#459567: dirmngr segfaults on hppa architecture
Date: Wed, 16 Jan 2008 14:59:01 +0100
Am Mittwoch, 16. Januar 2008 schrieb Deller, Helge:
> Not sure if this gdb-backtrace helps:

Try installing some debug symbols (libgcrypt11-dbg?).




Information forwarded to debian-bugs-dist@lists.debian.org, Peter Eisentraut <petere@debian.org>:
Bug#459567; Package dirmngr. (full text, mbox, link).


Acknowledgement sent to "Deller, Helge" <helge.deller@sap.com>:
Extra info received and forwarded to list. Copy sent to Peter Eisentraut <petere@debian.org>. (full text, mbox, link).


Message #25 received at 459567@bugs.debian.org (full text, mbox, reply):

From: "Deller, Helge" <helge.deller@sap.com>
To: "Peter Eisentraut" <peter_e@gmx.net>, <459567@bugs.debian.org>
Subject: RE: Bug#459567: dirmngr segfaults on hppa architecture
Date: Wed, 16 Jan 2008 15:04:27 +0100
Starting program: /usr/bin/dirmngr
(no debugging symbols found)

Program received signal SIGUSR1, User defined signal 1.
0x40defe78 in sigsuspend () from /lib/libc.so.6
(gdb) bt
#0  0x40defe78 in sigsuspend () from /lib/libc.so.6
#1  0x40a48d44 in __pth_mctx_set () from /usr/lib/libpth.so.20
#2  0x40a4c5bc in pth_spawn () from /usr/lib/libpth.so.20
#3  0x40a4cdac in pth_init () from /usr/lib/libpth.so.20
#4  0x00014ddc in ?? ()
#5  0x40173e60 in _gcry_ath_init () at ath.c:67
#6  0x4016ed78 in global_init () at global.c:75
#7  0x4016f058 in _gcry_vcontrol (cmd=<value optimized out>,
arg_ptr=0xfb1ae4dc) at global.c:383
#8  0x4016dc40 in gcry_control (cmd=<value optimized out>) at
visibility.c:76
#9  0x0001618c in main ()




Tags added: help Request was from Peter Eisentraut <petere@debian.org> to control@bugs.debian.org. (Sat, 02 Feb 2008 20:42:04 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Peter Eisentraut <petere@debian.org>:
Bug#459567; Package dirmngr. (full text, mbox, link).


Acknowledgement sent to Pierre Habouzit <madcoder@debian.org>:
Extra info received and forwarded to list. Copy sent to Peter Eisentraut <petere@debian.org>. (full text, mbox, link).


Message #32 received at 459567@bugs.debian.org (full text, mbox, reply):

From: Pierre Habouzit <madcoder@debian.org>
To: "Deller, Helge" <helge.deller@sap.com>, 459567@bugs.debian.org
Cc: Peter Eisentraut <peter_e@gmx.net>
Subject: Re: Bug#459567: dirmngr segfaults on hppa architecture
Date: Fri, 30 May 2008 20:24:20 +0200
[Message part 1 (text/plain, inline)]
On Wed, Jan 16, 2008 at 02:04:27PM +0000, Deller, Helge wrote:
> Starting program: /usr/bin/dirmngr
> (no debugging symbols found)
> 
> Program received signal SIGUSR1, User defined signal 1.
> 0x40defe78 in sigsuspend () from /lib/libc.so.6
> (gdb) bt
> #0  0x40defe78 in sigsuspend () from /lib/libc.so.6
> #1  0x40a48d44 in __pth_mctx_set () from /usr/lib/libpth.so.20
> #2  0x40a4c5bc in pth_spawn () from /usr/lib/libpth.so.20
> #3  0x40a4cdac in pth_init () from /usr/lib/libpth.so.20
> #4  0x00014ddc in ?? ()
> #5  0x40173e60 in _gcry_ath_init () at ath.c:67
> #6  0x4016ed78 in global_init () at global.c:75
> #7  0x4016f058 in _gcry_vcontrol (cmd=<value optimized out>,
> arg_ptr=0xfb1ae4dc) at global.c:383
> #8  0x4016dc40 in gcry_control (cmd=<value optimized out>) at
> visibility.c:76
> #9  0x0001618c in main ()

  FWIW this is likely to be a libpth issue, which in turn may be a
makecontext/setcontext issue in the glibc. You have to contact porters
about that.

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Peter Eisentraut <petere@debian.org>:
Bug#459567; Package dirmngr. (full text, mbox, link).


Acknowledgement sent to "Deller, Helge" <helge.deller@sap.com>:
Extra info received and forwarded to list. Copy sent to Peter Eisentraut <petere@debian.org>. (full text, mbox, link).


Message #37 received at 459567@bugs.debian.org (full text, mbox, reply):

From: "Deller, Helge" <helge.deller@sap.com>
To: "Pierre Habouzit" <madcoder@debian.org>, <459567@bugs.debian.org>
Cc: "Peter Eisentraut" <peter_e@gmx.net>
Subject: RE: Bug#459567: dirmngr segfaults on hppa architecture
Date: Mon, 2 Jun 2008 10:08:41 +0200
> FWIW this is likely to be a libpth issue, which in turn may be a
> makecontext/setcontext issue in the glibc. You have to contact porters
> about that.

I know for sure, that the makecontext/setcontext have not yet been
implemented on hppa.
Are they required for dirmngr ?




Information forwarded to debian-bugs-dist@lists.debian.org, Peter Eisentraut <petere@debian.org>:
Bug#459567; Package dirmngr. (full text, mbox, link).


Acknowledgement sent to Pierre Habouzit <madcoder@debian.org>:
Extra info received and forwarded to list. Copy sent to Peter Eisentraut <petere@debian.org>. (full text, mbox, link).


Message #42 received at 459567@bugs.debian.org (full text, mbox, reply):

From: Pierre Habouzit <madcoder@debian.org>
To: "Deller, Helge" <helge.deller@sap.com>
Cc: 459567@bugs.debian.org, Peter Eisentraut <peter_e@gmx.net>
Subject: Re: Bug#459567: dirmngr segfaults on hppa architecture
Date: Mon, 02 Jun 2008 10:58:04 +0200
[Message part 1 (text/plain, inline)]
On Mon, Jun 02, 2008 at 08:08:41AM +0000, Deller, Helge wrote:
> > FWIW this is likely to be a libpth issue, which in turn may be a
> > makecontext/setcontext issue in the glibc. You have to contact porters
> > about that.
> 
> I know for sure, that the makecontext/setcontext have not yet been
> implemented on hppa.
> Are they required for dirmngr ?

  Okay and that's what the strack dump shows. libpth uses
make/setcontext when available, and else uses sigaltstack tricks to do
threads. I assume something is broken in the latter code, maybe with
recent compilers.

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Peter Eisentraut <petere@debian.org>:
Bug#459567; Package dirmngr. (full text, mbox, link).


Acknowledgement sent to Moritz Muehlenhoff <jmm@inutil.org>:
Extra info received and forwarded to list. Copy sent to Peter Eisentraut <petere@debian.org>. (full text, mbox, link).


Message #47 received at 459567@bugs.debian.org (full text, mbox, reply):

From: Moritz Muehlenhoff <jmm@inutil.org>
To: Pierre Habouzit <madcoder@debian.org>
Cc: "Deller, Helge" <helge.deller@sap.com>, 459567@bugs.debian.org, Peter Eisentraut <peter_e@gmx.net>
Subject: Re: Bug#459567: dirmngr segfaults on hppa architecture
Date: Wed, 2 Jul 2008 23:49:43 +0200
Pierre Habouzit wrote:
> On Mon, Jun 02, 2008 at 08:08:41AM +0000, Deller, Helge wrote:
> > > FWIW this is likely to be a libpth issue, which in turn may be a
> > > makecontext/setcontext issue in the glibc. You have to contact porters
> > > about that.
> > 
> > I know for sure, that the makecontext/setcontext have not yet been
> > implemented on hppa.
> > Are they required for dirmngr ?
> 
>   Okay and that's what the strack dump shows. libpth uses
> make/setcontext when available, and else uses sigaltstack tricks to do
> threads. I assume something is broken in the latter code, maybe with
> recent compilers.

Helge, could you test whether rebuilding pth with -O0 fixes the dirmngr
problem for you?

Cheers,
        Moritz




Information forwarded to debian-bugs-dist@lists.debian.org, Peter Eisentraut <petere@debian.org>:
Bug#459567; Package dirmngr. (full text, mbox, link).


Acknowledgement sent to Helge Deller <deller@gmx.de>:
Extra info received and forwarded to list. Copy sent to Peter Eisentraut <petere@debian.org>. (full text, mbox, link).


Message #52 received at 459567@bugs.debian.org (full text, mbox, reply):

From: Helge Deller <deller@gmx.de>
To: 459567@bugs.debian.org
Subject: [RFC] Patch for glibc getcontext()/makecontext()/setcontext()/swapcontext()
Date: Sat, 19 Jul 2008 00:22:03 +0200
Proposed patch to glibc posted here, waiting for feedback.
http://permalink.gmane.org/gmane.linux.ports.parisc/524

(It fixed this bug for me, after I rebuilt pth-2.0.7 with the *context() implementation).




Information forwarded to debian-bugs-dist@lists.debian.org, Peter Eisentraut <petere@debian.org>:
Bug#459567; Package dirmngr. (full text, mbox, link).


Acknowledgement sent to Moritz Muehlenhoff <jmm@inutil.org>:
Extra info received and forwarded to list. Copy sent to Peter Eisentraut <petere@debian.org>. (full text, mbox, link).


Message #57 received at 459567@bugs.debian.org (full text, mbox, reply):

From: Moritz Muehlenhoff <jmm@inutil.org>
To: Helge Deller <deller@gmx.de>
Cc: 459567@bugs.debian.org, control@bugs.debian.org
Subject: Re: [RFC] Patch for glibc getcontext()/makecontext()/setcontext()/swapcontext()
Date: Mon, 28 Jul 2008 21:45:17 +0200
clone 459567 -1 -2
reassign -1 glibc
retitle -1 glibc: [hppa] Patch for getcontext()/makecontext()/setcontext()/swapcontext()
reassign -2 pth
retitle -2 pth: Should use *context() on hppa
thanks

Helge Deller wrote:
> Proposed patch to glibc posted here, waiting for feedback.
> http://permalink.gmane.org/gmane.linux.ports.parisc/524
> 
> (It fixed this bug for me, after I rebuilt pth-2.0.7 with the *context() implementation).

I'm cloning this to glibc and pth, so that the respective maintainers are
aware of this issue.

Cheers,
        Moritz






Bug 459567 cloned as bugs 492778, 492779. Request was from Moritz Muehlenhoff <jmm@inutil.org> to control@bugs.debian.org. (Mon, 28 Jul 2008 19:48:06 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Peter Eisentraut <petere@debian.org>:
Bug#459567; Package dirmngr. (Sat, 04 Oct 2008 12:39:02 GMT) (full text, mbox, link).


Acknowledgement sent to Moritz Muehlenhoff <jmm@inutil.org>:
Extra info received and forwarded to list. Copy sent to Peter Eisentraut <petere@debian.org>. (Sat, 04 Oct 2008 12:39:02 GMT) (full text, mbox, link).


Message #64 received at 459567@bugs.debian.org (full text, mbox, reply):

From: Moritz Muehlenhoff <jmm@inutil.org>
To: Moritz Muehlenhoff <jmm@inutil.org>
Cc: Helge Deller <deller@gmx.de>, 459567@bugs.debian.org, 492779@bugs.debian.org
Subject: Re: [RFC] Patch for glibc getcontext()/makecontext()/setcontext()/swapcontext()
Date: Sat, 4 Oct 2008 14:35:52 +0200
On Mon, Jul 28, 2008 at 09:45:17PM +0200, Moritz Muehlenhoff wrote:
> clone 459567 -1 -2
> reassign -1 glibc
> retitle -1 glibc: [hppa] Patch for getcontext()/makecontext()/setcontext()/swapcontext()
> reassign -2 pth
> retitle -2 pth: Should use *context() on hppa
> thanks
> 
> Helge Deller wrote:
> > Proposed patch to glibc posted here, waiting for feedback.
> > http://permalink.gmane.org/gmane.linux.ports.parisc/524
> > 
> > (It fixed this bug for me, after I rebuilt pth-2.0.7 with the *context() implementation).
> 
> I'm cloning this to glibc and pth, so that the respective maintainers are
> aware of this issue.

FYI: glibc 2.7-14 has just been uploaded to unstable with a patch implementing
*context() on sparc and hppa.

Cheers,
        Moritz




Information forwarded to debian-bugs-dist@lists.debian.org, Peter Eisentraut <petere@debian.org>:
Bug#459567; Package dirmngr. (Mon, 06 Oct 2008 20:12:06 GMT) (full text, mbox, link).


Acknowledgement sent to Thomas Viehmann <tv@beamnet.de>:
Extra info received and forwarded to list. Copy sent to Peter Eisentraut <petere@debian.org>. (Mon, 06 Oct 2008 20:12:06 GMT) (full text, mbox, link).


Message #69 received at 459567@bugs.debian.org (full text, mbox, reply):

From: Thomas Viehmann <tv@beamnet.de>
To: 459567@bugs.debian.org
Cc: Moritz Muehlenhoff <jmm@inutil.org>, Helge Deller <deller@gmx.de>
Subject: fixed pth on its way
Date: Mon, 06 Oct 2008 22:11:35 +0200
Hi,

I have NMUed to build-depend on the new glibc on hppa and verified that
the dirmngr segfault goes away with that version.
Given that the problem is probably not dirmngr-specific and will go away
once a newer libpth is installed, I suggest to close this bug without an
upload once pth 2.0.7-10.1 hits lenny.

Kind regards

T.
-- 
Thomas Viehmann, http://thomas.viehmann.net/




Reply sent to Thomas Viehmann <tv@beamnet.de>:
You have taken responsibility. (Sun, 19 Oct 2008 08:30:09 GMT) (full text, mbox, link).


Notification sent to Helge Deller <helge.deller@sap.com>:
Bug acknowledged by developer. (Sun, 19 Oct 2008 08:30:09 GMT) (full text, mbox, link).


Message #74 received at 459567-done@bugs.debian.org (full text, mbox, reply):

From: Thomas Viehmann <tv@beamnet.de>
To: 459567-done@bugs.debian.org
Subject: fixed pth eliminates this bug
Date: Sun, 19 Oct 2008 10:29:06 +0200
Hi,

with the #492779 fix migrated to lenny, this can be closed.

Kind regards

T.
-- 
Thomas Viehmann, http://thomas.viehmann.net/




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 17 Nov 2008 07:28:33 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Jan 11 07:59:47 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.