[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'" ;-)
Jan-Henrik
- SIGSEGV, Segmentation fault., Igor Homyakov, 2003/05/20
- Re: SIGSEGV, Segmentation fault., Martin, 2003/05/20
- Re: SIGSEGV, Segmentation fault., Martin Pala, 2003/05/20
- RE: SIGSEGV, Segmentation fault., Jan-Henrik Haukeland, 2003/05/20
- Re: SIGSEGV, Segmentation fault., Igor Homyakov, 2003/05/21
- Re: SIGSEGV, Segmentation fault., Igor Homyakov, 2003/05/21
- RE: SIGSEGV, Segmentation fault.,
Jan-Henrik Haukeland <=
- Re: SIGSEGV, Segmentation fault., Martin Pala, 2003/05/22
- Re: SIGSEGV, Segmentation fault., Igor Homyakov, 2003/05/23
- Re: SIGSEGV, Segmentation fault., Igor Homyakov, 2003/05/21
- RE: SIGSEGV, Segmentation fault., Jan-Henrik Haukeland, 2003/05/21
- Re: SIGSEGV, Segmentation fault., Igor Homyakov, 2003/05/22
- Re: SIGSEGV, Segmentation fault., Jan-Henrik Haukeland, 2003/05/23
- Re: SIGSEGV, Segmentation fault., Jan-Henrik Haukeland, 2003/05/31
- Re: SIGSEGV, Segmentation fault., Martin Pala, 2003/05/31