I've a C question :)

Why cannot I use:

    printf("%s\n", "IT WORKS");

and have to use:

    fprintf(stderr, "%s\n", "IT WORKS");

in the mod_perl sources?

Doug, I've figured what was my problem :)

Here is the relevant part of the trace (it was segfaulting when I was
using printf):

(gdb) where
#0  0x401381e0 in memset () from /lib/libc.so.6
#1  0x081129a4 in ?? ()
#2  0x402b8e7e in S_more_sv (my_perl=0x810cbb0) at sv.c:138
#3  0x402c5882 in Perl_newSVpvn (my_perl=0x810cbb0, s=0x4035132d "",
len=0)
    at sv.c:5605
#4  0x40334c1c in PerlIO_vprintf (f=0x8115228, fmt=0x4033a587 "%s\n",
    ap=0xbffff874) at perlio.c:3813

Thanks!


_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to