SEGV while working with va_list