You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Justin C. Darby" <wi...@kradaudio.net> on 2001/10/31 23:59:05 UTC

libmysqlclient and apache2 - solved

Ok, since I love making myself look like an idiot, and this took me and 3
other people to figure out, what happened was, I forgot a malloc call for
a custom typedef'd struct pointer. But, the problem was damn near
impossible to track down with the available debugging tools. Go figure. I
didn't find it untill I sat down with gdb and stepped through my function
20 or 30 times.

Sorry for bugging you folks, after the first couple of people had no clue
and the debbing crap didn't help, I was going nuts. :)

Justin




Re: libmysqlclient and apache2 - solved

Posted by Cliff Woolley <cl...@yahoo.com>.
On Wed, 31 Oct 2001, Justin C. Darby wrote:

> Ok, since I love making myself look like an idiot, and this took me and 3
> other people to figure out, what happened was, I forgot a malloc call for
> a custom typedef'd struct pointer. But, the problem was damn near
> impossible to track down with the available debugging tools. Go figure.

If malloc or free segfault (and you didn't really run out of RAM), it's
almost always heap corruption caused by exactly this sort of thing.  Free
tools like Electric Fence and commercial tools like Purify are invaluable
for sniffing these things out.  Glad you found it.  :)

--Cliff

--------------------------------------------------------------
   Cliff Woolley
   cliffwoolley@yahoo.com
   Charlottesville, VA