Subject: sgml2pl crash

From: Jan Wielemaker <[email-masked]>
Date: Mon, 21 Aug 2000 12:29:08 +0200

> Bug in the SGML2PL (or socket/clib?) library in the standard binary distrubution for Windows.
> Same problem with Solaris version.
> The attempt to parse a HTML file causes a protection fault:
> 
> C:\>C:\Programme\pl\bin\PLWIN.EXE
> Welcome to SWI-Prolog (Version 3.3.9)
> Copyright (c) 1990-2000 University of Amsterdam. 
> Copy policy: GPL-2 (see www.gnu.org)
> 
> For help, use ?- help(Topic). or ?- apropos(Word).
> 
> ?- load_html_file('c:/Programme/pl/Manual/index.html',X).
> ERROR: Trapped signal 11 (general protection fault), aborting ...
>       [9] copy_stream_data('$stream'(2050028), '$stream'(2049832))
>       [8] sgml:load_dtd(dtd(7717276, html), 'c:/programme/pl/library/dtd/html4.dtd')
>       [7] sgml:dtd(html, dtd(7717276, html))
>       [6] sgml:load_html_file('c:/Programme/pl/Manual/index.html', _G457)
>       [1] '$toplevel'
> % Execution Aborted

Thanks.  This has been fixed now, together with some other problems that
were windows specific. Please fetch the 1.0.8 version of the sgml
package and/or the current w32pl339.exe (which is prolog-wise the same
as the original 3.3.9, but contains sgml2pl 1.0.8).

This version also contains some additions to the Prolog API, allowing
to obtain much more information on the locations/origin of tags. Work in
progress used for syntax-highlighting.

	Regards --- Jan