From owner-freebsd-stable Fri Mar 22 8:54:56 2002 Delivered-To: freebsd-stable@freebsd.org Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by hub.freebsd.org (Postfix) with ESMTP id 4358D37B404 for ; Fri, 22 Mar 2002 08:54:46 -0800 (PST) Received: from simoeon.sentex.net (pyroxene.sentex.ca [199.212.134.18]) by smtp1.sentex.ca (8.11.6/8.11.6) with ESMTP id g2MGsiV09647 for ; Fri, 22 Mar 2002 11:54:44 -0500 (EST) (envelope-from mike@sentex.net) Message-Id: <5.1.0.14.0.20020322110901.05b5d6a0@marble.sentex.ca> X-Sender: mdtpop@marble.sentex.ca X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 22 Mar 2002 11:49:19 -0500 To: stable@freebsd.org From: Mike Tancsa Subject: pgp problems on stable coredumping with sig 8 ?? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Not sure where to start with this one, but one of our newer stable boxes seems to barf with pgp versions 5 and 6 It doesnt seem to be hardware specific as I installed it on a different machine (Celeron vs PIV) with the same results OK, vinyl# gdb /usr/local/bin/pgp pgp.core GNU gdb 4.18 Copyright 1998 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 "i386-unknown-freebsd"... Core was generated by `pgp'. Program terminated with signal 8, Floating point exception. Reading symbols from /usr/lib/libstdc++.so.3...done. Reading symbols from /usr/lib/libm.so.2...done. Reading symbols from /usr/lib/libc_r.so.4...done. Reading symbols from /usr/libexec/ld-elf.so.1...done. #0 0x80b5c08 in pgpRandomCollectEntropy (rc=0x8214220) at pgpRndUnix.c:323 323 delta = (PGPUInt32)(tickdiff(t, prevt) / ticksize); (gdb) bt #0 0x80b5c08 in pgpRandomCollectEntropy (rc=0x8214220) at pgpRndUnix.c:323 #1 0x811c0b3 in pgpContextGetGlobalPoolRandomContext (context=0x82133a0) at pgpContext.c:495 #2 0x80b64a1 in pgpSeedGlobalRandomPool (context=0x82133a0) at pgpRndSeed.c:276 #3 0x811b838 in FinishInitContext (context=0x82133a0) at pgpContext.c:95 #4 0x811b8ec in pgpNewContextCustomInternal (clientAPIVersion=50339856, custom=0xbfbffb34, newContext=0xbfbffb98) at pgpContext.c:155 #5 0x811b9eb in pgpNewContextInternal (clientAPIVersion=50339856, newContext=0xbfbffb98) at pgpContext.c:195 #6 0x811ba18 in PGPNewContext (clientAPIVersion=50339856, newContext=0xbfbffb98) at pgpContext.c:217 #7 0x804ab2b in main (argc=2, argv=0xbfbffbf0) at main.c:193 #8 0x804a43d in _start () (gdb) It seems to be delta = (PGPUInt32)(tickdiff(t, prevt) / ticksize); Where tickdiff is either #define tickdiff(s,t) (((s).time-(t).time)*1000 + (s).millitm - (t).millitm) #define tickdiff(s,t) (((t).it_value.tv_sec-(s).it_value.tv_sec)*1000000 + \ (t).it_value.tv_usec - (s).it_value.tv_usec) #define tickdiff(s,t) (((s).tv_sec-(t).tv_sec)*1000000+(s).tv_usec-(t).tv_usec) #define tickdiff(s,t) (((s).tv_sec-(t).tv_sec)*1000000000 + \ (s).tv_nsec - (t).tv_nsec) #define tickdiff(s,t) ((s)-(t)) -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message