Debian Bug report logs -
#459567
dirmngr segfaults on hppa architecture
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
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):
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):
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):
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):
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):
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):
[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):
> 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):
[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):
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):
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):
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):
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):
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):
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.