'make test' fails

Raju K V rajukv@wipinfo.soft.net
Thu, 16 Sep 1999 20:12:41 +0530


--45Z9DzgjV8m4Oswq
Content-Type: text/plain; charset=us-ascii

Hi,

o/p of srcdir=. show_cmds=. ./sigs.test

/home/rajukv/work/gnupg-1.0.0/checks> srcdir=. show_cmds=. ./sigs.test
../g10/gpg --homedir . --passphrase-fd 0 -s -o x --yes plain-1
../g10/gpg --homedir . -o y --yes x
(../g10/gpg --homedir . -o y --yes x) failed
gpg: gpg: Test one (pp=def) <one@test.nowhere.nil
gpg: signal 11 caught ... exiting


/home/rajukv/work/gnupg-1.0.0/checks> gdb ../g10/gpg
GDB is free software and you are welcome to 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.

NCR GDB 3.4.02 (based on GNU GDB 4.6 + NCR fixes/extensions),
                Copyright 1992 Free Software Foundation, Inc.



Type "show new" to see a list of new features.
Reading symbols from ../g10/gpg...done.

(gdb) r --homedir . -o y --yes x
Starting program: /home/rajukv/work/gnupg-1.0.0/checks/../g10/gpg --homedir . -o y --yes x
Reading symbols from /usr/lib/libnsl.so...done.
Reading symbols from /usr/lib/libsocket.so...done.
Reading symbols from /usr/lib/libc.so.1...done.
gpg: gpg: Test one (pp=def) <one@test.nowhere.nil
Program received signal 11, Segmentation fault
0xbffe0608 in _findiop () from /usr/lib/libc.so.1
0xbffe0608:	movl   %eax,(%ecx)
(gdb) where
Searching...

