Syslog fixes a bug?

Philipp Thomas pth@suse.de
Fri May 9 23:22:00 GMT 2008


* Michael Wieher (michael.wieher@gmail.com) [20080507 23:06]:

> If I use syslog() to attempt to write data and see where it dies, it
> lives and works perfectly.

If you're on a system with glibc, try compiling with -D_FORTIFY_SOURCE=2,
which will give you runtime stack checking which will possibly help you
finding the spot where your code spills a buffer or something like it

Philipp



More information about the Gcc-help mailing list