GNUTLS 2.8.5: Assertion failed on Solaris 8 Sparc

Simon Josefsson simon at josefsson.org
Thu Nov 5 14:02:50 CET 2009


Dagobert Michelsen <dam at opencsw.org> writes:

> Hi,
>
> I have a failed test in 2.8.5 on Solaris 8 Sparc with Sun Studio 11:
>
>> gmake  check-TESTS
>> gmake[9]: Entering directory `/home/dam/mgar/pkg/gnutls/trunk/work/
>> solaris8-sparc/build-isa-sparcv8/gnutls-2.8.5/lib/gl/tests'
>> PASS: test-alloca-opt
>> PASS: test-byteswap
>> PASS: test-c-ctype
>> PASS: test-errno
>> PASS: test-fseeko.sh
>> PASS: test-fseeko2.sh
>> test-func.c:40: assertion failed
>> FAIL: test-func
>> PASS: test-netdb
>> PASS: test-read-file
>> PASS: test-snprintf
>
>
> I adjust the code to show what exactly is failing:
>
>> int
>> main ()
>> {
>>   printf( "%d %d\n", strlen (__func__), sizeof __func__ );
>>   ASSERT (strlen (__func__) + 1 == sizeof __func__);
>>   return 0;
>> }
>> build8s% ./test-func
>> 4 0
>> test-func.c:41: assertion failed
>> zsh: IOT instruction (core dumped)  ./test-func
>
> I guess __func__ is kindof empty... Should this concern me?

__func__ is only used in the guile wrapper:

guile/src/utils.c:    scm_gnutls_error (GNUTLS_E_UNIMPLEMENTED_FEATURE, __func__);

If you don't build the guile libraries, you could ignore it.

A sizeof(__func__) == 0 seems odd.  What is __func__ on Solaris?  Is
there some other variable that contains the current function name on
Solaris?

I think this is a bug in gnulib's func module, so let's continue
discussion on the gnulib list.

/Simon





More information about the Gnutls-devel mailing list