>0 0xbffe0608 in _findiop () from /usr/lib/libc.so.1
#1 0x80a801e in fopen () #2 F 0x809eeca in iobuf_open (fname=0x80d8844 "") at iobuf.c:556 #3 F 0x8059536 in enum_secret_keys (context=0xe, sk=0x80d8844, with_subkeys=0) at getkey.c:1839 #4 F 0x8063e3f in verify_own_keys () at trustdb.c:509 #5 F 0x8063f4f in init_trustdb () at trustdb.c:561 #6 F 0x806638f in check_trust (pk=0x80d02e8, r_trustlevel=0x0, namehash=0x0, add_fnc=0, retflgs=0x0) at trustdb.c:2209 #7 F 0x805a84b in check_signatures_trust (sig=0x80d0228) at pkclist.c:519 #8 F 0x805fb5a in check_sig_and_print (c=0x80ce614, node=0x66) at mainproc.c:1098 #9 F 0x805fd3a in proc_tree (c=0x10, node=0x80cd5d7) at mainproc.c:1170 #10 F 0x805dae8 in release_list (c=0x10) at mainproc.c:89 #11 F 0x805f778 in do_proc_packets (c=0x10, a=0x80cdf64) at mainproc.c:1008 #12 F 0x805f42b in proc_packets (anchor=0x10, a=0x804762c) at mainproc.c:862 #13 F 0x8056640 in handle_compressed (procctx=0x0, cd=0xbfffe6b8, callback=0x80cd60a <_iob+51>, passthru=0x804742c) at compress.c:274 #14 F 0x805e3ab in proc_compressed (c=0x10, pkt=0x80cd60a) at mainproc.c:453 #15 F 0x805f686 in do_proc_packets (c=0x10, a=0x80cdf64) at mainproc.c:981 #16 F 0x805f42b in proc_packets (anchor=0x10, a=0x804755c) at mainproc.c:862 #17 F 0x8053db6 in main (argc=1, argv=0x80478bc) at g10.c:1420 ---Type <return> to continue--- #18 0x80511d9 in _start () Note: This backtrace contains frameless function calls. (gdb) q The program is running. Quit anyway? (y or n) y I am also attaching my config.h and the script output of configure along with this mail. Thanks in advance, Raju On Thu, Sep 16, 1999 at 02:57:51PM +0200, Werner Koch [wk@gnupg.org] wrote:
> Raju K V <rajukv@wipinfo.soft.net> writes:
>
> > gpg: gpg: Test one (pp=def) <one@test.nowhere.nil
> > gpg: signal 11 caught ... exiting
> > FAIL: sigs.test
>
> Ooops. Can you please do some debugging for me?
>
> (assuming /bin/sh)
>
> $ cd checks
> $ srcdir=. show_cmds=. ./sigs.test
>
> You should then see the command which caused the SEGV, please run this
> command with the same input data under a debugger and send me a
> backtrace. I'd also like to have your config.h and a script of your
> configure session.
>
> Please can you do this?
>
>
> --
> Werner Koch at guug.de www.gnupg.org keyid 621CC013
>
--45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="config.h" /* config.h. Generated automatically by configure. */ /* config.h.in. Generated automatically from configure.in by autoheader. */ /* acconfig.h - used by autoheader to make config.h.in * Copyright (C) 1998 Free Software Foundation, Inc. * * This file is part of GNUPG. * * GNUPG is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * GNUPG is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifndef G10_CONFIG_H #define G10_CONFIG_H /* need this, because some autoconf tests rely on this (e.g. stpcpy) * and it should be used for new programs */ #define _GNU_SOURCE 1 /* Define if using alloca.c. */ /* #undef C_ALLOCA */ /* Define to empty if the keyword does not work. */ /* #undef const */ /* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. This function is required for alloca.c support on those systems. */ /* #undef CRAY_STACKSEG_END */ /* Define if you have alloca, as a function or macro. */ #define HAVE_ALLOCA 1 /* Define if you have <alloca.h> and it should be used (not on Ultrix). */ #define HAVE_ALLOCA_H 1 /* Define if you don't have vprintf but do have _doprnt. */ /* #undef HAVE_DOPRNT */ /* Define if you have a working `mmap' system call. */ #define HAVE_MMAP 1 /* Define if you have the vprintf function. */ #define HAVE_VPRINTF 1 /* Define as __inline if that's what the C compiler calls it. */ /* #undef inline */ /* Define to `long' if <sys/types.h> doesn't define. */ /* #undef off_t */ /* Define if you need to in order for stat and other things to work. */ /* #undef _POSIX_SOURCE */ /* Define as the return type of signal handlers (int or void). */ #define RETSIGTYPE void /* Define to `unsigned' if <sys/types.h> doesn't define. */ /* #undef size_t */ /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be automatically deduced at run-time. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ /* #undef STACK_DIRECTION */ /* Define if you have the ANSI C header files. */ #define STDC_HEADERS 1 /* Define if `sys_siglist' is declared by <signal.h>. */ /* #undef SYS_SIGLIST_DECLARED */ /* #undef M_DEBUG */ /* #undef M_GUARD */ #define VERSION "1.0.0" #define PACKAGE "gnupg" #define PRINTABLE_OS_NAME "UNIX_SV" /* #undef IS_DEVELOPMENT_VERSION */ /* Define if your locale.h file contains LC_MESSAGES. */ #define HAVE_LC_MESSAGES 1 /* Define to 1 if NLS is requested. */ /* #undef ENABLE_NLS */ /* Define as 1 if you have catgets and don't want to use GNU gettext. */ /* #undef HAVE_CATGETS */ /* Define as 1 if you have gettext and don't want to use GNU gettext. */ /* #undef HAVE_GETTEXT */ /* #undef HAVE_STPCPY */ /* #undef BIG_ENDIAN_HOST */ #define LITTLE_ENDIAN_HOST 1 /* #undef HAVE_BYTE_TYPEDEF */ #define HAVE_USHORT_TYPEDEF 1 #define HAVE_ULONG_TYPEDEF 1 /* #undef HAVE_U16_TYPEDEF */ /* #undef HAVE_U32_TYPEDEF */ #define HAVE_BROKEN_MLOCK 1 /* defined if we have a /dev/random and /dev/urandom */ /* #undef HAVE_DEV_RANDOM */ /* and the real names of the random devices */ #define NAME_OF_DEV_RANDOM "/dev/random" #define NAME_OF_DEV_URANDOM "/dev/urandom" /* Linux has an ioctl */ /* #undef HAVE_DEV_RANDOM_IOCTL */ #define USE_DYNAMIC_LINKING 1 #define HAVE_DL_DLOPEN 1 /* #undef HAVE_DL_SHL_LOAD */ /* #undef HAVE_DLD_DLD_LINK */ #define USE_SHM_COPROCESSING 1 #define IPC_HAVE_SHM_LOCK 1 /* #undef IPC_RMID_DEFERRED_RELEASE */ /* set this to limit filenames to the 8.3 format */ /* #undef USE_ONLY_8DOT3 */ /* defined if we must run on a stupid file system */ /* #undef HAVE_DRIVE_LETTERS */ /* defined if we run on some of the PCDOS like systems (DOS, Windoze. OS/2) * with special properties like no file modes */ /* #undef HAVE_DOSISH_SYSTEM */ /* #undef USE_CAPABILITIES */ /* Some systems have mkdir that takes a single argument. */ /* #undef MKDIR_TAKES_ONE_ARG */ /* The number of bytes in a unsigned int. */ #define SIZEOF_UNSIGNED_INT 4 /* The number of bytes in a unsigned long. */ #define SIZEOF_UNSIGNED_LONG 4 /* The number of bytes in a unsigned short. */ #define SIZEOF_UNSIGNED_SHORT 2 /* Define if you have the __argz_count function. */ /* #undef HAVE___ARGZ_COUNT */ /* Define if you have the __argz_next function. */ /* #undef HAVE___ARGZ_NEXT */ /* Define if you have the __argz_stringify function. */ /* #undef HAVE___ARGZ_STRINGIFY */ /* Define if you have the atexit function. */ #define HAVE_ATEXIT 1 /* Define if you have the dcgettext function. */ /* #undef HAVE_DCGETTEXT */ /* Define if you have the getcwd function. */ #define HAVE_GETCWD 1 /* Define if you have the gethrtime function. */ /* #undef HAVE_GETHRTIME */ /* Define if you have the getpagesize function. */ /* #undef HAVE_GETPAGESIZE */ /* Define if you have the getrusage function. */ /* #undef HAVE_GETRUSAGE */ /* Define if you have the gettimeofday function. */ #define HAVE_GETTIMEOFDAY 1 /* Define if you have the memicmp function. */ /* #undef HAVE_MEMICMP */ /* Define if you have the memmove function. */ #define HAVE_MEMMOVE 1 /* Define if you have the mlock function. */ #define HAVE_MLOCK 1 /* Define if you have the mmap function. */ #define HAVE_MMAP 1 /* Define if you have the munmap function. */ #define HAVE_MUNMAP 1 /* Define if you have the nl_langinfo function. */ #define HAVE_NL_LANGINFO 1 /* Define if you have the putenv function. */ #define HAVE_PUTENV 1 /* Define if you have the raise function. */ #define HAVE_RAISE 1 /* Define if you have the rand function. */ #define HAVE_RAND 1 /* Define if you have the setenv function. */ /* #undef HAVE_SETENV */ /* Define if you have the setlocale function. */ #define HAVE_SETLOCALE 1 /* Define if you have the setrlimit function. */ #define HAVE_SETRLIMIT 1 /* Define if you have the stpcpy function. */ /* #undef HAVE_STPCPY */ /* Define if you have the strcasecmp function. */ /* #undef HAVE_STRCASECMP */ /* Define if you have the strchr function. */ #define HAVE_STRCHR 1 /* Define if you have the strdup function. */ #define HAVE_STRDUP 1 /* Define if you have the strerror function. */ #define HAVE_STRERROR 1 /* Define if you have the strftime function. */ #define HAVE_STRFTIME 1 /* Define if you have the stricmp function. */ /* #undef HAVE_STRICMP */ /* Define if you have the strlwr function. */ /* #undef HAVE_STRLWR */ /* Define if you have the strtoul function. */ #define HAVE_STRTOUL 1 /* Define if you have the tcgetattr function. */ #define HAVE_TCGETATTR 1 /* Define if you have the <argz.h> header file. */ /* #undef HAVE_ARGZ_H */ /* Define if you have the <gdbm.h> header file. */ /* #undef HAVE_GDBM_H */ /* Define if you have the <langinfo.h> header file. */ #define HAVE_LANGINFO_H 1 /* Define if you have the <limits.h> header file. */ #define HAVE_LIMITS_H 1 /* Define if you have the <linux/random.h> header file. */ /* #undef HAVE_LINUX_RANDOM_H */ /* Define if you have the <locale.h> header file. */ #define HAVE_LOCALE_H 1 /* Define if you have the <malloc.h> header file. */ #define HAVE_MALLOC_H 1 /* Define if you have the <nl_types.h> header file. */ #define HAVE_NL_TYPES_H 1 /* Define if you have the <string.h> header file. */ #define HAVE_STRING_H 1 /* Define if you have the <sys/capability.h> header file. */ /* #undef HAVE_SYS_CAPABILITY_H */ /* Define if you have the <sys/ipc.h> header file. */ #define HAVE_SYS_IPC_H 1 /* Define if you have the <sys/param.h> header file. */ #define HAVE_SYS_PARAM_H 1 /* Define if you have the <sys/shm.h> header file. */ #define HAVE_SYS_SHM_H 1 /* Define if you have the <unistd.h> header file. */ #define HAVE_UNISTD_H 1 /* Define if you have the <zlib.h> header file. */ /* #undef HAVE_ZLIB_H */ /* Define if you have the c library (-lc). */ /* #undef HAVE_LIBC */ /* Define if you have the dl library (-ldl). */ #define HAVE_LIBDL 1 /* Define if you have the dld library (-ldld). */ /* #undef HAVE_LIBDLD */ /* Define if you have the gdbm library (-lgdbm). */ /* #undef HAVE_LIBGDBM */ /* Define if you have the i library (-li). */ /* #undef HAVE_LIBI */ /* Define if you have the nsl library (-lnsl). */ /* #undef HAVE_LIBNSL */ /* define if compiled symbols have a leading underscore */ /* #undef WITH_SYMBOL_UNDERSCORE */ #include "g10defs.h" #endif /*G10_CONFIG_H*/ --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="configure.script" configure --prefix=/home/rajukv/install --enable-static-rnd=unix --with-included-zlib --with-gnu-ld --disable-nls --with-included-gettext creating cache ./config.cache checking which static random module to use... unix checking whether use of /dev/random is requested... yes checking whether use of extensions is requested... yes checking whether assembler modules are requested... yes checking whether memory debugging is requested... no checking whether memory guard is requested... no checking whether included zlib is requested... yes checking whether compilation of libgcrypt is requested... no checking whether use of capabilities is requested... no checking whether to enable maintainer-specific portions of Makefiles... no checking host system type... i586-ncr-sysv4.3.03 checking target system type... i586-ncr-sysv4.3.03 checking build system type... i586-ncr-sysv4.3.03 checking whether make sets ${MAKE}... yes checking whether build environment is sane... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking how to run the C preprocessor... gcc -E checking for POSIXized ISC... no checking for a BSD compatible install... /home/rajukv/install/bin/install -c checking for mawk... no checking for gawk... no checking for nawk... nawk checking for docbook-to-man... no checking for ranlib... ranlib checking for ld used by GCC... /home/rajukv/install/i586-ncr-sysv4.3.03/bin/ld checking if the linker (/home/rajukv/install/i586-ncr-sysv4.3.03/bin/ld) is GNU ld... yes checking for BSD-compatible nm... /home/rajukv/install/bin/nm -B checking whether ln -s works... yes updating cache ./config.cache loading cache ./config.cache within ltconfig checking for object suffix... o checking for executable suffix... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions ... yes checking if gcc static flag -static works... -static checking if the linker (/home/rajukv/install/i586-ncr-sysv4.3.03/bin/ld) is GNU ld... yes checking whether the linker (/home/rajukv/install/i586-ncr-sysv4.3.03/bin/ld) supports shared libraries... yes checking command to parse /home/rajukv/install/bin/nm -B output... ok checking how to hardcode library paths into programs... immediate checking for /home/rajukv/install/i586-ncr-sysv4.3.03/bin/ld option to reload object files... -r checking dynamic linker characteristics... sysv4.3.03 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking for objdir... .libs creating libtool updating cache ./config.cache loading cache ./config.cache checking for BSD-compatible nm... (cached) /home/rajukv/install/bin/nm -B checking command to parse /home/rajukv/install/bin/nm -B output... yes checking for _ prefix in compiled symbols... no checking for option to create PIC... -fPIC checking how to specify -rdynamic... -Wl,-export-dynamic checking for ANSI C header files... yes checking for working const... yes checking for inline... inline checking for off_t... yes checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for unistd.h... yes checking for getpagesize... no checking for working mmap... yes checking for argz.h... no checking for limits.h... yes checking for locale.h... yes checking for nl_types.h... yes checking for malloc.h... yes checking for string.h... yes checking for unistd.h... (cached) yes checking for sys/param.h... yes checking for getcwd... yes checking for munmap... yes checking for putenv... yes checking for setenv... no checking for setlocale... yes checking for strchr... yes checking for strcasecmp... no checking for strdup... yes checking for __argz_count... no checking for __argz_stringify... no checking for __argz_next... no checking for stpcpy... no checking for LC_MESSAGES... yes checking whether NLS is requested... no checking for gdbm.h... no checking for gethostbyname in -lnsl... no checking for socket in -lsocket... no checking for gethostbyname in -lnsl... (cached) no checking for dlopen in -ldl... yes checking for ANSI C header files... (cached) yes checking for unistd.h... (cached) yes checking for langinfo.h... yes checking for working const... (cached) yes checking for inline... (cached) inline checking for size_t... (cached) yes checking return type of signal handlers... void checking for sys_siglist declaration in signal.h or unistd.h... no checking endianess... little checking for byte typedef... no checking for ushort typedef... yes checking for ulong typedef... yes checking for u16 typedef... no checking for u32 typedef... no checking size of unsigned short... 2 checking size of unsigned int... 4 checking size of unsigned long... 4 checking for vprintf... yes checking for strerror... yes checking for stpcpy... (cached) no checking for strlwr... no checking for stricmp... no checking for tcgetattr... yes checking for rand... yes checking for strtoul... yes checking for mmap... yes checking for memmove... yes checking for gettimeofday... yes checking for getrusage... no checking for gethrtime... no checking for setrlimit... yes checking for memicmp... no checking for atexit... yes checking for raise... yes checking for getpagesize... (cached) no checking for strftime... yes checking for nl_langinfo... yes checking for mlock... yes checking whether mlock is broken... yes checking if mkdir takes one argument... no checking for sys/ipc.h... yes checking for sys/shm.h... yes checking whether IPC_RMID allowes subsequent attaches... no checking whether SHM_LOCK is available... yes checking for random device... no configure: warning: *** *** The performance of the UNIX random gatherer module is not very good *** and it does not keep the entropy pool over multiple invocations of *** GnuPG. The suggested way to overcome this problem is to use the *** *** Entropy Gathering Daemon (EGD) *** *** which provides a entropy source for the whole system. It is written *** in Perl and available at the GnuPG FTP servers. For more information *** consult the GnuPG webpages: *** *** http://www.gnupg.org/download.html#egd *** *** You may want to run ./configure with --enable-static-rnd=none to be *** able to load the EGD client code dynamically; this way you can choose *** between RNDUNIX and RNDEGD without recompilation. *** dynamically linked cipher modules: rndlinux rndegd tiger statically linked cipher modules: rndunix sha1 rmd160 md5 checking for mpi assembler functions... done updating cache ./config.cache creating ./config.status creating Makefile creating intl/Makefile creating po/Makefile.in creating util/Makefile creating mpi/Makefile creating cipher/Makefile creating g10/Makefile creating doc/Makefile creating doc/gph/Makefile creating tools/Makefile creating zlib/Makefile creating checks/Makefile creating gcrypt/Makefile creating config.h linking ./intl/libgettext.h to intl/libintl.h linking ./mpi/i586/mpih-add1.S to mpi/mpih-add1.S linking ./mpi/i586/mpih-mul1.S to mpi/mpih-mul1.S linking ./mpi/i586/mpih-mul2.S to mpi/mpih-mul2.S linking ./mpi/i586/mpih-mul3.S to mpi/mpih-mul3.S linking ./mpi/i586/mpih-lshift.S to mpi/mpih-lshift.S linking ./mpi/i586/mpih-rshift.S to mpi/mpih-rshift.S linking ./mpi/i586/mpih-sub1.S to mpi/mpih-sub1.S linking ./zlib/zlib.h to zlib.h linking ./zlib/zconf.h to zconf.h g10defs.h created /home/rajukv/work/gnupg-1.0.0> --45Z9DzgjV8m4Oswq--