[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] Need help: My program trying to free
- From: Daniel Veillard <veillard redhat com>
- To: "Jones, Mark A (Mark)" <jones lucent com>
- Cc: xml gnome org
- Subject: Re: [xml] Need help: My program trying to free
- Date: Sun, 28 Mar 2004 06:17:41 -0500
On Sat, Mar 27, 2004 at 09:16:13PM -0500, Jones, Mark A (Mark) wrote:
> I'm getting a core dump after calling xmlFreeTextReader(reader). Has anyone seen a problem like this before? I show the piece of code that is dropping the core along with a few stack frames (gdb) from the core file. Any insight would be much appreciated.
[..]
> type = processNode(reader);
> if ( type == DETAILS || type == DETAIL )
> ret = xmlTextReaderNext(reader);
> else
> ret = xmlTextReaderRead(reader);
> }
> xmlFreeTextReader(reader);
Without a way to reproduce the problem, I don't see what might be going
wrong. maybe processNode() made a free error, maybe your program made a free
error, destroying the allocator data and making xmlFreeTextReader() fail.
Use valgrind or other memory debugging tool.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]