[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: SIGSEGV, Segmentation fault.

From: Jan-Henrik Haukeland
Subject: RE: SIGSEGV, Segmentation fault.
Date: Wed, 21 May 2003 21:26:55 -0000

> man vsnprintf from my system (glibc-2.2.6)
>    Return value
>        Upon successful return, these functions return the number 
> of characters printed  (not  including  the  trailing  '\0'  used  to  
> end  output to strings).

> my GDB log:
> (gdb) n
> 122       va_start(ap,format);
> (gdb) n
> 123       rc = vsnprintf(msg, STRLEN, format, ap);
> (gdb) n
> 126       if(! Run.dolog) goto nolog;
> (gdb) print rc
> $1 = 22

Yes, and this looks about right since I can figure out from your previous
mail that the string built is "Starting monit daemon\n\0" which by 
coincidence is 22 bytes long, "not  including  the  trailing  '\0'"  ;-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]