James writes:
>
> I was wondering if someone could tell me how to debug the sqwebmail program
> segfaulting (reliably) when certain customers of ours attempt to use the
> address book to mail someone. Or if this is perhaps a known bug? I really
> need to get this solved... I'd be happy to send any patches that I come up
> with.. but I unfortunately have no idea of where to start on debugging
> this.
The general procedure is:
* Compile and install an executable with debug symbols, NOT stripped.
* Insert a sleep() call before the section of code you need to debug.
* Issue the HTTP request to debug.
* Find the pid of the sleeping process, attach a debugger to it, step
through it.
--
Sam