[xml] RE: Segmentation fault on windows

Date view Thread view Subject view Author view

From: Nicholas Lewin-Koh (kohnicho@comp.nus.edu.sg)
Date: Sun Jul 09 2000 - 23:25:21 EDT


Hi,
Sorry to take so long to reply. I am using version 2.1.1. As for giving
you a test case, I will try, but the program I am working on (ggobi the
new xgobi) is about 10,000 lines of code, so i need to figure out where
the hell the libxml is causing the seg fault (if it is). If I compile
everything without using xml #define USE_XML FALSE, everything works fine,
if I set it to TRUE, then it compiles our read and write xml sources and a
few other place. When I start the program it seg faults before the console
comes up. I tried inserting print statements but that doesn't seem to
work, so it is faulting right when it enters main (or before?). Could it
be that I am not linking the library properly? here is an excerpt from my
make file

#ifdef USE_XML
 CFLAGS+= -DDIR_SEPARATOR="'/'"
 XML_SRC= read_xml.c write_xml.c
 XML_OB= read_xml.o write_xml.o
 XML_INC_DIRS= -I d:/Nicholas/src/libxml2\
               -I d:/Nicholas/src/zlib
 CFLAGS+= -DUSE_XML=1 $(XML_INC_DIRS)
 OB+= $(XML_OB)

 XML_LIB_DIRS = -L d:/Nicholas/src/libxml2 \
                -L d:/Nicholas/src/zlib
 XML_LIBS= -lxml_dll -lzlib
#endif

I hope all this helps, If there is anything else I can try let me know.

Nicholas

On Fri, 7 Jul 2000, Alfred Reibenschuh wrote:

> hi !
>
> i'm using "mingw gcc version 2.95.2 19991024 (release)"
> on win2k. i can reproduce the error you mentoned only
> if i give no url to testURI, so:
>
> testURI -- segfaults
> but
> testURI http:/somewhen/allways -- does not
>
> i looked into it and found a weakness in the argument evaluation
> which produces segfaults if fewer than 1 arguments are given
>
> can you send me a test case which will reproduce
> what your program is doing (incuding the segfaults) ?
>
>
> -- Alfred Reibenschuh
>
> +----------------------------------------------------+
> | linux geek, perl monger, roleplayer & sf-fanatic |
> +----------------------------------------------------+
> | Sometimes I hear voices in my head |
> | telling me to do strange things, but |
> | I always wonder if that's just me thinking |
> | about things I really want to do anyway. |
> | |
> | Why do the voices never say, |
> | "Your dosage needs adjustment"? |
> +----------------------------------------------------+
> | look @ http://penguin.at0.net/~fredo/ |
> +----------------------------------------------------+
>
>
> > -----Original Message-----
> > From: Nicholas Lewin-Koh [mailto:kohnicho@comp.nus.edu.sg]
> > Sent: Friday, July 07, 2000 6:17 AM
> > To: xml@rufus.w3.org
> > Cc: alfred.reibenschu@chello.at
> > Subject: Segmentation fault on windows
> >
> >
> > Hi,
> > I compiled libxml-2.1.1 using alfred reibenschuh's port. I am using the
> > mingw compiler gcc-2.95.2-1. The problem, when I compile my program before
> > the program even starts there is a segementation fault, and of course
> > stupid windows does not core dump. But I tried the test programs and the
> > same thing happens with testURI. Anyone have any thoughts?
> >
> > Nicholas
> >
> >
>

----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:30:22 EDT