GJ> On Thu, 2009-10-29 at 18:33:12 +0300, Dmitry E. Oboukhov wrote: >> I have a package which contains a code like following: >> >> #include <stdio.h> >> >> FILE *file_handle; >> >> int foo(int something, const char *fmt, ...) >> { >> // some statements >> .... >> va_list ap;
GJ> Seems you are missing a va_start call here. Oh, I wrote this example directly in a mail-client and forgot it. Sorry. full code here: http://svn.uvw.ru/mhddfs/trunk/src/debug.c va_list/va_start/va_end are present. If we try to use a binary which was compiled a long time ago, it will segfault. Rebuilding resolves segfaults. I think that problem is in binary incompatibility between different builds in macrofunction. >> int res = vfprintf(file_handle, fmt, ap); >> va_end(ap); >> return res; >> } GJ> regards, GJ> guillem -- ... mpd is off . ''`. Dmitry E. Oboukhov : :’ : email: un...@debian.org jabber://un...@uvw.ru `. `~’ GPGKey: 1024D / F8E26537 2006-11-21 `- 1B23 D4F8 8EC0 D902 0555 E438 AB8C 00CF F8E2 6537
signature.asc
Description: Digital signature