This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Syslog fixes a bug?


* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]