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, 3 Mar 2000 10:40:06 -0500 (EST)
To: html-tidy@w3.org
Message-ID: <Pine.LNX.4.10.10003030738530.15968-100000@loki.ar.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 

thanks,

-rick

(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)
    at ../sysdeps/generic/libc-start.c:78              

Exception in thread "main" java.lang.NullPointerException:
        at org.w3c.tidy.PPrint.printXMLTree(PPrint.java:1471)
        at org.w3c.tidy.PPrint.printXMLTree(PPrint.java:1516)
        at org.w3c.tidy.PPrint.printXMLTree(PPrint.java:1516)
        at org.w3c.tidy.PPrint.printXMLTree(PPrint.java:1516)
        at org.w3c.tidy.PPrint.printXMLTree(PPrint.java:1457)
        at org.w3c.tidy.Tidy.main(Tidy.java:1484)                  
Received on Saturday, 18 March 2000 07:21:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:43 GMT