httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject Re: libmysqlclient and apache2
Date Wed, 31 Oct 2001 19:35:44 GMT
On Wed, Oct 31, 2001 at 01:30:54PM -0600, Justin C. Darby wrote:
> I'm writing a C++ apache module for httpd-2.0, and I'm running into a bit
> of a wall with Apache's memory allocation system.
> 
> It appears that whenever the mysql client library tries to malloc()
> memory, it causes the server to crash.
> 
> When I call mysql_options(), it's crashing in the call to my_malloc(), in
> mysys/my_malloc.c, line 36 (mysql 2.23.43). It's a perfectly harmless
> malloc() call, done in a thread-safe build of the mysql client library
> (which is why I'm blaming Apache before MySQL here..).
> 
> Over-detailed bloated gdb/strace/etc available if needed, however, I was
> able to reproduce this on every assorted linux box in my office.

Apache also uses malloc() under the covers. Post a stack trace and we
may be able to help.

-aaron

Mime
View raw message