httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "m.spinetti@pisa.iol.it"<m.spine...@pisa.iol.it>
Subject Re: Strange segmentation fault
Date Mon, 30 Jul 2007 16:49:00 GMT
I found that a similar problem was this:

http://mail-archives.apache.org/mod_mbox/httpd-modules-dev/200703.mbox/%3c1173077706.5485.6.camel@test.asus%3e

So it seems that it's possibile.
I don't understand how to solve it.
Could you give me some hints?
Best regards

Marco

> Sorry I don't understand the reply.
> You are telling me that it should be possibile or not?
> I always use r->pool to allocate memory in my module, but not for
> libxml2. It has it's memory allocation and looking at source it uses
> malloc and free.
> Best regards
> 
> Marco
> 
> 
> > On Mon, Jul 30, 2007 at 06:04:27PM +0200, m.spinetti@pisa.iol.it wrote:
> > > I isolated my problem.
> > > It seems that sometimes during xmlFreeDoc(doc) I get a Segmentation
> fault.
> > > xmlFreeDoc is a function of libxml2 which I use inside my module.
> > > I suppose that libxml2 uses malloc/free to alloc and free memory:
is it
> > > possibile that there is some overlap of memory with apr poll
(r->poll)?
> > Not an option. Unless you use somewhat pools to allocate memory for
> > libxml. If you do so, stop it. Either use apr pools or malloc/free.
> > Kind regards.
> > 
> 


Mime
View raw message