<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://www.swi-prolog.org/bugzilla/bugzilla.dtd">

<bugzilla version="4.0"
          urlbase="http://www.swi-prolog.org/bugzilla/"
          
          maintainer="bugs@swi-prolog.org"
>

    <bug>
          <bug_id>28</bug_id>
          
          <creation_ts>2012-03-04 02:08:00 +0100</creation_ts>
          <short_desc>cannot load my program</short_desc>
          <delta_ts>2012-03-04 13:31:37 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>SWI-Prolog</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows</op_sys>
          <bug_status>CONFIRMED</bug_status>
          
          
          
          
          
          
          <priority>Highest</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hunter">lngwujs</reporter>
          <assigned_to name="Jan Wielemaker">bugs</assigned_to>
          

      

      

      

          <long_desc isprivate="0">
            <commentid>84</commentid>
              <attachid>13</attachid>
            <who name="Hunter">lngwujs</who>
            <bug_when>2012-03-04 02:08:35 +0100</bug_when>
            <thetext>Created attachment 13
it&apos;s the file that causes this problem.

When I load my file lexSemTest.pl, attached below, the prolog (v.6.1.2) entered an infinite loop and showed repetitively the following error message:

ERROR: Trapped signal 11 (general protection fault), aborting ...
Unknown message: frame(100,backtrace,foreign)
Unknown message: frame(85,backtrace,5)
Unknown message: frame(65,backtrace,2)
Unknown message: frame(56,backtrace,12)
Unknown message: frame(48,backtrace,0)
ERROR: Trapped signal 11 (general protection fault), aborting ...
Unknown message: frame(100,backtrace,foreign)
Unknown message: frame(85,backtrace,5)
Unknown message: frame(65,backtrace,2)
Unknown message: frame(56,backtrace,12)
Unknown message: frame(48,backtrace,0)
ERROR: Trapped signal 11 (general protection fault), aborting ...
Unknown message: frame(100,backtrace,foreign)
Unknown message: frame(85,backtrace,5)
Unknown message: frame(65,backtrace,2)
Unknown message: frame(56,backtrace,12)
Unknown message: frame(48,backtrace,0)

....

It goes on and on....</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>85</commentid>
            <who name="Jan Wielemaker">bugs</who>
            <bug_when>2012-03-04 13:31:37 +0100</bug_when>
            <thetext>Well, first of all, Terms like H1(X) are invalid.  A functor name 
cannot be a variable.  Use =.. to create a term from an unknown
functor.  E.g., Term =.. [H1,X].

I cannot reproduce the crash (trying 6.1.2 on 64-bit Windows 7).

Second candidate are the chinese (?) charaters in the last clause
(which should have :- rather than :, I presume).  This is a bit hard
for me to test as I do not have a Chinese Windows.  What encoding is
this file?   If I knew, I could recode it to UTF-8 and try again.

   Cheers --- Jan</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
              isurl="0"
          >
            <attachid>13</attachid>
            <date>2012-03-04 02:08:00 +0100</date>
            <delta_ts>2012-03-04 02:08:35 +0100</delta_ts>
            <desc>it&apos;s the file that causes this problem.</desc>
            <filename>lexSemTest.pl</filename>
            <type>application/octet-stream</type>
            <size>835</size>
            <attacher>lngwujs</attacher>
            
              <data encoding="base64">77u/Y2hpTGV4U2VtKFtdKS4NCg0KY2hpTGV4U2VtKFtIMSwgSDJ8VGFpbF0sIFJlc3VsdCkgOi0N
CiAgICBuYW1lKFdvcmQsIEgxKSwNCiAgICBuYW1lKFBvcywgSDIpLA0KICAgIGNoaUxleFNlbUF1
eChXb3JkLCBQb3MsIExhbWJkYUxleFNlbSksDQogICAgKG1lbWJlcihMYW1iZGFMZXhTZW0sIFJl
c3VsdCksIFJlc3VsdCA9IFRhaWwyOw0KICAgICBSZXN1bHQgPSBbTGFtYmRhTGV4U2VtfFRhaWwy
XSksDQogICAgY2hpTGV4U2VtKFRhaWwsIFRhaWwyKS4NCiAgICANCg0KY2hpTGV4U2VtQXV4KEgx
LCAnTmEnLCBuYShsYW0oWChIMShYKSk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