scew-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [scew-users] build from repository


From: Nicholas Mc Guire
Subject: Re: [scew-users] build from repository
Date: Wed, 31 Dec 2008 04:54:44 -0900 (AKST)

> > configure: WARNING: Check unit testing framework not found.
> > configure: error: conditional "DOC" was never defined.
> > Usually this means the macro was only invoked conditionally.
> >
> > consequently there are no Makefiles and I'm kind of stuck :)
> >
> > system: debian etch (default + development stuff)
> > repo  : hg clone http://hg.sv.nongnu.org/hgweb/scew
>
> If you build from the repo, you need to run autogen.sh script first.
>
ok - ./autogen.sh does it (sorry I'm not that familiar with the autotools
yet) - build seems to be ok now. A quick check shows that 1.0rc1 has a
problem though with some valid XML (xmlfw atleast conciders it valid) -
for simple files it works as expected:

<snip>
ebian:~/scew_repo/build/examples/scew_print# ./scew_print ~/xml/1.xml
<TEST>
    <emphasis>beep</emphasis>
</TEST>
debian:~/scew_repo/build/examples/scew_print# ./scew_print 
~/xml/Wageondaten3.xml
*** glibc detected *** free(): invalid pointer: 0x08058420 ***
Aborted
debian:~/scew_repo/build/examples/scew_print# xmlwf ~/xml/Wageondaten3.xml
debian:~/scew_repo/build/examples/scew_print#
<snip>

 while 0.4 gives me the expected

<snip>
debian:~/scew-0.4.0/examples/scew_print# ./scew_print ~/xml/Wageondaten3.xml
<WDB>
    <WG>
        <CD>54</CD>
....
<snip>

 a bt in gdb of the problem shows:

<snip>
#1  0xbfb817cc in ?? ()
#2  0x00000006 in ?? ()
#3  0x00007b70 in ?? ()
#4  0xb7e3a811 in raise () from /lib/tls/i686/cmov/libc.so.6
#5  0xb7e3bfb9 in abort () from /lib/tls/i686/cmov/libc.so.6
#6  0xb7e6fdfa in __fsetlocking () from /lib/tls/i686/cmov/libc.so.6
#7  0xb7e7768f in mallopt () from /lib/tls/i686/cmov/libc.so.6
#8  0xb7e77732 in free () from /lib/tls/i686/cmov/libc.so.6
#9  0x080499af in scew_element_set_contents (element=0x0,
    contents=0x80583e8
"\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n")
    at ../../scew/scew/element.c:283
#10 0xb7f4bf1a in XML_ParserCreate () from /usr/lib/libexpat.so.1
#11 0xb7f4cf3d in XML_ParserCreate () from /usr/lib/libexpat.so.1
#12 0xb7f4661c in XML_ParseBuffer () from /usr/lib/libexpat.so.1
#13 0xb7f48645 in XML_Parse () from /usr/lib/libexpat.so.1
#14 0x0804a39e in scew_parser_load_file_fp (parser=0x804d008,
in=0x804d7f0)
    at ../../scew/scew/parser.c:126
#15 0x0804a425 in scew_parser_load_file (parser=0x804d008,
    file_name=0xbfb84e3d "~/xml/Wageondaten3.xml")
    at ../../scew/scew/parser.c:98
#16 0x08048f0f in main (argc=Cannot access memory at address 0x7b70
)
    at ../../../scew/examples/scew_print/scew_print.c:137
<snip>

 It seems to be only a size issue - with a small xml file all is fine
(same file basically, just removed some child elements). Should I send the
file causing the problem (though I doubt it is related to the content any
way - looks like some buffer overflow to me) ?

thx!
hofrat




reply via email to

[Prev in Thread] Current Thread [Next in Thread]