W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

CDATA causing core dump (fwd)

From: Rick H Wesson <wessorh@ar.com>
Date: Fri, 24 Mar 2000 11:47:55 -0600
To: html-tidy@w3.org
Message-ID: <OF4E8F8982.44B849FF-ON862568A6.00445367@rfdinc.com>

hello everyone,

tidy sure has helped me alot! cleaning up my XML sources I ran into a core
dump any time I reached a <![CDATA[ ... ]]>  section, I tried the Java
version too and it crashed.

I replaced my CDATA with the one refrenced in the realease note, it
crashed both the c and java version of tidy also.

<![CDATA[ .. markup here has no effect .. ]]>

trace info below... any help would be appreciated, oh and my CDATA
sections contained XML... I know it shouldn't matter but I cant figure
out how to use CDATA and tidy the rest of my XML.

os: linux 2.2.12
tidy release:  13th January 2000



(gdb) where
#0  0x80539f3 in PPrintXMLTree ()
#1  0x8053b09 in PPrintXMLTree ()
#2  0x8053b09 in PPrintXMLTree ()
#3  0x8053b09 in PPrintXMLTree ()
#4  0x805391e in PPrintXMLTree ()
#5  0x8059453 in main ()
#6  0x40031cb3 in __libc_start_main (main=0x80589a0 <main>, argc=3,argv=0xbffff284, init=0x8048658 <_init>, fini=0x805956c <_fini>,
    rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffff27c)../sysdeps/generic/libc-start.c:78

Exception in thread "main" java.lang.NullPointerException:
        at org.w3c.tidy.PPrint.printXMLTree(PPrint.java:1471)org.w3c.tidy.PPrint.printXMLTree(PPrint.java:1516)org.w3c.tidy.PPrint.printXMLTree(PPrint.java:1516)org.w3c.tidy.PPrint.printXMLTree(PPrint.java:1516)org.w3c.tidy.PPrint.printXMLTree(PPrint.java:1457)org.w3c.tidy.Tidy.main(Tidy.java:1484)
Received on Friday, 24 March 2000 13:13:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:47 UTC