gnutls-3.0.18 make check fails on Solaris10

Kiyoshi KANAZAWA yoi_no_myoujou at yahoo.co.jp
Wed Apr 4 12:30:50 CEST 2012


Hi, Nikos,

Checking "simple -v", I understood /usr/local/GNU/lib/libgnutls.so.28 was linked instead of TOP/gnutls-3.0.18/lib/.libs/libgnutls.so.28.
After setting "TOP/gnutls-3.0.18/lib/.libs" to the head of LD_LIBRARY_PATH,
both "simple" and "mini-termination" passed.
It seemed that there is no problem except for -DAF_LOCAL=AF_UNIX, if old versions of GNUTLS are uninstalled, but, 
I encountered "Segmentation Fault" in pkcs12 again, even if I specifyed -I(TOP)/lib/includes.
It might be unstable.

This time, made coredump and watched it.
NULL is given to the parameter of fprintf's "%s" in print_bag_data (), certtool.c

% pwd
/tmp/gnutls-3.0.18/tests/pkcs12-decode 
% pkcs12 -v
NEON PKCS12 OK client.p12 foobar
NEON PKCS12 OK noclient.p12
NEON PKCS12 OK unclient.p12
Segmentation Fault - core dumped
        Type: Encrypted

        Decrypting...
        Type: Certificate
        Type: Certificate
NEON PKCS12 FATAL pkcs12_2certs.p12
NEON PKCS12 DONE (rc 1)
% file core
core: ELF 32-bit LSB core file 80386 Version 1, from 'certtool'
% file `find /tmp/gnutls-3.0.18 -type f -name certtool`
/tmp/gnutls-3.0.18/src/.libs/certtool: ELF 32-bit LSB executable 80386 Version 1, dynamically linked, not stripped
/tmp/gnutls-3.0.18/src/certtool: executable /bin/bash script

%dbx /tmp/gnutls-3.0.18/src/.libs/certtool core
    :
t at 1 (l at 1) program terminated by signal SEGV (no mapping at the fault address)
0xfe9f63dc: strlen+0x000c:      movl     (%eax),%edx
Current function is print_bag_data
 2605         fprintf (outfile, "\tKey ID: %s\n", raw_to_string (id.data, id.size));
(dbx) where
current thread: t at 1
dbx: internal error: reference through NULL pointer at line 1111 in file symbol.cc
  [1] strlen(0x0), at 0xfe9f63dc 
  [2] _ndoprnt(0x807ae0a, 0x8046638, 0x808f5d0, 0x0), at 0xfea5169a 
  [3] _fprintf(0x808f5d0, 0x807adff, 0x0, 0x808f5e0, 0x8046660, 0xfefc4a84), at 0xfea54229 
=>[4] print_bag_data( (inlined), line 2605 in "certtool.c"
  [5] pkcs12_info(cinfo = (nil)), line -2106288 in "certtool.c"

Regards,

--- Kiyoshi <yoi_no_myoujou at yahoo.co.jp>


--- On Wed, 2012/4/4, Nikos Mavrogiannopoulos <nmav at gnutls.org> wrote:

> On Wed, Apr 4, 2012 at 5:24 AM, Kiyoshi KANAZAWA
> <yoi_no_myoujou at yahoo.co.jp> wrote:
> 
> > (1) 'AF_LOCAL' undeclared
> > As I mentioned in the previous e-mail, it chenged to
> > FAIL: simple
> > FAIL: mini-termination
> > by -DAF_LOCAL=AF_UNIX
> 
> Nice. Could you provide me the output of
> $ simple -v
> and
> $ mini-termination -v
> 
> 
> 
> regards,
> Nikos
> 




More information about the Gnutls-devel mailing list