vasprintf core dump problem on Solaris 2.8

Max V. Zinal Zlat0@mail.ru
Thu Aug 8 16:28:01 2002


Andrzej Cuper wrote:
> I'm running into core dump problems with test programs t-encrypt, 
> t-decrypt etc, when runing 'make check' (on Solaris 2.8). 
> The problem seems to be with vasprintf (vasprintf.c in gpgme directory)
> implementation and more specifically with the following fragment of code.
> Also enclosed call stack from gdb. Please help!

strlen() coredump under Solaris is a common thing if you use an invalid, 
and, especially, NULL string pointer. According to the code this pointer 
was retrieved from (*args) via va_arg. You can check the arguments of 
asprintf().