From jan@swi.psy.uva.nl  Mon Aug 21 12:28:55 2000
Received: from gollem.swi.psy.uva.nl (root@gollem [145.18.152.30])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id MAA03264;
	Mon, 21 Aug 2000 12:28:50 +0200 (MET DST)
Received: (from jan@localhost)
	by gollem.swi.psy.uva.nl (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id MAA03781;
	Mon, 21 Aug 2000 12:29:08 +0200
Date: Mon, 21 Aug 2000 12:29:08 +0200
Message-Id: <200008211029.MAA03781@gollem.swi.psy.uva.nl>
From: Jan Wielemaker <jan@swi.psy.uva.nl>
Subject: sgml2pl crash
To: Joachim.Katzer@icn.siemens.de
In-Reply-To: Joachim.Katzer@icn.siemens.de's message of Thu, 17 Aug 2000 15:03:28 +0200 (MET DST)
Phone: +31 - 20 - 525 6121
Cc: prolog@gollem.swi.psy.uva.nl

> 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

